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 time | |
| import random | |
| class Game: | |
| untergrenze = 1 | |
| obergrenze = 100 | |
| def frage_nach_zahl(prompt="Bitte Zahl eingeben", | |
| untergrenze = 1, |
This file has been truncated, but you can view the full file.
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
| #!/usr/bin/env python | |
| # | |
| # Hi There! | |
| # | |
| # You may be wondering what this giant blob of binary data here is, you might | |
| # even be worried that we're up to something nefarious (good for you for being | |
| # paranoid!). This is a base85 encoding of a zip file, this zip file contains | |
| # an entire copy of pip (version 25.1.1). | |
| # | |
| # Pip is a thing that installs packages, pip itself is a package that someone |
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 time | |
| import random | |
| class Game: | |
| untergrenze = 1 | |
| obergrenze = 100 | |
| def hauptmenü(): | |
| print("------------------------------------") | |
| print("------- zahlenratenspiel -----------") |
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: | |
| # class variables | |
| number = 0 | |
| zoo = {} | |
| def __init__(self, **kwargs): | |
| self.number = Monster.number | |
| Monster.number += 1 |
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 socket | |
| def start_client(): | |
| # Create a socket object | |
| client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
| client_socket.connect(('localhost', 12345)) | |
| print("Connected to server.") | |
| while True: | |
| # Send a message to the server |
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 FreeSimpleGUI as sg | |
| #sg.popup_ok("hallo") | |
| database = { | |
| "player": { | |
| "name":"player", | |
| "filename":"player1.png", | |
| "attack":15, | |
| "defense":21, |
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 FreeSimpleGUI as sg | |
| import math | |
| import random | |
| col_player_1_r=sg.Column(layout=[ | |
| [sg.Multiline(default_text="history:\n", | |
| autoscroll=True, | |
| key="history", | |
| disabled=True, | |
| size=(50,10))] |
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 FreeSimpleGUI as sg | |
| import math | |
| import random | |
| col_rechts=sg.Column(layout=[ | |
| [sg.Multiline(default_text="history:\n", | |
| autoscroll=True, | |
| key="history", | |
| disabled=True, | |
| size=(50,10))] |
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 | |
| # see https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life | |
| startfield=""" | |
| ...X............ | |
| .......XXX.....X | |
| ...............X | |
| ...............X | |
| ................ |
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 | |
| # diagramme mit turtle grafik | |
| # französisch-Noten | |
| noten = [2,2,1,5,5,4,2,3,1,1] | |
| # Liniengrafik | |
| WIDTH = 1200 | |
| HEIGHT = 800 |