Skip to content

checkGame beta ​

Function of @v12-engine/client

ts
export declare function checkGame(game: {
    rules: Rules;
    view: GameView;
}): GameProblem[];

What of a game's view does not fit its rules: a look for a unit type the rules do not have, an icon for an ability that is not there, a resource nobody has. Ids are text to the compiler unless they are named (defineIds), so a slip in one would otherwise show as a unit drawn as a box, or not at all. Nothing for a game whose rules cannot be read: making a world of it says what is wrong with those