Skip to content

kwoolter/yahtzee

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to PyYahtzee

PyYahtzee By kwoolter 🐒 ©️ 2017

Requirements

What's New

  • Added pygame GUI as an alternative to CLI
  • Run gui_controller.py to launch GUI version

Getting Started

  • 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".

Structure

Text Version

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()

Graphics Version

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.

Screen Shots

Graphics Version
game1 game2
Text Version
game3 game4

About

Python version of classic Yahtzee game

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages