A battleship game.
key | description |
---|---|
w , k , ↑ |
move up |
a , h , ← |
move left |
s , j , ↓ |
move down |
d , l , → |
move right |
q , PgDn , Previous , u |
rotate ship left |
e , PgUp , Next , i |
rotate ship right |
␣ , Home |
place ship, attack |
⏎ |
confirm, attack |
ESC , Ctrl +C , End |
exit program |
1 , 2 , 3 , 4 , 5 |
grab ship with corresponding index |
ncurses
is installed by default. You only have to manually install cmake
.
You can either download CMake directly
or you can use a package manager like Homebrew:
brew install cmake
Then you can continue with Building with CMake
Make sure you have cmake
and ncurses
installed.
Then you can continue with Building with CMake
Windows is not Unix-based. Therefore ncurses
is not available.
To circumvent this, you can use MSYS2.
Follow the installation instructions on this page.
Inside a MSYS2 MinGW x64
Terminal, you can continue with Building with CMake
Make sure that you are in the root of this Repository.
(Where this README.md
resides)
-
create a clean build directory
rm -rf build && mkdir build
-
cd into the build directory
cd build
-
Configure the project using CMake
cmake ..
-
Build the project
cmake --build .
After building, the binary named LavenderTown
(LavenderTown.exe
on Windows) is located under bin/<system>-<arch>
,
where <system>
is your Operating System (e.g. "darwin" under MacOS,
or "linux" under Linux Distributions) and <arch>
is your processors
architecture (e.g. "x86_64" or "aarch64").
Product Owner
(Kilian Schlosser)