Giter Site home page Giter Site logo

ballsortgamesolver's Introduction

Automatic Ball Sort Game Solver

The Game

Ball Sort Puzzle is a game where you have n tubes, and k different colors.
each tube can store 4 balls at a time, and the goal is the sort
all the balls into seperate tubes.
For example, this level:

Level 3

Can be sorted like this: Link To Gif

However, a ball can only be moved on top of another if they have the same color and if the amount of balls already in the tube is less than 4.

How to use my bot

First you need to mirror your android's screen to your PC. You must set your monitor's resolution to 1920x1080. To mirror your android to your screen, download Scrcpy to mirror your phone.

You need to Enable USB Debugging and then connect your phone to your PC via a USB cable.

Then, start the screen mirroring by issuing the command:

./scrcpy --fullscreen 

You must open Scrcpy in full screen mode because otherwise the location would be off.

After you have mirrored your phone, then you can use MainDFS.py. I suggest editing the code a bit to your liking.

Note

This project is not complete, the algorithms aren't the most optimized yet. Im planning on improving the algorithm and maybe even use Reinforcement Learning. Also, MainBestFS.py uses a different technique that makes the bot find solutions in less moves, but finding the solution takes more time.

ballsortgamesolver's People

Contributors

orishamir 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.