added scripts to extract information from game logs

master
melvin 2013-04-15 17:18:05 +08:00
parent ff381a5f3c
commit 28b01aa12e
2 changed files with 30 additions and 0 deletions

15
exp/extract_games.awk Normal file
View File

@ -0,0 +1,15 @@
BEGIN {
FS = "\t"
}
/Saved Player/ {
getline
getline
if ($8 == "0") {
C = "W"
} else {
C = "B"
}
print ai1 " " ai2 " " C
}

15
exp/extract_mcts.awk Normal file
View File

@ -0,0 +1,15 @@
/^MCTS/ {
show = 1
}
/^\*/ {
if (show) {
show = 0
print $0
}
}
/lost the game/ {
print
print ""
}