Git Product home page Git Product logo

Comments (1)

LewisGaul avatar LewisGaul commented on July 18, 2024

There are a number of approaches that can be taken:

  1. Store the cell updates and mouse movement
  2. Store the left/right/both mouse interactions that have an effect, and mouse movement
  3. Store all left/right/both mouse clicks and movement

The above are in order of least -> most effort to reproduce the 'video', but also in order of least -> most accuracy, e.g. in the first case it's hard to reproduce the face state and mines remaining, and in the last case (raw input) everything can be fully reproduced but requires a controller to be wired up in the 'video' reproduction.

I originally went for option 2 (17c9e85), but then switched to option 1 for simplicity of creating the playback (555a8c1).

I now think we should opt for full accuracy, i.e. option 3. The current implementation should be disabled until this is completed [DONE].

Notes on options 3:

  • If changes are made to any of the logic (e.g. how cells are displayed) then the playback will be different to how it looked originally (not a true video)
  • Should be a more backwards compatible storage format, albeit with the above caveat
  • Not compatible with either of the other options' storage format

from minegauler.

Related Issues (20)

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.