Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
kazimuth committed Jan 14, 2018
1 parent 8deae1b commit 7aa88a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion battlecode-engine/src/controller/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ impl GameController {
turn: TurnMessage { changes: vec![] },
stream: Some(stream),
player_key: Some(player_key),
time_left_ms: 10000,
time_left_ms: Some(turn.time_left_ms)
})
}

Expand Down
3 changes: 2 additions & 1 deletion examplefuncsplayer-python/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import random
import sys
import traceback
import time

import os
print(os.getcwd())
Expand Down Expand Up @@ -30,7 +31,7 @@

while True:
# We only support Python 3, which means brackets around print()
print('pyround:', gc.round())
print('pyround:', gc.round(), 'left', gc.get_time_left_ms())

# frequent try/catches are a good idea
try:
Expand Down

0 comments on commit 7aa88a0

Please sign in to comment.