2021-08-18 13:44:50 -07:00
|
|
|
import ctypes
|
|
|
|
import sys
|
|
|
|
|
|
|
|
worm = ctypes.cdll.LoadLibrary('./libworm.so')
|
|
|
|
|
|
|
|
if len(sys.argv) == 2:
|
2021-08-18 13:48:45 -07:00
|
|
|
worm.set_size(int(sys.argv[1]))
|
2021-08-18 13:44:50 -07:00
|
|
|
else:
|
2021-08-18 13:48:45 -07:00
|
|
|
worm.set_size(7)
|
|
|
|
|
|
|
|
worm.run_worm()
|