data_about_players: By default, players_all now covers players mentioned in the paper...
[gostyle.git] / data_gogod.sh
blobf43b31f73b2fe6552fe6f3fcb97163511656e6bd
1 #!/bin/sh
3 # data_gogod.sh - Generate patterns list for some players in the GoGoD collection
5 # Usage: data_gogod.sh GOGOD_ROOT PLAYERLIST PATDIR
7 gogod=$1; shift
8 players=$1; shift
9 patdir=$1; shift
11 # pattern_byplayer.sh will _append_ to existing state, so clean it up first.
12 rm "$patdir"/*
14 grep -Ff "$players" "$gogod"/GoGoD/GameList.txt | cut -d ' ' -f 1 |
15 # list of SGF files where at least one of the players is interesting
16 while read sgf; do
17 echo $sgf
18 ./pattern_byplayer.sh "$patdir" "$gogod"/Database/*/$sgf.sgf
19 done