Re:Rediscovering rules for ancient board games
by dmurray on Saturday August 24, 2019 @10:43AM
(#20787381)
> ”The stack keeps track of the order that spells and/or abilities were added to it. Each time an object is put on the stack, it’s put on top of all objects already there.” isn’t hard to infer if you know what a stack is, but if you don’t?
From that I think you could learn quite a lot about what a stack is. A stack is something you can put objects into, and it preserves order to some extent. If you pair that with a rule or card spelling out the other half of the API (what happens when you retrieve objects from the stack?) you've got it pretty much figured out.
From that I think you could learn quite a lot about what a stack is. A stack is something you can put objects into, and it preserves order to some extent. If you pair that with a rule or card spelling out the other half of the API (what happens when you retrieve objects from the stack?) you've got it pretty much figured out.