Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/abhyudayasharma/snake
A Snake game made in C using libncurses
https://github.com/abhyudayasharma/snake
c game linux macos ncurses snake-game windows
Last synced: 17 days ago
JSON representation
A Snake game made in C using libncurses
- Host: GitHub
- URL: https://github.com/abhyudayasharma/snake
- Owner: AbhyudayaSharma
- License: mit
- Created: 2018-08-02T16:45:10.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-08-24T07:22:53.000Z (over 5 years ago)
- Last Synced: 2024-10-29T22:53:42.244Z (2 months ago)
- Topics: c, game, linux, macos, ncurses, snake-game, windows
- Language: C
- Size: 24.4 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Snake
[![Build Status](https://travis-ci.com/AbhyudayaSharma/Snake.svg?branch=master)](https://travis-ci.com/AbhyudayaSharma/Snake)
[![Language grade: C/C++](https://img.shields.io/lgtm/grade/cpp/g/AbhyudayaSharma/Snake.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/AbhyudayaSharma/Snake/context:cpp)A Snake game made in C using libncurses
For Windows, the executable is built inside the
Debug
or theRelease
folder, depending on the configuration chosen while building through Visual Studio. The executable is calledgame
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. Runmake
4. Run the executablegame
## Building on macOS
1. Download Xcode from Apple Store
2. Runxcode-select --install
3. Clone the repository andcd
into the cloned folder
4. Runmake
Run
make clean
to remove compiled files## Building on Windows with Visual Studio 2017
1. Clone the repository with--recurse-submodules
flag.
2. Navigate toPDCurses\wincon
and runnmake -f Makefile.vc
using the Developer Command Prompt.
3. Open theSnake.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.