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

Dev path #6

Merged
merged 24 commits into from
Nov 9, 2020
Merged

Dev path #6

merged 24 commits into from
Nov 9, 2020

Conversation

Harris-Ferguson
Copy link
Owner

Changes

Pathfinding and Decision Logic

  • Added a function to check if a proposed square to move is either the edge or another snake on the board (including self)
  • Added a very basic path finder that lines up on each axis

Other Changes

  • Switched to APIv0 from APIv1 for compatibility with testing tools
  • Refactored GameState and Decider class to simply take in all the request data. Any further parsing is done by the GameObject class

Further Changes

Harris-Ferguson and others added 24 commits November 7, 2020 13:25
Dev test.
merging in unit tests so work on dev can be done with proper testing
updating command to run
@Harris-Ferguson
Copy link
Owner Author

It's probably about time to get this merged, I don't want this PR to bloat.

Features

  • Added Testing Suite
  • Small refactor of Decider and GameState to take in a single data object. Parsing of said object is left as a responsibility of the GameState object
  • Added functions to probe the state of the board for hazards.
  • Added the initial pathfinder. Simply lines up along the x axis and then the y axis.

@Harris-Ferguson Harris-Ferguson merged commit 9fc0ae6 into dev Nov 9, 2020
@Harris-Ferguson Harris-Ferguson deleted the dev-path branch November 9, 2020 00:22
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