Skip to content

Commit

Permalink
Alles Muss Rot
Browse files Browse the repository at this point in the history
Es wurde zum Beginn erst ein mal alles in Rot gemacht.
  • Loading branch information
NoobieBubie1 authored Oct 27, 2023
1 parent 9d7b2c8 commit 63fdf17
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Teams/red_titans/Challenge1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import socket

HOST = "127.0.0.1" # localhost
PORT = 1234 # pixelflut-port

with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock:
sock.connect((HOST, PORT))
XMIN=641
XMAX=1279
YMIN=721
YMAX=1079
for y in range(YMIN, YMAX+1):
for x in range(XMIN, XMAX+1):
msg = bytes(f"PX {y} {x} FF0000\n", "UTF-8")
sock.sendall(msg)

0 comments on commit 63fdf17

Please sign in to comment.