https://github.com/ISmillex/2048-ai/assets/72645646/9ebc09ce-dd56-4dee-a270-5481be3b1430
2048-AI is a 2D game built using Svelte Kit. The game involves merging tiles with the same numbers to create a tile with the number 2048. The aim of this project is to implement an AI that can proficiently play the game. The current version does not include the AI, but it features a beautiful and responsive design that works seamlessly on both mobile and desktop platforms. You can play the game online here.
To run the game locally, follow these steps:
git clone https://github.com/ISmillex/2048-AI.git
cd 2048-ai
npm install
npm run dev -- --host
http://localhost:5173/
2048-AI is built using Svelte Kit, providing an efficient and reactive web framework for creating interactive web applications. The game mechanics involve merging tiles with the same numbers by sliding them in different directions. The time complexity of the game largely depends on the number of moves made by the player, which can be optimized using an AI algorithm.
The space complexity is determined by the number of tiles on the game board, which increases as the game progresses. Implementing an AI for the game would optimize the gameplay by making strategic moves, effectively reducing the time and space complexity.
To contribute, follow these steps:
git checkout -b feature/your-feature
git commit -m 'Add some feature'
git push origin feature/your-feature
This project is licensed under the MIT License - see the LICENSE file for details.