iEntry 10th Anniversary Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Code > JavaScript

Reply
 
LinkBack Thread Tools
Old May 12th, 2008, 06:11 PM   #1
New Member
 

Join Date: May 2008
Location: brighton
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 johnjo is on a distinguished road
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
johnjo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 12th, 2008, 08:50 PM   #2
Most Reputable Member
 

Join Date: Feb 2008
Location: In My Own Little World
Age: 15
Posts: 1,346
Blog Entries: 9
Thanks: 2
Thanked 45 Times in 45 Posts
Rep Altering Power: 0 CloudedVision is on a distinguished road
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.
__________________
Theron Luhn
CloudedVision is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 The Café 5 April 20th, 2008 11:22 AM
Scorpion Game tox0tes The Café 22 October 27th, 2007 09:09 PM
RSS Game ciancomp Other Languages 0 October 12th, 2007 11:29 AM
AS3 game alexgeek Flash and ActionScript 7 August 24th, 2007 04:05 PM
New Game Im Bored! bruno89 The Café 68 December 1st, 2006 02:59 PM


Search Engine Optimization by vBSEO 3.2.0 RC8