How do i check this?

while making the up compression and merging (fully done, (for up only)) i ran into a problem, how would i detect an invalid move, so that the random number doesn’t spawn? This is for 2048

I’m gonna ask the discord.

Keep a copy of the previous state of the game and compare it with the new one to see if anything changed. If it did, then spawn it in randomly. Otherwise, don’t.

1 Like

This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.