2048.c icon indicating copy to clipboard operation
2048.c copied to clipboard

Add in-game state to edit text label under the board. And undo option

Open yourash opened this issue 3 years ago • 0 comments

Add in-game state to edit text label under the board. I think that all visible part of game including text labels should be rendered inside one function. So I moved quite and restart labels generation inside board draw function.

Also I didn't remove undo feature. I have reviewed previous (#47 ) undo realization and I think that mine is better cos I have added a buffer and solved his bug (if he do a move and board don't change he rewrite his previous board "Snapshot" and can't undo move anymore.) So I think It's good algorithm example for beginners.

yourash avatar Sep 14 '22 15:09 yourash