Any instances of unit movement up to the last turn switch/command performed can be taken back.
This makes it easier for user to see eventual position for their units, and makes game feel more forgiving.
[ ] User can undo any movement up to the last command/turn switch
Solution draft:
Before each unit moves, append their number and current position to list
Clear that list when command happens/turns switch
When undo key is pressed, pop entry off list, move unit with # given to position given
Any instances of unit movement up to the last turn switch/command performed can be taken back.
This makes it easier for user to see eventual position for their units, and makes game feel more forgiving.
Solution draft: Before each unit moves, append their number and current position to list Clear that list when command happens/turns switch When undo key is pressed, pop entry off list, move unit with # given to position given