KlassischeKeplerKriege/test/amok.sh

16 lines
289 B
Bash
Raw Normal View History

#!/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)