Sometimes you want to TRADE what's inside two boxes. To do that you need a THIRD empty box (call it temp). Read carefully:
a = 7 b = 4 temp = a (now temp = 7) a = b (now a = ?) b = temp (now b = ?)
Rocket and Raven are playing tag. Track each player's score in a variable.
ROCKET tag = +1. RAVEN tag = +2. MISS = -1.
| Round | Event | rocket_score | raven_score |
|---|---|---|---|
| Start | (none) | 0 | 0 |
| 1 | Rocket tags Raven | ? | ? |
| 2 | Raven tags Rocket | ? | ? |
| 3 | Rocket misses | ? | ? |
| 4 | Raven tags Rocket | ? | ? |
| 5 | Rocket tags Raven | ? | ? |