Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Word Scrambler

A Java console game where one player enters a secret word, the letters are shuffled randomly, and another player has 7 attempts to guess the original word.


Features

  • Randomly shuffles the letters of any word
  • Supports hidden word input when run from a terminal
  • 7 guessing attempts per game
  • Displays the remaining attempts after each incorrect guess

How It Works

  1. Player 1 enters a secret word.
  2. The program shuffles the letters randomly.
  3. Player 2 sees only the scrambled word.
  4. The player has 7 attempts to guess the original word.
  5. If the word is guessed correctly, the player wins.
  6. If all attempts are used, the correct word is revealed.

Example

Word Scrambler Preview

Technologies

  • Java
  • Collections Framework (Collections.shuffle())
  • Console API (System.console())

Run

Compile:

javac WordScrambler.java

Run:

java WordScrambler

About

A Java console word scrambler game where one player enters a secret word, the letters are shuffled randomly, and another player attempts to unscramble it.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages