Giter Club home page Giter Club logo

flowfree-solver's Introduction

FlowFree-Solver

This Python bot is an automated solver for the popular puzzle game Flow Free.

Leveraging the power of the Z3 constraint solver Z3 constraint solver, the bot intelligently solves Flow Free puzzles by strategically connecting matching-colored pipes without any user input.

Demo

Features

  • Solver Algorithm: Utilizes the Z3 solver to find optimal solutions for Flow Free puzzles.

  • Automated Pipe Filling: The bot automatically navigates through the puzzle grid, filling pipes to connect matching-colored pairs.

  • Versatile Solver: Efficiently solves puzzles of varying difficulty levels and sizes ranging from small [5x5] to large [14x14] board's also.

Description

Flow Free is a captivating and challenging puzzle game that combines strategy and logic. The game presents players with a grid filled with various colored pairs of dots. The objective is to connect each pair of dots with pipes of the same color, ensuring that the entire game board is filled without any overlapping pipes.

Steps to Follow

  • Download or clone my Repository to your device
  • type pip install -r requirements.txt in command prompt (this will install required package for project)
  • Split Screen: Split the screen into two parts.The left part of the screen should show the Flow Free game and avoid Full-Screen Mode:
  • These screen settings (1920x1080) are crucial for the bot to accurately detect grid coordinates and perform tasks effectively.
  • Just run the FlowFreeSolver.py

Project flow & explaination

  • After you run the project , the program will detect the board dimensions and load the predifined co-ordinates of the board.
  • It'll automatically detect the colour of the Circle and feed's the matrix into the Z3 solver which use's SAT to solve the puzzle.
  • Finally It'll display the path to be taken for each colour and drag's the mouse over to those co-ordinates ultimately connecting the two pipes.
  • By default it will solve 10 Puzzle's in a row.

Disclaimer

This bot is designed for educational and entertainment purposes. It is not intended to be used for cheating or exploiting game mechanics.

Just follow me and Star ⭐ my repository

Thank You!!

flowfree-solver's People

Contributors

musadiqpasha avatar

Stargazers

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