/game-of-war

Game of War card game object oriented design

Primary LanguagePython

Game of War - OO Design

Rules

  • This is a two player game

  • A deck of 52 cards is shuffled

  • The deck is split between the 2 players

  • Card suit does not matter in this game

  • Every turn, both players flip a card

  • The person that turns over the higher card wins both of the card

  • Those cards are added to the end of the player's deck

  • If players cards match, then the following happens:

    • Each player flips two more cards each
    • The third flipped card breaks the tie
    • The winner of the round gets the set of eight cards total
  • The winner of the game is the person with the whole deck of cards