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
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
- Clear (cell have not been shot at) =>
' '
- Hit ship =>
H
- Sunk ship =>
S
- Missed shot =>
M
Sometimes to make the board appear in the console any key has to be pressed so that board is refreshed.