Merge branch 'main' into dev

This commit is contained in:
tresabhi committed 2025-05-15 22:35:42 -05:00
commit 091364d7f3
38 files changed
+1151 -443

No files matched your search

@@ -0,0 +1,20 @@
import type { TankDefinition } from '@blitzkit/core';
import { create } from 'zustand';
import { createContextualStore } from '../core/zustand/createContextualStore';
export interface GuessEphemeral {
tank: TankDefinition;
// true = correct, false = incorrect, null = not guessed
guessState: boolean | null;
totalGuesses: number;
correctGuesses: number;
}
export const GuessEphemeral = createContextualStore((tank: TankDefinition) =>
create<GuessEphemeral>()(() => ({
tank,
guessState: null,
totalGuesses: 0,
correctGuesses: 0,
})),
);