fireplace icon indicating copy to clipboard operation
fireplace copied to clipboard

Allow deterministic control of random outcomes

Open smallnamespace opened this issue 9 years ago • 3 comments

There are a few use cases for this:

  1. Semi-deterministic tests, where we iterate through every possible random outcome (as opposed to manually patching up the outcome, or randomly generating many outcomes, where we might miss a case)
  2. AI use cases, where the AI would like to explore random nodes in a particular direction (e.g. what's the best card I can draw? What's the best juggle/worst juggle that I can get?)
  3. Syncing with HSReplays -- import of HSReplay into the engine and evolve it through time

smallnamespace avatar Feb 20 '16 18:02 smallnamespace

It may also be nice to have a probability assigned to each result node.

synap5e avatar Feb 20 '16 21:02 synap5e

Yeah that's a nice to have, might be tricky to do it in general though. I'm open to suggestions on how to go about implementing this, otherwise I'll take a good look through the code and draft something.

smallnamespace avatar Feb 21 '16 01:02 smallnamespace

Per discussion with jleclanche, would be good to think of this in the context of generalizing random outcomes into the DSL

smallnamespace avatar Feb 25 '16 04:02 smallnamespace