Ive managed to write a number guessing game that is working okay. Im pretty stuck now... i want to do the following:
1. set a variable to keep track of how many attempts the user has left(they have a max of 6 lives to get the correct answer in my game)?
2. Then i want the player told how many lives they have left
3. Then the player can type in their guess
This is as far as i have got:
number guess: integer;
while Again='Y'do begin
writeln('Go on guess...');
while guess<>Num do begin
if guessnumber then
writeln('Well Done...you guessed the correct number')
writeln('would you like to play again?(Y/N');
Ive attemepted but am getting no where but if anyone willing to helpme then id be grateful.
0 · ·