Here are the activities that each group will be working on today:
If you are new to CoderDojo and new to computer programming this is where you start:
Scratch – Guided
NOTE: Make sure your computer has sound that works because you will need to listen to instructions in videos. If the sound is not working switch to a different computer if one is available.
Part 1 – Continue working on Quest Game from last week
Complete AT LEAST the following Add-Ons:
- Hide and Seek
- Obstacle obstruction
If you have time, try to finish ALL 6 add-ons but if you are running out of time, make sure you complete the 3 add-ons listed above.
Part 2 – Make it your own game
Use sprites from the library or make your own sprites to turn it into a challenging game. Here is an example of an idea for the game-play that you can use, or you can think up your own game-play ideas.
- when you go to the house you find it is locked and you cannot enter
- when you go to the cave you find you can’t see anything, it’s all black
- in the forest if you look around you can find a key but watch out for the lion – if the lion get’s you, it’s game over!
- after you get the key from the forest you discover that can get into the house
- inside the house you find a candle and you pick it up
- now when you go to the cave with the candle you can see inside the cave
- you see bats flying around – watch out they could be dangerous!
- you also spot some gold in the cave – this is what your goal is, now you just need to dodge the bats to get the gold
Part 3 – Team up with another person and play each other’s Quest games
When you have finished your game, team up with another CoderDojo club member and play each other’s Quest games. Are there any bugs? Can you help each other to fix the bugs?
Scratch – Freeform
Challenge: Make A Cards Game
Do you know any cool card games that would be suitable to turn into a computer game? How about a solitaire game (single player) or a 2 player game where you play against the computer or a friend? To keep this project manageable just pick a 1 player or 2 player game.
To get started you’re going to need a deck of cards. Start by re-mixing this project which has a deck of cards (one sprite with a costume for each card and a costume for the back of the cards):
Re-mix this: https://scratch.mit.edu/projects/128591387/
First Challenge – Shuffle the Deck
What ways can you think of to shuffle your cards? I’m thinking a list would be useful here. You will need to create a shuffling algorithm (an algorithm is a step-by-step set of operations to perform a task). Make a demonstration of your shuffling program.
When you complete this challenge you should have the following:
- At start you should just see a single deck with no cards turned over (just the back of a card)
- When you press the space key one card should be turned over – start in top right of screen the deck should remain where it is until the last card is turned over.
- Each time you press the space key again another card should be turned over. This card should be on top of the previous card but slightly to the right so that you can see what card is under it. You will need 2 rows so that you can see all the cards when all 52 are turned over. It should look something like this as the cards are being dealt out:
- Check that your cards are shuffled differently every time you run it. Make sure that there are no duplicates and no missing cards!
Next Challenge – Start planning your game
Decide on what card game you are going to create and start planning how you are going to make it. If you don’t know many card games that would be relatively straight-forward to program here are some suggestions:
Next Challenge – Set up the deal for your game
For each card game it usually starts by the dealer dealing out the initial cards. Figure out how many cards need to be dealt, whether they should be turned over or not and where on the table the cards should be placed. Use lists to keep track of what cards have been dealt.
Raspberry Pi (with Microcontrollers and other cool stuff)
A collaborative group exploring how computers can interact with the outside world through a range of sensors and controllers. Primarily we’ll be using the Raspberry Pi (http://raspberrypi.org) computer in conjunction with Arduinos (http://arduino.cc) and along the way we’ll learn about Python, C and C++ programming, digital and analogue electronics and about working together.