char *pv, varName[80];\r
if(sscanf(line+5, "string times @ %c", &dummy) == 1) { printf("# %s", line+12); continue; }\r
if(sscanf(line+5, "string variant %s", varName) == 1) {\r
- if(!strstr(STDVARS, varName) && (p = strstr(line+18, " startpos "))) printf("setup (-) 8x8+0_fairy %s", p+10);\r
+ if(!strstr(STDVARS, varName)) {\r
+ int files = 8, ranks = 8, hand = 0; char parent[80];\r
+ if(p = strstr(line+18, " files ")) sscanf(p+7, "%d", &files);\r
+ if(p = strstr(line+18, " ranks ")) sscanf(p+7, "%d", &ranks);\r
+ if(p = strstr(line+18, " pocket ")) sscanf(p+8, "%d", &hand);\r
+ if(p = strstr(line+18, " template ")) sscanf(p+10, "%s", parent); else strcpy(parent, "fairy");\r
+ if(p = strstr(line+18, " startpos "))\r
+ printf("setup (-) %dx%d+%d_%s %s", files, ranks, hand, parent, p+10);\r
+ }\r
continue;\r
}\r
if(collect && (pv = strstr(line+5, "currmove "))) {\r