Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Equim-chan/Mortal
/ functions
Functions
536 in github.com/Equim-chan/Mortal
⨍
Functions
536
◇
Types & classes
85
↓ 93 callers
Method
as_usize
(self)
libriichi/src/tile.rs:62
↓ 93 callers
Method
deaka
(self)
libriichi/src/tile.rs:68
↓ 78 callers
Method
fill
(&mut self, row: usize, value: T)
libriichi/src/array.rs:29
↓ 61 callers
Method
test_update
(&mut self, event: &Event)
libriichi/src/state/test.rs:10
↓ 57 callers
Function
hand
Spaces are allowed.
libriichi/src/hand.rs:55
↓ 57 callers
Method
len
(&self)
libriichi/src/dataset/grp.rs:61
↓ 42 callers
Method
assign
(&mut self, row: usize, col: usize, value: T)
libriichi/src/array.rs:45
↓ 39 callers
Method
get
(&self, row: usize, col: usize)
libriichi/src/array.rs:16
↓ 37 callers
Method
as_u8
(self)
libriichi/src/tile.rs:57
↓ 25 callers
Method
search_yakus
(&self)
libriichi/src/algo/agari.rs:212
↓ 16 callers
Method
is_aka
(self)
libriichi/src/tile.rs:90
↓ 16 callers
Method
is_empty
(&self)
libriichi/src/dataset/grp.rs:66
↓ 15 callers
Method
next
(self)
libriichi/src/tile.rs:117
↓ 14 callers
Method
update
(&mut self, event: &Event)
libriichi/src/state/update.rs:24
↓ 13 callers
Method
akaize
(self)
libriichi/src/tile.rs:79
↓ 13 callers
Function
vec_add_assign
(lhs: &mut [L], rhs: &[R])
libriichi/src/vec_ops.rs:5
↓ 12 callers
Method
rel
(&self, actor: u8)
libriichi/src/state/update.rs:688
↓ 12 callers
Method
set_can_chi_from_tile
(&mut self, tile: Tile)
libriichi/src/state/update.rs:826
↓ 11 callers
Function
calc_all
(tiles: &[u8; 34], len_div3: u8)
libriichi/src/algo/shanten.rs:138
↓ 10 callers
Method
add_log_no_meta
(&mut self, ev: Event)
libriichi/src/arena/board.rs:195
↓ 10 callers
Method
broadcast
(&mut self, ev: &Event)
libriichi/src/arena/board.rs:200
↓ 10 callers
Function
m
(a)
log-viewer/files/js/jquery-1.7.2.min.js:2
↓ 10 callers
Function
s
(a,b)
log-viewer/files/js/jquery-1.7.2.min.js:3
↓ 9 callers
Method
get_rank
(&self, mut scores_rel: [i32; 4])
libriichi/src/state/update.rs:966
↓ 9 callers
Function
new_py_agent
(engine: PyObject, player_ids: &[u8])
libriichi/src/agent/py_agent.rs:24
↓ 9 callers
Method
witness_tile
Updates `tiles_seen`, `doras_seen` and `akas_seen`. Returns an error if we have already witnessed 4 such tiles.
libriichi/src/state/update.rs:695
↓ 8 callers
Method
discard
(&mut self, shanten: i8)
libriichi/src/algo/sp/calc.rs:563
↓ 8 callers
Method
move_tile
Updates `tehai`, `akas_in_hand` and `doras_owned`, but does not update `tiles_seen` or `doras_seen`. Returns an error when trying to discard or consu
libriichi/src/state/update.rs:733
↓ 8 callers
Method
update_doras_owned
(&mut self, actor_rel: usize, tile: Tile)
libriichi/src/state/update.rs:955
↓ 7 callers
Method
cmp
(&self, other: &Self, by: CandidateColumn)
libriichi/src/algo/sp/candidate.rs:74
↓ 7 callers
Method
encode
(self, ctx: &mut ObsEncoderContext<'_>)
libriichi/src/state/obs_repr.rs:59
↓ 7 callers
Method
encode_obs
(mut self)
libriichi/src/state/obs_repr.rs:126
↓ 7 callers
Function
n
(a,b,c)
log-viewer/files/js/jquery-1.7.2.min.js:2
↓ 7 callers
Method
prev
(self)
libriichi/src/tile.rs:136
↓ 7 callers
Method
shanten
(&self)
libriichi/src/state/getter.rs:86
↓ 7 callers
Method
tsumo_total
(self, is_oya: bool)
libriichi/src/algo/point.rs:106
↓ 7 callers
Method
update_shanten
Can be called at either 3n+1 or 3n+2. For 3n+2, the return value of `shanten::calc_all` may be `-1`. We don't allow `-1` and it will be written as `0
libriichi/src/state/update.rs:875
↓ 7 callers
Method
update_waits_and_furiten
Caller must assure current tehai is 3n+1, and `self.shanten` must be up to date and correct.
libriichi/src/state/update.rs:916
↓ 6 callers
Method
__init__
(self, *, version=1)
mortal/model.py:198
↓ 6 callers
Function
add_submodule
( py: Python<'_>, prefix: &str, super_mod: &Bound<'_, PyModule>, m: &Bound<'_, PyModule>, )
libriichi/src/py_helper.rs:5
↓ 6 callers
Method
all_kotsu_and_kantsu
(&self)
libriichi/src/algo/agari.rs:345
↓ 6 callers
Method
all_shuntsu
(&self)
libriichi/src/algo/agari.rs:354
↓ 6 callers
Method
calc
Arguments: - can_discard: whether the tehai is 3n+2 or not. - tsumos_left: must be within [1, 17]. - cur_shanten: must be >= 0. The return value will
libriichi/src/algo/sp/calc.rs:84
↓ 6 callers
Method
can_act
(&self)
libriichi/src/state/action.rs:76
↓ 6 callers
Function
ct
(a,b)
log-viewer/files/js/jquery-1.7.2.min.js:2
↓ 6 callers
Method
ensure_tiles_in_hand
(&self, tiles: &[Tile])
libriichi/src/state/action.rs:213
↓ 6 callers
Method
fill_rows
(&mut self, row: usize, n_rows: usize, value: T)
libriichi/src/array.rs:37
↓ 6 callers
Method
last_cans
(&self)
libriichi/src/state/getter.rs:110
↓ 6 callers
Method
point
(self, is_oya: bool)
libriichi/src/algo/agari.rs:195
↓ 6 callers
Function
register_module
( py: Python<'_>, prefix: &str, super_mod: &Bound<'_, PyModule>, )
libriichi/src/stat.rs:795
↓ 6 callers
Method
undo_discard
(&mut self, tile: Tile)
libriichi/src/algo/sp/state.rs:67
↓ 5 callers
Function
a
(b,c)
log-viewer/files/js/jquery-1.7.2.min.js:2
↓ 5 callers
Method
add_log
(&mut self, ev: EventExt)
libriichi/src/arena/board.rs:190
↓ 5 callers
Method
agari_points
Err is returned if the hand cannot agari, or cannot retrieve the winning tile. This function should be called immediately, otherwise the state may ch
libriichi/src/state/agent_helper.rs:377
↓ 5 callers
Method
draw
(&mut self, shanten: i8)
libriichi/src/algo/sp/calc.rs:314
↓ 5 callers
Function
g
()
log-viewer/files/js/jquery-1.7.2.min.js:2
↓ 5 callers
Method
get_required_tiles
(&self, tehai_len_div3: u8)
libriichi/src/algo/sp/state.rs:177
↓ 5 callers
Function
get_tile14_and_key
(tiles: &[u8; 34])
libriichi/src/algo/agari.rs:767
↓ 5 callers
Method
is_yaokyuu
(self)
libriichi/src/tile.rs:102
↓ 5 callers
Method
last_kawa_tile
(&self)
libriichi/src/state/getter.rs:166
↓ 5 callers
Method
rbf_intervals
(mut self, v: usize)
libriichi/src/state/obs_repr.rs:54
↓ 5 callers
Method
rescale
(mut self, v: bool)
libriichi/src/state/obs_repr.rs:50
↓ 5 callers
Method
run
( &self, agents: &mut [Box<dyn BatchAgent>], indexes: &[[Index; 4]], seeds: &[
libriichi/src/arena/game.rs:230
↓ 5 callers
Function
send_msg
(conn: socket.socket, msg, packed=False)
mortal/common.py:53
↓ 5 callers
Method
step
(&mut self, reactions: &[EventExt; 4])
libriichi/src/arena/board.rs:513
↓ 5 callers
Method
undo_deal
(&mut self, tile: Tile)
libriichi/src/algo/sp/state.rs:88
↓ 4 callers
Method
abortive_ryukyoku
(&mut self)
libriichi/src/arena/board.rs:504
↓ 4 callers
Method
add_new_dora
(&mut self)
libriichi/src/arena/board.rs:353
↓ 4 callers
Method
ankan_candidates
(&self)
libriichi/src/state/getter.rs:172
↓ 4 callers
Method
assign_rows
(&mut self, row: usize, col: usize, n_rows: usize, value: T)
libriichi/src/array.rs:53
↓ 4 callers
Function
bl
(a)
log-viewer/files/js/jquery-1.7.2.min.js:2
↓ 4 callers
Method
discard_candidates_aka
(&self)
libriichi/src/state/agent_helper.rs:35
↓ 4 callers
Function
e
(a,b)
log-viewer/files/js/jquery-1.7.2.min.js:2
↓ 4 callers
Function
ensure_init
()
libriichi/src/algo/agari.rs:763
↓ 4 callers
Function
h
(a)
log-viewer/files/js/jquery-1.7.2.min.js:2
↓ 4 callers
Method
kakan_candidates
(&self)
libriichi/src/state/getter.rs:177
↓ 4 callers
Method
last_self_tsumo
(&self)
libriichi/src/state/getter.rs:161
↓ 4 callers
Method
rule_based_agari
(&self)
libriichi/src/state/agent_helper.rs:262
↓ 4 callers
Method
send_msg
(self, msg, packed=False)
mortal/server.py:120
↓ 4 callers
Function
submit_param
(mortal, dqn, is_idle=False)
mortal/common.py:42
↓ 4 callers
Function
sum_tiles
(tiles: &[u8])
libriichi/src/algo/shanten.rs:82
↓ 4 callers
Method
test_update_json
(&mut self, mjai_json: &str)
libriichi/src/state/test.rs:16
↓ 4 callers
Method
train
(self, mode=True)
mortal/model.py:169
↓ 3 callers
Method
add_dora_indicator
Updates `dora_indicators`, witness the dora indicator itself and recounts doras (`doras_seen` and `doras_owned`) based on all the seen tiles.
libriichi/src/state/update.rs:780
↓ 3 callers
Method
agari
(&self, additional_hans: u8, doras: u8)
libriichi/src/algo/agari.rs:225
↓ 3 callers
Method
akas_in_hand
(&self)
libriichi/src/state/getter.rs:48
↓ 3 callers
Method
at_furiten
(&self)
libriichi/src/state/getter.rs:153
↓ 3 callers
Method
build
(self)
libriichi/src/array.rs:60
↓ 3 callers
Method
calc
(is_oya: bool, fu: u8, han: u8)
libriichi/src/algo/point.rs:13
↓ 3 callers
Method
calibrate
(mut self, real_max_tsumo: usize)
libriichi/src/algo/sp/candidate.rs:163
↓ 3 callers
Method
can_agari
(&self)
libriichi/src/state/action.rs:62
↓ 3 callers
Method
can_chi
(&self)
libriichi/src/state/action.rs:48
↓ 3 callers
Method
check_riichi_accepted
(&mut self)
libriichi/src/arena/board.rs:342
↓ 3 callers
Method
chitoi_pairs
The caller must assure `self.div.has_chitoi` holds.
libriichi/src/algo/agari.rs:341
↓ 3 callers
Method
deal
(&mut self, tile: Tile)
libriichi/src/algo/sp/state.rs:77
↓ 3 callers
Method
discard_candidates_with_unconditional_tenpai
(&self)
libriichi/src/state/agent_helper.rs:88
↓ 3 callers
Method
dump_json_log
(&self)
libriichi/src/arena/result.rs:32
↓ 3 callers
Method
end
(&self)
libriichi/src/arena/board.rs:172
↓ 3 callers
Method
eq
(&self, other: &Self)
libriichi/src/algo/agari.rs:160
↓ 3 callers
Method
forward_packed
(self, packed_inputs)
mortal/model.py:261
next →
1–100 of 536, ranked by callers