Giter Site home page Giter Site logo

sendess / chain-reaction-game-ai-bot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shamiul94/chain-reaction-game-ai-bot

0.0 0.0 0.0 185 KB

This is a AI bot for Chain Reaction game using minimax algorithm with alpha-beta pruning ang killer move heuristic.

Shell 0.15% Python 32.39% Java 67.46%

chain-reaction-game-ai-bot's Introduction

Chain-Reaction-Game-AI-Bot

This is a AI bot for Chain Reaction game using minimax algorithm with alpha-beta pruning and killer move heuristic. This implementation is not guaranteed to be accurate. I tried to implement it in a very short time for CSE Fest AI Contest of BUET CSE, 2019. If there is any mistake you find in this code, feel free to create an issue or mail me at [email protected]

This problem is an underrated AI problem. This problem need more attention from CS people. It's quite a hard problem to solve.

Caution

As I had very little time to implement it, I am not hundred percent sure about the accuracy of this implementation. There may be bugs and in many ways it might get improved. But for the time being as I played against another bots with this bot, I won several times. So, I am not going to make it more perfect for the time being. If I had more time, I would give it more time to make it better. I will try to make it better in near future.

Understand the algorithm and read the code carefully to find bugs before using it for another purposes.

Game link in play store - https://play.google.com/store/apps/details?id=com.BuddyMattEnt.ChainReaction&hl=en

A good read about the heuristic - https://brilliant.org/discussions/thread/artificial-intelligence-for-chain-reaction/

For understanding read - Chainreac-with-comment.java file.

THIS CODE IS WRITTEN IN FILE MODE

Description of my submitted files -

  1. Chainreaction.java is the player code file.

  2. my_script.sh is the shell script file to run this file on linux terminal.

  3. Copy these 2 files in the same folder as aicontest.py and shared_file.txt.

  4. Then pass argument to the java file from command line. I used my_script.sh for solely this purpose. Run this script with

      ./my_script.sh

This is the Youtube link of the gameplay.

chain-reaction-game-ai-bot's People

Contributors

shamiul94 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.