This commit is contained in:
Jonas Zeunert
2022-08-31 17:14:36 +02:00
parent 83e60af546
commit e2c77b9b3f
5 changed files with 27 additions and 8 deletions

View File

@@ -1,5 +1,6 @@
from lamps.Lamp import Lamp
from itertools import cycle
import time
class LampGroup:
def __init__(self, lamps):
@@ -44,6 +45,9 @@ class LampGroup:
self.currentLamp = next(self.lamp_cycle)
self.currentLamp.activate()
PLAYER_LAMPS = LampGroup([
Lamp("Can Play 1"),
Lamp("Can Play 2"),