Anticode Open builder

Make a teaching simulation: sliders, a live model and a graph

A teaching simulation lets students change one thing and watch what happens: raise the launch angle, steepen the demand curve, double the population's birth rate. Anticode can build simulations like that as a single page with sliders, an animated model and a graph that updates as they move, running in any browser with no installation or accounts.

Updated · By the Anticode team

What a simulation does that a diagram can't

A textbook diagram shows one case. A simulation shows the relationship, because students can sweep through cases themselves and notice the pattern. That's most valuable for ideas where intuition is wrong: heavier objects don't fall faster without air resistance, a price ceiling below equilibrium creates a shortage, compound growth overtakes linear growth later than people expect and then very quickly.

Anatomy of a good simulation

Controls
Two to four sliders or inputs, each labelled with its unit and range. More than that and students change everything at once and learn nothing.
The model
An animation of the thing itself: a projectile in flight, a pendulum, a market with buyers and sellers, a population of dots.
The graph
The quantity that matters plotted live, with axes labelled and scaled sensibly so the change is visible.
Readouts
Key numbers shown exactly: range, period, equilibrium price, time to double.
Trace and compare
Keep the previous run faintly on the graph, so students can compare 30 degrees with 45 directly.
Reset and presets
Back to defaults, plus named scenarios ("Moon gravity", "Price ceiling at 4") a teacher can jump to.

Ideas by subject

Simulations that suit a single web page
SubjectSimulationVariables to expose
PhysicsProjectile motionLaunch speed, angle, gravity, air resistance on or off
PhysicsSimple pendulumLength, starting angle, gravity
PhysicsCircuits in series and parallelVoltage, resistor values
MathsTransformations of a functionCoefficients a, b and c in y = a(x − b)² + c
MathsProbability by repeated trialsNumber of dice, trials; histogram converging
EconomicsSupply and demandShifts, price floors and ceilings, a tax
BiologyPredator and prey populationsBirth and death rates, starting numbers
ChemistryGas laws in a pistonTemperature, volume, number of particles

Get the science right

A simulation teaches whatever its equations say, mistakes included. Give the model the equations you teach, the units and the simplifications you want ("ignore air resistance unless the toggle is on", "ideal gas"). Then check it against cases you know: a projectile at 45 degrees on level ground should travel furthest when there's no drag; a pendulum's period shouldn't change much with small starting angles. Numerical methods matter for some models. A predator-prey simulation stepped too coarsely can drift into nonsense, so ask for a small time step and test long runs.

Building one with Anticode

When you ask Anticode for an interactive simulation for teaching, describe the model, the controls and how it'll be used: "A projectile simulation for GCSE physics. Sliders for launch speed (5 to 30 m/s), angle (0 to 90 degrees) and gravity (Earth, Moon, Mars presets). Animate the ball with a trail, plot height against distance live, show range, maximum height and time of flight. Keep the last three runs on the graph in fainter colours. A Pause button and a teacher note panel explaining the equations." The model writes the physics, animation and graph in one HTML document with canvas or SVG, no charting library needed.

It's built to work at phone width and with a keyboard, with sliders as real labelled controls, and to respect reduced-motion settings: for students who've asked their device for less motion, ask for a step-through mode instead of continuous animation.

Using it in a lesson

  1. Ask for a prediction first: "What angle gives the longest range?"
  2. Let students test it in pairs, recording three runs.
  3. Discuss the pattern, then show the equation that explains it.
  4. Set a challenge: hit a target at a given distance on the Moon.

Pair the simulation with a short worksheet or an interactive lesson for the explain-and-check parts.

Limits

  • No live data. The sandbox can't fetch real-world datasets; any data is written into the page and labelled as sample data where it stands in for real figures.
  • No student results back to you. Runs and settings stay on each device.
  • Scale. Simulations of thousands of particles or 3D fluid flow will be slow on school laptops; keep models simple.
  • Not a substitute for checking. Verify the physics yourself before using it in front of a class.

For money-based models, the compound interest calculator covers a narrower case; interactive infographics suit explaining data rather than a model.

Questions people ask

Can students use it on Chromebooks or tablets?

Yes. It's a web page that runs in any modern browser, with touch-friendly sliders on tablets.

Can I project it in class?

Yes. Ask for a large-text presenter mode so sliders and readouts are readable from the back of the room.

Can I change the equations later?

Ask for the change in a sentence, such as "add air resistance proportional to speed squared". Earlier versions stay in the version history.