1 viewer
rust 1,961,941 · typescript 233,850 · javascript 141,145 · python 22,871 · 6,801 files · digest 6d882eacc8db · built in 12.5 s · crystals off
crates/cre8-util-grid-games/src/games/tafl.rs
Items
enum Escape struct Tafl const SOLDIER const KING const ATTACKERS const DEFENDERS static PIECES const SIDES const LINEAGE static BRANDUBH static TABLUT impl Tafl impl Rules for Tafl
Functions
By call-graph weight (PageRank; 1.0 is the average function). 23 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| Tafl::cornersrc/games/tafl.rs:100 | method | 6 | 4 | 3 | 2 | 1.3 | |
| Tafl::thronesrc/games/tafl.rs:95 | method | 4 | 1 | 4 | 0 | 1.2 | |
| cellsrc/games/tafl.rs:249 | fn | 3 | 1 | 4 | 0 | 1.1 | |
| Tafl::kingsrc/games/tafl.rs:131 | method | 3 | 1 | 2 | 2 | 0.8 | |
| Tafl::restrictedsrc/games/tafl.rs:119 | method | 3 | 3 | 1 | 2 | 0.8 | |
| Tafl::slidessrc/games/tafl.rs:144 | method | 17 | 6 | 2 | 2 | 0.8 | |
| Tafl::escape_cellsrc/games/tafl.rs:107 | method | 10 | 5 | 2 | 3 | 0.7 | |
| Tafl::hostilesrc/games/tafl.rs:124 | method | 6 | 4 | 1 | 2 | 0.5 | |
| Tafl::near_thronesrc/games/tafl.rs:135 | method | 7 | 3 | 1 | 4 | 0.5 | |
| Tafl::infosrc/games/tafl.rs:164 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| Tafl::initialsrc/games/tafl.rs:168 | trait impl | 3 | 1 | 0 | 2 | 0.5 | |
| Tafl::movessrc/games/tafl.rs:172 | trait impl | 11 | 3 | 0 | 3 | 0.5 | |
| Tafl::playsrc/games/tafl.rs:184 | trait impl | 40 | 12 | 0 | 8 | 0.5 | |
| Tafl::evaluatesrc/games/tafl.rs:227 | trait impl | 11 | 3 | 0 | 3 | 0.5 | |
| Tafl::scoresrc/games/tafl.rs:239 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| brandubh_sets_out_eight_attackers_four_defenders_and_a_kingsrc/games/tafl.rs:254 | fn | 8 | 1 | 0 | 2 | 0.5 | |
| a_soldier_closed_between_two_enemies_is_takensrc/games/tafl.rs:264 | fn | 5 | 1 | 0 | 3 | 0.5 | |
| moving_between_two_enemies_is_safesrc/games/tafl.rs:271 | fn | 5 | 1 | 0 | 4 | 0.5 | |
| a_corner_closes_a_trapsrc/games/tafl.rs:278 | fn | 5 | 1 | 0 | 3 | 0.5 | |
| the_king_escaping_to_a_corner_winssrc/games/tafl.rs:285 | fn | 14 | 1 | 0 | 2 | 0.5 | |
| soldiers_cannot_stop_on_the_throne_but_may_pass_over_itsrc/games/tafl.rs:301 | fn | 5 | 1 | 0 | 2 | 0.5 | |
| the_king_away_from_the_throne_falls_to_two_attackerssrc/games/tafl.rs:308 | fn | 5 | 1 | 0 | 2 | 0.5 | |
| the_king_beside_the_throne_needs_four_sidessrc/games/tafl.rs:315 | fn | 12 | 1 | 0 | 2 | 0.5 |
Source not readable from this process.