skip to content

JavaScript: Graphing Game

 Tweet Share0 Tweets

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

Send a message to The Art of Web:


used only for us to reply, and to display your gravatar.

<- copy the digits from the image into this box

press <Esc> or click outside this box to close

Post your comment or question
top