MCPcopy Create free account

hub / github.com/Equim-chan/Mortal / functions

Functions536 in github.com/Equim-chan/Mortal

↓ 93 callersMethodas_usize
(self)
libriichi/src/tile.rs:62
↓ 93 callersMethoddeaka
(self)
libriichi/src/tile.rs:68
↓ 78 callersMethodfill
(&mut self, row: usize, value: T)
libriichi/src/array.rs:29
↓ 61 callersMethodtest_update
(&mut self, event: &Event)
libriichi/src/state/test.rs:10
↓ 57 callersFunctionhand
Spaces are allowed.
libriichi/src/hand.rs:55
↓ 57 callersMethodlen
(&self)
libriichi/src/dataset/grp.rs:61
↓ 42 callersMethodassign
(&mut self, row: usize, col: usize, value: T)
libriichi/src/array.rs:45
↓ 39 callersMethodget
(&self, row: usize, col: usize)
libriichi/src/array.rs:16
↓ 37 callersMethodas_u8
(self)
libriichi/src/tile.rs:57
↓ 25 callersMethodsearch_yakus
(&self)
libriichi/src/algo/agari.rs:212
↓ 16 callersMethodis_aka
(self)
libriichi/src/tile.rs:90
↓ 16 callersMethodis_empty
(&self)
libriichi/src/dataset/grp.rs:66
↓ 15 callersMethodnext
(self)
libriichi/src/tile.rs:117
↓ 14 callersMethodupdate
(&mut self, event: &Event)
libriichi/src/state/update.rs:24
↓ 13 callersMethodakaize
(self)
libriichi/src/tile.rs:79
↓ 13 callersFunctionvec_add_assign
(lhs: &mut [L], rhs: &[R])
libriichi/src/vec_ops.rs:5
↓ 12 callersMethodrel
(&self, actor: u8)
libriichi/src/state/update.rs:688
↓ 12 callersMethodset_can_chi_from_tile
(&mut self, tile: Tile)
libriichi/src/state/update.rs:826
↓ 11 callersFunctioncalc_all
(tiles: &[u8; 34], len_div3: u8)
libriichi/src/algo/shanten.rs:138
↓ 10 callersMethodadd_log_no_meta
(&mut self, ev: Event)
libriichi/src/arena/board.rs:195
↓ 10 callersMethodbroadcast
(&mut self, ev: &Event)
libriichi/src/arena/board.rs:200
↓ 10 callersFunctionm
(a)
log-viewer/files/js/jquery-1.7.2.min.js:2
↓ 10 callersFunctions
(a,b)
log-viewer/files/js/jquery-1.7.2.min.js:3
↓ 9 callersMethodget_rank
(&self, mut scores_rel: [i32; 4])
libriichi/src/state/update.rs:966
↓ 9 callersFunctionnew_py_agent
(engine: PyObject, player_ids: &[u8])
libriichi/src/agent/py_agent.rs:24
↓ 9 callersMethodwitness_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 callersMethoddiscard
(&mut self, shanten: i8)
libriichi/src/algo/sp/calc.rs:563
↓ 8 callersMethodmove_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 callersMethodupdate_doras_owned
(&mut self, actor_rel: usize, tile: Tile)
libriichi/src/state/update.rs:955
↓ 7 callersMethodcmp
(&self, other: &Self, by: CandidateColumn)
libriichi/src/algo/sp/candidate.rs:74
↓ 7 callersMethodencode
(self, ctx: &mut ObsEncoderContext<'_>)
libriichi/src/state/obs_repr.rs:59
↓ 7 callersMethodencode_obs
(mut self)
libriichi/src/state/obs_repr.rs:126
↓ 7 callersFunctionn
(a,b,c)
log-viewer/files/js/jquery-1.7.2.min.js:2
↓ 7 callersMethodprev
(self)
libriichi/src/tile.rs:136
↓ 7 callersMethodshanten
(&self)
libriichi/src/state/getter.rs:86
↓ 7 callersMethodtsumo_total
(self, is_oya: bool)
libriichi/src/algo/point.rs:106
↓ 7 callersMethodupdate_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 callersMethodupdate_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 callersMethod__init__
(self, *, version=1)
mortal/model.py:198
↓ 6 callersFunctionadd_submodule
( py: Python<'_>, prefix: &str, super_mod: &Bound<'_, PyModule>, m: &Bound<'_, PyModule>, )
libriichi/src/py_helper.rs:5
↓ 6 callersMethodall_kotsu_and_kantsu
(&self)
libriichi/src/algo/agari.rs:345
↓ 6 callersMethodall_shuntsu
(&self)
libriichi/src/algo/agari.rs:354
↓ 6 callersMethodcalc
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 callersMethodcan_act
(&self)
libriichi/src/state/action.rs:76
↓ 6 callersFunctionct
(a,b)
log-viewer/files/js/jquery-1.7.2.min.js:2
↓ 6 callersMethodensure_tiles_in_hand
(&self, tiles: &[Tile])
libriichi/src/state/action.rs:213
↓ 6 callersMethodfill_rows
(&mut self, row: usize, n_rows: usize, value: T)
libriichi/src/array.rs:37
↓ 6 callersMethodlast_cans
(&self)
libriichi/src/state/getter.rs:110
↓ 6 callersMethodpoint
(self, is_oya: bool)
libriichi/src/algo/agari.rs:195
↓ 6 callersFunctionregister_module
( py: Python<'_>, prefix: &str, super_mod: &Bound<'_, PyModule>, )
libriichi/src/stat.rs:795
↓ 6 callersMethodundo_discard
(&mut self, tile: Tile)
libriichi/src/algo/sp/state.rs:67
↓ 5 callersFunctiona
(b,c)
log-viewer/files/js/jquery-1.7.2.min.js:2
↓ 5 callersMethodadd_log
(&mut self, ev: EventExt)
libriichi/src/arena/board.rs:190
↓ 5 callersMethodagari_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 callersMethoddraw
(&mut self, shanten: i8)
libriichi/src/algo/sp/calc.rs:314
↓ 5 callersFunctiong
()
log-viewer/files/js/jquery-1.7.2.min.js:2
↓ 5 callersMethodget_required_tiles
(&self, tehai_len_div3: u8)
libriichi/src/algo/sp/state.rs:177
↓ 5 callersFunctionget_tile14_and_key
(tiles: &[u8; 34])
libriichi/src/algo/agari.rs:767
↓ 5 callersMethodis_yaokyuu
(self)
libriichi/src/tile.rs:102
↓ 5 callersMethodlast_kawa_tile
(&self)
libriichi/src/state/getter.rs:166
↓ 5 callersMethodrbf_intervals
(mut self, v: usize)
libriichi/src/state/obs_repr.rs:54
↓ 5 callersMethodrescale
(mut self, v: bool)
libriichi/src/state/obs_repr.rs:50
↓ 5 callersMethodrun
( &self, agents: &mut [Box<dyn BatchAgent>], indexes: &[[Index; 4]], seeds: &[
libriichi/src/arena/game.rs:230
↓ 5 callersFunctionsend_msg
(conn: socket.socket, msg, packed=False)
mortal/common.py:53
↓ 5 callersMethodstep
(&mut self, reactions: &[EventExt; 4])
libriichi/src/arena/board.rs:513
↓ 5 callersMethodundo_deal
(&mut self, tile: Tile)
libriichi/src/algo/sp/state.rs:88
↓ 4 callersMethodabortive_ryukyoku
(&mut self)
libriichi/src/arena/board.rs:504
↓ 4 callersMethodadd_new_dora
(&mut self)
libriichi/src/arena/board.rs:353
↓ 4 callersMethodankan_candidates
(&self)
libriichi/src/state/getter.rs:172
↓ 4 callersMethodassign_rows
(&mut self, row: usize, col: usize, n_rows: usize, value: T)
libriichi/src/array.rs:53
↓ 4 callersFunctionbl
(a)
log-viewer/files/js/jquery-1.7.2.min.js:2
↓ 4 callersMethoddiscard_candidates_aka
(&self)
libriichi/src/state/agent_helper.rs:35
↓ 4 callersFunctione
(a,b)
log-viewer/files/js/jquery-1.7.2.min.js:2
↓ 4 callersFunctionensure_init
()
libriichi/src/algo/agari.rs:763
↓ 4 callersFunctionh
(a)
log-viewer/files/js/jquery-1.7.2.min.js:2
↓ 4 callersMethodkakan_candidates
(&self)
libriichi/src/state/getter.rs:177
↓ 4 callersMethodlast_self_tsumo
(&self)
libriichi/src/state/getter.rs:161
↓ 4 callersMethodrule_based_agari
(&self)
libriichi/src/state/agent_helper.rs:262
↓ 4 callersMethodsend_msg
(self, msg, packed=False)
mortal/server.py:120
↓ 4 callersFunctionsubmit_param
(mortal, dqn, is_idle=False)
mortal/common.py:42
↓ 4 callersFunctionsum_tiles
(tiles: &[u8])
libriichi/src/algo/shanten.rs:82
↓ 4 callersMethodtest_update_json
(&mut self, mjai_json: &str)
libriichi/src/state/test.rs:16
↓ 4 callersMethodtrain
(self, mode=True)
mortal/model.py:169
↓ 3 callersMethodadd_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 callersMethodagari
(&self, additional_hans: u8, doras: u8)
libriichi/src/algo/agari.rs:225
↓ 3 callersMethodakas_in_hand
(&self)
libriichi/src/state/getter.rs:48
↓ 3 callersMethodat_furiten
(&self)
libriichi/src/state/getter.rs:153
↓ 3 callersMethodbuild
(self)
libriichi/src/array.rs:60
↓ 3 callersMethodcalc
(is_oya: bool, fu: u8, han: u8)
libriichi/src/algo/point.rs:13
↓ 3 callersMethodcalibrate
(mut self, real_max_tsumo: usize)
libriichi/src/algo/sp/candidate.rs:163
↓ 3 callersMethodcan_agari
(&self)
libriichi/src/state/action.rs:62
↓ 3 callersMethodcan_chi
(&self)
libriichi/src/state/action.rs:48
↓ 3 callersMethodcheck_riichi_accepted
(&mut self)
libriichi/src/arena/board.rs:342
↓ 3 callersMethodchitoi_pairs
The caller must assure `self.div.has_chitoi` holds.
libriichi/src/algo/agari.rs:341
↓ 3 callersMethoddeal
(&mut self, tile: Tile)
libriichi/src/algo/sp/state.rs:77
↓ 3 callersMethoddiscard_candidates_with_unconditional_tenpai
(&self)
libriichi/src/state/agent_helper.rs:88
↓ 3 callersMethoddump_json_log
(&self)
libriichi/src/arena/result.rs:32
↓ 3 callersMethodend
(&self)
libriichi/src/arena/board.rs:172
↓ 3 callersMethodeq
(&self, other: &Self)
libriichi/src/algo/agari.rs:160
↓ 3 callersMethodforward_packed
(self, packed_inputs)
mortal/model.py:261
next →1–100 of 536, ranked by callers