added test script to lauch rockets, nicer explosions.
This commit is contained in:
parent
4712926be2
commit
9ce106c179
11 changed files with 127 additions and 35 deletions
15
test/amok.sh
Executable file
15
test/amok.sh
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
#!/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)
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue