Player Games Github.io — 2

return b.every(Boolean) ? 'draw' : null;

function highlightWinning(p) const lines = [ [0,1,2],[3,4,5],[6,7,8], [0,3,6],[1,4,7],[2,5,8], [0,4,8],[2,4,6] ]; for(const [a,b1,c] of lines) if(board[a] && board[a] === board[b1] && board[a] === board[c]) [a,b1,c].forEach(i=> const el = boardEl.querySelector(`[data-i="$i"]`); if(el) el.style.boxShadow = '0 6px 20px rgba(6,182,212,.18), inset 0 -6px 18px rgba(0,0,0,.5)'; ); break;

To find these games, simply type the following into Google:

Player Games Github.io — 2

return b.every(Boolean) ? 'draw' : null;

function highlightWinning(p) const lines = [ [0,1,2],[3,4,5],[6,7,8], [0,3,6],[1,4,7],[2,5,8], [0,4,8],[2,4,6] ]; for(const [a,b1,c] of lines) if(board[a] && board[a] === board[b1] && board[a] === board[c]) [a,b1,c].forEach(i=> const el = boardEl.querySelector(`[data-i="$i"]`); if(el) el.style.boxShadow = '0 6px 20px rgba(6,182,212,.18), inset 0 -6px 18px rgba(0,0,0,.5)'; ); break;

To find these games, simply type the following into Google: