Safe Haskell | None |
---|
This file gives a list of example rules that the players can submit. You can copy-paste them in the field Code of the web GUI. Don't hesitate to get inspiration from there and create your own rules!
- nothing :: RuleFunc
- helloWorld :: RuleFunc
- accounts :: String
- createBankAccount :: RuleFunc
- winXEcuPerDay :: Int -> RuleFunc
- winXEcuOnRuleAccepted :: Int -> RuleFunc
- moneyTransfer :: RuleFunc
- delRule :: RuleNumber -> RuleFunc
- makeKing :: PlayerNumber -> RuleFunc
- king :: V PlayerNumber
- monarchy :: RuleFunc
- revolution :: PlayerNumber -> RuleFunc
- victoryXRules :: Int -> RuleFunc
- displayTime :: RuleFunc
Documentation
A rule that says hello to all players
createBankAccount :: RuleFuncSource
Create a bank account for each players
winXEcuPerDay :: Int -> RuleFuncSource
winXEcuOnRuleAccepted :: Int -> RuleFuncSource
a player wins X Ecu if a rule proposed is accepted
moneyTransfer :: RuleFuncSource
a player can transfer money to another player
delRule :: RuleNumber -> RuleFuncSource
delete a rule
makeKing :: PlayerNumber -> RuleFuncSource
player pn is the king
revolution :: PlayerNumber -> RuleFuncSource
Revolution! Hail to the king! This rule suppresses the democracy (usually rules 1 and 2), installs the king and activates monarchy.
victoryXRules :: Int -> RuleFuncSource
set the victory for players having more than X accepted rules
will display the time to all players in 5 seconds