Advertisement
al33kappa

huinia neponytno Hanoi

May 12th, 2018
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. var val = S_stack.ElementAt(i);
  2. if (F_stack.Peek().Location.X == F_stack.Peek().Location.X && F_stack.Peek().Location.Y >= pot1 && flag)
  3. {
  4. F_stack.Peek().Top -= 7;
  5. }
  6. else if (F_stack.Peek().Location.Y == F_stack.Peek().Location.Y && F_stack.Peek().Location.X < S_stack.ElementAt(massivj[i]).Location.X)
  7. {
  8. F_stack.Peek().Left += 7;
  9. flag = false;
  10. }
  11. else if (F_stack.Peek().Location.X == S_stack.Peek().Location.X && F_stack.Peek().Location.Y <= S_stack.ElementAt(massiv[i]).Location.Y)
  12. {
  13. F_stack.Peek().Top += 7;
  14. }
  15. else
  16. {
  17. F_stack.Pop();
  18. S_stack.Pop();
  19. i++;
  20. //j--;
  21. flag = true;
  22. }
  23. if (S_stack.Count<0 && F_stack.Count < 0)
  24. {
  25. timer1.Start();
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement