skip to content

JavaScript: Graphing Game

This is a pure JavaScript recreation of an old Apple II game from the 1980's used to teach cartesian equations. Each equation you enter plots a line on the grid and you have five tries to hit all five targets in order to win.

In the original you could also draw circles, but we're not that sophisticated. In this version bonus points are awarded for hitting multiple targets with a single line.

Let's Play

The game generates sound effects in browsers with AudioContext support, which includes most modern browsers. You can learn about AudioContext interface in our article Creating Sounds with AudioContext.

Example Equations

In case your math is a bit rusty, here are some example to help you get started. Equations can be a function either of y or of x:

Screenshots

Have fun, and if you make some cool lines, send us a screenshot.

References

< JavaScript

Post your comment or question
top