Skip to content
This repository was archived by the owner on Oct 11, 2025. It is now read-only.

Commit f2bc32e

Browse files
committed
2048: actually allow game to progress
1 parent 1e9cdf1 commit f2bc32e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hs2048/src/Logic.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ stepSlide state =
143143
step :: GameState -> GameState
144144
step state@GameState {..} =
145145
if | gameProgress == Won || gameProgress == GameOver -> state
146-
| gameWon grid -> win state
146+
| gameWon grid, gameProgress /= Continuing -> win state
147147
| gameLost grid -> lose state
148148
| direction /= None -> stepSlide state
149149
| otherwise -> state

0 commit comments

Comments
 (0)