A Snake game made in C using libncurses
For Windows, the executable is built inside the Debug
or the Release
folder, depending on the configuration chosen while building through Visual Studio. The executable is called game
on Linux and macOS.
Note: PDCurses submodule is required to build on Windows but is NOT required for Linux and macOS. However, Xcode is required on macOS. On Linux, it required to install the ncurses package for your distro.
- Install libncurses
- For Debian based distros:
apt-get install libncurses5-dev
- For Fedora:
yum install ncurses-devel
- For OpenSUSE:
zypper in ncurses-devel
- For Debian based distros:
- Clone the repository
- Run
make
- Run the executable
game
- Download Xcode from Apple Store
- Run
xcode-select --install
- Clone the repository and
cd
into the cloned folder - Run
make
Run make clean
to remove compiled files
- Clone the repository with
--recurse-submodules
flag. - Navigate to
PDCurses\wincon
and runnmake -f Makefile.vc
using the Developer Command Prompt. - Open the
Snake.sln
with Visual Studio. Select x86 Debug or Release and click on the run button.
We are able to to make only 32-bit binaries as PDCurses currently provides only a 32 bit library.