Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

radio buttons and opponents move

Status
Not open for further replies.

killerg

Programmer
Dec 2, 2006
15
CY
Hello,

i have 4X4 table made from buttons because
iam doing a board game and my opponent is
the computer.The players will need to put
either s or o in the squares. i managed to
do the users(mymovement) by creating
radio buttons and the code for the first button
is
function b1(){
if(document.myForm.get[0].checked){
document.myForm.box1.value="S"
}
if(document.myForm.get[1].checked){
document.myForm.box1.value="O"
}
}
but i cant make the opponents move(computermove) to work.
i tried all the possible ways but is not working.

could anyone help ? or give me an advise how the opponent would move?
 
i found my mistake. thanks is working now.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top