2048 gameover: only gameover after press any button
Ootzk opened this issue · 2 comments
Ootzk commented
bug abusing: if all blocks filled with non-zero(gameover), but if we don't press any button, we won't see the gameover screen.
this can be fixed by determining gameover logic just before get input
Ootzk commented
make function stuck(), return true when all shifted board(U/D/L/R) is same with original.
This is quite heavy function, so we call this only if state_zeroblocks == 0
Ootzk commented
keep original game-over determination. if no more blanks after shifting, it's game over.