kuhrusty / MorbadScorepad

DUNGEON DEGENERATES support app.
GNU General Public License v3.0
7 stars 0 forks source link

DeckState: trim undo log #10

Closed kuhrusty closed 5 years ago

kuhrusty commented 5 years ago

Rather than keeping an unlimited history of the danger card draws, we probably want to trim the undo log to the last 2 shuffles or something like that.

kuhrusty commented 5 years ago

This is done, although it's done by telling the danger deck to trim its log every time we shuffle, rather than saying "limit your log to n shuffles" and then letting the deck worry about it, which I already regret. Not sure what I was thinking.

kuhrusty commented 5 years ago

Yeah, I couldn't stand it, so I changed it. Now you set the log limit on the DeckState, and it worries about trimming the log when you shuffle.