What's in these exercises?
Two games, Minesweeper and Battleship with partially completed JS code and available freely through my github(and added as separate zip files in this resource as well). THEY ARE NOT FULL MULTIPLAYER GAMES, Instead just the most important functions of those games that need to be completed by the students. The exercises are divided into tasks (I only coded up 2 exercises for each task and I might be adding more in the future). Github links:
Access to a JS runtime that can run arbitrary functions and a console to print messages. I had initially designed it to run in the coding pad of code.org's AP CS class.
What is the purpose of these exercises?
To teach basic concepts of looping, conditional logic and arrays.
Why do you not add complete games?
I might well do so. However a full game is more like a term project and the purpose is for the kids to be able to read, complete and debug real code, a useful skill in Programming.
How do I use these?
You can copy paste the exercises to coderpad complete the sections that are incomplete and run them. Once the code is complete you can run the script in your JS environment. This runs some tests and prints output.