mirror of https://github.com/KaiserY/trpl-zh-cn
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
303 B
15 lines
303 B
3 years ago
|
fn main() {
|
||
|
// ANCHOR: here
|
||
|
let dice_roll = 9;
|
||
|
match dice_roll {
|
||
|
3 => add_fancy_hat(),
|
||
|
7 => remove_fancy_hat(),
|
||
|
other => move_player(other),
|
||
|
}
|
||
|
|
||
|
fn add_fancy_hat() {}
|
||
|
fn remove_fancy_hat() {}
|
||
|
fn move_player(num_spaces: u8) {}
|
||
|
// ANCHOR_END: here
|
||
|
}
|