Skip to content

rbo13/minesweeper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minesweeper

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)

Prerequisites

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.

Optional Requirements

  • Docker: To run the application in a containerized environment.

Project Setup

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

Getting Started

Clone the Repository

To get started, clone the repository and navigate to the project directory:

git clone https://github.com/rbo13/minesweeper.git
cd minesweeper

Running Tests

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

Building and Running the Application

The application is packaged as a JAR file. Below are instructions for running it on different operating systems.

Windows using Command Prompt (cmd):

  1. Build the application:
mvn clean install

# or using the maven wrapper
mvnw.cmd clean install
  1. Run the JAR file:
java -jar .\target\minesweeper-1.0.jar

MacOS or Linux (via WSL2):

  1. Build the application:
mvn clean install

# or using the maven wrapper
./mvnw clean install
  1. Run the JAR file:
java -jar target/minesweeper-1.0.jar

Using Docker:

Building the app

docker build -t minesweeper .

Running the app

docker run -it minesweeper:latest

Design Decisions

For more information about the design decisions of this project, please refer to the design.md document.

Video Recording

Recording

About

The classic minesweeper game built in Java

Resources

Stars

Watchers

Forks

Packages

No packages published