Skip to content

charleyoshi/mastermind_game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mastermind - OOD Practice in Ruby

Practice from The Odin Project
Current Version: Terminal game

demo

Description

This is a OOD practice.
Implemented several classes and helper modules.
Inheritance (where human player inherits default player mode) was used.
Encapsulation (where code maker's secret key has to be private) was used.

Executing program

  • Current version runs in terminal
ruby game.rb

Authors

ex. Charley Yoshi
ex. @charleyoshi

Sprint History

  • Sprint 1
    • Build the game assuming the computer randomly selects the secret colors and the human player must guess them. A proper feedback on how good the guess was each turn is given.
  • Sprint 2
    • Refactor the code to allow the human player to choose whether they want to be the creator of the secret code or the guesser.
  • Sprint 3
    • If human wants to be the code maker to choose their own secret colors, the computer will guess randomly.

Todo: implement UI, implement strategy for computer guess

About

OOD practice in ruby

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages