Skip to content
1 viewer

rust 1,860,549 · typescript 235,540 · javascript 132,956 · python 20,426 · 6,408 files · digest f04d4637f52b · built in 1.5 s · crystals off

crates/cre8-app-chess/src/rules.rs

cre8-app-chess · module rules · src · 634 lines (503 code, 73 comment) · sha 867ffb1c0b1be73e

Items

struct LegalMove impl LegalMove struct RookHop enum Variant impl Variant enum Outcome impl Outcome

Functions

By call-graph weight (PageRank; 1.0 is the average function). 50 functions in all.

functionkindlinescyclomaticcallerscalleesweightcrystal
color_namesrc/rules.rs:322fn62303.2
parse_fensrc/rules.rs:174fn135503.2
outcome_insrc/rules.rs:225fn2212743.1
describesrc/rules.rs:359fn254152.7
legal_movessrc/rules.rs:189fn81612.6
Outcome::is_oversrc/rules.rs:127method311002.6
boardsrc/rules.rs:460fn311012.2
insufficient_materialsrc/rules.rs:293fn125202.1
find_legal_movesrc/rules.rs:200fn105922
side_to_movesrc/rules.rs:318fn31912
Variant::from_tokensrc/rules.rs:72method73701.8
line_outcome_insrc/rules.rs:272fn187431.7
outcomesrc/rules.rs:219fn31811.6
playsrc/rules.rs:212fn31801.6
role_namesrc/rules.rs:329fn106301.6
board_from_piecessrc/rules.rs:168fn31521.4
promotion_rolesrc/rules.rs:349fn95101.4
checks_givensrc/rules.rs:255fn52301.3
disambiguationsrc/rules.rs:437fn186111.3
Variant::tokensrc/rules.rs:80method73501.3
piece_atsrc/rules.rs:341fn31131.3
is_centresrc/rules.rs:249fn31101.2
has_legal_movesrc/rules.rs:345fn31101.2
cannot_matesrc/rules.rs:308fn43211.1
castle_squaressrc/rules.rs:386fn84111
en_passant_victimsrc/rules.rs:395fn63111
sansrc/rules.rs:402fn339111
line_outcomesrc/rules.rs:266fn31310.7
Variant::rulesrc/rules.rs:97method73200.7
LegalMove::captured_rolesrc/rules.rs:38method93120.6
linesrc/rules.rs:464fn102120.6
Outcome::winnersrc/rules.rs:157method82100.6
checked_kingsrc/rules.rs:314fn31100.6
Variant::labelsrc/rules.rs:88method73000.5
Outcome::resultsrc/rules.rs:132method114000.5
Outcome::terminationsrc/rules.rs:144method128000.5
opening_has_twenty_moves_in_standard_notationsrc/rules.rs:476fn63010.5
castling_speaks_the_standard_dialect_and_moves_the_rooksrc/rules.rs:484fn111020.5
en_passant_names_the_pawn_it_removessrc/rules.rs:497fn71020.5
promotion_defaults_to_a_queen_and_honours_an_underpromotionsrc/rules.rs:506fn81020.5
san_disambiguates_marks_check_and_matesrc/rules.rs:516fn102040.5
stalemate_is_a_draw_not_a_winsrc/rules.rs:528fn51020.5
a_board_with_no_mating_material_is_drawnsrc/rules.rs:535fn183030.5
a_side_with_a_bare_king_cannot_matesrc/rules.rs:555fn51020.5
the_third_time_a_position_stands_is_a_drawsrc/rules.rs:562fn172050.5
the_hundredth_quiet_ply_is_a_fifty_move_drawsrc/rules.rs:581fn81050.5
variant_tokens_read_leniently_and_clock_presets_play_standardsrc/rules.rs:591fn82020.5
a_king_on_the_hill_wins_only_in_king_of_the_hillsrc/rules.rs:601fn101040.5
the_third_check_wins_three_checksrc/rules.rs:613fn142060.5
an_impossible_en_passant_claim_does_not_brick_the_boardsrc/rules.rs:629fn51020.5

Source not readable from this process.