SitePoint Sponsor 

User Tag List
Results 1 to 4 of 4
Thread: plx any one can help me
Threaded View

Apr 11, 2007, 08:04 #1
 Join Date
 Apr 2007
 Posts
 2
 Mentioned
 0 Post(s)
 Tagged
 0 Thread(s)
plx any one can help me
plz expert i need ur help.......
i haven't use javascript be4 and i must write a program using javascript....
the detail is....
i must write a program using GUI in javascript.. the program is a game called guessing number........
the program must shows a forum contains 6 blocks or matrixs 6*6...
each matrix must contains a random number between 1 and 63 without dublicating any number in each matrix... knowing that the 1 must be in matrix#1, 2 in mattix#2, 4 in matrix#3, 8 in matrix#4, 16 in matrix#5, 32 in matrix#6........
the rule of this game is....
player choose a number between 1 and 63 without revealing that number then ask the player the following questions:
1 is ur choosen number in matrix#1?
2 is ur choosen number in matrix#2?
3 is ur choosen number in matrix#3?
4 is ur choosen number in matrix#4?
5 is ur choosen number in matrix#5?
6 is ur choosen number in matrix#6?
for each answer the program must shows a bottun contains yes and no
to calculate the choosen number guessing by the player:
the program finds the sum of each yes answer by the following:
for matrix#1 yes means 1
for matrix#2 yes means 2
for matrix#3 yes means 4
for matrix#4 yes means 8
for matrix#5 yes means 16
for matrix#6 yes means 32
and above calculation must be hidden..
e.i.
if i guess 10 then the program works like this
is ur choosen number in matrix#1?
no
is ur choosen number in matrix#2?
yes
is ur choosen number in matrix#3?
no
is ur choosen number in matrix#4?
yes
is ur choosen number in matrix#5?
no
is ur choosen number in matrix#6?
no

so the program calculate the number guessing by finding the sum of each yes answer which is
2 + 8 = 10 : note: all calculation must be hidden
finally the program shows a box says ur guessing number is 10
that is the rule and how tp play the game.........
so plz any one can help program the game and give the codes since im not familiar with javascript...
im waiting ur replies expert.
with my best regards and wishes
Bookmarks