Skip to content

Commit

Permalink
rosaline: add command to switch sides
Browse files Browse the repository at this point in the history
  • Loading branch information
e0ff committed Nov 26, 2023
1 parent 402c2a5 commit 8826f9c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/rosaline/interfaces/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,16 @@ func (i cliInterface) Loop() {

i.searcher.Reset()
position = p
} else if cmd == "switch" {
position.MakeNullMove()
} else if cmd == "help" {
fmt.Println("display displays the current position")
fmt.Println("fen displays the current positions fen")
fmt.Println("setfen [fen | startpos] changes the position to the given fen")
fmt.Println("perft [depth] runs move generation test code to the specified depth")
fmt.Println("moves displays the legal moves for the current position")
fmt.Println("move [uci] make the given uci formatted move")
fmt.Println("switch passes turn to the opponent")
fmt.Println("undo undos the last move")
fmt.Println("go searches for the best move in the current position")
fmt.Println("evaluate evaluates the current position")
Expand Down

0 comments on commit 8826f9c

Please sign in to comment.