Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Board

TODO specification Mutable and concurrency safe.

Hierarchy

  • Board

Index

Constructors

Methods

Constructors

Methods

  • parseFromFile(filename: string): Promise<Board>
  • Make a new board by parsing a file.

    PS4 instructions: the specification of this method may not be changed.

    throws

    Error if the file cannot be read or is not a valid game board

    Parameters

    • filename: string

      path to game board file

    Returns Promise<Board>

    (a promise for) a new board with the size and cards from the file

Generated using TypeDoc