Ok, im not that much of a geeky smart guy in C++,
but i've got some skillz..
so im trying to make a very simple game that will randomize
1 number for the computer and 1 number for the person using the program and whomever(person or computer) gets the highest number(lets say 1-10) wins, and keeps score also...
If anyone can just post here, or help me make this program in anyway that would be awsome!!!
lotsofsloths
0
Light Poster
Recommended Answers
Jump to PostFirst of all, I suggest taking a look at the short tutorial on random numbers here - http://www.daniweb.com/tutorials/tutorial1769.html
Jump to PostAs for keeping score, you could have two variables.
int games_won_by_computer; int games_won_by_player;
Once you're done that game, you could try a guessing game where the user guesses a random number in as few tries as possible.
Jump to PostDid half a programming class just register to post in this thread?
All 10 Replies
Bench
212
Posting Pro
dwks
149
Posting Whiz in Training
apurv
-2
Light Poster
hylex
0
Newbie Poster
registerdt2post
0
Newbie Poster
DIBYENDU SINGHA
0
Newbie Poster
CJX3711
0
Newbie Poster
Duki
552
Nearly a Posting Virtuoso
devill2
0
Newbie Poster
ichigo_cool
-4
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.