Majority vote
A majority vote is cast for new rules. Vote will pass with more than 50% of "yes", with minimum 2 voters to be valid, finishing after maximum one day.

authored by Kau

onRuleProposed $ callVoteRule (majority `withQuorum` 2) oneDay
Nomyx/Library/Vote.hs
Nomyx/Library/Democracy.hs


Unanimity vote
A unanimity vote: all players need to vote "yes" for a new rule to be accepted.

authored by Kau

onRuleProposed $ callVoteRule unanimity oneDay
Nomyx/Library/Vote.hs
Nomyx/Library/Democracy.hs


make King
Make a player King (change the 1 with the player number that becomes King)

authored by Kau

makeKing 1
Nomyx/Library/Monarchy.hs


Monarchy
Monarchy: only the king decides which rules to accept or reject (change the 1 with the player number)

authored by Kau

monarchy 1
Nomyx/Library/Monarchy.hs


revolution
Revolution! Hail to the king! This rule suppresses the democracy (usually rules 1 or 2), installs the king and activates monarchy. (change the 1 with the player number that you want for King)

authored by Kau

revolution 1
Nomyx/Library/Monarchy.hs


5 rules victory
You win if you have 5 rules accepted.

authored by Kau

victoryXRules 5
Nomyx/Library/Victory.hs


100 ECU wins
You win if you have 1000 ECU on your bank account.

authored by Kau

victoryXEcu 1000
Nomyx/Library/Victory.hs


I win
You win. That's it, if this rule is accepted you win the game. Good luck on having this accepted by other players ;)

authored by Kau

iWin
Nomyx/Library/Victory.hs


No group victory
Only one player can achieve victory: No group victory. Forbidding group victory usually becomes necessary when lowering the voting quorum: a coalition of players could simply force a "victory" rule and win the game.

authored by Kau

noGroupVictory
Nomyx/Library/Victory.hs


Bank accounts
Create a bank account for each players

authored by Kau

createBankAccounts
Nomyx/Library/Bank.hs


Bank services
Activate bank services

authored by Kau

bankServices
Nomyx/Library/Bank.hs


Display accounts
Display all bank accounts

authored by Kau

displayBankAccounts
Nomyx/Library/Bank.hs


Daily salaries
each player wins 10 Ecu each days

authored by Kau

winXEcuPerDay 10
Nomyx/Library/Bank.hs


Bonus rule accepted
a player wins 100 Ecu if a rule proposed is accepted

authored by Kau

winXEcuOnRuleAccepted 100
Nomyx/Library/Bank.hs


Money transfer
a player can transfer money to another player

authored by Kau

moneyTransfer
Nomyx/Library/Bank.hs


Ban player
Kick a player and prevent him from returning.

authored by Kau

banPlayer X
Nomyx/Library/PlayerManagement.hs


Nothing
A rule that does nothing

authored by Kau

return ()
Nomyx/Library/Examples.hs


Hello World
A rule that says hello to all players

authored by Kau

outputAll_ "hello, world!"
Nomyx/Library/Examples.hs


Display current time
Will display the current time (when refreshing the screen)

authored by Kau

displayCurrentTime
Nomyx/Library/Examples.hs


Display activation time
will display the time at which the rule as been activate

authored by Kau

displayActivateTime
Nomyx/Library/Examples.hs


Delete rule
Delete rule number one and then deletes itself

authored by Kau

suppressRule_ 1 >> autoDelete
Nomyx/Library/Examples.hs


Bravo button
display a button and greets you when pressed (for player 1)

authored by Kau

void $ onInputButton_ "Click here:" (const $ outputAll_ "Bravo!") 1
Nomyx/Library/Examples.hs


Hello button
display a button to greet other players

authored by Kau

helloButton
Nomyx/Library/Examples.hs


Enter Haiku
display a field where you can enter a poem

authored by Kau

void $ onInputTextarea_ "Enter a haiku:" outputAll_ 1
Nomyx/Library/Examples.hs