Giter Site home page Giter Site logo

minimaxagent's Introduction

This is an implementation of a game playing agent that is based on the minimax algorithm with alpha-beta pruning. There are some sample inputs which represents how the board is input to the program and the outputs represent the valid move with gravity applied.

For example :

K21  // refers to the position of the move where it started. Kth column, 21st row.
************************
************************
************************
*1**1*******************
*0**0**********0********
*1**1**0*******1********
*1**0**10******1**1*****
*1**0*011****1*01*1*****
*0**1*100****0*00*0****0
100*1*011****1*00*0****1
101*111101***1100*0****1
0010011111***1000*10***0
0010001100***1001*00***0
000010011101*01101000*00 
110100111110*11010001001
111001000110*01110000010
101001011011001101000000
010001011111000100101000
101001111011111111010100
101011110000011100101011
100010111100100001000010
010000111111010110011011
110110110111110100011011
011011101100111110010100

The different digits on the board represent the fruits. This game is analogous to candy crush game. This game was written in a way that the output can act as a perfect input to another gameplaying agent.

minimaxagent's People

Contributors

adityasundaram avatar

Watchers

 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.