Add a previous message command
Add a "previous message" command, triggered via ctrl+p. I attempted here to get the message area to still take up a row of space post-hiding the message, but failed - should revisit that at some point
This commit is contained in:
parent
adb3b74c0c
commit
18551cdf30
5 changed files with 31 additions and 6 deletions
|
|
@ -15,8 +15,8 @@ test = testGroup "Xanthous.Game"
|
|||
[ testGroup "positionedCharacter"
|
||||
[ testProperty "lens laws" $ isLens positionedCharacter
|
||||
, testCase "updates the position of the character" $ do
|
||||
let initialGame = getInitialState
|
||||
initialPos = initialGame ^. characterPosition
|
||||
initialGame <- getInitialState
|
||||
let initialPos = initialGame ^. characterPosition
|
||||
updatedGame = initialGame & characterPosition %~ move Down
|
||||
updatedPos = updatedGame ^. characterPosition
|
||||
updatedPos @?= move Down initialPos
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue