Skip to content

Commit

Permalink
server: Remove redundant and sus condition in AI turn handling
Browse files Browse the repository at this point in the history
  • Loading branch information
armsnyder committed Nov 30, 2020
1 parent e0a19e2 commit f15d7fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/server/handle_gameplay.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func handlePlaceDiskSolo(ctx context.Context, reqCtx events.APIGatewayWebsocketP
return err
}

for game.Player == 2 && common.HasMoves(game.Board, 2) {
for game.Player == 2 {
log.Println("Taking AI turn")

turnStartedAt := time.Now()
Expand Down

0 comments on commit f15d7fd

Please sign in to comment.