A Color-Gradient-Sliding-Puzzle in Processing
I made a sliding puzzle game in processing. What makes it a bit different from all the others is, that there are no numbers on the pices but you have it to sort the fields by color-gradient.
click here to give it a try.
this is my Day 21 Project for 30datsofcreativity



I made it easier for me. Changed the size and colors. Just change psiz=.. on 2nd line. Here is the barely modified code:
int[][] field; int psiz=2; int psiz2=psiz*psiz; int state = 0; PFont font;
void setup() { size(300,300); field = new int[psiz][psiz]; shuffle(); font = loadFont("LucidaBright-48.vlw"); }
void draw() { background(0); if (state == 0) {
} else {
} }//draw()
void mousePressed() { if ( state == 0 ) {
} }//mousePressed()
void keyPressed() { if (state == 1 ) {
} }//keyPressed()
void move(int i, int j ) { if ( field[i][j] != -1 ) {
} }//move()
boolean check() { int c =0; for( int j = 0; j < psiz; j++ ) {
} return true; }//check()
void shuffle() { int c = 0; for( int j = 0; j < psiz; j++ ) {
} field[psiz-1][psiz-1] = -1; int x = psiz-1; int y = psiz-1; for(int i =0; i < 16; i++) {
} }//shuffle()