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

Function findTucks

src/cpp_modules/src/move_search.cpp:300–344  ·  view source on GitHub ↗

Searches for tucks by 1) Finding all of the overhang cells from the board array, then 2) looping over the overhang cells and trying all the ways that the piece could possibly fill that cell. Each piece has a precomputed list of the possible ways it can fill a tuck cell (defined in tetrominoes.h), which drastically reduces the number of placements to try each time. */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

moveSearchInternalFunction · 0.85

Calls 3

maybePrintFunction · 0.85
collisionFunction · 0.85
findTuckInputFunction · 0.85

Tested by

no test coverage detected