Skip to content

Commit

Permalink
pcplayer: fix bug in GetPCMove method
Browse files Browse the repository at this point in the history
  • Loading branch information
gucio321 committed Mar 31, 2022
1 parent bd7e276 commit 5301c39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/core/pcplayer/pc_player_engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ func GetPCMove(gameBoard *board.Board, pcLetter letter.Letter) (i int) {
}
}

if options != nil {
if len(options) > 0 {
return getRandomNumber(options)
}

Expand Down

0 comments on commit 5301c39

Please sign in to comment.