Double-Slit Experiment simulation

I wanted to play around a little bit with a Double-Slit Experiment simulation. To speed things up I used the provided GitHub kickstart a project with AI and I was surprised by the result. The bot created a first PR after some brief initial prompt, linked down below. For me the only task was to review and approve the commit to the project. The most interesting feature I discovered was the addition of rendered images of the resulting webpage. The repo can be found here.

Sample screenshots created in the PR

Original prompt

Build a web based Double-Slit Experiment.
The main use-case are school children age 15-18 during physics education.

Functional requirements for the app:

  • Web based and tablet friendly
  • Central graphical view of emitter, slits and screen with input elements to alter each component
  • Different particle emitter sources (ball, proton, paint spray, neutron, Photon, atoms, electrons)
  • The user can alter the Slit configuration (size, distance between and number of slits)
  • The user can alter distances between the source, slits and screen
  • The user can set the energy/wavelength of the particles
  • The screen is used to evaluate the results
  • The screen has the option to simulate particles (each particle location is marked based on probability)
  • The simulation speed can be defined by the user from slow to faster
  • The screen can be overlayed with a theoretical distribution shown as gradient
  • The screen can be overlayed with a graph view

Non functional

  • Auto deploy on github pages
  • No backend component required
  • Language is defined in i8n friendly format, current languages are German and English.

After this initial setup my I tested the solution, added some project files and did some minor tweaks and changes.