added js
This commit is contained in:
parent
7fbb736bc8
commit
579d92b893
13
src/code.js
13
src/code.js
@ -0,0 +1,13 @@
|
||||
board =
|
||||
[
|
||||
[0, 0, 0],
|
||||
[0, 0, 0],
|
||||
[0, 0, 0]
|
||||
];
|
||||
|
||||
ptm = 1;
|
||||
|
||||
function move(id)
|
||||
{
|
||||
|
||||
}
|
@ -14,19 +14,19 @@
|
||||
<body>
|
||||
<table id='board'>
|
||||
<tr>
|
||||
<th>X</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th><button onmousedown="move('00');" id='00'></button></th>
|
||||
<th><button onmousedown="move('01');" id='01'></button></th>
|
||||
<th><button onmousedown="move('02');" id='02'></button></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>O</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th><button onmousedown="move('10');" id='10'></button></th>
|
||||
<th><button onmousedown="move('11');" id='11'></button></th>
|
||||
<th><button onmousedown="move('12');" id='12'></button></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th><button onmousedown="move('20');" id='20'></button></th>
|
||||
<th><button onmousedown="move('21');" id='21'></button></th>
|
||||
<th><button onmousedown="move('22');" id='22'></button></th>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
|
Loading…
Reference in New Issue
Block a user