basics of a javascript board game
Clicking on any one of the squares changes the colors of all three.
This is a simple example demonstrating one way that HTML, CSS, and JavaScript can be used to make an interactive board game.
Here's
Myst Chimney game
, a more realistic example.
And here's the
source code
.