I'm trying to create a game of Go Fish in Python. But I've stumbled onto a
little problem that I can't seem to figure out how to deal with.
There is a human player (player 0) and three computer players (from 1-3). The
human player goes first and chooses a target player. And then a card rank
On Friday, August 2, 2013 6:39:43 PM UTC-7, John Ladasky wrote:
On Friday, August 2, 2013 5:40:52 PM UTC-7, kevin...@gmail.com wrote:
Basically, my code is ignoring the if's and else's. I don't get why.
Everything appears to be positioned correctly, but for some odd reason, even
On Friday, August 2, 2013 6:42:30 PM UTC-7, Terry Reedy wrote:
Nonsense: they are executed just as you ask, even though what you ask is
not what you meant.
On 8/2/2013 8:40 PM, kevin4f...@gmail.com wrote:
def player_0_hitman(hit):
for card in pHands[target_player]:
On Friday, August 2, 2013 7:11:37 PM UTC-7, Joshua Landau wrote:
On 3 August 2013 02:44, kevin...@gmail.com wrote:
Yeah, I already know about that. But if I try to change it, I'm not even able
to start the program. If I try to change the if statement that it corresponds
with, I get a
On Friday, August 2, 2013 10:04:56 PM UTC-7, Terry Reedy wrote:
On 8/2/2013 10:24 PM, kevin4f...@gmail.com wrote:
Looking at this again, I believe you actually had the structure almost
right before. You want to look through *all* of the target players cards
and if *none* of them
Basically, I'm trying to find out how to remove matching items from a list. But
there doesn't seem to be any information on how to go about doing this specific
function.
For example, what I want is:
let's say there is a list:
pHands[0] = ['ad', 'ac', 'as', 'ah', '7d', '8s', '9d', 'td',
On Saturday, August 3, 2013 1:12:55 PM UTC-7, kevin...@gmail.com wrote:
Basically, I'm trying to find out how to remove matching items from a list.
But there doesn't seem to be any information on how to go about doing this
specific function.
For example, what I want is:
let's
On Saturday, August 3, 2013 3:37:41 PM UTC-7, Steven D'Aprano wrote:
On Sat, 03 Aug 2013 13:12:55 -0700, kevin4fong wrote:
Basically, I'm trying to find out how to remove matching items from a
list. But there doesn't seem to be any information on how to go about
doing
On Saturday, August 3, 2013 3:37:41 PM UTC-7, Steven D'Aprano wrote:
On Sat, 03 Aug 2013 13:12:55 -0700, kevin4fong wrote:
Basically, I'm trying to find out how to remove matching items from a
list. But there doesn't seem to be any information on how to go about
doing
On Saturday, August 3, 2013 3:37:41 PM UTC-7, Steven D'Aprano wrote:
On Sat, 03 Aug 2013 13:12:55 -0700, kevin4fong wrote:
Basically, I'm trying to find out how to remove matching items from a
list. But there doesn't seem to be any information on how to go about
doing
On Saturday, August 3, 2013 1:12:55 PM UTC-7, kevin...@gmail.com wrote:
Basically, I'm trying to find out how to remove matching items from a list.
But there doesn't seem to be any information on how to go about doing this
specific function.
For example, what I want is:
let's
On Saturday, August 3, 2013 5:25:16 PM UTC-7, Steven D'Aprano wrote:
On Sat, 03 Aug 2013 19:06:05 -0400, Roy Smith wrote:
In article 51fd8635$0$3$c3e8da3$54964...@news.astraweb.com,
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote:
2) Then go through those
Thank you, Steven, for the advice. It was really helpful with the descriptions
and steps.
Would you also happen to know how I could set up a list that keeps track of the
removed sets?
Let's say there's 4 a's taken out. The list would show:
['a']
But if there was also 4 j's in addition to the
I have no idea why but I'm unable to post in my original thread so I made a new
one here.
Thank you for the advice, everyone, especially Steven. It was really helpful
with the descriptions and steps.
Would you also happen to know how I could set up a list that keeps track of the
removed
On Saturday, August 3, 2013 5:36:42 PM UTC-7, kevin...@gmail.com wrote:
I have no idea why but I'm unable to post in my original thread so I made a
new one here.
Thank you for the advice, everyone, especially Steven. It was really helpful
with the descriptions and steps.
15 matches
Mail list logo