Created
November 6, 2015 11:49
-
-
Save Marenz/03637850cf87235362b9 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
@property auto spots () | |
{ | |
if ( !this.both_sides ) | |
{ | |
// Return only red spots if set to only one side | |
return spots_red.take(required_players); | |
} | |
return chain(spots_red.take(required_players/2), | |
spots_blue.take(required_players/2)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment