import { MancalaGame } from "mancala.js"; import { GameStore } from "./GameStore"; export class GameStoreImpl implements GameStore { gameStore: Map = new Map() get(id: string): MancalaGame | undefined { return this.gameStore.get(id); } set(id: string, game: MancalaGame): void { this.gameStore.set(id, game); } remove(id: string): void { this.gameStore.delete(id); } }