Hi, I installed the library by typing in 'pip install treys' in the terminal (vscode). And I could see the import of the library successfully worked.
So then, I simply copied the code and ran it.
`from treys import Deck
deck = Deck()
board = deck.draw(5)
player1_hand = deck.draw(2)
player2_hand = deck.draw(2)
Card.print_pretty_cards(board)
Card.print_pretty_cards(player1_hand)
Card.print_pretty_cards(player2_hand)
`
Unfortunately, there was no output coming out. Please tell me what should I do. Thanks in advance.
- Also I wanted to ask if there is any function that could check the high card.
For instance, player1 and player2 both has a pair. Then we know we should compare whose pair is higher than the other. Is this library capable of doing this?
Hi, I installed the library by typing in 'pip install treys' in the terminal (vscode). And I could see the import of the library successfully worked.
So then, I simply copied the code and ran it.
`from treys import Deck
deck = Deck()
board = deck.draw(5)
player1_hand = deck.draw(2)
player2_hand = deck.draw(2)
Card.print_pretty_cards(board)
Card.print_pretty_cards(player1_hand)
Card.print_pretty_cards(player2_hand)
`
Unfortunately, there was no output coming out. Please tell me what should I do. Thanks in advance.
For instance, player1 and player2 both has a pair. Then we know we should compare whose pair is higher than the other. Is this library capable of doing this?