Skip to content

Commit 5f67283

Browse files
committed
Rename nimAction
1 parent bfdf8bf commit 5f67283

File tree

1 file changed

+2
-2
lines changed
  • games-core/src/main/kotlin/net/zomis/games/dsl

1 file changed

+2
-2
lines changed

games-core/src/main/kotlin/net/zomis/games/dsl/NimGame.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ object NimGame {
2121
data class NimConfig(val piles: List<Int>, val lastWins: Boolean, val maxPerTurn: Int)
2222
data class NimMove(val pileIndex: Int, val amount: Int)
2323

24-
val action = createActionType("Take", NimMove::class)
24+
val nimAction = createActionType("Take", NimMove::class)
2525
val game = createGame<Nim>("Nim") {
2626
setup(NimConfig::class) {
2727
players(2..2)
@@ -33,7 +33,7 @@ object NimGame {
3333
}
3434
}
3535
logic {
36-
action(action) {
36+
action(nimAction) {
3737
options {
3838
optionFrom({ it.piles.indices }) {pileIndex ->
3939
optionFrom({ 0..min(it.maxPerTurn, it.piles[pileIndex]) }) {amount ->

0 commit comments

Comments
 (0)