Skip to content

L-Sypniewski/Battleship

Repository files navigation

Battleship game

Building the project

In order to build a project one has to run dotnet build command on a solution file. Assuming the command is run from the root repository folder:

dotnet build

If the command is run outside the root folder:

dotnet build <folder containing solution>/Battleship.sln

Running the project

To run a project dotnet run command needs to be executed. Path to ConsoleBattleships project file should be passed as a parameter:

dotnet run --project <folder containing solution>/ConsoleBattleships/ConsoleBattleships.csproj 

Symbols used in the game

  • Clear (cell have not been shot at) => ' '
  • Hit ship => H
  • Sunk ship => S
  • Missed shot => M

Known issues

Sometimes to make the board appear in the console any key has to be pressed so that board is refreshed.

Test coverage and maintainability

Coverage Status Maintainability

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages