Need help with rockpaperscissors game

This is a discussion on "Need help with rockpaperscissors game" within the JavaScript Forum section. This forum, and the thread "Need help with rockpaperscissors game are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old May 12th, 2008, 21:11
New Member
Join Date: May 2008
Location: brighton
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Need help with rockpaperscissors game

ok , so basically i need all the help i can get with an college assignment i got

it requires you place 3 images on the page. Computers hands, players hand and graphic indicating the winner.it must also must have Computer's Score,Player's Score,Button to play the game.

Pressing the button selects a random nr for each player. This number corresponds to a hand (scissors, paper or stone). A corresponding picture should automatically appear on the page for each player. According to the rules below a winner is selected and the graphic indicating who won should point to the winner (or both if its a draw). The winners score should be incremented and updated on screen. No points are awarded for a draw.

The game continues until one player reaches a score of 5, in which case they are alerted to the fact and the scores reset.

the only code i have to work with is : player1 = Math.round( Math.random() *2) ;

please help me
Reply With Quote

  #2 (permalink)  
Old May 12th, 2008, 23:50
CloudedVision's Avatar
Nerdy Moderator
Join Date: Feb 2008
Location: In My Own Little World
Age: 14
Posts: 825
Blog Entries: 6
Thanks: 0
Thanked 11 Times in 11 Posts
Send a message via AIM to CloudedVision Send a message via MSN to CloudedVision Send a message via Skype™ to CloudedVision
Re: Need help with rockpaperscissors game

What's your skill level for javascript? It'll help us a lot knowing how much detail to put in.
__________________
echo "Take it easy, ".$CloudedVision;
.links { site: other-road-design; blog: only-nerds-allowed; project: resource-fish; organization: ARMIES6; }
<quote>&quot;I think it's wrong that only one company makes the game Monopoly&quot; - <name>Steven Wright</name></quote>
Last Blog Entry: Nerd Poster (Jun 2nd, 2008)
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need a new ps3 game danny322 Webforumz Cafe 5 Apr 20th, 2008 14:22
Scorpion Game tox0tes Webforumz Cafe 22 Oct 28th, 2007 00:09
RSS Game ciancomp Other Programming Languages 0 Oct 12th, 2007 14:29
AS3 game alexgeek Flash & Multimedia Forum 7 Aug 24th, 2007 19:05
New Game Im Bored! bruno89 Webforumz Cafe 68 Dec 1st, 2006 17:59


All times are GMT. The time now is 11:25.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43