Skip to content

gheceam/rock_paper_scissors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Rock Paper Scissors Game

A rock paper scissors game with a retro terminal feel. You can play as a human player against the computer, or have two different style computer players go head to head.

Options are to play as:

  • Human Player (User controls moves) - HumanPlayer()
  • Random Player (Computer picks the move) - RandomPlayer()
  • Rock Player (Computer always plays rock) - RockPlayer()
  • Cycle Player (Computer plays rock, paper, scissors in sequence) - CyclePlayer()
  • Reflect Player (Computer will play the prior move the opponent played) - ReflectPlayer()

Changing Player Style

Update the 'game' object with any of the above player classes to modify style of play:

if __name__ == '__main__':
  game = Game(HumanPlayer(), RandomPlayer())
  game.play_game()

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages