This commit is contained in:
sparshg
2024-09-13 01:47:01 +05:30
commit 0649cf1cdc
27 changed files with 6587 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
export type Phase = 'placement' | 'battle' | 'gameover';
export type CellType = 'empty' | 'ship' | 'hit' | 'miss';
export type Board = Array<Array<CellType>>;
export class State {
phase: Phase = $state('placement');
}