Advertisement
Guest User

Untitled

a guest
Oct 24th, 2014
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. private void Move(int numberOfSquares) {
  2. for (int i = 0; i < numberOfSquares; i++) {
  3. if (Location.NextSquare == null) {
  4.  
  5. location = this.Location;
  6. } else {
  7. location = location.NextSquare;
  8. }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement