Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
vcb88 authored Nov 22, 2024
1 parent 0ba0e54 commit 4e1bed6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
export const S = 10;
import { S } from '@/constants';


export { S };
export const P = { N: 0, A: 1, B: 2 } as const;
export const O = { PL: 'place', MV: 'move' } as const;
export const A = { PL: 'PLACE', MV: 'MOVE', RP: 'REPLACE', ET: 'END' } as const;

export type Board = number[][];
export type Position = { x: number; y: number };
export type Move = Position & { s: number };

export type GameState = {
board: Board;
p: number;
Expand Down

0 comments on commit 4e1bed6

Please sign in to comment.