Sobes.tech
Junior — Middle+

Creating an infinite field for tic-tac-toe game

livecode

Task condition

Create a client-side web application (without server-side components) for implementing tic-tac-toe on an unlimited field, where:

  1. A win is registered when a specified number of identical symbols appear consecutively on any line (the value is set by a constant).
  2. The first move must be in the cell with coordinates (0, 0).
  3. The game state should be preserved between page reloads (for example, using localStorage).