Commit Graph

27 Commits

Author SHA1 Message Date
Sasha
091e0e5c55 Fix warnings 2018-03-19 12:28:15 +01:00
Sasha
8f8d5afc28 Compile with all warning to write cleaner code 2018-03-19 12:11:44 +01:00
Sasha
645c2b2e32 Reflect recent administrative changes on the project structure 2018-03-16 19:13:01 +01:00
Sasha
b63c06a317 Restructure project to expose only what's needed to play KoiKoi and hide
all the inner logic in that module
2018-03-16 12:18:33 +01:00
Sasha
d596a220b5 Refactor to put all KoiKoi specifics into a separate submodule 2018-03-10 23:25:44 +01:00
Sasha
7d672589b2 Remove unused imports, minor code simplifications 2018-03-09 18:12:27 +01:00
Sasha
5b78285303 Optimize game states and moves to reduce client-server to-and-fro 2018-03-09 18:12:27 +01:00
Sasha
95b2132a10 Purify types into newtypes to ease writing instances 2018-03-09 18:12:27 +01:00
Sasha
dfccff2915 Package with cabal and implement game automaton 2018-03-09 18:12:22 +01:00
Sasha
034fee8ecd Implement KoiKoi's yakus 2018-02-26 09:07:53 +01:00
Sasha
786dfe4bb8 Expose the size of card packs 2018-02-26 09:03:43 +01:00
Sasha
c2a324b905 Remove unused and broken modules 2018-02-25 23:17:51 +01:00
Sasha
6dbd72cf36 Card as enum and packs with bit sets 2018-02-25 23:15:43 +01:00
Sasha
e7619af640 First attempt at defining the game's states 2018-02-04 23:01:42 +01:00
Sasha
ea96530511 Initial state generation 2018-02-04 22:59:22 +01:00
Sasha
b03e97bb81 Implement card capture (さくら!) 2018-02-03 18:25:11 +01:00
Sasha
c95d611024 Build yaku dictionary a bit more efficiently 2018-02-03 18:23:31 +01:00
Sasha
3f43d960f4 Take KoiKoi-specific objects out of Cards module 2018-02-03 18:08:17 +01:00
Sasha
3ffabc578e Build a yaku dictionary indexed by Cards 2018-02-02 17:44:35 +01:00
Sasha
871f1a383f Shuffle is more a CCard thing than something specific to KoiKoi or other Games 2018-02-02 17:25:10 +01:00
Sasha
51436f4eb2 Shorten shuffle and improve its randomness (previous one declusters poorly) 2018-02-01 18:34:24 +01:00
Sasha
77bc2faa4e Implement shuffle 2018-02-01 18:07:31 +01:00
Sasha
561df60b57 Start implementing yakus 2018-02-01 14:04:21 +01:00
Sasha
4659f308a2 Use enum instead of magic int constants 2018-02-01 12:23:44 +01:00
Sasha
59beaa5cc9 Add cards packs 2018-01-30 18:18:12 +01:00
Sasha
7de6040289 Try a stub of a C-style version of types 2018-01-30 17:34:47 +01:00
Sasha
f7b3f21a83 Start with a Card module and a stub of Game 2018-01-22 22:50:40 +01:00