aboutsummaryrefslogtreecommitdiff
path: root/src/Config.elm
diff options
context:
space:
mode:
authorJoris Guyonvarch2014-10-08 22:13:41 +0200
committerJoris Guyonvarch2014-10-08 22:27:11 +0200
commitd37a301ed39bac823e0f2223b8d229b417e128c7 (patch)
treee7e1155e8678bfb32908452993234078527d6664 /src/Config.elm
parent4521cdf1bb5725c9d497e5fb0c03943ad03a052f (diff)
downloadcatchvoid-d37a301ed39bac823e0f2223b8d229b417e128c7.tar.gz
catchvoid-d37a301ed39bac823e0f2223b8d229b417e128c7.tar.bz2
catchvoid-d37a301ed39bac823e0f2223b8d229b417e128c7.zip
Adding a power to change the player color that reverse points to catch and points to avoid
Diffstat (limited to 'src/Config.elm')
-rw-r--r--src/Config.elm9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Config.elm b/src/Config.elm
new file mode 100644
index 0000000..60f4cc3
--- /dev/null
+++ b/src/Config.elm
@@ -0,0 +1,9 @@
+module Config where
+
+data Config = White | Black
+
+otherConfig : Config -> Config
+otherConfig config =
+ case config of
+ White -> Black
+ Black -> White