Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgulde committed Nov 4, 2024
2 parents e3da53f + 1a4d94c commit 7d1edcf
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
9 changes: 9 additions & 0 deletions HOWTOPLAY.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,17 @@ Shows basic view of deed from core monopoly game, with additional information in
All your gambling dreams, or nightmares, come true here! Gotta spend money to make money!
Note that none of the Casino modules can be used as attack modules, because any player must always wager to play.
##### Coin Flip
You choose a side, either heads or tails. Once you choose, the coin flips.
- If it lands on the side you picked, you earn double your wager!
- If it does not land on your side, you lose your wager.

##### Blackjack
The goal of this game is to beat the dealer in getting the highest score without going over 21. The game starts with both of you drawing 2 cards. If you or the dealer draw a natural (total of 21), the game immediately goes to the final stage. If not, you are prompted to either hit and get another card or to stay and keep what you have. If you draw an Ace, it will either be an 11 or 1 based on your current score. If you go over 21, you will bust and lose the game! Once you stay, the dealer will draw until they are at 17 or above. The dealer can also bust and lead to you winning!

If both players are safe, then the game will be decided to 3 outcomes:
- If you have a higher score than the dealer, you will win double your wager!
- If the dealer has a higher score than you, you will lose your wager.
- If you happen to have the same score as the dealer, the game ends in a stand-off, where you only get your wager back without any extra.

##### Texas Hold 'Em

Expand Down
8 changes: 5 additions & 3 deletions player.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
import sys
import socket
from time import sleep
import style as s
Expand Down Expand Up @@ -369,9 +370,10 @@ def get_input() -> None:
get_graphics()

# Feel free to comment out the 3 following lines for testing purposes.
initialize()
# ss.make_fullscreen()
# ss.calibrate_screen('player')
if(len(sys.argv) == 1 or sys.argv[1] != "-debug"):
initialize()
ss.make_fullscreen()
ss.calibrate_screen('player')

ss.clear_screen()
ss.initialize_terminals()
Expand Down

0 comments on commit 7d1edcf

Please sign in to comment.