Code Monkey home page Code Monkey logo

voltorb-flip's Introduction

Voltorb Flip

This is a Windows Form App to help deciding your best play when battling Mr. Game at a round of Voltorb Flip. There is another solver out there, you can find it here. This desktop application does not require you to input bounds, however, as these are parsed automatically.

This is just some quickly thrown together code, and I know it is very, very unstructured and extremely ugly. It works though

Introduction

For those that are not aware, Voltorb Flip is a luck-based game where cards are placed top-down in a 5x5 grid. Card can be either 1, 2, 3 or a Voltorb. Each row/column has a restriction both in terms of total value and number of Voltorbs it can contain.

A blank Voltorb Flip grid

The goal of the game is to flip over all 2's and 3's present in the grid. If you select a voltorb, you lose the current level. You drop down to a lower level if the amount of flipped cards is less than the current level number. Lower levels yield considerably fewer coins than higher ones.

Finding a solution

The game is not easily solved, as the positions of Voltorbs cannot be predicted consistently based on the current state of the grid and the clues provided in the margins. There will always be some level of randomness influencing the game.

Initial hint provided by the Voltorb Flip solver.

When asked to provide insight on a grid, the solver looks at all possible grids that satisfy the constraints and do not conflict with any cards whose value is already known. The above blank grid does not contain that much direct information: the last column are all 1's. This does not influence our score though, so we are not that interested in that part of the analysis. You can also notice that some cards are flagged as โˆ…, and some as ?. Question marks could be either a 2/3 or a Voltorb and will have to be guessed if no other options are available. The empty set symbol โˆ… indicated a 'useless' position in the grid. This means these can only contain a Voltorb or a 1, neither of which improve the score of the player. These positions should therefore never be guessed, as they provide no reward to counter the risk of guessing.

Each question mark also has a usefulness probability assigned, i.e. the fraction of solutions that had a 2 or a 3 at that position. This probability can be seen in the bottom textbox when hovering over the card. The highest probability of success is found at the golden question mark.

In this case the golden question mark was covering a 3.The follow-up suggestion leaves a 2x2 region to guess in.

In this case the golden question mark was covering a 3.

Other Examples

This grid layour does not seem to contain very much information at first glance.The solver reveals every useful card to flip immediately.

This grid layour does not seem to contain very much information at first glance. However, the solver can immediately reveal every card required to beat the level.

Usage

To use this, simply open op your favourite Nintendo DS emulator (like Desmume), start a SoulSilver playthrough and get to Goldenrod City. The application will be able to read the game data as long as the small screen where the game is played is visible on any one of your monitors and you click the 'START' button.

Have fun!

voltorb-flip's People

Contributors

jonasvandervennet avatar

Watchers

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