Fix for Tic Tac Toe

main
Elbert Alias 3 years ago
parent 3601c6a631
commit 50315ea6f0

@ -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++