Git Product home page Git Product logo

megatron747's Introduction

Megatron747

Megatron747 is a bot playing the 2 player 'Chain Reaction' game. It was developed for the AI Contest : BUET CSE FEST 2019.

AI Contest Problem Specification: https://bit.ly/2t42ClA

AI Contest FB Event: https://bit.ly/2t1jNUF

Megatron747.cpp contains the code of the bot. Go through the problem specification link given above for the instructions to run the code. If you want to play with the bot by providing input from keyboard, you can use consolePlayer.cpp.

Currently there are 4 bots implemented in Megatron747.cpp

bot0 -> plays randomly

bot11 -> tries to maximize the score1() in exactly one move. score1() returns the number of atoms of the current player in the grid.

bot21 -> went fixed steps deeper with minimax (obviously alpha beta pruning was in action), using score1() as heuristic

bot31 -> went arbitrary steps deeper with bot21. The number of steps will be determined from time limit, which is currently set as 2950 ms. Timer class was written to avoid getting Time Limit Exceeded. bot31 is basically iterative deepening of bot21.

bot31 is the bot used by default for playing unless the bot to be used is specified in the command line argument.

megatron747's People

Contributors

solaimanope avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

pinkdiamond1

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.