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: 4 months 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 (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-23T23:02:59.000Z (almost 2 years ago)
- Last Synced: 2025-01-23T17:16:08.289Z (6 months 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.