lehrkraefte:blc:informatik:glf24:laby:labyrintklasse

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
lehrkraefte:blc:informatik:glf24:laby:labyrintklasse [2025/05/25 11:38] – [Aufgabe 1] Ivo Blöchligerlehrkraefte:blc:informatik:glf24:laby:labyrintklasse [2025/06/05 08:31] (current) – [Aufgabe 1] Ivo Blöchliger
Line 58: Line 58:
     * z.B. wird mit ''l[1,1].nachbar(1).zustand(1, True)'' die Wand nach unten der Zelle unterhalb der Zelle 1,1 geöffnet.     * z.B. wird mit ''l[1,1].nachbar(1).zustand(1, True)'' die Wand nach unten der Zelle unterhalb der Zelle 1,1 geöffnet.
  
-<hidden Lösungsvorschlag>+<hidden Lösungsvorschläge>
 <code python> <code python>
-a = [8011411198105101114101, 110, 32, 83, 105, 101, 32, 101, 115, 32, 100, 111, 99, 104, 32, 101, 114, 115, 116, 32, 109, 97, 108, 32, 115, 101, 108, 98, 101, 114, 46, 46, 46] +for xy in range(4): 
-print("".join(map(lambda x:chr(x),a)))+  lab[2,xy].zustand(1True)  # Nach unten öffnen 
 +  lab[xy,2].zustand(0True)  # Nach rechts öffnen 
 +</code> 
 + 
 +<code python> 
 +for richtung in range(4): 
 +    lab[2,2].zustand(richtungTrue) 
 +    lab[2,2].nachbar(richtung).zustand(richtungTrue)
 </code> </code>
 </hidden> </hidden>
  • lehrkraefte/blc/informatik/glf24/laby/labyrintklasse.1748173103.txt.gz
  • Last modified: 2025/05/25 11:38
  • by Ivo Blöchliger