Skip to content
This repository has been archived by the owner on Jan 14, 2024. It is now read-only.

AlexAegis/elte-or

Repository files navigation

Osztott Rendszerek

Build Status Codacy Badge Maintainability Test Coverage librariesio: dependencies snyk: vulnerabilities code style: prettier

ELTE-IK 2018-19/2

Requirements

  • Java 11

BattleShips

Now With Exclusive Battle Royale Mode!

Running through gradle

Start up a server

./gradlew :battleships:run --args="server"
# Or for real time mode:
./gradlew :battleships:run --args="server --mode=ROYLE"

Then start some clients to join. This will start a swing terminal client even when ran from a terminal

./gradlew :battleships:run --args="client"

If you use the built jar, it will start normally in a terminal

./gradlew :battleships:build
cd battleships/build/libs
java -jar ./battleships-1.1.1.jar client

Check other options:

./gradlew :battleships:run # --args="help" # <- defaults to help
./gradlew :battleships:run --args="client help"
./gradlew :battleships:run --args="server help"

Using the built jar

java -jar battleships-1.0.0.jar

If you want to run the client on Windows use javaw instead of java! (Or use WSL)

(Lanterna can't use CMD or PS to display)

javaw -jar battleships-1.0.0.jar client

For everything else like reading the help prompts or running the server using java is fine

java -jar battleships-1.0.0.jar client -h

Download!

BattleShips screenshot

The screenshot was made with the cool-retro-term


# Task Test
1 Hello World Test
2 Arguments Test
3 Fibonacci Test
4 Fibonacci Trace Test
5 Reverse Polish Notation Test
# Task Test
1 Read Test
2 Print Test
3 Ships Test
Shared model
Table
Ship
Coord
Direction
# Task
1 Continuous file write from standard input
2 BasicBattleShips from standard input
3 Basic Server/Client example
4 Basic BattleShips Server and Client
Shared model
Admiral
Table
Ship
Coord
Shot
Direction

Build

./gradlew clean build

Test

./gradlew clean test

Run as application

./gradlew run

If for some reason VS Code throws an error upon running a debug session that it can't build the workspace, but the project can be built by hand, try cleaning it with Ctrl+Shift+P >Java: Clean the Java language server workspace

Throubleshoot

If the application looks blurry and you're using different scaling settings on windows other than 100%, try setting the Right-Click->Properties->Compatibility Tab's "Override the high DPI scaling behavior" to "System" on the java.exe/javaw.exe you're using. (Or use a WSL Shell)

Technologies

Oracle JDK

Reactive components for concurrent solutions

Text GUI library

Command line interface

Build tool

Unit testing framework

Code coverage tool

Recommendations

IDE for everything. Settings

IDE for java.

Font with ligatures

Services

Continuous Integration solution

Code Quality monitoring

Maintainability and Coverage reports

Vulnerability detection

Dependency watcher

Badges to look cool