Final project
Build networked Siege
Write a turn-based stronghold conquest game played over our own classroom network, with chat. The server checks the rules and rolls the dice.
An adventure in coding
Coming later
Designed for kids age 10 to 12
Designed for ages 10–12
Write the code for a turn-based stronghold conquest game played over our own classroom network, with chat you can use while you play!
The courses run in order: Summoning, then Parry, then Siege. Siege builds on Parry and covers more advanced JavaScript. You'll use ready-made code tools to build a chat, then teach the computer to referee: checking the rules and rolling the dice.
You'll also model the map and players.
More advanced JavaScript, then a networked final project
Review functions
Warm up with a toolbox of ready-made code
Connect players
Send messages between computers
Build a chat app
Send and receive messages
Model the map
Objects for strongholds and players
Let the server referee
Server-side dice and rule checks
Run turns and timers
Phases, delays, and whose turn it is
Save your work
Organize your code and save your game
Then: the final project
Networked stronghold conquest, with chat
Final project
Write a turn-based stronghold conquest game played over our own classroom network, with chat. The server checks the rules and rolls the dice.
Optional bonus
Read page controls and respond to events on the page.
How long
A short weekly course
Sessions of about an hour and a half
What you need
Windows laptops
We'll supply them, with Notepad and a web browser. Or bring your own.
You'll warm up with ready-made code tools. Then you'll learn how two computers talk to each other.
// send a message to everyone
sendMessage("Your turn!");