Created
August 6, 2023 12:08
-
-
Save nishanc/fe8d706d2c91e0be34d6ccd0204d776b 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
private static ReadOnlySpan<Button> s_allButtons = new[] | |
{ | |
Button.Red, | |
Button.Green, | |
Button.Blue, | |
Button.Yellow, | |
}; | |
// ... | |
Button[] thisRound = Random.Shared.GetItems(s_allButtons, 31); | |
// Rest of game goes here ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment