MCPcopy Create free account

hub / github.com/dangarfield/sokoban-solver / functions

Functions102 in github.com/dangarfield/sokoban-solver

↓ 31 callersMethodis_wall
(&self, pos: &Position)
festival-rust/src/board.rs:132
↓ 29 callersFunctionadd_pos
(pos: &Position, dir: (i8, i8))
festival-rust/src/util.rs:15
↓ 23 callersMethodset
(&mut self, pos: &Position, dist: u32)
festival-rust/src/distance.rs:34
↓ 16 callersMethodis_goal
(&self, pos: &Position)
festival-rust/src/board.rs:140
↓ 12 callersFunctionexecuteManualMove
(direction)
main.js:450
↓ 9 callersFunctionloadLevel
(levelName)
main.js:705
↓ 6 callersFunctionaddToExternrefTable0
(obj)
festival-rust/pkg/festival_rust.js:161
↓ 6 callersMethodget
(&self, pos: &Position)
festival-rust/src/distance.rs:22
↓ 5 callersFunctionaddToExternrefTable0
(obj)
festival-rust/pkg-node/festival_rust.js:155
↓ 5 callersFunctiongetStringFromWasm0
(ptr, len)
festival-rust/pkg/festival_rust.js:28
↓ 5 callersFunctiongetStringFromWasm0
(ptr, len)
festival-rust/pkg-node/festival_rust.js:22
↓ 5 callersFunctionisLikeNone
(x)
festival-rust/pkg/festival_rust.js:176
↓ 4 callersFunctiongetDataViewMemory0
()
festival-rust/pkg/festival_rust.js:154
↓ 4 callersFunctiongetDataViewMemory0
()
festival-rust/pkg-node/festival_rust.js:148
↓ 4 callersFunctiongetUint8ArrayMemory0
()
festival-rust/pkg/festival_rust.js:5
↓ 4 callersFunctiongetUint8ArrayMemory0
()
festival-rust/pkg-node/festival_rust.js:7
↓ 4 callersFunctionisLikeNone
(x)
festival-rust/pkg-node/festival_rust.js:170
↓ 4 callersFunctionsetupInitialGrid
()
main.js:76
↓ 3 callersFunctiondir_to_char
(dir_idx: usize, is_push: bool)
festival-rust/src/util.rs:19
↓ 3 callersFunctiondisplayState
(state)
main.js:530
↓ 3 callersFunctionget_path
Get the path from one position to another (returns direction indices)
festival-rust/src/distance.rs:122
↓ 3 callersFunctiongridToText
()
main.js:509
↓ 3 callersFunctionhandleError
(f, args)
festival-rust/pkg/festival_rust.js:167
↓ 3 callersFunctionloadLevelList
(gridSetPath = 'grids/Base-Levels.txt')
main.js:635
↓ 3 callersFunctionpassStringToWasm0
(arg, malloc, realloc)
festival-rust/pkg/festival_rust.js:113
↓ 3 callersFunctionpassStringToWasm0
(arg, malloc, realloc)
festival-rust/pkg-node/festival_rust.js:107
↓ 2 callersFunction__wbg_finalize_init
(instance, module)
festival-rust/pkg/festival_rust.js:372
↓ 2 callersFunction__wbg_get_imports
()
festival-rust/pkg/festival_rust.js:253
↓ 2 callersFunctioncalculateNextStateFromDirection
(direction, currentState)
main.js:462
↓ 2 callersFunctionconvertToDataType
(sign)
main.js:689
↓ 2 callersFunctionenhanced_heuristic
Enhanced heuristic considering box mobility
festival-rust/src/heuristic.rs:47
↓ 2 callersMethodf_cost
(&self)
festival-rust/src/search.rs:36
↓ 2 callersFunctiongetGridState
()
main.js:408
↓ 2 callersMethodget_cell
(&self, pos: &Position)
festival-rust/src/board.rs:125
↓ 2 callersFunctionpopulateSolutionStates
()
main.js:499
↓ 2 callersFunctionsave
()
main.js:264
↓ 2 callersMethodsolve
(&mut self, level: &str, time_limit_ms: u32, progress_callback: Option<js_sys::Function>)
festival-rust/src/lib.rs:45
↓ 1 callersMethod__destroy_into_raw
()
festival-rust/pkg/festival_rust.js:186
↓ 1 callersMethod__destroy_into_raw
()
festival-rust/pkg-node/festival_rust.js:180
↓ 1 callersFunction__wbg_load
(module, imports)
festival-rust/pkg/festival_rust.js:220
↓ 1 callersMethodapply_move
Apply a move to get new state
festival-rust/src/search.rs:137
↓ 1 callersFunctionbindClicks
()
main.js:113
↓ 1 callersFunctioncalculate
()
main.js:544
↓ 1 callersMethodcmp
(&self, other: &Self)
festival-rust/src/search.rs:58
↓ 1 callersMethodcompute_simple_deadlocks
Compute simple deadlocks (corners only for now - edge detection is complex)
festival-rust/src/deadlock.rs:21
↓ 1 callersFunctiondebugString
(val)
festival-rust/pkg/festival_rust.js:33
↓ 1 callersFunctiondebugString
(val)
festival-rust/pkg-node/festival_rust.js:27
↓ 1 callersFunctiondecodeText
(ptr, len)
festival-rust/pkg/festival_rust.js:18
↓ 1 callersFunctiondecodeText
(ptr, len)
festival-rust/pkg-node/festival_rust.js:18
↓ 1 callersFunctionexportToUrl
()
main.js:280
↓ 1 callersMethodfind_possible_moves
Find all possible moves for current position (Festival approach)
festival-rust/src/search.rs:82
↓ 1 callersFunctiongetPlayerPos
(state)
main.js:420
↓ 1 callersFunctiongetTargetPos
(x, y, direction)
main.js:429
↓ 1 callersFunctionhandleError
(f, args)
festival-rust/pkg-node/festival_rust.js:161
↓ 1 callersMethodhas_box
(&self, pos: &Position)
festival-rust/src/board.rs:136
↓ 1 callersMethodhash_key
(&self)
festival-rust/src/search.rs:40
↓ 1 callersFunctionhungarian_lower_bound
Hungarian algorithm for minimum cost bipartite matching
festival-rust/src/heuristic.rs:6
↓ 1 callersFunctionimportFromUrl
()
main.js:316
↓ 1 callersFunctioninit
()
solver-festival-rust-worker.js:7
↓ 1 callersFunctioninit
()
main.js:744
↓ 1 callersFunctioninitWorker
()
solver-festival-rust.js:5
↓ 1 callersFunctionisEnd
(state)
main.js:440
↓ 1 callersMethodis_corner_deadlock
(&self, board: &Board, pos: &Position)
festival-rust/src/deadlock.rs:41
↓ 1 callersMethodis_simple_deadlock
(&self, pos: &Position)
festival-rust/src/deadlock.rs:172
↓ 1 callersMethodis_valid_pos
(&self, pos: &Position)
festival-rust/src/board.rs:119
↓ 1 callersMethodmanhattan_distance
(&self, other: &Position)
festival-rust/src/board.rs:18
↓ 1 callersFunctionmin_matching_heuristic
Minimum matching heuristic (greedy approximation)
festival-rust/src/heuristic.rs:42
↓ 1 callersFunctionprogressCallback
(progress)
main.js:580
↓ 1 callersMethodreconstruct_solution
Reconstruct solution from moves with stored player paths
festival-rust/src/search.rs:164
↓ 1 callersFunctionresetSolverUI
()
main.js:15
↓ 1 callersFunctionsleep
(ms)
main.js:540
↓ 1 callersMethodsolve_internal
(&mut self, level: &str, time_limit_ms: u64, progress_callback: Option<js_sys::Function>)
festival-rust/src/lib.rs:50
Function__wbg_init
(module_or_path)
festival-rust/pkg/festival_rust.js:406
Methodbox_index
(&self, pos: &Position)
festival-rust/src/board.rs:148
Functioncalculate_distances
Calculate distances from a position to all reachable cells
festival-rust/src/distance.rs:48
Functioncan_reach
Check if player can reach a position
festival-rust/src/distance.rs:80
Methodconstructor
()
festival-rust/pkg/festival_rust.js:197
Methodconstructor
()
festival-rust/pkg-node/festival_rust.js:191
Methodexpand_solution_old
Old expand function - keeping for reference
festival-rust/src/search.rs:181
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
festival-rust/src/board.rs:154
Methodfree
()
festival-rust/pkg/festival_rust.js:193
Methodfree
()
festival-rust/pkg-node/festival_rust.js:187
Methodfrom_string
(s: &str)
festival-rust/src/board.rs:41
FunctioninitSolver
()
main.js:731
FunctioninitSync
(module)
festival-rust/pkg/festival_rust.js:383
Methodis_edge_deadlock
(&self, board: &Board, pos: &Position)
festival-rust/src/deadlock.rs:63
Methodis_freeze_deadlock
Check for freeze deadlock (2x2 box configuration)
festival-rust/src/deadlock.rs:185
Methodis_solved
(&self)
festival-rust/src/board.rs:144
Methodlookup
(&self, _board: &Board, _boxes: &[Position])
festival-rust/src/pattern_db.rs:14
Methodnew
(board: &Board)
festival-rust/src/deadlock.rs:12
Methodnew
(x: i8, y: i8)
festival-rust/src/board.rs:14
Methodnew
()
festival-rust/src/pattern_db.rs:10
Methodnew
()
festival-rust/src/lib.rs:37
Methodnew
(width: usize, height: usize)
festival-rust/src/distance.rs:14
Methodnew
()
festival-rust/src/search.rs:75
Methodpartial_cmp
(&self, other: &Self)
festival-rust/src/search.rs:65
FunctionprogressCallback
(progress)
solver-festival-rust-worker.js:28
Methodsolve
* @param {string} level * @param {number} time_limit_ms * @param {Function | null} [progress_callback] * @returns {any}
festival-rust/pkg/festival_rust.js:209
Methodsolve
(&mut self, board: Board, time_limit_ms: u64, progress_callback: Option<js_sys::Function>)
festival-rust/src/search.rs:234
Methodsolve
* @param {string} level * @param {number} time_limit_ms * @returns {any}
festival-rust/pkg-node/festival_rust.js:202
next →1–100 of 102, ranked by callers