MCPcopy Create free account
hub / github.com/GregoryCannon/StackRabbit / tryInput

Function tryInput

src/server/dfs.ts:154–245  ·  view source on GitHub ↗

* Tries out an input from a given state, and if it's valid, adds it to the active list. * If the piece locks in after the input, it will also add that finished state to the final list.

(
  inputChar: string,
  newX: number,
  newRotationIndex: number,
  parentSimState: DFSState,
  simParams: SimParams,
  alreadyFound: Set<string>,
  novelPossibilities: Array<Possibility>
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

Calls 3

pieceCollisionFunction · 0.90
debugLogFunction · 0.70

Tested by

no test coverage detected