Skip to content

Commit

Permalink
Cleanup comments in Coup
Browse files Browse the repository at this point in the history
  • Loading branch information
Zomis committed Mar 6, 2021
1 parent 3f4eb78 commit aaed582
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions games-core/src/main/kotlin/net/zomis/games/impl/CoupRules.kt
Expand Up @@ -302,7 +302,6 @@ object CoupRuleBased {
}
}
rule("coup action") {
// xxxx
// actions: List options -> Requires -> Perform
// Options: There should only be one total of options and choose.
// Options: Loop through all rules, check for action statement, 1) check preconditions 2) check options/choose
Expand All @@ -311,23 +310,6 @@ object CoupRuleBased {
// Actions - Requires: Loop through all rules, check for action statement, check apply-for-action / requires
// Actions - Perform: Loop through all rules, check for action statement, check apply-for-action / run perform
// TODO: rules.action(perform).applyTo { parameter.action == CoupActionType.COUP }.cost(7) { parameter.player.coins }
/*
rule("coup") {
rule("costs money") {
val cost = 7
action(perform).filtered({ parameter.action == CoupActionType.COUP }) {
requires { action.parameter.player.coins >= cost }
perform { action.parameter.player.coins -= cost }
}
}
rule("must perform coup") {
appliesWhen { game.currentPlayer.coins >= 10 }
action(perform) {
requires { parameter.action == CoupActionType.COUP }
}
}
}
*/
action(perform) {
appliesForActions { action.parameter.action == CoupActionType.COUP }
rule("requires money") {
Expand Down

0 comments on commit aaed582

Please sign in to comment.