Skip to content

Dissallow the opposite directions#1

Open
Ge0 wants to merge 1 commit intoprogrammiri:masterfrom
Ge0:master
Open

Dissallow the opposite directions#1
Ge0 wants to merge 1 commit intoprogrammiri:masterfrom
Ge0:master

Conversation

@Ge0
Copy link

@Ge0 Ge0 commented Dec 18, 2018

Hi,

I also made a snake game for fun recently and I saw that your version had a bug in that one can choose to go the opposite direction, thus letting the snake eat itself.

In a nutshell, considering my snake si going left, well, it should be able to go both up and down, but not
right, if you see what I mean.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant