Created
May 18, 2014 20:28
-
-
Save schmee/5be64b8f5644c041fec9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let win_circle = [Circle, ..3]; | |
let win_cross = [Cross, ..3]; | |
let test = [Empty, Cross, Circle]; | |
match test { | |
win_circle => println!("Circle wins!"), | |
win_cross => println!("Cross wins!"), | |
_ => println!("Game continues") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment