Datasets:
ArXiv:
License:
Download data/train/CDZR0/BattleShip/src/battleship/Events/ClientEvent.java from RepoFusion/Stack-Repo: direct link, hf CLI and curl.
- Browser
- Download file 393 Bytes
-
https://huggingface.co/datasets/RepoFusion/Stack-Repo/resolve/main/data/train/CDZR0/BattleShip/src/battleship/Events/ClientEvent.java
- Command line
-
hf download hf://datasets/RepoFusion/Stack-Repo/data/train/CDZR0/BattleShip/src/battleship/Events/ClientEvent.java
-
curl -L -o ClientEvent.java https://huggingface.co/datasets/RepoFusion/Stack-Repo/resolve/main/data/train/CDZR0/BattleShip/src/battleship/Events/ClientEvent.java
393 Bytes
| package battleship.Events; | |
| import battleship.DataPackage.GameEndedStatus; | |
| import battleship.Logic.CellStatus; | |
| public interface ClientEvent { | |
| void onMessageReceived(int senderID, String message); | |
| void onYourTurn(); | |
| void onGameEnded(GameEndedStatus status); | |
| void onEnemyHitMe(int i, int j); | |
| void onMyHit(int i, int j, CellStatus status); | |
| void onJoinedEnemy(); | |
| } | |