Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var val = S_stack.ElementAt(i);
- if (F_stack.Peek().Location.X == F_stack.Peek().Location.X && F_stack.Peek().Location.Y >= pot1 && flag)
- {
- F_stack.Peek().Top -= 7;
- }
- else if (F_stack.Peek().Location.Y == F_stack.Peek().Location.Y && F_stack.Peek().Location.X < S_stack.ElementAt(massivj[i]).Location.X)
- {
- F_stack.Peek().Left += 7;
- flag = false;
- }
- else if (F_stack.Peek().Location.X == S_stack.Peek().Location.X && F_stack.Peek().Location.Y <= S_stack.ElementAt(massiv[i]).Location.Y)
- {
- F_stack.Peek().Top += 7;
- }
- else
- {
- F_stack.Pop();
- S_stack.Pop();
- i++;
- //j--;
- flag = true;
- }
- if (S_stack.Count<0 && F_stack.Count < 0)
- {
- timer1.Start();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement