ReadMe Info

This commit is contained in:
arizotaz committed 2026-04-26 19:07:54 -04:00
1 parent 96b1b6b848
commit 5541aeb799
7 files changed
+30

No files matched your search

+1
View File
@@ -3,3 +3,4 @@ netpong
netpong.dSYM/ netpong.dSYM/
netpong.c netpong.c
build/* build/*
*.DS_Store
+29
View File
@@ -0,0 +1,29 @@
# Netpong
## About
Netpong is a simple, terminal-based Pong game designed for two players. Each player runs the program on their own machine. One player starts the game in server mode, while the other connects to the host. Once connected, both players can enjoy a classic Pong match together in semi-real time.
This project is written in C and uses standard file descriptor–based sockets for network communication. It was developed to meet the requirements of a Systems Programming course at Kent State University. Netpong is intended to run in a Unix-like environment and supports gameplay over a local network or across the internet with proper port forwarding.
## The Game
![](images/Serve.png "Player serves the ball")
When the game starts, the connecting client is assigned the initial serve. After serving, that client controls the ball’s movement and uses their paddle to send it toward the opponent. Once the ball crosses the “net” boundary, control is transferred to the other player, and the ball is no longer displayed on the original client’s screen.
![](images/Play.png "Play Ball")
This process repeats as players return the ball back and forth, with control switching each time it crosses sides. The rally continues until one player fails to return the ball.
![](images/End.png "Game Over")
When a player exhausts all opportunities to return the ball, the host determines that the game has ended and calculates the final score to declare a winner. Both applications then terminate, and a new session can be started by relaunching the program.
## Compilation
The program requires a Unix Environment as it relies on ncurses to "draw" to the terminal.
To make the program, navigate to the root of this project and just type `make`
You should now be able to run `./netpong`. Send the project or the executable to another computer to play between two machines
### Usage
```
Server: ./netpong <port>
Client: ./netpong <ip_address or domain_name> <port>
```
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 MiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 MiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 MiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 MiB