1 | /* |
2 | * Copyright (c) 2005 The PseudoQ Project. |
3 | * |
4 | * This file is part of PseudoQ. |
5 | * |
6 | * PseudoQ is free software; you can redistribute it and/or modify |
7 | * it under the terms of the GNU Lesser General Public License as published by |
8 | * the Free Software Foundation; either version 2.1 of the License, or |
9 | * (at your option) any later version. |
10 | * |
11 | * PseudoQ is distributed in the hope that it will be useful, |
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 | * GNU Lesser General Public License for more details. |
15 | * |
16 | * You should have received a copy of the GNU Lesser General Public License |
17 | * along with PseudoQ; if not, write to the Free Software |
18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
19 | */ |
20 | |
21 | package net.sourceforge.pseudoq.model; |
22 | |
23 | /** |
24 | * Enumeration of supported puzzle types. Also includes a friendly name and |
25 | * description for each type. |
26 | * @author <a href="http://sourceforge.net/users/stevensa">Andrew Stevens</a> |
27 | */ |
28 | public enum PuzzleTypeEnum { |
29 | TINY("Tiny Sudoku", "A trivial 4 x 4 grid. Very easy."), |
30 | MINI("Mini Sudoku", "A 6 x 6 grid, with 2 x 3 rectangular blocks."), |
31 | MINI_X("Mini SudokuX", "A 6 x 6 grid with 2 x 3 rectangular blocks. Also uses the diagonals."), |
32 | SMALL_X("Small SudokuX", "An 8 x 8 grid with both 2 x 4 and 4 x 2 rectangular blocks. Also uses the diagonals."), |
33 | STANDARD("Sudoku", "Standard 9 x 9 grid."), |
34 | SUPER("Super Sudoku", "A 12 x 12 grid with 3 x 4 rectangular blocks."), |
35 | LARGE("Large Sudoku", "Large 16 x 16 grid with 4 x 4 blocks."), |
36 | STANDARD_SAMURAI("Samurai Sudoku", "5 overlapping 9 x 9 grids."); |
37 | |
38 | private String name; |
39 | |
40 | private String description; |
41 | |
42 | PuzzleTypeEnum(String name, String description) { |
43 | this.name = name; |
44 | this.description = description; |
45 | } |
46 | |
47 | public String getName() { |
48 | return name; |
49 | } |
50 | |
51 | public String getDescription() { |
52 | return description; |
53 | } |
54 | |
55 | public String toString() { |
56 | return name; |
57 | } |
58 | |
59 | } |