Skip to content

Instantly share code, notes, and snippets.

@JayBazuzi
Forked from isidore/ifstructure.cs
Last active July 30, 2016 20:24
Show Gist options
  • Save JayBazuzi/cea91f55a8ff2d117ea537fa7914d9ef to your computer and use it in GitHub Desktop.
Save JayBazuzi/cea91f55a8ff2d117ea537fa7914d9ef to your computer and use it in GitHub Desktop.
If structure
string result = null;
if (result == null)
result = Win();
if (result == null)
result = Advantage();
if (result == null)
result = ScoreNormal();
if (result == null)
result = ScorePerson1();
if (result == null)
result = ScorePerson2();
if (result == null)
result = ScoreTie();
return result;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment