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

Recommended Answers

All 2 Replies

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.

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.