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.
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?
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,
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.
Now change the code itself, not only a setting. Pick one idea, or use your own. Start with the easy ones.
goThings and stopThings. Which ones are hardest to tell apart?level += 1 happens and add lives += 1; under it.showThing(), add a third kind next to "go" and "stop".style.transform = "translate(...)".localStorage so it is still there after a reload.endTurn(), for example how long the blank wait was.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.
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?
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.
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.
week09-game/, open game.html.week09-game/README.md.
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.