Advertisement
rkynaa

lastMove

Jan 20th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.30 KB | None | 0 0
  1. void
  2. lastMove (DracView dv, PlayerID player,
  3.     LocationID *start, LocationID *end)
  4. {
  5.     int i;
  6.     LocationID trail_last[TRAIL_SIZE];
  7.     giveMeTheTrail(dv, player, trail_last);
  8.     *end = trail_last[0];
  9.     for (i = 0; trail_last[i] != UNKNOWN_LOCATION; i++);
  10.     *start = trail_last[i];
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement