Skip to content

Commit

Permalink
2048: actually allow game to progress
Browse files Browse the repository at this point in the history
  • Loading branch information
amesgen committed Oct 1, 2024
1 parent 1e9cdf1 commit f2bc32e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hs2048/src/Logic.hs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ stepSlide state =
step :: GameState -> GameState
step state@GameState {..} =
if | gameProgress == Won || gameProgress == GameOver -> state
| gameWon grid -> win state
| gameWon grid, gameProgress /= Continuing -> win state
| gameLost grid -> lose state
| direction /= None -> stepSlide state
| otherwise -> state
Expand Down

0 comments on commit f2bc32e

Please sign in to comment.