This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # zuordnung von Puzzlesteinen zu Puzzlespielen kann auf | |
| # verschiende Arten erfolgen | |
| class Lager: | |
| meine_spiele = [] # class variable | |
| class Puzzlespiel: | |
| def __init__(self, bild, anzahl_steine, zustand): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # puzzlespiel | |
| # - bild | |
| # - anzahl steine | |
| # - schierigkeitsgrad | |
| # - altersempfehlung | |
| # - zustand | |
| # - anzahl_fehlende_steine | |
| # - anzahl_kaputte_steine | |
| # - anzahl_beschädigte_steine | |
| # - format (hochkant / quer ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| text = """ | |
| Kanns was schön'res geben | |
| als nach Höh'n zu streben | |
| die noch keines Menschen Fuß betrat ? | |
| Und bei Regenwettern | |
| durch Kamine klettern | |
| und bei Schnee zu reiten auf dem Grat? | |
| """ | |
| print(text) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # conways game of life | |
| # jede zelle hat 8 nachbarzellen | |
| # zelle überlebt in nächster generation mit 2 oder 3 nachbarn | |
| # bei weniger als 2 oder mehr als 3 nachbarn stirbt zelle | |
| überleben = {0 : False, | |
| 1 : False, | |
| 2 : True, | |
| 3 : True, | |
| 4 : False, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import turtle | |
| bildschirm = turtle.Screen() | |
| bildschirm.title('mein turtle Programm') | |
| breite, höhe = 1200, 800 | |
| bildschirm.setup(breite, höhe) | |
| bildschirm.setworldcoordinates(0,0,breite, höhe) # ursprung links unten | |
| alex = turtle.Turtle() | |
| alex.shape("turtle") | |
| alex.speed(0) # sehr schnell, aber Bewegungen bleiben sichtbar |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # FH_Burgenland_Termin03 | |
| #https://docs.python.org/3/ | |
| #https://python.swaroopch.com/ | |
| #https://gist.github.com/horstjens |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import turtle | |
| bildschirm = turtle.Screen() | |
| bildschirm.title('mein turtle Programm') | |
| breite, höhe = 1200, 800 | |
| bildschirm.setup(breite, höhe) | |
| bildschirm.setworldcoordinates(0,0,breite, höhe) # ursprung links unten | |
| alex = turtle.Turtle() | |
| alex.shape("turtle") | |
| alex.speed(0) # sehr schnell, aber Bewegungen bleiben sichtbar |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import random | |
| class Monster: | |
| """ | |
| a generic monste class for everyone | |
| in the dugeon, inlclding the player! | |
| """ | |
| zoo = {} # number:<class instance> | |
| number = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # lukas rogue 001 | |
| level_0 = """ | |
| ################################################### | |
| #.................................................# | |
| #.................................................# | |
| #.................................................# | |
| #.................................................# | |
| #.................................................# | |
| #.................................................# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import turtle | |
| import random | |
| import time | |
| rebels = [] | |
| imperials = [] | |
| laser = [] | |
| tasten = [] |
NewerOlder