Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Guess Game Problem

Author
Message
CHADALAK1
13
Years of Service
User Offline
Joined: 16th Sep 2011
Location: Sioux City
Posted: 24th Oct 2011 17:48
im trying to make a game where it counts the amount of guesses you make, but cuts you off to retry or go to menu. when i get the guess right, it wont display my dbPrint or go to my new input (exit = atoi(dbInput() ). and if i hit ESC, it goes to a never ending loop and my game crashes. can anyone help?
GuessGame


this is a class code. the DarkGDK(); is my main menu.

Main Menu


w00t! ^_^
Hawkblood
14
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 25th Oct 2011 03:27

This is the meat of the game. It doesn't have any condition to break out when you guess it right.
How about this:


The fastest code is the code never written.

Login to post a reply

Server time is: 2024-11-19 06:27:38
Your offset time is: 2024-11-19 06:27:38