Changeset 40

Show
Ignore:
Timestamp:
08/08/08 17:13:49 (5 months ago)
Author:
jean
Message:

sudoku clean

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • scripts/python/sudoku/4x4x4.py

    r39 r40  
    5555  subset2.extend(subset1) 
    5656  subset2.remove(y) 
    57   #print str(permutation)+': '+str(x)+' '+str(y)+' '+str(subset2) 
    58   #permutation+=1 
    5957  for z in subset2: 
    6058   subset3=[] 
     
    8482 
    8583 
    86 # etape 2 : créer les sudokus possibles 331776 possibilitées 
    87 #for x in rotateAllSet.keys(): 
    88 # for y in rotateAllSet.keys(): 
    89 #  for z in rotateAllSet.keys(): 
    90 #   for v in rotateAllSet.keys(): 
    91 #    allSudokus[permutation]=[x,y,z,v] 
    92 #    permutation+=1 
    93  
    9484 
    9585count=1 
     
    10999print "nombre de grilles generees : "+str(len(allSudokus)) 
    110100 
    111 # 
    112 # 4,3,2,1 100,75,50,25         16/16,12/16,8/16,4/16 
    113 # 4,3,2,1 100,75,50,25         16/16,12/16,8/16,4/16 
    114 # 4,3,2,1 100,75,50,25         16/16,12/16,8/16,4/16 
    115 # 4,3,2,1 100,75,50,25         16/16,12/16,8/16,4/16 
    116 # 
    117 # 4,4,4,4 100,100,100,100      16/16,16/16,16/16,16/16 
    118 # 3,3,3,3 75,75,75,75          12/16,12/16,12/16,12/16 
    119 # 2,2,2,2 50,50,50,50          8/16,8/16,8/16,8/16 
    120 # 1,1,1,1 25,25,25,25          4/16,4/16,4/16,4/16 
    121 # 
    122 # 4,3,4,3 100,75,100,75        16/16,12/16,16/16,12/16 
    123 # 2,1,2,1 50,25,50,25          8/16,4/16,8/16,4/16 
    124 # 4,3,4,3 100,75,100,75        16/16,12/16,16/16,12/16         
    125 # 2,1,2,1 50,25,50,25          8/16,4/16,8/16,4/16 
    126 # 
    127 #         100,9/16,1/2,3/16    4096/4096,2304/4096,2048/4096,768/4096 
    128 #         3/8,9/64,3/16,3/64   1536/4096,576/4096,768/4096,192/4096 
    129 #         1/2,9/64,1/4,3/32    2048/4096,1152/4096,1024/4096,384/4096 
    130 #         1/8,3/64,1/16,1/64   544/4096,96/4096,256/4096,64/4096 
    131 # 
    132 # 
    133 # 
    134 #