GO: Alternate fix for race conditions (#1260)

This commit is contained in:
Snarling
2024-05-11 19:58:59 -04:00
committed by GitHub
parent 1b8205e9d5
commit e23db93c8b
8 changed files with 119 additions and 146 deletions
+11 -5
View File
@@ -51,11 +51,17 @@ export type PointState = {
y: number;
};
export type Play = {
type: GoPlayType;
x: number | null;
y: number | null;
};
export type Play =
| {
type: GoPlayType.move;
x: number;
y: number;
}
| {
type: GoPlayType.gameOver | GoPlayType.pass;
x: null;
y: null;
};
export type Neighbor = {
north: PointState | null;