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 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 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 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 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 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 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 |
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 pygame | |
import random | |
import math | |
class Game: | |
W, H = 1500, 751 | |
FPS = 60 | |
scrollspeed = -2 |
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 pygame | |
import random | |
import math | |
class Game: | |
W, H = 1500, 751 | |
FPS = 60 | |
scrollspeed = -2 |
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 pygame | |
import random | |
class Game: | |
W, H = 1500, 751 | |
FPS = 60 | |
scrollspeed = -2 | |
stargroup = pygame.sprite.Group() |
NewerOlder