delete my old work

The classifier was nice, but punning all my hand types into the same
variant when (really) we're just gonna be using one hand type per
round makes no sense.
This commit is contained in:
2026-04-02 04:15:28 +01:00
committed by oreodave
parent 69c012e47a
commit 1c962afb8f
3 changed files with 2 additions and 250 deletions

View File

@@ -1,37 +1,6 @@
mod card;
mod classifier;
mod hand;
use card::{make_decks, Card, Rank, Suit};
use classifier::classify;
use rand::seq::SliceRandom;
mod modes;
fn main() {
let mut rng = rand::rng();
let mut deck = make_decks(1);
deck.shuffle(&mut rng);
let hand = &mut deck[..5];
// For testing specific examples.
if false {
let _hand = [
Card::new(Rank::Nine, Suit::Diamond),
Card::new(Rank::Ten, Suit::Diamond),
Card::new(Rank::Jack, Suit::Club),
Card::new(Rank::Queen, Suit::Spade),
Card::new(Rank::Two, Suit::Spade),
];
}
hand.sort();
for h in hand.iter() {
print!("{}, ", h);
}
println!();
let hand = classify(hand);
match hand {
Some(hand) => println!("{}", hand),
None => println!("Not a hand"),
}
println!("Hello, world!");
}