Skip to content

Commit

Permalink
feat(controller/client): use new example player move evaluation
Browse files Browse the repository at this point in the history
  • Loading branch information
xeruf committed Mar 12, 2024
1 parent 7457103 commit 76cd8d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/sc/gui/controller/ClientController.kt
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class ClientController: Controller() {
while(possibleMoves.hasNext() && count < 64) {
val next = possibleMoves.next()
val newState = (state as TwoPlayerGameState<IMove>).performMove(next)
val points = @Suppress("UNCHECKED_CAST") newState.getPointsForTeam(state.currentTeam).sum()
val points = @Suppress("UNCHECKED_CAST") newState.getPointsForTeamExtended(state.currentTeam).sum()
if(points >= bestValue) {
if(points > bestValue)
best.clear()
Expand Down

0 comments on commit 76cd8d9

Please sign in to comment.