Page 1 of 1

vpuzzle - shuffle your display

Posted: Tue 30 May 2017, 18:46
by goingnuts
This program shuffles a display like those old 16 square plastic puzzles. Source from here but I modified slightly to accept moving speed as parameter. Source, applied patch and static linked bin attached.

Usage: vpuzzle
[-numsquares {number-of-squares}] Num squares both ways
[-xnumsquares {num-squares-x}] Num squares across
[-ynumsquares {num-squares-y}] Num squares down
[-display {display}] Display to use
[-border] Draw a border
[-solve] Undo moves at end
[-xmax n] Width of area
[-ymax n] Height of area
[-max n] size of square area
[-speed n] Speed of movement

Re: vpuzzle - shuffle your display

Posted: Tue 30 May 2017, 18:52
by belham2
goingnuts wrote:This program shuffles a display like those old 16 square plastic puzzles. Source from here but I modified slightly to accept moving speed as parameter. Source, applied patch and static linked bin attached.

Usage: vpuzzle
[-numsquares {number-of-squares}] Num squares both ways
[-xnumsquares {num-squares-x}] Num squares across
[-ynumsquares {num-squares-y}] Num squares down
[-display {display}] Display to use
[-border] Draw a border
[-solve] Undo moves at end
[-xmax n] Width of area
[-ymax n] Height of area
[-max n] size of square area
[-speed n] Speed of movement

Hi Goingnuts,

Is this just "picpuz" using the desktop-background? How's it different than picpuz I have in my pups now, that I use to scramble my desktop background I am currently using? You mean this can be used "live", as while the desktop is "live", so that other objects on the desktop are not affected?? Or are they scrambled too? And, if so, does each scrambled piece open whatever that desktop link is designed to open?? And how is that even possible??

Sorry I am so lost trying to figure this out.... :oops:

Posted: Tue 30 May 2017, 19:06
by goingnuts
I don't know "picpuz" :oops: so...
But this one scrambles everything shown on the desktop. And it seems that actions done on the scrambled desktop while running vpuzzle reflects what is originally on the unscrambled desktop.
Hope this clears something - otherwise just try running the program from an xterm ex.: ./vpuzzle -numsquares 3 -speed 10