Skip to content

Possible incorrect hand evaluation #6

@eukrit

Description

@eukrit

Could you have a look at my screenshot? I think the hand evaluation is wrong because that is not supposed to be straight.
2021-01-23_4-04-45

`
from card import *
from evaluator import *
from deck import *

deck = Deck()

board = deck.draw(5)
print(Card.print_pretty_cards(board))

evaluator = Evaluator()

players = [deck.draw(2) for i in range(10)]
for i in range(len(players)):
handstr = Card.print_pretty_cards(players[i])
evalint = evaluator.evaluate(board, players[i])
ranknum = evaluator.get_rank_class(evalint)
rankname = evaluator.class_to_string(ranknum)

  print('Hand: ' + handstr + 'Eval :' + str(evalint) +
        ', Rank No. ' + str(ranknum) + ' [' + rankname + ']')

`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions