This repository contains the source code of my bot for the Battle of Bots Challenge - Chain Reaction hosted on HackerEarth.
The class ChainBoard denotes a Board object which specifies a snapshot of a particular model of the game.
The file Chain Reaction - DFS.py contains code for a bot which goes one level deep and calculates the best possible move the opponent can make
and rates the current move on basis of that.
The bot ranked 22 amongst almost 2000 participants with a win rate of 86.63%.
Leaderboard: https://www.hackerearth.com/challenges/competitive/battle-of-bots-7/leaderboard/page/1/