Skip to content

Commit

Permalink
60 -> 120 round peace, global noise,val playout 1600
Browse files Browse the repository at this point in the history
  • Loading branch information
bupticybee committed Sep 13, 2018
1 parent e50801e commit 584f112
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 68 deletions.
5 changes: 3 additions & 2 deletions config/conf.py
Expand Up @@ -20,6 +20,7 @@
batch_size = 256
noup_flag = 'noup'

non_cap_draw_round = 120
sl_epoch = 30
sl_decay_eopch = 20

Expand All @@ -28,9 +29,9 @@
validate_gameplay = 200

train_playout = 800
val_playout = 800
val_playout = 1600

train_temp_round = 30
train_temp_round = 3000
val_temp_round = 12

upload_gameplay_to_server = True
Expand Down
5 changes: 2 additions & 3 deletions gameplays/game.py
Expand Up @@ -50,14 +50,13 @@ def play_till_end(self):
winner = winner_p
break

# TODO remove 60 turn peace and add notact long catch, add no attack peace
remain_piece_round = gameplay.countpiece(self.gamestate.statestr)
if remain_piece_round < remain_piece:
remain_piece = remain_piece_round
peace_round = 0
else:
peace_round += 1
if peace_round > 60:
if peace_round > conf.non_cap_draw_round:
winner = 'peace'
break
print('winner: {}'.format(winner))
Expand Down Expand Up @@ -175,4 +174,4 @@ class ValidationGames(ContinusNetworkPlayGames):
#cn = DistributedSelfPlayGames(network_w=network_a,network_b=network_a,distributed_server='http://10.109.247.219:10087',play_times=40,n_playout=400,auto_update=False,recoard_dir='data/validate')
#cn.play()



92 changes: 46 additions & 46 deletions ipynbs/elo_graph.ipynb

Large diffs are not rendered by default.

34 changes: 17 additions & 17 deletions ipynbs/see_gameplay.ipynb

Large diffs are not rendered by default.

0 comments on commit 584f112

Please sign in to comment.