Skip to content

Commit

Permalink
Merge pull request #3 from NoobieBubie1/main
Browse files Browse the repository at this point in the history
Alles muss Rot
  • Loading branch information
cramosk authored Oct 27, 2023
2 parents e30d3f8 + 36558d6 commit 7c91263
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 7c91263

Please sign in to comment.