A sliding puzzle game built with the pyFormex engine.
164.1. Functions defined in module apps.SlidingPuzzle
-
apps.SlidingPuzzle.create_grid(nx, ny, cs=64, bg='yellow', fg='black', pt=24, st='normal', wt='normal', sw=1, gr='northwest', lw=3, grid=True, numbers=False, ofs=1, output=None)[source]
Create an image of an (nx,ny) grid with numbered cells.
If successful, returns the image filename, else None.
-
apps.SlidingPuzzle.sliding_puzzle(filename, nx, ny, shownumbers=False, level='Random', numcolor='black')[source]
Create a sliding puzzle of size (nx,ny) from the image filename