program 1024 game Linked List
Modify your solution (or mine) to your solution to Program #5, this time storing every move using a linked list. Entering 'u' indicates the user would like to undo the previously made move. Use the linked list to allow undoing moves, back to the beginning of the game. Attempting undo at the beginning of the game should give an error message and allow the user to retry making a move.
For example, running your program should look like:
Name
Your program should free up any memory that is deleted from the list.