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 pgn as json

    Input: host id, client id, game pgn Output: boolean competed

    Parameters

    • hostId: string
    • clientID: string
    • hostSide: Side
    • aiDiff: number
    • pgn: string

    Returns boolean

Generated using TypeDoc