Guest User

getpiece

a guest
Feb 27th, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.25 KB | None | 0 0
  1. private Piece getpiece(Tile t)
  2.         {
  3.             foreach (Piece p in pieces)
  4.             {
  5.                 if (p.tile == t)
  6.                 {
  7.                     return p;
  8.                 }
  9.             }
  10.             return null;
  11.         }
Add Comment
Please, Sign In to add comment