05/18/2026 Catchup - linksync project work and TicTacToe evaluations on different coding LLMs with OpenCode.

This commit is contained in:
DavidSaylor
2026-05-18 19:55:48 -05:00
parent aed69afdfd
commit c5d3912070
544 changed files with 140434 additions and 364 deletions

View File

@@ -0,0 +1,21 @@
/* Modern Tic Tac Toe JavaScript file
* Copyright (c) David, 2024. */
// Get DOM elementsconst gridContainer = document.getElementById('board');
const squareButtons = Array.from(document.querySelectorAll('#board button'));
class Game {
constructor() {
this.board = [
[], [], []
];
this.gameOver = false;
this.currentPlayer = '';
this.movesCount = 0;
// Initialize game board squares
squareButtons.forEach(
(btn, idx) => (
btn.addEventListener('click', () => { if(this.moveIsValid(idx))
this.updateBoard({cell:btn,squareIndex:idx,mark:'X'});
else alert("Game is over");}
))))}}