Anonymous user
Generate Chess960 starting position: Difference between revisions
Generate Chess960 starting position (view source)
Revision as of 12:53, 10 January 2022
, 2 years ago→Rust 1.60 nightly
(Generate Chess960 starting position en QBasic) |
|||
Line 2,249:
let mut is_string = String::new();
for ele in v {
is_string.push_str(
}
is_string
Line 2,264:
}
fn create_rnd_candidate() -> [&'static str; 8] {
let mut
let mut chaine = ["♖", "♘", "♗", "♔", "♕", "♗", "♘", "♖"];
loop {
chaine.shuffle(&mut
if is_candidate_valide(chaine) {
break chaine;
|