Ah, I see. So the actual command I was trying to execute was
I checked controller.py, and got an error message:
Traceback (most recent call last):
File "C:\Users\p\controller.py", line 3, in <module>
exec "from " + sys.argv[1] + " import *"
IndexError: list index out of range
Here's the script:
import sys
from tichu import *
exec "from " + sys.argv[1] + " import *"
def exampleFeatureFunction(hand):
fv=[0, 0, 0]
fv[0]=1
if (hand[DRAGON]>0):
fv[1]=1.0
if (hand[PHOENIX]>0):
fv[2]=1.0
return fv
def alwaysSayNo(hand, model):
return False
if __name__=="__main__":
if (sys.argv[3]=="baseline"):
evaluate(sys.argv[2], None, alwaysSayNo)
elif (sys.argv[3]):
evaluate(sys.argv[2], sys.argv[3], eval(sys.argv[4]))
There are other files (the "tichu" file it's importing from); let me know if you need to see more.