Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zakwht/battlesnake-2018
Java BattleSnake
https://github.com/zakwht/battlesnake-2018
battlesnake challenge java
Last synced: 3 months ago
JSON representation
Java BattleSnake
- Host: GitHub
- URL: https://github.com/zakwht/battlesnake-2018
- Owner: zakwht
- Created: 2018-03-04T04:51:38.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-03-05T23:06:35.000Z (over 6 years ago)
- Last Synced: 2024-04-08T02:27:35.158Z (7 months ago)
- Topics: battlesnake, challenge, java
- Language: Java
- Homepage: http://battlesnake.io
- Size: 241 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
A simple [BattleSnake](https://www.battlesnake.io) written in Java. Entered in the 2018 Intermediate competition.
Our snake's strategy was aggresive. For each turn, if the snake wasn't the largest on the board, or if the health was below a specific threshold, the snake would navigate towards the safest food. Otherwise, she would try to target other snakes' heads to either eliminate the opponent in a head-on collision or trap them by cutting off their path. The snake also included an unimplemented passive state, where she would try to loop back around to her tail to avoid collisions.
The snake's biggest drawback was trapping itself in its own tail. We didn't implement an effective algorithm to calculate dangerous regions of the board, and ultimately the snake only died by running out of moves.
## Battle History
Bounty Snakes:
* Beat [Bambora](https://www.bambora.com/en/ca/)'s bounty snake
* Beat [Rooof](https://www.rooof.com/)'s bounty snake
* Beat [Giftbit](https://www.giftbit.com/)'s bounty snake
* Beat [GitHub](https://github.com)'s two snakes in only 67 moves
* Beat [Sendwithus](https://www.sendwithus.com/)' three bounty snakes
* Beat [Semaphore](https://semaphoresolutions.com/)'s zombie snakes and hungry snake
* Lost to [Accio](https://myaccio.com/)'s defensive snake
* Lost to [AppColony](http://www.appcolony.ca/)'s tron snake
* Lost to [Redbrick](https://rdbrck.com/)'s champion snake
* Lost to [Workday](https://www.workday.com/)'s bounty snake
* Lost to [CheckFront](https://www.checkfront.com/)'s two bounty snakesThe snake came third in our round of the battle. There were 57 competitors in the intermediate tier. The tournament can be viewed on Sendwithus' [Twitch stream](https://www.twitch.tv/videos/234961139?t=01h56m44s).
## Screenshots
![Screenshot #1](./screenshots/snake-0.png "Round Start")
![Screenshot #2](./screenshots/snake-1.png "Head-on Collision")
![Screenshot #3](./screenshots/snake-2.png "Hungry State")
![Screenshot #4](./screenshots/snake-3.png "Attack State")## Acknowledgments
* __Built in collaboration with__ _[Ben Austin](https://github.com/austinben)_ and _[Jaxson Van Doorn](https://github.com/woofers)_, 2018-03-03
* __Designed for__ [Sendwithus](https://github.com/sendwithus)' BattleSnake competition, 2018-03-03