Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

library not working issue #21

Open
amfisevan opened this issue Sep 17, 2024 · 0 comments
Open

library not working issue #21

amfisevan opened this issue Sep 17, 2024 · 0 comments

Comments

@amfisevan
Copy link

amfisevan commented Sep 17, 2024

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?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant