Skip to content

Commit

Permalink
Added in switch in gitc.py (not yet accessible via parameter though) …
Browse files Browse the repository at this point in the history
…to avoid printing on stderr
  • Loading branch information
mdelorme committed Mar 8, 2017
1 parent 0eeef9f commit 6083e88
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion engines/gitc.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,16 @@
scores = [0, 0, 0]

def log(x):
sys.stderr.write(x+'\n')
if not stfu:
sys.stderr.write(x+'\n')

if len(sys.argv) > 1:
seed = sys.argv[1]
else:
seed = 123456789

stfu_mode = False

random.seed(seed)


Expand Down

0 comments on commit 6083e88

Please sign in to comment.