File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
plugin/src/main/kotlin/sc/plugin2024 Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -261,10 +261,11 @@ data class GameState @JvmOverloads constructor(
261
261
* Does not honor special conditions of the starting tile.
262
262
* @return how far movement is possible, how many movement points it costs and why not further
263
263
* */
264
- fun checkAdvanceLimit (start : CubeCoordinates , direction : CubeDirection , maxMovement : Int ): AdvanceInfo {
264
+ fun checkAdvanceLimit (start : CubeCoordinates , direction : CubeDirection , maxMovementPoints : Int ): AdvanceInfo {
265
265
var currentPosition = start
266
266
var totalCost = 0
267
267
var hasCurrent = false
268
+ val maxMovement = maxMovementPoints.coerceAtMost(6 )
268
269
val result = ArrayList <Int >(maxMovement)
269
270
270
271
fun result (condition : AdvanceProblem ) =
You can’t perform that action at this time.
0 commit comments