Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/adam-mcdaniel/chess-engine
/ functions
Functions
442 in github.com/adam-mcdaniel/chess-engine
⨍
Functions
442
◇
Types & classes
46
↓ 48 callers
Function
getObject
(idx)
examples/chess-web/wasm/chess-worst/chess-worst.js:9
↓ 48 callers
Function
getObject
(idx)
examples/chess-web/wasm/chess-random/chess-random.js:9
↓ 48 callers
Function
getObject
(idx)
examples/chess-web/wasm/chess-best/chess-best.js:9
↓ 48 callers
Function
getObject
(idx)
examples/chess-web/wasm/chess-horde/chess-horde.js:9
↓ 39 callers
Function
r
(e,...n)
docs/book/highlight.js:6
↓ 38 callers
Function
addHeapObject
(obj)
examples/chess-web/wasm/chess-worst/chess-worst.js:43
↓ 38 callers
Function
addHeapObject
(obj)
examples/chess-web/wasm/chess-random/chess-random.js:43
↓ 38 callers
Function
addHeapObject
(obj)
examples/chess-web/wasm/chess-best/chess-best.js:43
↓ 38 callers
Function
addHeapObject
(obj)
examples/chess-web/wasm/chess-horde/chess-horde.js:43
↓ 29 callers
Method
get_piece
(&self, pos: Position)
src/board.rs:469
↓ 27 callers
Method
add
(e)
docs/book/highlight.js:6
↓ 23 callers
Method
exec
(e)
docs/book/highlight.js:6
↓ 23 callers
Method
get_color
(&self)
src/piece.rs:292
↓ 22 callers
Function
n
(n,t)
docs/book/highlight.js:6
↓ 21 callers
Method
piece
(mut self, piece: Piece)
src/board.rs:53
↓ 20 callers
Method
next_left
(&self)
src/position.rs:343
↓ 20 callers
Method
next_right
(&self)
src/position.rs:354
↓ 16 callers
Method
get_row
(&self)
src/position.rs:184
↓ 16 callers
Method
has_no_piece
(&self, pos: Position)
src/board.rs:511
↓ 15 callers
Function
top
(stack)
examples/chess-web/wasm/chess-worst/snippets/dodrio-f9c304c889d98e4f/js/change-list-interpreter.js:3
↓ 15 callers
Function
top
(stack)
examples/chess-web/wasm/chess-random/snippets/dodrio-f9c304c889d98e4f/js/change-list-interpreter.js:3
↓ 15 callers
Function
top
(stack)
examples/chess-web/wasm/chess-best/snippets/dodrio-f9c304c889d98e4f/js/change-list-interpreter.js:3
↓ 15 callers
Function
top
(stack)
examples/chess-web/wasm/chess-horde/snippets/dodrio-f9c304c889d98e4f/js/change-list-interpreter.js:3
↓ 13 callers
Method
play_move
Play a move and confirm it is legal.
src/board.rs:832
↓ 12 callers
Function
a
(e)
docs/book/highlight.js:6
↓ 12 callers
Method
from
(move_str: &str)
src/game.rs:20
↓ 12 callers
Method
get_pos
(&self)
src/piece.rs:305
↓ 12 callers
Function
handleError
(f, args)
examples/chess-web/wasm/chess-worst/chess-worst.js:238
↓ 12 callers
Function
handleError
(f, args)
examples/chess-web/wasm/chess-random/chess-random.js:238
↓ 12 callers
Function
handleError
(f, args)
examples/chess-web/wasm/chess-best/chess-best.js:238
↓ 12 callers
Function
handleError
(f, args)
examples/chess-web/wasm/chess-horde/chess-horde.js:238
↓ 12 callers
Function
t
(e)
docs/book/highlight.js:6
↓ 11 callers
Method
get_current_player_color
(&self)
src/board.rs:226
↓ 11 callers
Method
is_orthogonal_to
(&self, other: Self)
src/position.rs:223
↓ 11 callers
Method
next_above
(&self)
src/position.rs:305
↓ 11 callers
Method
next_below
(&self)
src/position.rs:294
↓ 10 callers
Function
e
(n)
docs/book/highlight.js:6
↓ 10 callers
Method
getCachedString
(id)
examples/chess-web/wasm/chess-worst/snippets/dodrio-f9c304c889d98e4f/js/change-list-interpreter.js:347
↓ 10 callers
Method
getCachedString
(id)
examples/chess-web/wasm/chess-random/snippets/dodrio-f9c304c889d98e4f/js/change-list-interpreter.js:347
↓ 10 callers
Method
getCachedString
(id)
examples/chess-web/wasm/chess-best/snippets/dodrio-f9c304c889d98e4f/js/change-list-interpreter.js:347
↓ 10 callers
Method
getCachedString
(id)
examples/chess-web/wasm/chess-horde/snippets/dodrio-f9c304c889d98e4f/js/change-list-interpreter.js:347
↓ 10 callers
Method
get_col
(&self)
src/position.rs:189
↓ 10 callers
Method
has_ally_piece
(&self, pos: Position, ally_color: Color)
src/board.rs:478
↓ 10 callers
Method
is_king
(&self)
src/piece.rs:318
↓ 10 callers
Method
pawn_up
(&self, ally_color: Color)
src/position.rs:317
↓ 9 callers
Method
is_diagonal_to
(&self, other: Self)
src/position.rs:209
↓ 9 callers
Method
is_in_check
(&self, color: Color)
src/board.rs:557
↓ 9 callers
Method
is_threatened
Is a square threatened by an enemy piece?
src/board.rs:529
↓ 9 callers
Function
t
(e,t)
docs/book/mark.min.js:7
↓ 8 callers
Method
has_piece
(&self, pos: Position)
src/board.rs:504
↓ 8 callers
Method
is_on_board
(&self)
src/position.rs:171
↓ 7 callers
Method
apply_move
(&self, m: Move)
src/board.rs:781
↓ 7 callers
Method
get_king_pos
If there is a king on the board, return the position that it sits on.
src/board.rs:516
↓ 7 callers
Function
n
()
docs/book/clipboard.min.js:7
↓ 7 callers
Function
o
(t,e)
docs/book/clipboard.min.js:7
↓ 6 callers
Method
addText
(e)
docs/book/highlight.js:6
↓ 6 callers
Method
change_turn
(mut self)
src/board.rs:776
↓ 6 callers
Function
d
(e)
docs/book/highlight.js:6
↓ 6 callers
Function
getStringFromWasm0
(ptr, len)
examples/chess-web/wasm/chess-worst/chess-worst.js:38
↓ 6 callers
Function
getStringFromWasm0
(ptr, len)
examples/chess-web/wasm/chess-random/chess-random.js:38
↓ 6 callers
Function
getStringFromWasm0
(ptr, len)
examples/chess-web/wasm/chess-best/chess-best.js:38
↓ 6 callers
Function
getStringFromWasm0
(ptr, len)
examples/chess-web/wasm/chess-horde/chess-horde.js:38
↓ 6 callers
Method
get_best_next_move
Get the best move for the current player with `depth` number of moves of lookahead. This method returns 1. The best move 2. The number of boards eval
src/lib.rs:256
↓ 6 callers
Method
get_legal_moves
(&self, board: &Board)
src/piece.rs:413
↓ 6 callers
Method
get_worst_next_move
Get the best move for the current player with `depth` number of moves of lookahead. This method returns 1. The best move 2. The number of boards eval
src/lib.rs:292
↓ 6 callers
Function
i
(e,n)
docs/book/highlight.js:6
↓ 6 callers
Method
is_off_board
(&self)
src/position.rs:177
↓ 6 callers
Function
m
(e,n,t={})
docs/book/highlight.js:6
↓ 6 callers
Method
move_piece
(&self, from: Position, to: Position, promotion: Option<Piece>)
src/board.rs:565
↓ 6 callers
Method
row
(mut self, piece: Piece)
src/board.rs:25
↓ 6 callers
Function
showSearch
(yes)
docs/book/searcher.js:367
↓ 5 callers
Function
T
(e)
docs/book/highlight.js:6
↓ 5 callers
Method
disable_all
(&mut self)
src/board.rs:150
↓ 5 callers
Function
e
(e,t)
docs/book/mark.min.js:7
↓ 5 callers
Method
get_square
(&mut self, pos: Position)
src/board.rs:457
↓ 5 callers
Method
get_turn_color
convenience accessor for board.get_turn_color
src/game.rs:82
↓ 5 callers
Method
is_empty
(&self)
src/square.rs:21
↓ 5 callers
Method
is_pawn
(&self)
src/piece.rs:348
↓ 4 callers
Function
S
(e,n)
docs/book/highlight.js:6
↓ 4 callers
Method
apply_eval_move
(&self, m: Move)
src/board.rs:231
↓ 4 callers
Method
can_kingside_castle
(&self)
src/board.rs:134
↓ 4 callers
Method
can_queenside_castle
(&self)
src/board.rs:138
↓ 4 callers
Method
diagonals_to
Get the list of positions from this position to another position, moving diagonally. This does _not_ include the `from` position, and includes the `t
src/position.rs:383
↓ 4 callers
Method
disable_kingside
(&mut self)
src/board.rs:142
↓ 4 callers
Method
disable_queenside
(&mut self)
src/board.rs:146
↓ 4 callers
Function
getUint8Memory0
()
examples/chess-web/wasm/chess-worst/chess-worst.js:31
↓ 4 callers
Function
getUint8Memory0
()
examples/chess-web/wasm/chess-random/chess-random.js:31
↓ 4 callers
Function
getUint8Memory0
()
examples/chess-web/wasm/chess-best/chess-best.js:31
↓ 4 callers
Function
getUint8Memory0
()
examples/chess-web/wasm/chess-horde/chess-horde.js:31
↓ 4 callers
Method
get_bg_color
(&self, is_selected: bool)
examples/chess-web/src/lib.rs:87
↓ 4 callers
Method
get_bg_color
(&self, is_selected: bool)
examples/chess-gui/src/lib.rs:97
↓ 4 callers
Method
get_en_passant
Get the position of the En-Passant square
src/board.rs:398
↓ 4 callers
Function
hasFocus
()
docs/book/searcher.js:57
↓ 4 callers
Method
has_enemy_piece
(&self, pos: Position, ally_color: Color)
src/board.rs:493
↓ 4 callers
Function
hideSidebar
()
docs/book/book.js:445
↓ 4 callers
Function
hideThemes
()
docs/book/book.js:291
↓ 4 callers
Method
move_to
(&self, new_pos: Position)
src/piece.rs:398
↓ 4 callers
Method
openNode
(e)
docs/book/highlight.js:6
↓ 4 callers
Method
orthogonals_to
Get the list of positions from this position to another position, moving orthogonally. This does _not_ include the `from` position, and includes the
src/position.rs:416
↓ 4 callers
Function
r
(t)
docs/book/clipboard.min.js:7
next →
1–100 of 442, ranked by callers