Code skill Organizing the Game Board

This piece of code uses object literals to gather together related pieces of code, and namespacing to give each object literal a name so that you can easily access the data inside it. Organizing your code will keep it readable as your game grows.

See the Pen GB 2 M2 by Walker Books UK (@walkerbooks) on CodePen.