-1

hello
I am new to deniweb and programming.I need your help for my game development i read a programm from your site but i didnot understand anything because i am doing python 3.1.I hope you will help me I want TEXAS HOLD’EM POKER HAND EVALUATOR and i am sending you my code please reply here or on jattvelly035@gmail.com

with regards
jattvelly035

Attachments
3
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by woooee
1

I ran your code in NetBeans:

ERROR 1:
SuitEnumerator(suit):
                        ^
SyntaxError: invalid syntax
(You have a random colon [:] on the end. Remove it)

ERROR 2:
card_list = [[ (rank, suit) for suit in range(4)] for rank in range(1, 14)]]
                                                                               ^
SyntaxError: invalid syntax
(You have one too many close square brackets on the end

ERROR 3:
Traceback (most recent call last):
  File "PATH", line 279, in <module>
    show_hand(card_list)
  File "PATH", line 263, in show_hand
    RankEnumerator(rank)
  File "PATH", line 71, in RankEnumerator
    if rank.isdigit():
AttributeError: 'tuple' object has no attribute 'isdigit'

(Not sure how to fix. Look through your code. It appears that rank is a tuple at the time that line is executed)

I'll have another look later.

0

There is at least one other post on this site that already does this. A search should bring it up.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.