Skip to content
Snippets Groups Projects
Commit 607369af authored by Ethan Robert's avatar Ethan Robert
Browse files

Added room choice for teacher

parent e774c283
Branches
No related tags found
No related merge requests found
......@@ -57,7 +57,33 @@ class ConnectionHandler:
return changes
connections = ConnectionHandler(("DEBUG"))
checkedRoom = False
roomChoice = Null
while not checkedRoom:
print("Salles disponibles : ")
for r in RANGES:
if len(r) == 2:
print(r[1] + '(' + r[0].lower() + ')')
print("-----------------------")
room = input("Quelle est votre salle ?")
found = False
for r in RANGES:
if room.upper() in r:
found = True
roomChoice = r
checkedRoom = found
if not checkedRoom:
print("Salle introuvable. Réessayez.\n")
connections = ConnectionHandler(roomChoice)
while True:
......@@ -67,7 +93,7 @@ while True:
print(changes[c])
if len(changes) > 0:
print("----------------------------------------------------")
print("----------------------------------------------------------------")
sleep(2)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment