added info

This commit is contained in:
AUnicornWithNoLife 2021-04-12 10:49:01 +01:00
parent c661d94a45
commit 29767a5497
2 changed files with 48 additions and 29 deletions

View File

@ -12,38 +12,51 @@
<title>Tic Tac Toe</title> <title>Tic Tac Toe</title>
</head> </head>
<body onload="load();"> <body onload="load();">
<table id='board'> <table id='main' class='center'>
<tr> <tr>
<th> <th>
<button onmousedown="move('00');" id='id00'> </button> <table id='board'>
<tr>
<th>
<button onmousedown="move('00');" id='id00'> </button>
</th>
<th>
<button onmousedown="move('01');" id='id01'> </button>
</th>
<th>
<button onmousedown="move('02');" id='id02'> </button>
</th>
</tr>
<tr>
<th>
<button onmousedown="move('10');" id='id10'> </button>
</th>
<th>
<button onmousedown="move('11');" id='id11'> </button>
</th>
<th>
<button onmousedown="move('12');" id='id12'> </button>
</th>
</tr>
<tr>
<th>
<button onmousedown="move('20');" id='id20'> </button>
</th>
<th>
<button onmousedown="move('21');" id='id21'> </button>
</th>
<th>
<button onmousedown="move('22');" id='id22'> </button>
</th>
</tr>
</table>
</th> </th>
<th> <th id='info'>
<button onmousedown="move('01');" id='id01'> </button> <h2>Score: </h2>
</th>
<th> <br>
<button onmousedown="move('02');" id='id02'> </button>
</th> <h3>X Go</h3>
</tr>
<tr>
<th>
<button onmousedown="move('10');" id='id10'> </button>
</th>
<th>
<button onmousedown="move('11');" id='id11'> </button>
</th>
<th>
<button onmousedown="move('12');" id='id12'> </button>
</th>
</tr>
<tr>
<th>
<button onmousedown="move('20');" id='id20'> </button>
</th>
<th>
<button onmousedown="move('21');" id='id21'> </button>
</th>
<th>
<button onmousedown="move('22');" id='id22'> </button>
</th> </th>
</tr> </tr>
</table> </table>

View File

@ -17,6 +17,12 @@ button
font-style: bold; font-style: bold;
} }
.center
{
margin-left: auto;
margin-right: auto;
}
* *
{ {
background-color: black; background-color: black;