[−][src]Module games::slot_machine
A 3 Column slot machine with 7 possible characters per column
let slots = games::slot_machine::SlotMachine::new(); let mut picks = slots.picks(); if picks[0] == picks[1] || picks[0] == picks[2] || picks[1] == picks[2] { if picks[0] == picks[1] && picks[1] == picks[2] { println!("You have 3 matching characters!") } else { println!("You have 2 matching characters!") } } else { println!("You have no matching characters") }
Structs
SlotMachine | Slot machine |