I've used the code just for fun, but i am not figuring out how to restart the game without page refresh. I want it to be happen just after finish the game in javascript confirmation box.
Ankit Kumar Chauhan - 2012-05-09 07:06:32 - In reply to message 4 from Amin
I was doing like
making options as global array.
new TicTacToe('board', options); in TicTacToe.js in case Const.COM after alert('You lost'); I am using javascript if(confirm()){} as
if(confirm('Start again!!!')){
new TicTacToe('board', options);
}
am I doing right?
but how to re instantiate position object. please guide me