Skip to content

Java Console Application from an assignment in my first year of college

Notifications You must be signed in to change notification settings

HashBrownTTM/Java-Scrabble-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Java Scrabble Game

You are firstly required to prompt the user to enter in a one to start the game. If the users decide to play the game, prompt for the two player names.

image

The players will then be presented with the alphabet. Each player has to enter a word with the available letters in the alphabet list. When a player enters a word the letters of that word get removed from the alphabet list. Only vowels are not removed from the alphabet list. Before a word can be accepted both players must agree if the word entered is valid or not.

image

It is suggested that players have a dictionary present to determine the validity of the word. If the word is accepted, the player is awarded one point for each letter in the word. This letter tally will determine who the winner is when the game is finished. A letter can be used more than once in the creation of a word, but then must be removed from the alphabet list. For example, the word “FILL” contains two “L”, which must be removed from the alphabet list.

Once a letter has been removed from the alphabet list, a player cannot enter a word that contains the missing letters. You are required to display a suitable message for this and prompt the player to enter in a new word.

image

The game continues until a player cannot create any more words with the remaining alphabet list. If a player cannot create a word, they are required to enter in a sentinel value of three question marks “???”. Once a player has quit the game, display who the winner of the game is with their accumulated points or if the game is tied.

image

About

Java Console Application from an assignment in my first year of college

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages