A networked version of paper soccer game in modern console.
Tested on:
gcc
withC++20
supportcmake
(3.18)googletest
(1.12.1)protobuf
(libprotobuf-dev
package) (3.12.4)protoc
(protobuf-compiler
package) (3.12.4) - a command line toolboost
(libboost-all-dev
package) (1.74)boost.asio
boost.program_options
ncurses
(libncurses-dev
package) (6.3)- also terminal (e.g.
gnome-terminal
) supporting font fallback because "weird" Unicode characters are used
git clone https://github.com/MateuszJanda/paper-soccer --recursive
cd paper-soccer
cmake CMakeLists.txt
make
# To run tests
make runTests
./runTests
Run as server and wait for connection (default port 8787
)
./paper-soccer --wait
# Equivalent
./paper-soccer --wait --port 8787
Connect to localhost server
./paper-soccer --connect localhost
# Equivalent
./paper-soccer --connect localhost --port 8787
Key | Direction |
---|---|
Enter | End turn |
u | Undo player move |
n | Start new game, when this game end |
Ctrl+c | Exit |
Ball placement can be changed by mouse or keyboard.
Key | Direction |
---|---|
w | Top |
x | Bottom |
a | Left |
d | Right |
q | Top-Left |
e | Top-Right |
z | Bottom-Left |
c | Bottom-Right |
clang-format -style='{BasedOnStyle: WebKit, Cpp11BracedListStyle: true, SpaceBeforeCpp11BracedList: false}' -i *.?pp