Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marlonmontenegro/mastermindruby
This is a simple implementation of the classic board game "Mastermind" in Java. The game offers two modes: one where the computer creates the secret code and the player guesses, and another where the player creates the secret code and the computer guesses.
https://github.com/marlonmontenegro/mastermindruby
Last synced: about 1 month ago
JSON representation
This is a simple implementation of the classic board game "Mastermind" in Java. The game offers two modes: one where the computer creates the secret code and the player guesses, and another where the player creates the secret code and the computer guesses.
- Host: GitHub
- URL: https://github.com/marlonmontenegro/mastermindruby
- Owner: MarlonMontenegro
- Created: 2023-08-23T22:59:44.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-23T23:02:59.000Z (over 1 year ago)
- Last Synced: 2023-08-24T00:21:28.885Z (over 1 year ago)
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MasterMindRuby
This is a simple implementation of the classic "Mastermind" game in Ruby. The game offers two modes: one where the computer creates the secret code and the player guesses, and another where the player creates the secret code and the computer guesses. The game provides feedback on each guess to help the player or computer refine their subsequent attempts.Modes
Mode 1: Player Creates, Computer Guesses
In this mode, you, the player, create the secret code, and the computer tries to guess it. The computer uses a basic strategy to narrow down the possibilities based on the feedback provided.Mode 2: Computer Creates, Player Guesses
In this mode, the computer generates the secret code, and you, the player, need to guess it. After each guess, the computer provides feedback to help you deduce the correct code.