29 lines
816 B
Java
29 lines
816 B
Java
package dev.kske.minesweeper;
|
|
|
|
import java.io.Serializable;
|
|
|
|
/**
|
|
* Defines board configuration consisting of board with and height as well as mine count.
|
|
* <p>
|
|
* Project: <strong>Minesweeper</strong><br>
|
|
* File: <strong>BoardConfig.java</strong><br>
|
|
* Created: <strong>01.04.2019</strong><br>
|
|
* Author: <strong>Kai S. K. Engelbart</strong>
|
|
*/
|
|
public class BoardConfig implements Serializable {
|
|
|
|
private static final long serialVersionUID = -6083006887427383946L;
|
|
|
|
public static final BoardConfig EASY = new BoardConfig(8, 8, 10), MEDIUM
|
|
= new BoardConfig(16, 16, 40),
|
|
HARD = new BoardConfig(30, 16, 99);
|
|
|
|
public final int width, height, mines;
|
|
|
|
public BoardConfig(int width, int height, int mines) {
|
|
this.width = width;
|
|
this.height = height;
|
|
this.mines = mines;
|
|
}
|
|
}
|