Skip to content

Erik-A-Smith/demo-python3-command-pattern

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Command-Pattern-Demo

A simple card game I made to demonstrate how the command pattern can be effectively utilized.

To run the project

  1. install python3 on your device
  2. cd into the directory of this project
  3. python ./main.py

Game Objective

2 players face off in a simple card game where to goal is to have the highest score by the end of the set turns to be played. Each turn a player draws a card from their deck and plays the card. The value of the card is equal to its face value (I.E. ace => 1, joker => 11, ...). Uppon being played, the value of the card is added to the players total score. Starting player is randomizeds and each deck is also shuffled at the start of game. Decks are composed of 4 suits and 13 cards per suit (Standard deck of playing cards without the jokers).

About

A simple card game I made to demonstrate how the command pattern can be effectively utilized.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages