mirror of
https://github.com/philippechataignon/wxscrab_gen
synced 2024-11-15 19:48:05 +01:00
Change défaut vers dic/ods8
This commit is contained in:
parent
09d52fa826
commit
8356d9a817
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue