-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #753 from FisherLuba/dev
Add bomb or filled case rule and update the config to add minesweeper
- Loading branch information
Showing
11 changed files
with
145 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...gup/puzzle/minesweeper/elements/Bomb.java → ...puzzle/minesweeper/elements/BombTile.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
package edu.rpi.legup.puzzle.minesweeper.elements; | ||
|
||
import edu.rpi.legup.model.elements.NonPlaceableElement; | ||
public class Bomb extends NonPlaceableElement{ | ||
public Bomb() { | ||
super("MINE-UNPL-0001", "Bomb", "A bomb", "edu/rpi/legup/images/nurikabe/tiles/NumberTile.png"); | ||
public class BombTile extends NonPlaceableElement{ | ||
public BombTile() { | ||
super("MINE-UNPL-0001", "Bomb", "A bomb", "edu/rpi/legup/images/minesweeper/tiles/Bomb.png"); | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
src/main/java/edu/rpi/legup/puzzle/minesweeper/elements/EmptyTile.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package edu.rpi.legup.puzzle.minesweeper.elements; | ||
|
||
import edu.rpi.legup.model.elements.PlaceableElement; | ||
|
||
public class EmptyTile extends PlaceableElement { | ||
|
||
public EmptyTile() { | ||
super("MINE-PLAC-0002", "Empty", "An empty tile", "edu/rpi/legup/images/minesweeper/tiles/Empty.png"); | ||
} | ||
} |
6 changes: 3 additions & 3 deletions
6
...gup/puzzle/minesweeper/elements/Flag.java → ...puzzle/minesweeper/elements/FlagTile.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
package edu.rpi.legup.puzzle.minesweeper.elements; | ||
|
||
import edu.rpi.legup.model.elements.PlaceableElement; | ||
public class Flag extends PlaceableElement{ | ||
public Flag() { | ||
super("NURI-PLAC-0001", "Flag", "The flag", "edu/rpi/legup/images/nurikabe/tiles/BlackTile.png"); | ||
public class FlagTile extends PlaceableElement{ | ||
public FlagTile() { | ||
super("MINE-PLAC-0001", "Flag", "The flag", "edu/rpi/legup/images/nurikabe/tiles/BlackTile.png"); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
src/main/java/edu/rpi/legup/puzzle/minesweeper/elements/UnsetTile.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package edu.rpi.legup.puzzle.minesweeper.elements; | ||
|
||
import edu.rpi.legup.model.elements.NonPlaceableElement; | ||
|
||
public class UnsetTile extends NonPlaceableElement { | ||
|
||
public UnsetTile() { | ||
super("MINE-UNPL-0002", "Unset", "An unset tile", "edu/rpi/legup/images/minesweeper/tiles/Unset.png"); | ||
} | ||
|
||
} |
4 changes: 4 additions & 0 deletions
4
...n/java/edu/rpi/legup/puzzle/minesweeper/elements/minesweeper_elements_reference_sheet.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
MINE-UNPL-0001 : BombTile | ||
MINE-PLAC-0001 : FlagTile | ||
MINE-PLAC-0002 : EmptyTile | ||
MINE-UNPL-0002 : UnsetTile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters