jntrcs / Drop7ReinforcementLearning

A python version of the Game Drop 7 to train a deep learning model on

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Drop7 Reinforcement Learning Challenge

The Game

Drop7 is a smartphone strategy game produced by Zynga. The goal of the game is to keep the balls from getting to the top of the 7x7 grid. Balls pop if the ball is connected either vertically or horizontally to as many balls as the number appearing on the ball (for example, a 3 will pop if there are three balls in the column containing the 3). New rows of gray balls appear over time that must have balls pop near them before they reveal their number. A more thorough explanation of the game can be found here (Note: this video shows several game modes, this challenge focuses only on "blitz mode").

screenshot

Note: While the repository attempts to implement the rules of Drop7, I am not the owner of the game or copyright holder. This code should be used strictly for research and not commercial purposes. In addition, no guarantees are made between the similarity of my implementation and the actual rules. For example, I do not know the rules governing game initialization, nor do I know the chain bonus multiplier for very long chains, so both of these are only approximate.

The Challenge

Create a neural network that can play the game and achieve a long-running average of 350,000 or more.

Motivation. This game has been my family's biggest time-waster for several years now. It is challenging and addicting, and well-suited for deep learning applications. It contains a small set of discrete possible choices to be selected from each turn, but many different patterns make for a variety of strategies during different stages of the game. For the last several years I've maintained an average score of around 350,000 over several thousand games. 350,000 is the highest average score of any human players I know, so I'm interested in seeing if a computer can outplay humans.

Repository Details

The repository is made to imitate the OpenAI gym, which provides a simple interface to connect agents (neural networks designed to play the games) with the games. The file drop7.py implements the game logic. Drop7Gym.py implements the interface that allows you to programatically interact with the game. Demo.py introduces the basic ways of interacting with the game. You are encouraged to read the documentation for OpenAI's gym and play around there to better understand what each function does and what it returns.

About

A python version of the Game Drop 7 to train a deep learning model on


Languages

Language:Python 100.0%