Commit Graph

21 Commits

Author SHA1 Message Date
Tissevert bf4daa5a77 Implement games memory for Hannah 2020-01-31 09:15:19 +01:00
Tissevert 22c15bd30e Simplify saving / loading hannah's state 2020-01-26 22:21:05 +01:00
Tissevert 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
Tissevert 9270ce17aa Implement re-synchronization after connection loss 2020-01-25 11:11:57 +01:00
Tissevert ff9194d416 Follow «Coordinates» change in protocol 2020-01-18 09:36:01 +01:00
Tissevert 76c27fa4b4 Follow protocol renaming 2020-01-10 08:32:56 +01:00
Tissevert f77871b538 Hannah now tolerates LogIn and LogOut messages (but doesn't care about them) 2019-12-24 00:37:50 +01:00
Tissevert 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
Tissevert 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
Tissevert 064606ae83 Add the recipient in the answer messages (following latest changes in the protocol) 2019-11-03 21:53:35 +01:00
Tissevert c2b01445c8 Catch up with breaking changes due to the stateless transition 2019-10-19 10:51:06 +02:00
Tissevert 9fb130c944 Fix bug in end of game handling 2019-08-27 21:57:26 +02:00
Tissevert 48f6ab65ab Update PlayerID type to follow recent change in main lib 2019-08-27 21:56:33 +02:00
Tissevert 0c7e4c8b50 Make Hannah pay attention who it plays against and watch when they log out 2019-08-22 17:53:45 +02:00
Tissevert 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
Tissevert 62223eb84f Draft a very stupid AI and simplify Automaton states a bit 2019-08-20 18:19:54 +02:00
Tissevert 00d88dcc83 Implement basic Automaton 2019-08-19 18:48:11 +02:00
Tissevert 84251b648b Start implementing a proper automaton with the new APILanguage 2019-08-18 22:11:57 +02:00
Tissevert 49b385a892 Upgrade base requirement to 4.12 2018-11-19 23:27:17 +01:00
Tissevert cbf031be41 Add necessary modules to cabal config 2018-11-19 23:26:49 +01:00
Tissevert 3e27c33472 Draft version only creating a connection and sending its name before hanging up 2018-11-08 18:36:25 +01:00