|
本帖最后由 caiyidie 于 2017-11-19 20:56 编辑
komi = 7.5
if 'KM' in C.node.keys():
komi = float(C.node['KM'].data[0])
if is_handicap_game and is_japanese_rules:
old_komi = komi
komi = old_komi + handicap_stone_count
print >>sys.stderr, "Adjusting komi from %f to %f in converting Japanese rules with %d handicap to Chinese rules" % (old_komi,komi,handicap_stone_count)
else:
if is_handicap_game:
komi = 0.5
print >>sys.stderr, "Warning: Komi not specified, assuming %f" % (komi)
这一段关于贴目的脚本
handicap_game,让子棋
这该怎样运用?
|
|