View turtlerace2.py
This file contains 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 | |
screen = turtle.getscreen() | |
screen.setup(width=1.0, height=0.9, startx=0, starty=0) | |
width = 1000 | |
height = 500 | |
screen.setworldcoordinates(0,0,width, height) |
View cannon_turtle3.py
This file contains 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 math | |
import random | |
screen = turtle.getscreen() | |
screen.setup(width=1.0, height=0.9, startx=0, starty=0) | |
#width, height = screen.window_width(), screen.window_height() | |
width = random.randint(20000,50000) | |
height = width | |
screen.setworldcoordinates(0,0,width, height) |
View orzlib1.py
This file contains 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
class Game: | |
"""containers for everything""" | |
monsters = {} | |
#items = {} | |
locations = {} | |
player = None | |
current_room = None | |
class Location: |
View minesweeper1.py
This file contains 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 PySimpleGUI as sg | |
import random | |
#sg.theme("Material1") | |
#sg.theme_element_background_color(color = "#000000") | |
#sg.theme_background_color(color="#FFFFFF") | |
#sg.theme_button_color(color="#FFFFFF") | |
class Game: |
View jojofuadventure1.py
This file contains 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 adventurelib as adv | |
class Game: | |
current_room = None | |
player_inventory = adv.Bag() | |
bedroom = adv.Room(""" | |
This is a bedroom. It's big and comfortable | |
""") |
View tictactoe_flet.py
This file contains 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 flet as ft | |
import random | |
class Game: | |
game_turn = 1 | |
player = "Player One" | |
char = "X" | |
View tictactoe.py
This file contains 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
player1 = "Spieler1" | |
player2 = "Spieler2" | |
def display(): | |
for y, line in enumerate(board): | |
print(f"{line[0]}|{line[1]}|{line[2]}") | |
if y < 2: | |
print("-+-+-") | |
View flet_zahlenraten2.py
This file contains 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 flet as ft | |
import random | |
class Game: | |
versuch = 1 | |
log = [] | |
def main(page: ft.Page): | |
secret = random.randint(1,1000) |
View flet_zahlenraten.py
This file contains 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 flet as ft | |
import random | |
def main(page): | |
secret = random.randint(1,1000) | |
versuch = 1 | |
def add_clicked(e): | |
#page.add(ft.Checkbox(label=new_task.value)) | |
zahl = int(eingabe.value) | |
eingabe.value = "" |
View puzzle_with_turtle.py
This file contains 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 | |
""" | |
crocodile puzzle | |
move and rotate tiles | |
""" | |
import random | |
def paint_head(size=100, big=20, medium=15, small=7): |
NewerOlder