jonathanGB/faulty-robots-simulation

Implement textual "setup" initialization

Closed this issue · 4 comments

First need to decide a format. JSON would be the easy/obvious way.

[
  {
    "label": Integer
    "faulty": Bool,
    "x": Number
  },
  ...
]

Next step is storing/loading commands. I think I will use localStorage.

Now we need to be able to load the commands. As well, I think we should make it that using the UI to change the state of the setup should be reflected in the textual setup (e.g. if I add a robot by clicking on the axis, that robot should be added in the textarea)

Realized setup as it is now doesn't care about vision (will default to 100): need to change the setup to take that value.

{
  v: Number,
  robots: [
    ...
  ]
}

complete!