Skip to content

Instantly share code, notes, and snippets.

@HilariousCow
Created February 28, 2015 21:33
Show Gist options
  • Save HilariousCow/9c9f1d2a26ccc235607d to your computer and use it in GitHub Desktop.
Save HilariousCow/9c9f1d2a26ccc235607d to your computer and use it in GitHub Desktop.
public class OneOneOneTwoThree
{
bool[] Null(bool[] t)
{
return t;// lol
}
bool[] Swap(bool[] t)
{
bool[] s = new bool[4];
s[0] = t[2];
s[1] = t[3];
s[2] = t[0];
s[3] = t[1];
return s;
}
bool[] FlipStack(bool[] t)
{
t.Reverse();
return t;
}
bool[] FlipBottom(bool[] t)
{
bool[] s;
t.CopyTo(s);
s[2] = t[3];
s[3] = t[2];
return s;
}
bool[] FlipTop(bool[] t)
{
bool[] s;
t.CopyTo(s);
s[0] = t[1];
s[1] = t[0];
return s;
}
class Player
{
Player opponent;
public Player GetOpponent()
{
return opponent;
}
}
Player Yomi(Player opponent)
{
return Yomi( opponent.GetOpponent() );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment