| @@ -25,6 +25,8 @@ | |||||
| #include <grpcpp/impl/codegen/stub_options.h> | #include <grpcpp/impl/codegen/stub_options.h> | ||||
| #include <grpcpp/impl/codegen/sync_stream.h> | #include <grpcpp/impl/codegen/sync_stream.h> | ||||
| #undef SendMessage | |||||
| namespace protobuf | namespace protobuf | ||||
| { | { | ||||
| @@ -13,8 +13,16 @@ do | |||||
| flag=0 | flag=0 | ||||
| fi | fi | ||||
| mv ./compile_log$i.txt $bind/compile_log$i.txt | mv ./compile_log$i.txt $bind/compile_log$i.txt | ||||
| elif [ ! -f "${bind}/player${i}.py" ]; then | |||||
| flag=0 | |||||
| elif [ -f "${bind}/player${i}.py" ]; then | |||||
| pushd ../python | |||||
| cp -f $bind/player$i.py ./PyAPI/AI.py | |||||
| python3 -m compileall ./PyAPI | |||||
| if [ ! -f ./PyAPI/__pycache__/AI.cpython-39.pyc ]; then | |||||
| flag=0 | |||||
| else | |||||
| rm -rf ./PyAPI/__pycache__/AI.cpython-39.pyc | |||||
| fi | |||||
| popd | |||||
| fi | fi | ||||
| let "i++" | let "i++" | ||||
| done | done | ||||