package com.jigdraw.draw.model;

/**
 * Jigsaw difficulty levels
 *
 * @author Jay Paulynice
 */
public enum Difficulty {
    EASY, MEDIUM, HARD;

    /**
     * Given level of difficulty return the number of rows and columns
     * for the jigsaw
     *
     * @param level the difficulty level
     * @return the number of rows/columns
     */
    public static int getNumberOfPieces(Difficulty level) {
        switch (level) {
            case EASY:
                return 2;
            case MEDIUM:
                return 4;
            case HARD:
                return 8;
        }
        return 2;
    }
}

@@ -262,21 +262,26 @@
  @param 
-level
+difficulty
  the dif
@@ -395,21 +395,26 @@
 ficulty 
-level
+difficulty
 ) %7B%0A    
@@ -425,21 +425,26 @@
 switch (
-level
+difficulty
 ) %7B%0A    

clean up