From 44a39db750e8dc5499aa13f884c0476594daef15 Mon Sep 17 00:00:00 2001 From: kfkama Date: Wed, 16 Feb 2022 18:17:21 +0100 Subject: [PATCH] Add class Cell --- src/main/java/Minesweeper/Cell.java | 15 +++++++++++++++ .../java/Minesweeper/MinesweeperGame.java | 0 2 files changed, 15 insertions(+) create mode 100644 src/main/java/Minesweeper/Cell.java rename src/{test => main}/java/Minesweeper/MinesweeperGame.java (100%) diff --git a/src/main/java/Minesweeper/Cell.java b/src/main/java/Minesweeper/Cell.java new file mode 100644 index 0000000..594c53d --- /dev/null +++ b/src/main/java/Minesweeper/Cell.java @@ -0,0 +1,15 @@ +package Minesweeper; + +enum CellType{Number, Bomb} +public class Cell { + public CellType type; + public boolean flagged = false; + public int value = -1; + + public Cell(CellType _type) { + type = _type; + } + + + +} diff --git a/src/test/java/Minesweeper/MinesweeperGame.java b/src/main/java/Minesweeper/MinesweeperGame.java similarity index 100% rename from src/test/java/Minesweeper/MinesweeperGame.java rename to src/main/java/Minesweeper/MinesweeperGame.java