1.1 --- a/minesweeper/src/main/java/org/apidesign/demo/minesweeper/MinesModel.java Sat Feb 08 06:23:40 2014 +0100
1.2 +++ b/minesweeper/src/main/java/org/apidesign/demo/minesweeper/MinesModel.java Sat Feb 08 06:36:06 2014 +0100
1.3 @@ -97,6 +97,10 @@
1.4 model.init(10, 10, 10);
1.5 }
1.6
1.7 + @Function static void giveUp(Mines model) {
1.8 + showAllBombs(model, SquareType.EXPLOSION);
1.9 + }
1.10 +
1.11 @ModelOperation static void init(Mines model, int width, int height, int mines) {
1.12 List<Row> rows = new ArrayList<Row>(height);
1.13 for (int y = 0; y < height; y++) {