logs
This commit is contained in:
parent
5ab481344f
commit
8f2071c596
|
@ -39,6 +39,7 @@ pre{ font-style: normal;font-size: 16px; margin-left: 32px;font-family: Consolas
|
||||||
.battleGrid tr td{border: 1px dashed green; text-align: center; font-weight: bold;min-width:20px; height:20px;}
|
.battleGrid tr td{border: 1px dashed green; text-align: center; font-weight: bold;min-width:20px; height:20px;}
|
||||||
.winCase{background-color:red;}
|
.winCase{background-color:red;}
|
||||||
.hidden{display: none;}
|
.hidden{display: none;}
|
||||||
|
#logs{font-size: 70%;}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
@ -85,7 +86,7 @@ function playingAT(col){
|
||||||
}
|
}
|
||||||
grid[i][col]=symbol;
|
grid[i][col]=symbol;
|
||||||
document.getElementById('td' + col + '_' + i).innerHTML = symbol;
|
document.getElementById('td' + col + '_' + i).innerHTML = symbol;
|
||||||
addLog('player ' + currentPlayer + ', symbol ' + symbol + 'played col ' + col);
|
addLog('player ' + currentPlayer + ', symbol ' + symbol + ' played col ' + col);
|
||||||
//change player
|
//change player
|
||||||
if(currentPlayer == 1){
|
if(currentPlayer == 1){
|
||||||
play(2);
|
play(2);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user