PDA

View Full Version : Rock Paper Scissor question?!


Loregoreth
06-29-2006, 03:47 PM
Im currently working on my second game(Rock Paper Scissor), but I got stuck at the part where the computer/AI chooses a number 1-3 randomly. Any one know how to do this.


-Loregoreth

Reedbeta
06-29-2006, 03:59 PM
What language are you using?

Loregoreth
06-29-2006, 04:01 PM
Oh sorry I forgot to include that : c++

Reedbeta
06-29-2006, 04:08 PM
http://www.fredosaurus.com/notes-cpp/misc/random.html

Oh and for future reference: a question of this sort can be easily answered by a Google search. Search for "C++ random number" or something similiar and you'll get plenty of websites.

monjardin
06-30-2006, 06:51 AM
By the way, my alma mater (http://ua.edu/) is home of the reigning national collegiate RPS champion! (http://www.al.com/news/birminghamnews/index.ssf?/base/news/11444020908520.xml&coll=2) Julianna Vaughn won the title at Madison Square Garden back in April by throwing scissors against the paper of D. Shanklin from Ohio. An outstanding move in the clutch!

Also, be sure to read over the The Official Rock Paper Scissors Strategy Guide (http://www.worldrps.com/) before designing your AI!!!

Morgan360
06-30-2006, 03:11 PM
That is among the funniest things I have seen. The Gambits especially crack me up:

http://www.worldrps.com/index.php?option=com_content&task=view&id=20&Itemid=33

Ooka
06-30-2006, 05:17 PM
wow, people are wierd :P