Skip to content

Simple online snake game client based on TCP/IP protocol communication with server (winsock API)

Notifications You must be signed in to change notification settings

Krypel20/Snake-Online-SFML

Repository files navigation

SnakeSFML

The project includes the creation of a simple snake game and server. In the game, the player controls a snake, collects food and tries to score as many points as possible, while competing with an opponent who exchanges information with the player through a client-server connection using the TCP/IP protocol. The server*, as well as the game, were written in C++, using the Simple & Fast Multimedia Library (SFML) to render graphics and handle events, and the Winsock API to establish a connection to the server.

The project is provided in a raw state that I'm not happy with, at the same time the project itself would need to be rebuilt to connect via a UDP proto-couple if I wanted to improve the gameplay. The code looks disgusting, but at the time I handed over the project, it worked and that was the most important thing for me. It is possible that I will look into improving the style of the code and rebuilding it if I am dying of boredom.

*I made the server available in a separate respository WinsockServer

About

Simple online snake game client based on TCP/IP protocol communication with server (winsock API)

Resources

Stars

Watchers

Forks

Packages

No packages published