Skip to content

Instantly share code, notes, and snippets.

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