Commit graph

20 commits

Author SHA1 Message Date
22c15bd30e Simplify saving / loading hannah's state 2020-01-26 22:21:05 +01:00
b95a7c958d Stop imposing only one game per user, it was silly and finally harder to do well than to simply keep games by ID and allow several games in parallel for one user 2020-01-25 11:54:27 +01:00
9270ce17aa Implement re-synchronization after connection loss 2020-01-25 11:11:57 +01:00
ff9194d416 Follow «Coordinates» change in protocol 2020-01-18 09:36:01 +01:00
76c27fa4b4 Follow protocol renaming 2020-01-10 08:32:56 +01:00
f77871b538 Hannah now tolerates LogIn and LogOut messages (but doesn't care about them) 2019-12-24 00:37:50 +01:00
a9ba5cc47c Adapt the automaton to the latest protocol changes in APILanguage; clean unused code (imports, declarations, various warnings) 2019-11-20 18:33:01 +01:00
4529d19301 Add a session module to save and restore the playerID sent by the server (and make hannah persistent accross her reboots) 2019-11-20 18:30:59 +01:00
064606ae83 Add the recipient in the answer messages (following latest changes in the protocol) 2019-11-03 21:53:35 +01:00
c2b01445c8 Catch up with breaking changes due to the stateless transition 2019-10-19 10:51:06 +02:00
9fb130c944 Fix bug in end of game handling 2019-08-27 21:57:26 +02:00
48f6ab65ab Update PlayerID type to follow recent change in main lib 2019-08-27 21:56:33 +02:00
0c7e4c8b50 Make Hannah pay attention who it plays against and watch when they log out 2019-08-22 17:53:45 +02:00
70584add93 Implement a naive AI believing cards have an intrinsinc value not depending on the context of the game 2019-08-22 17:51:05 +02:00
62223eb84f Draft a very stupid AI and simplify Automaton states a bit 2019-08-20 18:19:54 +02:00
00d88dcc83 Implement basic Automaton 2019-08-19 18:48:11 +02:00
84251b648b Start implementing a proper automaton with the new APILanguage 2019-08-18 22:11:57 +02:00
49b385a892 Upgrade base requirement to 4.12 2018-11-19 23:27:17 +01:00
cbf031be41 Add necessary modules to cabal config 2018-11-19 23:26:49 +01:00
3e27c33472 Draft version only creating a connection and sending its name before hanging up 2018-11-08 18:36:25 +01:00