Skip to content

Commit

Permalink
rosaline: improve format of moves command
Browse files Browse the repository at this point in the history
  • Loading branch information
e0ff committed Nov 26, 2023
1 parent 8826f9c commit 7bc475e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/rosaline/interfaces/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@ func (i cliInterface) Loop() {
} else if cmd == "moves" {
moves := position.GenerateMoves(chess.LegalMoveGeneration)
for _, move := range moves {
fmt.Println(move)
fmt.Printf("%s ", move)
}
fmt.Println()
} else if cmd == "move" {
if len(args) < 1 {
fmt.Println("move requires a uci formated move as an argument")
Expand Down

0 comments on commit 7bc475e

Please sign in to comment.