Current section
Files
Jump to
Current section
Files
src/rcade/player.gleam
/// Which player's controls to read.
pub type Player {
Player1
Player2
}
pub fn to_int(player: Player) -> Int {
case player {
Player1 -> 1
Player2 -> 2
}
}