Hierarchy

  • SaveManager

Constructors

Methods

  • endGame

    removes game when finished redundant? maybe

    Input: host id, client id Output: boolean isSuccessful

    Parameters

    • hostId: string
    • clientId: string

    Returns undefined | never[]

  • Find Game

    takes a single id and searches for the save file

    Input: id, game pgn Ouput: string file name

    Parameters

    • id: string

    Returns string

  • saveGame

    Finds or creates a save file Save name is host id + client id Saves include the game start time and save fen as json Robots are saved as a map of indices to robots Input: host id, client id, game fen, robots Output: boolean competed

    Parameters

    • hostId: string
    • clientID: string
    • hostSide: Side
    • aiDiff: number
    • pgn: string
    • fen: string
    • robots: Map<string, string>

    Returns boolean

Generated using TypeDoc