Skip to content

Instantly share code, notes, and snippets.

@Marenz
Created November 6, 2015 11:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Marenz/03637850cf87235362b9 to your computer and use it in GitHub Desktop.
Save Marenz/03637850cf87235362b9 to your computer and use it in GitHub Desktop.
@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