A multiplayer snakes game over TCP/IP
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tfasano1 dda8cd4f54
optimization flag
1 week ago
.gitignore Added travis build status 5 years ago
.travis.yml Set compiler to gcc 5 years ago
2.png Screenshot 6 years ago
LICENSE Initial commit 6 years ago
README.md changes 1 week ago
client.c changes 1 week ago
makefile optimization flag 1 week ago
server.c changes 1 week ago


Multiplayer Snakes Game

Build Status License: MIT

This game is a programming assignment for CPS2003: Systems Programming, a course forming part of my B.Sc. in Mathematics and Computer Science.



This program uses Berkeley sockets together with other Unix/Linux kernel data structures, and therefore only functions properly on terminals in a Unix environment. On Ubuntu (or any Debian system running apt), you can check whether you have ncurses installed, by running

apt -qq list ncurses-bin ncurses-base

in a terminal window. If ncurses is present, the output should produce two lines with the tag [installed] at the end. If no output is produces, then ncurses is not present and you need to install it by running

sudo apt-get install ncurses-dev

in a terminal window.


Clone the repository and run make to generate the server and client programs. Run the server (occupying port 7070) on a machine which is accessible to all clients.

Clients connect to the server by running

./client snakes.sbx.st

in a terminal window, whose size must be at least 80 × 36 cursors.

You could also host your own snake server and connect to that one with the respective domain name.