nissy-core

The "engine" of nissy, including the H48 optimal solver.
git clone https://git.tronto.net/nissy-core
Download | Log | Files | Refs | README | LICENSE

variations.py (400B)


      1 # Small example of nissy Python module usage
      2 # See the solve.py example for more details on how this works
      3 
      4 import sys, os
      5 sys.path.append(os.getcwd())
      6 sys.path.append(os.getcwd() + os.path.sep + "python")
      7 import nissy
      8 
      9 moves = "R U' Bw2 M D' x' F B(E2 F D B' Lw2 U2 U' S2 B)"
     10 
     11 print("Changing the last quarter turns of {} gives:".format(moves))
     12 for s in nissy.variations(moves, "lastqt"):
     13 	print(s)