You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Audit fixes: deprecated API cleanup, configurable board size, `RESET` event payload, and improved game status handling.
Configurable board size via GameOptions (new Game({ boardSize: 16 })) — GameOptions exported from public API
getFieldByIndex and setFieldByIndex added to IBoard interface
Payload added to RESET event — GameEventMap[RESET] now uses optional GameEventPayload (no breaking change)
Getter board added to IGame
Fixed
savePlayerMove internally called deprecated isFieldSelected(index + 1) — now uses isFieldSelectedByIndex(index)
Both console.warn calls removed from savePlayerMove — PlayerMoveStatus return value is sufficient
_updateGameStatus failed to clear win/draw state on reset — removed if (isNotRunning) guard; reset() now calls _updateGameStatus() instead of setting status manually
EventEmit declared void return type — now generic EventEmit<T> used by IGame as EventEmit<this> for correct fluent API typing
Deprecated methods savePlayerSelection, isFieldSelected, getBoard marked @deprecated in IGame
Changed
Board accepts optional size parameter (defaults to 9)