refactor: make sides/side optional

This commit is contained in:
2026-04-02 13:58:52 +08:00
parent e78caf481d
commit e3bc63b088
3 changed files with 8 additions and 6 deletions
-2
View File
@@ -63,8 +63,6 @@ export function placePiece(host: IGameContext<TicTacToeState>, row: number, col:
const board = getBoardRegion(host);
const piece: Part = {
id: `piece-${moveCount}`,
sides: 1,
side: 0,
region: board,
position: [row, col],
};