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;}
|
||||
.winCase{background-color:red;}
|
||||
.hidden{display: none;}
|
||||
#logs{font-size: 70%;}
|
||||
</style>
|
||||
|
||||
<script>
|
||||
|
@ -85,7 +86,7 @@ function playingAT(col){
|
|||
}
|
||||
grid[i][col]=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
|
||||
if(currentPlayer == 1){
|
||||
play(2);
|
||||
|
|
Loading…
Reference in New Issue
Block a user