Datasets:
ArXiv:
License:
Download data/train/CDZR0/BattleShip/src/battleship/BattleShip.java from RepoFusion/Stack-Repo: direct link, hf CLI and curl.
- Browser
- Download file 675 Bytes
-
https://huggingface.co/datasets/RepoFusion/Stack-Repo/resolve/main/data/train/CDZR0/BattleShip/src/battleship/BattleShip.java
- Command line
-
hf download hf://datasets/RepoFusion/Stack-Repo/data/train/CDZR0/BattleShip/src/battleship/BattleShip.java
-
curl -L -o BattleShip.java https://huggingface.co/datasets/RepoFusion/Stack-Repo/resolve/main/data/train/CDZR0/BattleShip/src/battleship/BattleShip.java
675 Bytes
| package battleship; | |
| import battleship.Utils.Settings; | |
| import java.io.IOException; | |
| import battleship.gui.MenuGUI; | |
| import battleship.Networking.*; | |
| import javafx.application.Application; | |
| import javafx.stage.Stage; | |
| public class BattleShip extends Application { | |
| public static boolean quit = false; | |
| public void start(Stage primaryStage) { | |
| MenuGUI menuGUI = new MenuGUI(); | |
| } | |
| public static void main(String[] args) throws IOException{ | |
| Settings settings = Settings.getInstance(); | |
| ServerManager serverManager = ServerManager.getInstance(); | |
| launch(args); | |
| BattleShip.quit = true; | |
| } | |
| } | |