1b1dc4a3a26852e1b554ee350af4875465a1e259
The agnostic struct consists of a 'Mode' enum, and a 'Sock' type. The 'Sock' can be either a Server or Client, depending on the type of game. This allows polymorphism, as I don't have to worry about whether the game is being run in Server or Client mode, and I can call the same methods regardless.
Description
A network-based Pong game, written in C++.
Netpong v0.2
Latest
Languages
C
55.4%
C++
43.7%
Meson
0.5%
Shell
0.4%