BattleShip-Game - This repository contains the code of the BattleShip (Bataille Navale) game programmed in Java.

Overview

Bataille Navale

Auteur :

  • SABIL Mohamed Amine

Comment générer la documentation ?

Placez vous dans le sous-dossier src :

pour générer la documentation des classes du paquetage battleship et du sous paquetage battleship il suffit de saisir dans le terminal la commande : javadoc battleship battleship.util -d ../docs/BATTLESHIP

==> les fichiers générés de la documentation du paquetage battleship se trouve dans le sous répértoire BATTLESHIP du répertoire docs.

pour générer la documentation des classes du paquetage io il suffit de saisir dans le terminal la commande : javadoc io -d ../docs/IO

==> les fichiers générés de la documentation du paquetage io se trouve dans le sous répértoire IO du répertoire docs.

Comment compiler les classes du projet ?

Placez vous dans le sous-dossier src :

pour compiler toutes les classes du paquetage battleship il suffit de saisir dans le terminal : javac battleship/BattleShipMain.java -d ../classes

===> ainsi toutes les classes contenues dans le paquetage battleship et le sous paquetage battleship.util seront compilés car ils sont utilisés dans la classe BattleShipMain

pour compiler la classe Input du paquetage io il suffit de saisir dans le terminal : javac io/Input.java -d ../classes

===> ainsi la classe Input contenu dans le paquetage io sera compilé

Comment compiler puis exécuter les tests ?

placez vous dans la branche principale ..

  • pour compiler les tests: pour le fichier CellTest.java éxécutez la commande: javac -classpath test-1.7.jar test/CellTest.java

puis pour le fichier PositionTest.java éxécutez la commande: javac -classpath test-1.7.jar test/PositionTest.java

puis pour le fichier SeaTest.java éxécutez la commande: javac -classpath test-1.7.jar test/SeaTest.java

puis pour le fichier ShipTest.java éxécutez la commande: javac -classpath test-1.7.jar test/ShipTest.java

  • pour les éxécuter il suffit de saisir: pour CellTest éxécutez la commande: java -jar test-1.7.jar CellTest et pour PositionTest éxécutez la commande: java -jar test-1.7.jar PositionTest et pour SeaTest éxécutez la commande: java -jar test-1.7.jar SeaTest et pour ShipTest éxécutez la commande: java -jar test-1.7.jar ShipTest

Comment créer le jar exécutable ?

Placez vous dans le sous-dossier classes :

  • pour créer le jar il suffit d'executer : jar cvf ../battleship.jar battleship io
  • puis executez la commande : jar cvfm ../battleship.jar ../manifest-ex battleship io
  • pour ajouter le dossier docs et test dans l'archive il suffit de se placer dans la racine .. puis executez la commande : jar cvfm battleship.jar manifest-ex docs test -C classes battleship io

et le jar est donc complet pour l'executer il suffit de se placer dans tp5 toujours et d'executer la commande : java -jar battleship.jar

Comment tester l'exécution du programme ?

pour tester l'execution du programme il suffit d'executer la CLASSE qui contient le main : puis placez vous dans la branche principale du projet :

  • pour executez la commande: java -classpath classes battleship.BattleShipMain

ou

  • executez la commande: java -jar battleship.jar
You might also like...

Desktop/Android/HTML5/iOS Java game development framework

Desktop/Android/HTML5/iOS Java game development framework

Cross-platform Game Development Framework libGDX is a cross-platform Java game development framework based on OpenGL (ES) that works on Windows, Linux

Jan 1, 2023

A complete 3D game development suite written purely in Java.

A complete 3D game development suite written purely in Java.

jMonkeyEngine jMonkeyEngine is a 3-D game engine for adventurous Java developers. It’s open-source, cross-platform, and cutting-edge. 3.2.4 is the lat

Dec 31, 2022

Java / JavaFX / Kotlin Game Library (Engine)

Java / JavaFX / Kotlin Game Library (Engine)

About JavaFX Game Development Framework Why FXGL? No installation or setup required "Out of the box": Java 8-15, Win/Mac/Linux/Android 8+/iOS 11.0+/We

Jan 2, 2023

Jetserver is a high speed nio socket based multiplayer java game server written using Netty and Mike Rettig's Jetlang.It is specifically tuned for network based multiplayer games and supports TCP and UDP network protocols.

