code repair robot - thinkfun · code repair programming game series click here for lesson plan....
TRANSCRIPT
CAN YOU FIX THEROBOT BRAIN?
CAN YOU FIX THEROBOT BRAIN?
//
ROBOTREPAIRCODE
PROGRAMMING GAME SERIES
Click here for lesson plan
Example 1:
Example 2:
Example 3:
Activating the Colored WiresYou activate one or more colored wires by placing a power cell onto the circuit board node that directly connects to the wire.
CODEPROGRAMMING GAME SERIES
ROBOT REPAIR//
In ROBOT REPAIR, you are a Cybernetics Specialist tasked with repairing a fleet of personal assistant robots. Each robot is reprogrammed by a different combination of wires and power cells. To repair each robot, you’ll need to activate the colored wires by placing power cells on numbered nodes touching those wires.
Repair instructions are written in the form of clues, and your job is to interpret the clues and identify where to place power cells to activate the specified wires.
Now let’s start repairing!
3
BlueBlue
2
Green
Introduction & How to Play
Red
Place Power Cell Here...
Place Power Cell Here...
...Red Wire Activates
3
Red
Place Power Cell Here...
...Red and Blue Wires Activate
...Entire Red Wire Activates
Red Red 3
Blue
2
4
Boolean Expressions and Logic Gates Clues and Sensors
CLUES: Each of the clue panels contains at least one clue about a colored wire.
SENSORS: Each clue contains a sensor that connects back to the colored wires.
LOGIC GATES: Clue panels containing more than one clue also contain a logic gate. The meaning of each logic gate is found at the bottom of each challenge.
BOOLEAN EXPRESSION: Each challenge contains one Boolean expression made up of one or more clue panels. From this information, you will be able to determine on which node you must place a power cell.
CODEPROGRAMMING GAME SERIES
ROBOT REPAIR//
AND TRUE/FALSE
OR
TRUE/FALSE
TRUE/FALSE
TRUE/FALSE
TRUE/FALSE
Red
RedNOT
NOT
Green
ORTRUE/FALSE
TRUE/FALSE Red
GreenTRUE/FALSE
How to Play (Cont’d)
Boolean Expression
TRUE/FALSE RedNOTSensor
Clue #2
Clue #1
Red
Red
NOTTRUE/FALSE Red
If the Red wire is powered ON, then Red is True and NOT Red is False.
If the Red wire is NOT powered on, then Red is False and Not Red is True.
3FALSE
RedTRUE
NOTTRUE/FALSE Red
1 3Red
TRUE
FALSE
Clue Panels
ORTRUE/FALSE
TRUE/FALSE Red
GreenTRUE/FALSE
Logic Gate
Red Red1
Cyan
Demo Challenge & Solution
What is the correct node on whichto place the power cell so that the Red wire does not power on?
CODEPROGRAMMING GAME SERIES
ROBOT REPAIR//
SOLUTION: Power cell goes on . Placing it here will power the Cyan wire but not power the Red wire.
NOTE: Power cells
activate any wire(s) that touch it. In this case,
it is the Cyan wire.
AND TRUE/FALSE
NOTTRUE/FALSE Red
AND TRUE/FALSE
NOTTRUE/FALSE Red
TRUE
TRUE
2
3 1
Cyan
2
3
Place Power Cell on Node 3
NOTE: This needs to be TRUE to win.
CODEPROGRAMMING GAME SERIES
ROBOT REPAIR//
TO SOLVE: Place one power cell onto a numbered node to power the colored wires that make the Boolean expression TRUE.
1 2
3 4
Green
Red
Blue
Yellow
TRUE/FALSE
TRUE/FALSE
AND TRUE/FALSE
BlueYellow
Mini Challenge 01
Logic Gates Used:
AND All Clue Panels TRUE 1 or more
CODEPROGRAMMING GAME SERIES
ROBOT REPAIR//
TO SOLVE: Place one power cell onto a numbered node to power the colored wires that make the Boolean expression TRUE.
NOTTRUE/FALSE NOTTRUE/
FALSE
AND TRUE/FALSE
BlueGreen
1 2
3 4
Green
Red
Blue
Yellow
Mini Challenge 02
Logic Gates Used:
AND All Clue Panels TRUE 1 or more
CODEPROGRAMMING GAME SERIES
ROBOT REPAIR//
1 2
3 4
Green
Red
Blue
Yellow
AND TRUE/FALSE
OR
TRUE/FALSE
TRUE/FALSE
TRUE/FALSE
Blue
Yellow
TRUE/FALSE
TO SOLVE: Place one power cell onto a numbered node to power the colored wires that make the Boolean expression TRUE.
Mini Challenge 03
Green
Logic Gates Used:
OR 2 or more At least 1 sensor TRUE
CODEPROGRAMMING GAME SERIES
ROBOT REPAIR//
1 2
3 4
Green
Red
Blue
Yellow
AND TRUE/FALSE
OR
TRUE/FALSE
TRUE/FALSE
TRUE/FALSE
TRUE/FALSE
Red
RedNOT
TO SOLVE: Place one power cell onto a numbered node to power the colored wires that make the Boolean expression TRUE.
Mini Challenge 04
Green
Logic Gates Used:
OR 2 or more At least 1 sensor TRUE
CODEPROGRAMMING GAME SERIES
ROBOT REPAIR//
TO SOLVE: Place one power cell onto a numbered node to power the colored wires that make the Boolean expression TRUE.
1 2
3 4
Green
Red
Blue
Yellow
AND TRUE/FALSE
Logic Gates Used:
OR 2 or more At least 1 sensor TRUE
OR
TRUE/FALSE
TRUE/FALSE
TRUE/FALSE
Red
Yellow
OR
TRUE/FALSE
TRUE/FALSE
TRUE/FALSE
Yellow
RedNOT
TRUE/FALSE BlueNOT
Mini Challenge 05
CODEPROGRAMMING GAME SERIES
ROBOT REPAIR//
TO SOLVE: Place one power cell onto a numbered node to power the colored wires that make the Boolean expression TRUE.
1 2
3 4
Green
Red
Blue
Yellow
AND TRUE/FALSE
IFFTRUE/FALSE
TRUE/FALSE
TRUE/FALSE
Red
Logic Gates Used:
IFF Both sensors TRUE or both sensors FALSE Exactly 2
TRUE/FALSE
Green
Red
Mini Challenge 06
CODEPROGRAMMING GAME SERIES
ROBOT REPAIR//
TO SOLVE: Place one power cell onto a numbered node to power the colored wires that make the Boolean expression TRUE.
AND TRUE/FALSE
IFFTRUE/FALSE
TRUE/FALSE
TRUE/FALSE
IFFTRUE/FALSE
TRUE/FALSE
TRUE/FALSE
1 2
3
4 5
Green
Red
Blue
Yellow
Purple
Purple
Cyan
Cyan
Logic Gates Used:
IFF Both sensors TRUE or both sensors FALSE Exactly 2
Blue
BluePurple
Green
Mini Challenge 07
CODEPROGRAMMING GAME SERIES
ROBOT REPAIR//
Logic Gates Used:
TO SOLVE: Place one power cell onto a numbered node to power the colored wires that make the Boolean expression TRUE.
1 2
3
4 5
Green
Red
Blue
Yellow
Purple
Purple
Cyan
Cyan
AND TRUE/FALSE
XOR
TRUE/FALSE
TRUE/FALSE
TRUE/FALSE
XOR
TRUE/FALSE
TRUE/FALSE
TRUE/FALSE
Blue
Blue
Purple
Yellow
Mini Challenge 08
XOR Exactly 2 One sensor TRUE and one sensor FALSE
CODEPROGRAMMING GAME SERIES
ROBOT REPAIR//
TO SOLVE: Place one power cell onto a numbered node to power the colored wires that make the Boolean expression TRUE.
1 2
3
4 5
Green
Red
Blue
Yellow
Purple
Purple
Cyan
Cyan
Logic Gates Used:
NOR 2 or more All sensors FALSE
AND TRUE/FALSE
NOR
TRUE/FALSE
TRUE/FALSE
TRUE/FALSE
Red
Blue
Mini Challenge 09
CODEPROGRAMMING GAME SERIES
ROBOT REPAIR//
Logic Gates Used:
TO SOLVE: Place one power cell onto a numbered node to power the colored wires that make the Boolean expression TRUE.
1 2
3
4 5
Green
Red
Blue
Yellow
Purple
Purple
Cyan
Cyan
AND TRUE/FALSE
Green
NAND
TRUE/FALSE
TRUE/FALSE
TRUE/FALSE
TRUE/FALSE
YellowNOT
Red
Mini Challenge 10
NAND 2 or more At least 1 sensor FALSE
SolutionsCODEPROGRAMMING GAME SERIES
ROBOT REPAIR//
3
3
4
4
4
3
2
2
2
1
CHALLENGE 01
CHALLENGE 02
CHALLENGE 03
CHALLENGE 04
CHALLENGE 05
CHALLENGE 06
CHALLENGE 07
CHALLENGE 08
CHALLENGE 09
CHALLENGE 10