MCPcopy Create free account

hub / github.com/GregoryCannon/StackRabbit / functions

Functions215 in github.com/GregoryCannon/StackRabbit

↓ 1 callersFunctiongetAdjustmentInputCost
(possibility: Possibility)
src/server/precompute.ts:410
↓ 1 callersFunctiongetAiMode
src/cpp_modules/src/eval_context.cpp:32
↓ 1 callersFunctiongetAverageHeightFactor
src/cpp_modules/src/eval.cpp:92
↓ 1 callersFunctiongetBuiltOutLeftFactor
src/cpp_modules/src/eval.cpp:97
↓ 1 callersFunctiongetCol9Factor
src/cpp_modules/src/eval.cpp:134
↓ 1 callersFunctiongetCoveredWellFactor
src/cpp_modules/src/eval.cpp:145
↓ 1 callersFunctiongetGuaranteedBurnsFactor
src/cpp_modules/src/eval.cpp:160
↓ 1 callersFunctiongetHoleWeightFactor
src/cpp_modules/src/eval.cpp:175
↓ 1 callersFunctiongetInaccessibleLeftFactor
* Assesses whether the surface allows for 5 taps. * @returns the multiple of the accessible left penalty that should be applied. That is, 0 if 5 taps
src/cpp_modules/src/eval.cpp:212
↓ 1 callersFunctiongetInaccessibleRightFactor
src/cpp_modules/src/eval.cpp:243
↓ 1 callersFunctiongetLeftSurfaceFactor
src/cpp_modules/src/eval.cpp:121
↓ 1 callersFunctiongetLevelAfterLineClears
src/cpp_modules/src/utils.hpp:157
↓ 1 callersFunctiongetLevelAfterLineClears
(level, lines, numLinesCleared)
src/server/utils.ts:183
↓ 1 callersFunctiongetLikelyBurnsFactor
src/cpp_modules/src/eval.cpp:190
↓ 1 callersFunctiongetLockPlacementsFast
* Optimized method to convert legal placements to lock placements. * (!!) Doesn't allow for tucks. */
src/cpp_modules/src/move_search.cpp:195
↓ 1 callersFunctiongetLockValueLookupEncoded
Calculates the valuation of every possible terminal position for a given piece on a given board, and stores it in a map. * @param keepTopN - How many
src/cpp_modules/src/high_level_search.cpp:389
↓ 1 callersFunctiongetNewBoardAndLinesCleared
* Calculates the resulting board after placing a piece in a specified spot. * @returns the number of lines cleared */
src/cpp_modules/src/move_result.cpp:267
↓ 1 callersFunctiongetNewSurfaceAndNumNewHoles
src/cpp_modules/src/move_result.cpp:109
↓ 1 callersFunctiongetPieceChar
src/cpp_modules/data/tetrominoes.cpp:6
↓ 1 callersFunctiongetPieceProbability
(current: PieceId, next: PieceId)
src/server/precompute.ts:516
↓ 1 callersFunctiongetRandomPiece
src/cpp_modules/src/piece_rng.cpp:13
↓ 1 callersFunctiongetRangeXTable
src/cpp_modules/src/piece_ranges.cpp:3
↓ 1 callersFunctiongetRenderedMiniBoard
(boardStr)
src/browser_test_site/index.js:14
↓ 1 callersFunctiongetSearchStateFromUrlArguments
(urlArgs)
src/server/request_parser.ts:217
↓ 1 callersFunctiongetUnableToBurnFactor
Calculate how hard it will be to fill in the middle of the board enough to burn. */
src/cpp_modules/src/eval.cpp:267
↓ 1 callersMethodhandleCppLookupTopMoves
(searchState: SearchState, urlArgs: UrlArguments)
src/server/request_handler.ts:190
↓ 1 callersMethodhandleCppLookupTopMovesHybrid
( searchState: SearchState, urlArgs: UrlArguments )
src/server/request_handler.ts:195
↓ 1 callersMethodhandleCppRateMove
(searchState: SearchState, urlArgs: UrlArguments)
src/server/request_handler.ts:206
↓ 1 callersMethodhandlePrecomputeRequestSync
* Runs a standard precompute request (as for live-games), but returns the result synchronously. * @param searchState * @param urlArgs * @retu
src/server/request_handler.ts:240
↓ 1 callersFunctionhasBeenVisited
A custom visited check that avoids creating an expensive set object with all the states
src/server/dfs.ts:139
↓ 1 callersFunctionhasHoleBlockingTetrisReady
src/cpp_modules/src/eval_context.cpp:19
↓ 1 callersFunctionhasInputs
(inputSequence: string)
src/server/precompute.ts:394
↓ 1 callersFunctionhasNewlySpawnedPiece
(newBoard)
src/console_client/naive_agent.py:90
↓ 1 callersFunctionidentifyPiece
(nextBoxArray)
src/console_client/video_capture.py:39
↓ 1 callersFunctioninit
()
src/wasm/sample-main.js:54
↓ 1 callersFunctioninitExpressServer
(requestHandler)
src/server/app.ts:8
↓ 1 callersFunctioninit_string
* Initializes a copy of our custom string implementation */
src/fceux/rabbithttp.c:42
↓ 1 callersMethodinitialize
(callback)
src/server/precompute.ts:61
↓ 1 callersFunctioninstallDependencies
()
install.js:36
↓ 1 callersFunctionisTetrisReady
src/cpp_modules/src/eval.cpp:322
↓ 1 callersFunctionmain
()
src/console_client/raspberry_pi.py:54
↓ 1 callersFunctiononFrameCallback
(newBoard, newNextPieceId)
src/console_client/naive_agent.py:113
↓ 1 callersFunctionparseBoard
(frame)
src/console_client/video_capture.py:89
↓ 1 callersFunctionparseNextBox
(frame)
src/console_client/video_capture.py:67
↓ 1 callersFunctionparseUrlArguments
( reqString: string, requestType: string )
src/server/request_parser.ts:8
↓ 1 callersFunctionperformComputationFinesseCpp
* Compute adjustment for the given piece
src/server/worker_thread.ts:16
↓ 1 callersFunctionpickLockPlacement
Selects the highest value lock placement using the fast eval function. */
src/cpp_modules/src/playout.cpp:10
↓ 1 callersFunctionplaySequence
* Plays out a starting state N moves into the future. * @returns the total value of the playout (intermediate rewards + eval of the final board) */
src/cpp_modules/src/playout.cpp:32
↓ 1 callersFunctionprintBoardBits
src/cpp_modules/src/utils.hpp:101
↓ 1 callersFunctionprintSurface
src/cpp_modules/src/utils.hpp:86
↓ 1 callersFunctionprocessFrame
(frame)
src/console_client/video_capture.py:113
↓ 1 callersFunctionpushDown
(inputString: string)
src/server/utils.ts:104
↓ 1 callersFunctionrateMove
src/cpp_modules/src/high_level_search.cpp:213
↓ 1 callersFunctionrateSurface
Gets the value of a surface. */
src/cpp_modules/src/eval.cpp:47
↓ 1 callersFunctionrateSurfaceForPerfectPlay
Rate the "badness" of a surface, where more points is worse. */
src/cpp_modules/src/eval.cpp:339
↓ 1 callersFunctionregisterPossibility
()
src/server/move_search.ts:193
↓ 1 callersFunctionrequestPrecompute
(stateAfter)
src/console_client/naive_agent.py:221
↓ 1 callersFunctionrequestStartingPlacement
(currentPiece, nextPiece)
src/console_client/naive_agent.py:241
↓ 1 callersFunctionrotateTowardsGoal
* Determines which direction the piece should rotate to get to the goal rotation. * Favors right rotations when ambiguous. */
src/cpp_modules/src/move_search.cpp:45
↓ 1 callersMethodrouteRequest
(req)
src/server/request_handler.ts:39
↓ 1 callersFunctionrunFunction
(funcName)
src/wasm/sample-main.js:40
↓ 1 callersFunctionsearchForTucksOrSpins
( potentialTuckSpinStates: Array<DFSState>, simParams: SimParams, lockHeightLookup: Map<string, number>
src/server/dfs.ts:43
↓ 1 callersFunctionsimulateGame
src/cpp_modules/src/game_simulation.cpp:21
↓ 1 callersFunctionsimulateGame
(showBoardUi, usePrecompute)
src/browser_test_site/index.js:67
↓ 1 callersFunctionsleep
(ms)
src/browser_test_site/index.js:61
↓ 1 callersFunctionstart
()
src/console_client/naive_agent.py:284
↓ 1 callersFunctionstartCapture
(onFrameCallback)
src/console_client/video_capture.py:144
↓ 1 callersFunctionstring_format
src/cpp_modules/src/main.cpp:24
↓ 1 callersFunctiontapRangeTest
()
src/server/move_search_test.ts:70
↓ 1 callersFunctiontestAdjustmentSearch
src/cpp_modules/src/move_search.cpp:499
↓ 1 callersFunctiontestSingleCase
(testCase)
src/server/move_search_test.ts:342
↓ 1 callersFunctiontryInput
* 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 tha
src/server/dfs.ts:154
↓ 1 callersFunctionworkerInit
()
src/wasm/wasmRabbit-worker.js:91
FunctionEMSCRIPTEN_BINDINGS
src/cpp_modules/src/wasm.cpp:33
FunctionGetDoubleKillscreenEquivalentInputTimeline
(timeline: string)
src/server/utils.ts:33
FunctionNAN_METHOD
src/cpp_modules/src/module.cpp:7
FunctionNAN_MODULE_INIT
src/cpp_modules/src/module.cpp:77
Method_onMessage
(message: WorkerResponse)
src/server/precompute.ts:189
FunctionadjustHoleCountAndBoardAfterTuck
src/cpp_modules/src/move_result.cpp:306
FunctionboardEquals
(a, b)
src/server/utils.ts:317
FunctionclearFloatingPiece
(board)
src/console_client/naive_agent.py:161
FunctioncloneBoard
(board)
src/server/utils.ts:328
Methodconstructor
()
src/server/precompute.ts:40
Methodconstructor
(precomputeManager)
src/server/request_handler.ts:26
FunctioncountInputsBeforeReactionTime
src/cpp_modules/src/game_simulation.cpp:11
FunctiongenerateTestCases
()
src/server/move_search_test.ts:368
FunctiongetPieceRanges
( board: Board, level: number, pieceId: PieceId, rotationIndex: number, inputFrameTimeline: string )
src/server/move_search.ts:398
Functionhandle_message
(e)
src/wasm/wasmRabbit-worker.js:74
Functionicube
* Much simpler function that shows the minimal implementation of a C function for Lua consumption */
src/fceux/rabbithttp.c:103
FunctionidentifyStartingPiece
(board)
src/console_client/video_capture.py:14
Functionihttpfetch
* Makes an HTTP GET request to the provided URL, and returns the response as a string. */
src/fceux/rabbithttp.c:73
FunctionlastMinuteRotationsTest
()
src/server/move_search_test.ts:222
FunctionlegalMovesTest
()
src/server/move_search_test.ts:10
Functionluaopen_rabbithttp
Register this file's functions with the * luaopen_libraryname() function, where libraryname * is the name of the compiled .so output. In other words
src/fceux/rabbithttp.c:124
Functionmain
entrypoint.cpp:42
FunctionmergeSortedArrays
(arr1, arr2, compareFunc)
src/server/utils.ts:290
FunctionpredictStateAtAdjustmentTime
src/cpp_modules/src/utils.hpp:199
FunctionprintArray
src/cpp_modules/src/utils.hpp:93
FunctionrunGames
entrypoint.cpp:27
FunctionsimulateGames
src/cpp_modules/src/game_simulation.cpp:82
← previousnext →101–200 of 215, ranked by callers