Skip to content

Commit

Permalink
fix(ts-starter): fix agent name, code cleanup (#190)
Browse files Browse the repository at this point in the history
- update agent name from simple to miner accordingly
- minor code cleanup
  • Loading branch information
paradite authored Apr 14, 2022
1 parent cbc3fe5 commit ec90612
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,7 @@ interface StepPlayerInfoRaw {
status: string;
}

interface StepPlayerInfo {
action: Record<string, string>;
observation: Observation;
reward: number;
status: string;
}

const example = 'node --require ts-node/register interpreter.ts 2 ./main.py simple [out.log] [replay.json]';
const example = 'node --require ts-node/register interpreter.ts 2 ./main.py miner [out.log] [replay.json]';

const DEFAULT_LOG_FILE_NAME = 'out.log';
const DEFAULT_RESULT_FILE_NAME = 'replay.json';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"test": "mocha --require ts-node/register test/**/*.ts",
"compile": "tsc",
"package": "tsc && tar -czvf submission.tar.gz main.py dist/*",
"interpreter": "node --require ts-node/register interpreter.ts 2 ./main.py simple",
"interpreter": "node --require ts-node/register interpreter.ts 2 ./main.py miner",
"watch4": "kaggle-environments run --environment kore_fleets --agents ./main.py ./main.py ./main.py ./main.py --log out.log --render '{\"mode\": \"html\"}' --out replay.html && google-chrome replay.html",
"watch2": "kaggle-environments run --environment kore_fleets --agents ./main.py ./main.py --log out.log --render '{\"mode\": \"html\"}' --out replay.html && google-chrome replay.html",
"watch1": "kaggle-environments run --environment kore_fleets --agents ./main.py --log out.log --render '{\"mode\": \"html\"}' --out replay.html && google-chrome replay.html",
Expand Down

0 comments on commit ec90612

Please sign in to comment.