You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Simulating battlesnake with the following settings:
Run [1/10] winner: ruby-danger-noodle
Run [2/10] winner: ruby-danger-noodle
Run [3/10] winner: ruby-danger-noodle
Run [4/10] winner: pathy
Run [5/10] winner: ruby-danger-noodle
Run [6/10] winner: ruby-danger-noodle
Run [7/10] winner: ruby-danger-noodle
Run [8/10] winner: pathy
Run [9/10] winner: pathy
Run [10/10] winner: ruby-danger-noodle
This pull request to snakes/go/pathy-snake adds new functionality to improve the snake's decision-making process, modifies existing functions to improve their efficiency, and improves the testing suite. The most important changes include marking cells surrounded by snakes as not walkable, modifying the chooseTargetCell function to use a new floodFill algorithm, and adding new functions to help the snake navigate the game board more efficiently.
Main functionality changes:
snakes/go/pathy-snake/pathing.go: Added new functionality to choose the largest open area on the board as the target cell if no food is available, and marked cells surrounded by snakes as not walkable. (F188586a)
snakes/go/pathy-snake/helpers.go: Modified the chooseTargetCell function to use a new floodFill algorithm, and added new helper functions to support it. (F55a0970)
snakes/go/pathy-snake/paths.go: Added functions to help the snake navigate the game board more efficiently in func (p *Path) AtEnd() bool in snakes/go/pathy-snake/paths.go.
snakes/go/pathy-snake/logic_test.go: Improved the testing suite by adding new test cases and reducing the number of iterations in TestFoodEating6 function. (F98a4544)
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.