Week 9 · Wednesday 4 November · last weekly report

Make a game

Tonight you take a small working game and make it your own. Change how it looks, change how it plays, then use it to test one guess about yourself. It saves a data file of every turn, just like the reaction-time page from Week 2.

Work on your own. If you missed your 5-minute project chat last week, the instructor will find you during class.

Start here · 10 minutes

Play the starter game

Click the game, press Start, then press SPACE (or tap) for a star and do nothing for a bomb. It gets faster every 10 turns. How far can you get?

Get the file

Your copy

  1. In VS Code, open your course repository and press Sync. A new folder week09-game/ should appear with game.html and README.md.
  2. No folder? Make week09-game/ yourself and save these two files into it: game.html and README.md.
  3. Open game.html in your browser. After every change: save, then reload.
How the file works

Settings first

Near the top of the script is a block called SETTINGS. It holds the title, the pictures, the speed, the lives, and the points. Change those first. Below it is the game itself, written in short functions with a comment on each one.

goThings: ["⭐"],     // press for these
stopThings: ["💣"],   // do NOT press for these
lives: 3,
speedUp: 0.85,
Level 1 · about 30 minutes

Make it look like yours

Change the title, the rules, the pictures (any emoji or a short word), the colours at the top of the file, and the sounds. Make it a game you would actually want to play. Write down each change in your README as you go.

Level 2 · about 40 minutes

Change how it plays

Now change the code itself, not only a setting. Pick one idea, or use your own. Start with the easy ones.

If you ask an AI tool for help, read what it gives you, try it, and say in your README what you kept and what you changed.

Level 3 · about 30 minutes

Test one guess about yourself

Your game already saves every turn: the level, the kind of thing, whether you pressed, how fast, and whether you were right. Write one guess in your README before your final round. For example: “I will make more mistakes on bombs once the game gets faster,” or “I will be slower on the bonus thing than on stars.” Then play one full game, press Save my data, and move game-week09.csv into week09-game/. Open the CSV and count. Did your guess hold up?

Last 20 minutes

Arcade, then save

If you like, let the person next to you play your game for a minute. Just for fun: no marks, and do not save their data. Then Commit and Sync in VS Code, and paste on Canvas.

Your project

Could this become your project?

Yes, if you want. A game you keep building, with a question it helps answer, is a fine final project. Copy it into week10-project/ and keep going over Reading Week.

Class night

Plan for tonight

18:00 Play
Play the starter game. Who got furthest?
18:10 Get the file
Sync, find week09-game/, open game.html.
18:20 Level 1
Make it look like yours.
18:50 Level 2
Change how it plays.
19:30 Break
Ten minutes.
19:40 Level 3
Write your guess, play a full game, save the CSV.
20:15 Write it up
Finish week09-game/README.md.
20:40 Arcade and save
Play a neighbour’s game if you like. Commit, Sync, paste on Canvas.

Weekly report (10 points): in Canvas, paste the path week09-game/README.md, the name of your game and your three changes, your guess and what happened, and whether you used an AI tool. Due Tuesday 10 November, 17:00. This is the last weekly report. Marking: rubrics page.