||1 week ago|
|.gitignore||5 years ago|
|.travis.yml||5 years ago|
|2.png||6 years ago|
|LICENSE||6 years ago|
|README.md||1 week ago|
|client.c||1 week ago|
|makefile||1 week ago|
|server.c||1 week ago|
Multiplayer Snakes Game
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
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.