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