issues
search
Zetawar
/
zetawar
Zetawar is a turn based tactical strategy game implemented in 100% ClojureScript.
MIT License
169
stars
14
forks
source link
Implement action undo/redo
#69
Open
djwhitt
opened
7 years ago
djwhitt
commented
7 years ago
Implementation ideas:
Store actions in the DataScript DB but not the serialized game state. This means only actions for the current turn will be undoable.
Implement undo-attack-tx (dual of attack-tx) that, given an action creates, returns a transaction that undoes it.
Stochastic attacks, if enabled, may require special handling since allowing them to be replayed makes it easy to cheat by cherry picking good attacks.
Implementation ideas: