hback - 0.0.2
This is an update to my hback memory game. You can always grab the latest version from hback-latest.tar.gz.
Based on feedback (kudos James and Joseph) I’ve refactored a lot of the code and added the following feature requests:
- Left and right arrows toggle the buttons on/off. Joseph’s suggestion worked fine, but on my setup it only highlighted the correct button. This seems a little counterintuitive to me since the API calls it an “activation”; my version looks for key events and automatically toggle the buttons.
- Game has a Pause mode which can be toggled on/off with
'p' - Added some comments ;-)
- Added a score logger which I think would be cool for eventually analyzing lots of data (eg. pretty graphs of user improvement over time). This can be disabled with
turnOffLogging=Truein hback.hs, although I don’t see why you would want to: I’m not sending your data over the wire to analyze average IQs of Haskell hackers (yet).
I think the biggest changes are under the hood: I refactored the widgets and state data structures and, as a consequence, a lot of the remaining code. Hopefully the code is a little clearer on what it’s doing and why. Send in all your feedback and ideas! (I do try to get around to implementing them, eventually.)
Per user requests, here are some of the liberties I took with the original paper:
(more…)
