Skip to content

D-Elyes/BattleShip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BattleShip

##Running the game

Run the game using the IDE Intellij :

You can run the game using Intellik by importing it to the IDE then right click on BattleShip.scala > Run 'BattleShip' Intellij

Using command line

Or you can use the command line. You must install SbT : https://www.scala-sbt.org/download.html?_ga=2.224585818.1963758690.1539057558-1925506192.1539057556

Then open the command prompt and go to the root source folder of the project (BattleShip) then run :

sbt compile

Then run :

sbt run

BattleShip

Game Content

At the beginning you have a menu which contains 4 choices :

  • Player Vs player in which you will play vs another player

  • Player vs Ai : You will play vs an Ai which has 3 levels : Beginner, Medum and Hard BattleShip

  • Ai vs Ai : The goal of this mode is to test the Ai levels, it will run a 100 round between every level of the Ais and you will have the result in a file called ai_proof.csv

At the start of a game you will be asked to choose the position of your ship, its orientation (vertical or horizontal) and the BattleShip

After you placed a ship it will be displayed and move to the next ship BattleShip

You have 5 ships for every game : Ship of size 5, ship of size 4, twi ships with the size 3 and one with the size 2.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages