stop to swallow
This commit is contained in:
parent
fc082d293b
commit
b3dc63f154
1 changed files with 19 additions and 16 deletions
|
@ -168,6 +168,8 @@ static class Mono
|
|||
return;
|
||||
}
|
||||
|
||||
if (eaten_latch.delta != +1)
|
||||
{
|
||||
if (snake_len == snake.Length)
|
||||
{
|
||||
// win condition
|
||||
|
@ -189,6 +191,7 @@ static class Mono
|
|||
snake[i] = snake[i - 1];
|
||||
}
|
||||
snake[0] += snake_dir;
|
||||
}
|
||||
|
||||
in_box.Step(box_space.InRange(snake[0]));
|
||||
if (in_box.delta != 0) // 1 just in -1 just out
|
||||
|
|
Loading…
Add table
Reference in a new issue