Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 1.78 KB

README.md

File metadata and controls

32 lines (24 loc) · 1.78 KB

Jotto

About

Jotto is a logic-oriented word game, originally invented by Morton M. Rosenfeld in 1955. It is written entirely in Java. The graphical component of the game is implemented using the Swing GUI toolkit. The computer chooses a five-letter target word, which is in the dictionary, isn't a proper noun, and isn't a contraction. The target word may contain repeated letters. In ten or less guesses, the player then repeatedly guesses words in an attempt to guess the target word. The guesses also follow the same restrictions as the target word: in the dictionary, five letters, not a proper noun, may contain repeated characters. After each guess, the computer will indicate two values: the number of exact matches and the number of partial matches. An exact match is where target[i] = guess[i] (i.e.: correct letter and position). A partial match is where target[i] = guess[j], i ≠ j (i.e.: correct letter, incorrect position). Exact matches are found before partial matches and a given letter participates in at most one match. The game ends when either the player quits, guesses the target, or runs out of guesses.

Screenshots

Gameplay Screen

Jotto_Screenshot1

End of Game Screen

Jotto_Screenshot2

Compilation

make

Clean Build

make clean

Execution

java Jotto

Note: The compilation and execution step can be combined into a single step by running: make run.

Usage

License

Jotto is licensed under the MIT license.