Hello, im looking for someone to code for me.
The program i would say is rather simple but i've not got the time to do it myself - write a simple game program in which the user is presented with a series of definitions and must identify the terms they define (i will prefer to put these definitions and terms in myself).
the things im looking for the program to do is this:
select a random definition (by the program) from a pre-defined list of definitions which are read
from a text file containing the definitions and the terms that the definitions define
The program must select a term to display to the user that will or may not match the definition. The
program shall use a random number to choose whether the term presented to the user matches or does
not match the definition. The program should ensure that, on average, the term matches the definition
30% of the time, and does not match 70% of the time.
The layout of the text file is as follows:
- Immediately preceding each definition, on a line of its own, is the term being defined.
- Each term/definition pair in the text file is separated by a blank line from the next term/definition
pair and the definition can extend over several lines.
- The last line in the text file is the last line of the last definition – this is not followed by a blank
The program displays the selected term and the randomly selected definition and asks the user if they
If the user correctly guesses if the definition or term match they are to gain 1 point, if they guess incorrectly they lose 2.
when the score goes negative then the game is over.
If the term and definition do not match and the user has correctly stated this, a new term is randomly
chosen. If has stated they do match when they do not then the correct term is displayed and a new definition is chosen
If the term and definition match, whether the user has correctly identified this or not, both are discarded
(so that they cannot be chosen again) and the process repeats.
If the user does not lose, the game ends after 5 definitions have been displayed. The user’s final score is
At the end of the game, whether or not the user has lost, the user is offered the option to play again
i am looking for this to be written in java in eclipse.
I am looking for this to be done soon in the next 1-2 days