Open madheime opened 9 years ago
I like this a lot. I also see what you did there, however. Since scripts currently track plays/discards by position and not by card identity, the most intelligent thing to do would be to (finally) implement replays (if not also rewinding), from which the last piece of this feature will fall out pretty easily. Cleverly done.
I'll commit a version that lets you save off the deck, at least. Then I'll decide whether there's a way to implement replays that doesn't involve adding position-in-hand as a member of Event, which would be fine but feels like the slacker's way out. On the other hand, if you have all copies of a card in your hand, and play one copy, I don't know that there's a way for the replay to figure out which one you played in the current code.
I predict that you'll like this one. Doing a random game by hand will be a pain. It would be cool if (after... before would be easier, but after would be cooler) any game that had an interesting log, we could say "give me a script of this" That we could then go in and either shorten or use to test the development of the bots by freeing up turns where we thought they made the wrong decision.