Giter VIP home page Giter VIP logo

faulty-robots-simulation's People

Contributors

jonathangb avatar

Watchers

 avatar  avatar

faulty-robots-simulation's Issues

Add "start" view of the simulation

  • canvas must have the x-axis
  • hovering over the x-axis shows a circle that follows the mouse; on click, add a robot at this point
    • add a label
    • in a bubble, show x value, label, and state (radio); all modifiable
    • on right-click, default to faulty-robot?
  • show list of previous setups to start from (stored in localStorage)
    • button to store setup, which prompts for a setup name before
  • possibility to paste a custom setup into textarea
  • "start generating" button, which starts generating in the background [next issue] and blocks further changes to the setup

Add unit tests?

Could obviously be useful. Start with calculator.js, then move to more I/O (visual) tests

Handle "generate"

  • Only enable when there is >= 2 robots
  • On click, disable event listeners on "setup" robots
    • keep listeners on double click
    • make top inputs & textarea disabled (change css cursor on disabled too?)
  • display generation "001"
    • pre-generate 10 generations in advance using the webworker?
    • show icon on the side to generate next "wave"?

Register "enter" keypress buggy

Jean-Lou needs to press the document before the "enter" keypress to generate the new waves, maybe should add a listener to the canvas?

I'm not able to recreate it locally.

Stringify a generation to the scientific paper XML output

To easily draw graphs in scientific papers, a certain library is used which requires coordinates, labels and such in a specific XML format.

I'm thinking to put a button beside every generation in the UI which, when clicked, outputs the XML string to be copied.

Port the simulation to a 2D environment

What logic needs to be modified to work in the new context?

  • bubble needs to show a "y" input
  • canvas should show the y axis
  • signatures taking only "x" should in most/all cases handle y too
  • 2D doesn't need a visualization of the origin (at least not as a tick on a line)
  • range visualization (orange bar) needs to be a circle
  • height of a generation panel is bigger in 2D
  • algo to find new position is different (center of smallest circle)
    • split calculator.js into calculator1d.js and calculator2d.js, logic is distinct between the two
  • command input needs to add "y" parameters
  • save input broken (1d & 2d)

Update README

  • Add how to run (Go not necessary as for now)
    • 1d vs 2d
  • Mention new features

Probably more...

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.