Skip to content
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

cre8-util-grid-games · module games::tafl · src · 327 lines (277 code, 17 comment) · sha 8a8e3b17c92696d6

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.

functionkindlinescyclomaticcallerscalleesweightcrystal
Tafl::cornersrc/games/tafl.rs:100method64321.3
Tafl::thronesrc/games/tafl.rs:95method41401.2
cellsrc/games/tafl.rs:249fn31401.1
Tafl::kingsrc/games/tafl.rs:131method31220.8
Tafl::restrictedsrc/games/tafl.rs:119method33120.8
Tafl::slidessrc/games/tafl.rs:144method176220.8
Tafl::escape_cellsrc/games/tafl.rs:107method105230.7
Tafl::hostilesrc/games/tafl.rs:124method64120.5
Tafl::near_thronesrc/games/tafl.rs:135method73140.5
Tafl::infosrc/games/tafl.rs:164trait impl31000.5
Tafl::initialsrc/games/tafl.rs:168trait impl31020.5
Tafl::movessrc/games/tafl.rs:172trait impl113030.5
Tafl::playsrc/games/tafl.rs:184trait impl4012080.5
Tafl::evaluatesrc/games/tafl.rs:227trait impl113030.5
Tafl::scoresrc/games/tafl.rs:239trait impl31000.5
brandubh_sets_out_eight_attackers_four_defenders_and_a_kingsrc/games/tafl.rs:254fn81020.5
a_soldier_closed_between_two_enemies_is_takensrc/games/tafl.rs:264fn51030.5
moving_between_two_enemies_is_safesrc/games/tafl.rs:271fn51040.5
a_corner_closes_a_trapsrc/games/tafl.rs:278fn51030.5
the_king_escaping_to_a_corner_winssrc/games/tafl.rs:285fn141020.5
soldiers_cannot_stop_on_the_throne_but_may_pass_over_itsrc/games/tafl.rs:301fn51020.5
the_king_away_from_the_throne_falls_to_two_attackerssrc/games/tafl.rs:308fn51020.5
the_king_beside_the_throne_needs_four_sidessrc/games/tafl.rs:315fn121020.5

Source not readable from this process.