Function perft

  • Parameters

    • pos: Position
    • depth: number
    • log: boolean = false

    Returns number