Skip to content

Commit

Permalink
update yahtzee picture
Browse files Browse the repository at this point in the history
Signed-off-by: GuillaumeFalourd <[email protected]>
  • Loading branch information
GuillaumeFalourd committed May 23, 2021
1 parent f549bed commit da210f1
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ This repository contains Ritchie formulas which can be executed by [ritchie-cli]

- [Yahtzee Game](https://github.com/GuillaumeFalourd/formulas-python/tree/master/game/yahtzee): `rit game yahtzee`

![Game](/docs/img/rit-game-yahtzee.jpg)
![Game](/docs/img/rit-game-yahtzee-play.png)

## 📦 Use Formulas

Expand Down
Binary file added docs/img/rit-game-yahtzee-play.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/img/rit-game-yahtzee.jpg
Binary file not shown.
2 changes: 1 addition & 1 deletion game/yahtzee/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ The objective of the game is to score points by rolling five dice to make certai

## Demo

![Execution](/docs/img/rit-game-yahtzee.jpg)
![Game](/docs/img/rit-game-yahtzee-play.png)
15 changes: 6 additions & 9 deletions game/yahtzee/src/formula/formula.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,12 @@ def run():
class YahtzeeGame:
def __init__(self):
os.system('cls' if os.name == 'nt' else 'clear')
print("""
YAHTZEE
Welcome to the game. To begin, simply press [Enter]
and follow the instructions on the screen.
To exit, press [Ctrl+C]
""")

print("")
print("\033[36m📚 HOW TO PLAY?\033[0m")
print("\033[32m🟢 Start Playing YAHTZEE pressing ENTER \033[0m")
print("\033[38;5;214m🟠 Play following the instructions on the screen \033[0m")
print("\033[31m🔴 Press [Ctrl+C] to end the game! \033[0m")
print("")
# Begin by instantiating the hand and scoreboard
self.hand = Hand()
self.scoreboard = ScoreBoard()
Expand Down

0 comments on commit da210f1

Please sign in to comment.