Note New version of Jetserver is called Nadron and is in a new netty 4 branch of this same repo. JetServer is a java nio based server specifically des

Dec 14, 2022

[LEGACY] LWJGL 2.X - The Lightweight Java Game Library.

[LEGACY] LWJGL - Lightweight Java Game Library WARNING This is the repository of the original LWJGL, which is no longer actively maintained. Unless yo

Dec 26, 2022

A Java game development framework that deploys to JVM, HTML5, Android and iOS.

PlayN PlayN is a cross-platform Java game development library written in Java that targets HTML5 browsers (via GWT), desktop JVMs, Android and iOS dev

Dec 9, 2022

A Java Swing based game engine

faypixelengine A Java Swing based game engine What is it? A Java game engine that uses swing and can be used to develop interactive games. The idea fo

Aug 26, 2022

A small game written in Java to review words.

这是一个实现网络连接的助记单词游戏 项目的具体功能: 实现多个用户通过网络连机进行游戏 通过对随机下落的六级词汇的补全,在游戏中提高用户的单词水平 记录每次游戏的成绩和情况(答对、答错、未答) 运用的技术及难点: 技术: 运用JavaSwing对游戏进行图形化开发,运用JavaSocket实现C/S

Feb 2, 2022

A simple memory game written in java.

A simple memory game written in java.

What's this? A simple memory game written in java. How to play Download the latest release. Ensure that a compatible java runtime is installed (optima

Jun 26, 2022
Owner
Mohamed Amine SABIL
Computer Science Student at INSA Lyon
Mohamed Amine SABIL
It is a simple java terminal game. I built it in order to practice my code skills that I obtained while I was learning Java.

Java-terminal-game It is a simple java terminal game. I built it in order to practice my code skills that I obtained while I was learning Java. The ga

Baistan Tashkulov 0 Jan 20, 2022
Minecraft Spigot 1.16 - plugin for compass tracking other players. MVP contains tracking closest player available.

Compass Tracker Overview Minecraft Spigot 1.16 Plugin. Plugin sets compass target to closest player in the overworld. Created to use with my friends t

INNIX 3 Nov 15, 2021
Snake-Game - A simple snake game written in java.

What's this? A simple snake game written in java. How to play Download the latest release. Ensure that a compatible java runtime is installed (optimal

Patrick260 4 Oct 31, 2022
Othello PvP (2-Player) Game Application created in Java using Swing and AWT, for playing the Othello game

Othello PvP (2-Player) Game Application created in Java using Swing and AWT, for playing the Othello game, a simple game that played on an 8 by 8 checkered board with 64 double-sided black and white discs. The game is easy to learn, but it takes time to master and develop winning strategies.

Soumyadeep Pal 1 Feb 28, 2022
My Game Engine tested via my Cubecraft Game

My Game Engine tested via my Cubecraft Game Install: mvn -P {your OS name} clean install mvn -P mac clean install mvn -P linux clean install mvn -P wi

null 30 Oct 3, 2022
The game is a 2D side scrolling system, where a player moves left, right, vertically or diagonally to traverse the game.

The game is a 2D side scrolling system, where a player moves left, right, vertically or diagonally to traverse the game.

Ravi Mandal 7 Sep 11, 2022
A simple puzzle game made with Unity to practice the game engine

A simple puzzle game made with Unity to practice the game engine.

Eyüb Salih Özdemir 1 Mar 30, 2022
A basic representation of the 0-player game, "Game-of-Life", a simple example of basic cellular automata

Game-Of-Life-Basic A basic representation of the 0-player game, "Game-of-Life", a simple example of basic cellular automata. A cellular automaton is a

Nikhil Narayanan 5 Oct 27, 2022
Golden Axe (1989) game implemented in java using only standard libraries (Java 2D, Swing, AWT & Java Sound API)

Golden Axe (1989) game implemented in java using only standard libraries (Java 2D, Swing, AWT & Java Sound API), so no external libraries required. Video: https://youtu.be/uevIVLNhQqs

Leo 101 Jul 21, 2022
A Java Game Engine created in Java with LWJGL!

?? Suffler Engine Suffler Game Engine is an engine created in java using OpenGL to Graphics. Currently being developed at Eclipse, and Visual Studio C

Suffler Engine 2 Jul 23, 2022