diff options
| author | Maksymilian Jopek <maks@jopek.eu> | 2022-03-27 19:43:58 +0200 |
|---|---|---|
| committer | Maksymilian Jopek <maks@jopek.eu> | 2022-03-27 19:43:58 +0200 |
| commit | ab750d05a2eb580067e51c26032ff24358834d0b (patch) | |
| tree | 6cf9a416f0b90dcb6bc0496d0862ee0b9e263591 /src/main.ts | |
| parent | f8c006414aec99c90558587dbe08cf1705ed44f7 (diff) | |
| download | boules-ab750d05a2eb580067e51c26032ff24358834d0b.tar.gz boules-ab750d05a2eb580067e51c26032ff24358834d0b.tar.zst boules-ab750d05a2eb580067e51c26032ff24358834d0b.zip | |
Start of next turn
Diffstat (limited to 'src/main.ts')
| -rw-r--r-- | src/main.ts | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/main.ts b/src/main.ts index 9c9636a..23355bf 100644 --- a/src/main.ts +++ b/src/main.ts @@ -3,8 +3,12 @@ import './style.css' import Ball from "./Ball" import { genGameTable, render } from "./ui"; -const balls = Ball.generateStartBalls(); -Ball.generateStartBalls(); +declare global { + interface Window { balls: Ball[]; } +} +const balls = Ball.generateNewBalls(); +window.balls = balls; +// Ball.generateStartBalls(); // const map = <(Ball | null)[][]>[]; genGameTable(); |
