Skip to content

AbhyudayaSharma/Snake

Repository files navigation

Snake

Build Status Language grade: C/C++

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.

Building on Linux

  1. Install libncurses
    • For Debian based distros: apt-get install libncurses5-dev
    • For Fedora: yum install ncurses-devel
    • For OpenSUSE: zypper in ncurses-devel
  2. Clone the repository
  3. Run make
  4. Run the executable game

Building on macOS

  1. Download Xcode from Apple Store
  2. Run xcode-select --install
  3. Clone the repository and cd into the cloned folder
  4. Run make

Run make clean to remove compiled files

Building on Windows with Visual Studio 2017

  1. Clone the repository with --recurse-submodules flag.
  2. Navigate to PDCurses\wincon and run nmake -f Makefile.vc using the Developer Command Prompt.
  3. 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.

Releases

No releases published

Packages

No packages published