ELTE-IK 2018-19/2
- Java 11
Now With Exclusive Battle Royale Mode!
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 clientCheck other options:
./gradlew :battleships:run # --args="help" # <- defaults to help
./gradlew :battleships:run --args="client help"
./gradlew :battleships:run --args="server help"java -jar battleships-1.0.0.jarIf 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 clientFor everything else like reading the help prompts or running the server using java is fine
java -jar battleships-1.0.0.jar client -hThe 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 | 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 |
./gradlew clean build./gradlew clean test./gradlew runIf 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
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)
Oracle JDK
Reactive components for concurrent solutions
Text GUI library
Command line interface
Build tool
Unit testing framework
Code coverage tool
IDE for everything. Settings
IDE for java.
Font with ligatures
Continuous Integration solution
Code Quality monitoring
Maintainability and Coverage reports
Vulnerability detection
Dependency watcher
Badges to look cool