Battlesnake instructions and code using Python
The project of battlesnake has been made for the Open Tech Summit 2021 conducted by IIIT Hyderabad (OSDG Group)
Battlesnake Deployment URL : https://battlesnake-one.vercel.app/
Battlesnake Profile : https://play.battlesnake.com/u/dvishal485/alpha/
Software Engineering
Track 5
A 3-day Battlesnake event where devs get to program their
snakes to compete with each other and climb up the ladder.
Here’s the kicker: they must also defeat OSDG’s snake to
qualify for the final phase!
-
Team Name :
Alpha
-
Team Member :
@dvishal485
(Solo Team) -
I assure no plagiarism has been done and the concept and code is completely mine. Only the information from official battlesnake github have been used to initialize the project.
-
Beating the OSDG's Snake (qualification to final phase)
-
Ranked
3rd
in the event 💯
- The board information received from battlesnake is translated into a
numpy
array/matrix containg the gain and loss to be experienced at every coordinate of board. - The board around the head of our battlesnake is captured in a
3x3
matrix. - All the moves
up
,down
,right
andleft
are evaluated and the moves with minimum risk / maximum profit are selected. - The moves are further evaluated by considering the next moves possible, and hence further the moves which are most favorable are selected.
- If still there are multiple possible moves possible, then a random move is selected.
- This Project is Apache-2.0 Licensed
- Copyright 2022 Vishal Das