PyYahtzee By kwoolter 🐒 ©️ 2017
- Python 3.2 - https://www.python.org/downloads/release/python-326/
- PyGame for Python 3.2 - http://pygame.org/ftp/pygame-1.9.2a0.win32-py3.2.msi
- Added pygame GUI as an alternative to CLI
- Run
gui_controller.py
to launch GUI version
- Written in Python 3.
- Run
run.py
to start the game. - Type "help" to find out about the commands to play the game e.g. "help", "help scores", etc.
- 1 to 4 players can play the game.
- The rules of Yahtzee can be found here
- Colours work if the game is run inside PyCharm IDE.
- A high score table is saved as "PyYahtzee.hst".
The game is structured using the Model-View-Controller paradigm:-
- Model - the
game.py
file is the "model" module holds the core of the game e.g. Player, Game, Turn. - View - the
game_text_view.py
file is the "view" module holds the classes that display various aspects of the game e.g.the scorecard, the dice - Controller - the
controller.py
file has the CLI to play the game using the cmd module - The
utils
module has various utilities that are used by the game e.g.HighScoreTable, is_numeric(), pick(), confirm()
The game is structured using the Model-View-Controller paradigm:-
- Model - the same
game.py
as the text version - View - the
graphics.py
file is the "view" module holds the classes that display various aspects of the game e.g.the scorecard, the turn, etc. - Controller - the
gui_controller.py
file has the GUI controller main loop.
Graphics Version | |
Text Version | |