nomyx-library-1.0.0: Library of rules for Nomyx

Safe HaskellSafe
LanguageHaskell98

Nomyx.Library.Victory

Description

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. You can copy either the name of the function (i.e. "helloWorld") or its body (i.e. "outputAll_ "hello, world!""), but NOT both. Don't hesitate to get inspiration from there and create your own rules!

Synopsis

Documentation

victoryXRules :: Int -> Rule Source #

set the victory for players having more than X accepted rules

noGroupVictory :: Rule Source #

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.

iWin :: Rule Source #

Rule that state that you win. Good luck on having this accepted by other players ;)