The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Hybrid View

plx any one can help me

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...