wormpy/worm.py

12 lines
177 B
Python
Raw Normal View History

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