This implementation is built with Java and packaged using Maven.
- Java: OpenJDK 22.0.1
- Maven: Version 3.9.9
- JUnit/Mockito: Version 5
- Docker: For containerization (optional)
Ensure the following tools are installed on your system:
- Git: For cloning the repository.
- Java/OpenJDK: This project uses OpenJDK Runtime Environment Temurin-22.0.1+8 (build 22.0.1+8). Any OpenJDK should work, i.e Amazon Corretto.
- Maven: For building and managing dependencies.
- Docker: To run the application in a containerized environment.
This project was generated using Maven with the following command:
mvn archetype:generate -DgroupId=rbo13.github.minesweeper -DartifactId=minesweeper -DarchetypeArtifactId=maven-archetype-simple -DarchetypeVersion=1.5 -DinteractiveMode=false
To get started, clone the repository and navigate to the project directory:
git clone https://github.com/rbo13/minesweeper.git
cd minesweeper
To run tests, use Maven:
mvn clean test
If Maven is not installed, use the provided Maven wrapper:
./mvnw clean test
# if an error occurred that says permission denied: ./mvnw
chmod +x ./mvnw
# run the command again
./mvnw clean test
or, if on Windows using Command Prompt (cmd):
mvnw.cmd clean test
The application is packaged as a JAR file. Below are instructions for running it on different operating systems.
- Build the application:
mvn clean install
# or using the maven wrapper
mvnw.cmd clean install
- Run the JAR file:
java -jar .\target\minesweeper-1.0.jar
- Build the application:
mvn clean install
# or using the maven wrapper
./mvnw clean install
- Run the JAR file:
java -jar target/minesweeper-1.0.jar
docker build -t minesweeper .
docker run -it minesweeper:latest
For more information about the design decisions of this project, please refer to the design.md document.