2048.c
2048.c copied to clipboard
Add in-game state to edit text label under the board. And undo option
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.