Created
February 28, 2015 21:33
-
-
Save HilariousCow/9c9f1d2a26ccc235607d to your computer and use it in GitHub Desktop.
OneOneOneTwoThree. A game for two brains. https://docs.google.com/document/d/1cR4QzCghzDRCYyJYZBySY56WjbQycyBFWEOraZJKW5k/edit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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