tvl-depot/users/grfn/xanthous/test/Xanthous
Griffin Smith 7437a18188 fix(xanthous): Only use alphabetic chars for menu items
Previously, we were using `smallestNotIn` for selecting new characters
for menu items with duplicate chatacters - this uses the 'Bounded'
instance for the type, which for Char meant the first character we would
always select was \NUL - making it look like the menu item had no
character, and making it impossible to actually select the menu item.
This introduces an AlphaChar newtype, which is a wrapper around Char
whose Bounded and Enum instances only use alphabetic characters (a-ZA-Z)
and uses that for menu characters instead.

Change-Id: If34ed9e9ce84f2bcb1cb87432cc6273f40b69f72
Reviewed-on: https://cl.tvl.fyi/c/depot/+/3229
Reviewed-by: grfn <grfn@gws.fyi>
Tested-by: BuildkiteCI
2021-06-23 21:52:08 +00:00
..
Data feat(xanthous): Memoize characterVisiblePositions 2021-06-12 18:57:52 +00:00
Entities feat(xanthous): Describe *where* the item is in the inventory 2021-06-23 21:52:08 +00:00
Game fix(xanthous): Only use alphabetic chars for menu items 2021-06-23 21:52:08 +00:00
Generators/Level refactor(xanthous): Generators -> Generators.Level 2021-06-13 01:24:47 +00:00
Messages refactor(users/glittershark): Rename to grfn 2021-04-12 14:45:51 +00:00
Util refactor(users/glittershark): Rename to grfn 2021-04-12 14:45:51 +00:00
DataSpec.hs feat(xanthous): Add a command to describe an item in the inventory 2021-06-23 21:52:08 +00:00
GameSpec.hs refactor(users/glittershark): Rename to grfn 2021-04-12 14:45:51 +00:00
MessageSpec.hs feat(xanthous): Describe *where* the item is in the inventory 2021-06-23 21:52:08 +00:00
OrphansSpec.hs feat(xanthous): Track the volume and density of item types 2021-06-23 21:52:08 +00:00
RandomSpec.hs feat(xanthous): Add a generator for random english syllables 2021-06-13 01:24:47 +00:00
UtilSpec.hs fix(xanthous): Only use alphabetic chars for menu items 2021-06-23 21:52:08 +00:00