KlassischeKeplerKriege/test/amok.sh
2016-10-02 21:06:02 +02:00

15 lines
289 B
Bash
Executable file

#!/usr/bin/env python3
import os
import random
import time
import socket
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(("192.168.0.191", 3490))
for i in range(100):
a = random.randint(0, 360)
msg = str(a) + " \r\n"
s.send(msg.encode())
time.sleep(0.1)