Add losing condition

This commit is contained in:
hkz 2025-07-17 14:47:57 +02:00
commit 842745d3dd

View file

@ -55,7 +55,8 @@ __task int main(void) {
// If we have finished, break out of this loop
if(state.done) break;
add_random_tile();
// Unable to add a tile. We lost!!!
if(!add_random_tile()) break;
draw_tiles();
}