AnimeshSinha1309 / aima-javascript

Javascript visualization (and implementation) of algorithms from Russell And Norvig's "Artificial Intelligence - A Modern Approach"
http://aimacode.github.io/aima-javascript/
MIT License
0 stars 0 forks source link

Module is not Mobile-Friendly #2

Open AnimeshSinha1309 opened 5 years ago

AnimeshSinha1309 commented 5 years ago

The whole thing does not scale perfectly. SVG Images are useful, but stacking 4 side by side would fail the expected scaling. Also, touch gestures are not implemented, meaning that there is no way to play the game without keys. HammarJS needs to be used.

AnimeshSinha1309 commented 5 years ago

Here I have zero idea, Gaurang, can you please provide any suggestions / help.

GaurangTandon commented 5 years ago

Yeah I'm looking at the demo, game looks nice! Have a few ideas:

  1. We should also allow mouse clicks/touch events to move around the agent.
  2. Yeah, we'll probably need Hammer JS as support for native touch events is very weak rn.

Also, by the scaling issue do you mean you need to support larger grids, and need to maintain and alignment of the boxes at different sizes? If so, containing all the html elements into an HTML table might help perhaps. It's perfect for organizing tabular stuff.