[go: up one dir, main page]

Skip to content

dvishal485/battlesnake

Repository files navigation

battlesnake

Battlesnake instructions and code using Python


Project Information

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)

    Beating the OSDG's Snake

  • Ranked 3rd in the event 💯


Mechanism & Working

  1. 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.
  2. The board around the head of our battlesnake is captured in a 3x3 matrix.
  3. All the moves up, down, right and left are evaluated and the moves with minimum risk / maximum profit are selected.
  4. The moves are further evaluated by considering the next moves possible, and hence further the moves which are most favorable are selected.
  5. If still there are multiple possible moves possible, then a random move is selected.

License & Copyright