Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The software development house you work for has decided to create a prototype based on the game Scrabble, but with a twist, that will

The software development house you work for has decided to create a prototype based on the game Scrabble, but with a twist, t 

This letter tally will determine who the winner is when the game is finished. A letter can be used more than once in the crea 

The software development house you work for has decided to create a prototype based on the game Scrabble, but with a twist, that will be used on mobile devices. They require a prototype from you that is designed using a Java console application. If the prototype is a success, the application will be developed for the mainstream mobile platforms. 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. Welcome to the WORD WARS game. Press (1) To start the game. Press any other key to exit the game Enter your selection: 1 ************ Enter player 1 name: Andile Enter player 2 name: Sam 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. LETS PLAY WORD WARS!I! Alphabet lettezs let:Abede tchis Andile entez your word: java Entez (y) yes if both players agree on the vard Alphabet letters left: a bederchi kiznopa tu v xy z Sam enter your word: logic Enter (y) yes if both playeza agree on the vord Alphabet lettera left: a b def hi * ESOPR=atu v x Y = Andile enter your vard: 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. Alphabet letters left: ab def hi k m nopq Andile enter your word: concatenation YOU ENTERED A WORD THAT CONTAINS A LETTER THAT IS USED OR IS NOT VALID. PLEASE ENTER ANOTHER NORD! Andile enter your word: | 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. Andile enter your word: ??? WINNER OF THE GAME IS: SAM with a score of:5 YOUR NAME HAS BEEN SAVED TO THE HALL OF FAME!!! THE GAME IS NOW OVER. THANKYOU FOR PLAYING WORD WARS!!!

Step by Step Solution

There are 3 Steps involved in it

Step: 1

import javautilArrayList import javautilArrays import javautilList import javautilScanner public class Scrabble static String name1 static String name... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Auditing A Practical Approach

Authors: Robyn Moroney

1st Canadian Edition

978-1118472972, 1118472977, 978-1742165943

More Books

Students also viewed these Programming questions

Question

=+42, develop and compare the following models.

Answered: 1 week ago