Change défaut vers dic/ods8

This commit is contained in:
Philippe Chataignon 2020-04-23 13:26:54 +02:00
parent 09d52fa826
commit 8356d9a817
2 changed files with 2 additions and 2 deletions

View file

@ -391,7 +391,7 @@ main(int argc, char *argv[])
Game game ;
Dico dic ;
unsigned short int state[3] ;
static char* nomdic = "../../wxscrab/dic/ods7.dico" ;
static char* nomdic = "../dic/ods8.dico" ;
unsigned long int seed = time(0) ;
int noprint = 0;
int notiret = 0;

View file

@ -24,7 +24,7 @@ def gen_part(dico, minpoint=None, mintour=None, maxtour=None):
num = r.randrange(0,2**32)
seed = r.randrange(0,2**16)
print(num, seed)
p = subprocess.Popen([pgm, "-d", f"../gen/{dico}.dico", "-n", str(num), "-s", str(seed)], stdout=subprocess.PIPE)
p = subprocess.Popen([pgm, "-d", f"../dic/{dico}.dico", "-n", str(num), "-s", str(seed)], stdout=subprocess.PIPE)
result = p.communicate()[0]
tree = ET.fromstring(result)
tot = int(tree.find("resume/total").text)