import { GameConfig } from "../types";
import { azulConfig } from "./azul/config";
import { caboConfig } from "./cabo/config";
import { harmonieConfig } from "./harmonie/config";
import { odinCardsConfig } from "./odin_cards/config";
import { skyjoConfig } from "./skyjo/config";

export const games: GameConfig[] = [
  azulConfig,
  caboConfig,
  skyjoConfig,
  harmonieConfig,
  odinCardsConfig,
];

export const getGameConfig = (id: string): GameConfig | undefined => {
  return games.find((g) => g.id === id);
};
