Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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