I’m struggling to figure out Mission 3 of the Haunted Code Chronicles. I might be overthinking it, but I’m not seeing the connection between the clue and the code (specifically on Objectives 2 and 3).
For mission 1, this is what I have for code to activate the LEDs:
leds.user(0b00011000)
For mission 2, let’s just say the clue is “LED 4 / True and False?”
Help me understand how the code relates to that. I’m not sure how to “read” the truth table with that clue. I’ve been able to brute force my way through the mission, but I’m missing that lightbulb of understanding.
Hi, Thomas:
Thanks for reaching out. I am happy to help.
For Objective 2, you first determine if the puzzle is True or False. That is where the truth table comes into play. For True or False, the answer is False. Then you would turn the one LED, in your case LED 4, off and all other LEDs on. It was tricky to explain, so I understand your confusion.
For another example, say it is LED 2, True or False. Then the answer would be True. LED 2 would be turned on, and all others would be turned off.
Hope that helps!
For objectives 3 and 4, definitely use hint #2. That is the best way. Let the computer do the thinking for you. If you still have problems, feel free to reach out again.
Jill Jones
OK, that I think is making sense. The “True or False” means the two sides of the comparison operator. So if it’s “or” it will always be true unless it’s “False or False.”
So let’s say the hint is “False or False,” LED 4. In that case, LED 4 should be turned off?