|
|
@ -32,6 +32,8 @@ const players = ['x', 'o']
|
|
|
|
function fill(cell, player) {
|
|
|
|
function fill(cell, player) {
|
|
|
|
cell.value = player
|
|
|
|
cell.value = player
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cell.el.firstChild && cell.el.removeChild(cell.el.firstChild)
|
|
|
|
|
|
|
|
|
|
|
|
cell.el.appendChild(icons[player].cloneNode(true))
|
|
|
|
cell.el.appendChild(icons[player].cloneNode(true))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -109,6 +111,8 @@ function check(dryrun) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (!dryrun) {
|
|
|
|
if (!dryrun) {
|
|
|
|
|
|
|
|
paused = true
|
|
|
|
|
|
|
|
|
|
|
|
if (complete.player) {
|
|
|
|
if (complete.player) {
|
|
|
|
scores[complete.player].score++
|
|
|
|
scores[complete.player].score++
|
|
|
|
|
|
|
|
|
|
|
|