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 vpython as vp | |
level1 = """ | |
################################# | |
#1..ö..........#................# | |
#...ö....#######................# | |
#...............................# | |
#...............................# | |
#..............######...........# | |
#..............#................# |
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 | |
breite = 1200 | |
höhe = 800 | |
turtle.setup(breite,höhe) | |
turtle.speed(0) | |
stall = [turtle.Turtle(), | |
turtle.Turtle(), |
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
# Example file showing a circle moving on screen | |
import pygame | |
# pygame setup | |
pygame.init() | |
screen = pygame.display.set_mode((1280, 720)) | |
clock = pygame.time.Clock() | |
running = True | |
dt = 0 |
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 | |
class Salat(turtle.Turtle): | |
salatliste = [] | |
def __init__(self): | |
super().__init__() | |
self.hideturtle() |
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 | |
class Stern(turtle.Turtle): | |
sternenliste = [] | |
löschen = False # muss man einen Stern löschen? | |
def __init__(self, pos, startfarbe=(1,1,0), endfarbe=(1,1,1)): | |
super().__init__() | |
self.hideturtle() |
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
start = """<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
table { | |
font-family: arial, sans-serif; | |
border-collapse: collapse; | |
width: 100%; | |
} |
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 vpython as vp | |
import random | |
class Game: | |
beams = [] | |
scene=vp.canvas(title="Space fight") | |
# xyz | |
#vp.arrow(axis=vp.vector(1,0,0), color=vp.color.red) |
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 vpython as vp | |
# xyz | |
#vp.arrow(axis=vp.vector(1,0,0), color=vp.color.red) | |
vp.text(pos=vp.vector(1.5,0,0), text="x", | |
color=vp.color.red, height=0.1) | |
#vp.arrow(axis=vp.vector(0,1,0), color=vp.color.green) | |
vp.text(pos=vp.vector(0,1.5,0), text="y", | |
color=vp.color.green, height=0.1) | |
#vp.arrow(axis=vp.vector(0,0,1), color=vp.color.blue) |
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 random | |
import PySimpleGUI as sg | |
spieler = 1 | |
summe = 0 | |
rows = 6 # max. 26 | |
cols = 7 # max. 26 | |
gewinnt = 4 |
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 random | |
spieler = 1 | |
summe = 0 | |
rows = 6 # max. 25 | |
cols = 17 # max. 25 | |
gewinnt = 5 | |
spielzug = 0 | |
#feld = [ | |
# [0,0,0,0,0,0,0], | |
# [0,0,0,0,0,0,0], |
NewerOlder