Skip to content

Instantly share code, notes, and snippets.

@simonwh
Created September 25, 2011 19:28
Show Gist options
  • Save simonwh/1241018 to your computer and use it in GitHub Desktop.
Save simonwh/1241018 to your computer and use it in GitHub Desktop.
private int[,] PossibleMoves(int x, int y)
{
return new int[,] { {x + 2, y + 1},
{x + 2, y - 1},
{x - 2, y + 1},
{x - 2, y - 1},
{x + 1, y + 2},
{x + 1, y - 2},
{x - 1, y + 2},
{x - 1, y - 2},
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment