Code Monkey home page Code Monkey logo

shenzhenio-solitaire-bot's Introduction

ShenzhenIO-Solitaire-Bot

Video Demonstration: https://youtu.be/N1A92QK_4sw

A bot to help solve the Solitaire mini-game in ShenzhenIO.

Running

  1. Set your screen resolution in Program.cs
  2. Compile und Run
  3. Run ShenzhenIO's Solitaire Game
  4. Press Enter and follow the instructions on the screen.

Notes

  • The bot might 1. take a while 2. not always find a solution
  • A good CPU and a good chunk free RAM (~4GB) is recommended.

How the bot works

  1. Extract the card layout from the game via template matching
  2. Find all possible moves or moves that make the most sense
  3. Simulate the moves on the first board and save their resulting card layouts (GameStates) in a list
  4. Count the left over cards
  5. Eliminate GameStates, which have too many cards, since they most likely won't result into a quick solution.
  6. Repeat the process for each GameState from 2 until no more cards are left
  7. Simulate the moves on screen...

Sub-Project Descriptions

  • SHENZHENSolitaire: Main Program
  • CardFingerprintGenerator: Generates embeddable byte arrays, from 16x16 template images, found in the image class of the SHENZHENSolitaire.
  • Tests: Some unit tests to make sure components behave

shenzhenio-solitaire-bot's People

Contributors

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