Rock Paper Scissor question?!

B4f1df29a8585ba1acaf96017c6ef61f
0
Loregoreth 101 Jun 29, 2006 at 21:47

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

6 Replies

Please log in or register to post a reply.

A8433b04cb41dd57113740b779f61acb
0
Reedbeta 167 Jun 29, 2006 at 21:59

What language are you using?

B4f1df29a8585ba1acaf96017c6ef61f
0
Loregoreth 101 Jun 29, 2006 at 22:01

Oh sorry I forgot to include that : c++

A8433b04cb41dd57113740b779f61acb
0
Reedbeta 167 Jun 29, 2006 at 22:08

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.

6f0a333c785da81d479a0f58c2ccb203
0
monjardin 102 Jun 30, 2006 at 12:51

By the way, my alma mater is home of the reigning national collegiate RPS champion! 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 before designing your AI!!!

1f6c52955546a0f5e26baa54c636bc5b
0
Morgan360 101 Jun 30, 2006 at 21:11

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

2f9f82c36ec6a28702dc365e43753d79
0
Ooka 101 Jun 30, 2006 at 23:17

wow, people are wierd :P