Hackathon/code/tempCodeRunnerFile.py

6 lines
384 B
Python

if lantern.id == detector.id - 1 or lantern.id == detector.id + 1:
lantern.light_up(176, 179, 0, 255)
if lantern.id == detector.id - 2 or lantern.id == detector.id + 2:
lantern.light_up(176, 179, 0, 128)
if lantern.id == detector.id:
lantern.light_up(255, 255, 0, 255)