Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test: revert to cell where direction changed #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

T0mexX
Copy link

@T0mexX T0mexX commented Oct 3, 2024

The new test checks that the last direction change that was performed on a specific cell is not repeated after reverting to that cell (without any user input). I've seen happening for implementations where the student stores the direction of the next step in the GameState without reverting it back to the current direction the snake is facing upon reverse.

The new test checks that the last direction change that was performed on a specific
cell is not repeated after reverting to that cell (without any user input).
@atzeus
Copy link
Contributor

atzeus commented Oct 8, 2024

Thanks! I will merge this after the course, otherwise this will change the tests (and grading) when the course is running

@atzeus
Copy link
Contributor

atzeus commented Oct 8, 2024

Looks good!

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.

2 participants