I hate to post the same thing twice, but i felt like my last post got missed…
If anyone can do the code for this it would be greatly appretiated, maybe evan paid for through paypal ?
Dont worry im 37 and its not a coursework or school project, just a voluntary computer programming course ( I missed the Javascript meetings) due 2 business….
Anyways.. here’s the task…..
A prompt should be answered by player 1 to establish the word.
Then player 2 should take over and try and guess the word.
At each turn, player 2 should be prompted for an upper case character with a string which contains the number of lives left (initially 7), the letters tried so far [in order, in square brackets] and the partly guessed word e.g. 7[]=======, 6[S]=======, 6[SA]=A===A=, etc.
A suitable character (here ‘=’) is used to indicate unguessed letters.
A life is lost with each incorrect guess.
The game should finish with the message “well done” when the word is fully guessed or “bad luck – the word was ……” if the number of lives reaches 0.
There should be validation of both players input.
Players should be able to type input in upper or lower case letters but the progress of the game should be reported using upper case.
————————————————————————