Jump to content


Rock Paper Scissor question?!


6 replies to this topic

#1 Loregoreth

    Member

  • Members
  • PipPip
  • 37 posts

Posted 29 June 2006 - 09: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

#2 Reedbeta

    DevMaster Staff

  • Administrators
  • 5308 posts
  • LocationSanta Clara, CA

Posted 29 June 2006 - 09:59 PM

What language are you using?
reedbeta.com - developer blog, OpenGL demos, and other projects

#3 Loregoreth

    Member

  • Members
  • PipPip
  • 37 posts

Posted 29 June 2006 - 10:01 PM

Oh sorry I forgot to include that : c++

#4 Reedbeta

    DevMaster Staff

  • Administrators
  • 5308 posts
  • LocationSanta Clara, CA

Posted 29 June 2006 - 10:08 PM

http://www.fredosaur...isc/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.
reedbeta.com - developer blog, OpenGL demos, and other projects

#5 monjardin

    Senior Member

  • Members
  • PipPipPipPip
  • 1033 posts

Posted 30 June 2006 - 12:51 PM

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!!!
monjardin's JwN Meter (1,2,3,4,5,6):
|----|----|----|----|----|----|----|----|----|----|
*

#6 Morgan360

    New Member

  • Members
  • PipPip
  • 20 posts

Posted 30 June 2006 - 09:11 PM

That is among the funniest things I have seen. The Gambits especially crack me up:

http://www.worldrps....id=20&Itemid=33
Morgan
Tools: LightWave + Unity. Games: educational, promotional, and shareware. Hardware: Intel Mac... hopefully.

#7 Ooka

    Member

  • Members
  • PipPip
  • 98 posts

Posted 30 June 2006 - 11:17 PM

wow, people are wierd :P





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users