now correctly stores ellements
This commit is contained in:
parent
1cc661be2d
commit
341ee0eb54
@ -1,4 +1,8 @@
|
|||||||
var board =
|
var board;
|
||||||
|
|
||||||
|
function load()
|
||||||
|
{
|
||||||
|
board =
|
||||||
[
|
[
|
||||||
[
|
[
|
||||||
[0, document.getElementById("id00")],
|
[0, document.getElementById("id00")],
|
||||||
@ -16,6 +20,7 @@ var board =
|
|||||||
[0, document.getElementById("id22")]
|
[0, document.getElementById("id22")]
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
|
}
|
||||||
|
|
||||||
var ids =
|
var ids =
|
||||||
{
|
{
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
<title>Tic Tac Toe</title>
|
<title>Tic Tac Toe</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body onload="load();">
|
||||||
<table id='board'>
|
<table id='board'>
|
||||||
<tr>
|
<tr>
|
||||||
<th><button onmousedown="move('00');" id='id00'></button></th>
|
<th><button onmousedown="move('00');" id='id00'></button></th>
|
||||||
|
Loading…
Reference in New Issue
Block a user