Skip to content

Release v1.0.0 – Custom Battlesnake AI in JavaScript

Latest

Choose a tag to compare

@aganiu aganiu released this 21 May 12:26
39805e3

Release v1.0.0 – Custom Battlesnake AI in JavaScript

Release Date: May 21, 2025
Repository: Dismaili/SoftwareDevelopment

Overview
We are thrilled to announce the first stable release of our customized Battlesnake AI developed in JavaScript. This release builds upon the official Battlesnake starter project, introducing enhanced strategies and modular code to improve performance in competitive environments.

Features
Advanced Game Logic: Implemented sophisticated algorithms for snake movement, collision detection, and food targeting.

Modular Architecture: Separated concerns into distinct modules such as checkSelfCollision.js, checkSnakeCollision.js, foodTargeting.js, and preventOutOfBounds.js for better maintainability.

Server Setup: Utilized Express.js in server.js to handle game requests efficiently.

Testing Framework: Integrated Jest for unit testing with sample test cases located in the tests directory.

Code Quality Tools: Configured Prettier and EditorConfig to ensure consistent code formatting across the project.

Docker Support: Included a Dockerfile to facilitate containerized deployment of the application.

Installation
Clone the repository:

git clone https://github.com/Dismaili/SoftwareDevelopment.git
cd SoftwareDevelopment

Install dependencies:

npm install

Run the server:

npm start

Run tests:

npm test

Getting Started with Battlesnake
To deploy your customized Battlesnake AI:
Modify the logic in index.js to tailor your snake's behavior.

Utilize the provided utility modules to enhance decision-making strategies.

Deploy your Battlesnake to a public URL and register it on play.battlesnake.com.

Changelog
v1.0.0
Initial release featuring advanced game logic and modular code structure.

Implemented comprehensive testing using Jest.

Added Docker support for streamlined deployment.(GitHub)

Contributing
We welcome contributions! Please fork the repository and submit a pull request. Ensure that your code adheres to the existing style guidelines and includes relevant tests.(GitHub)
Contact
For questions or support, please open an issue on the GitHub repository.