https://github.com/maze1377/pong-client-server-monitor
online Pong game with monitor
https://github.com/maze1377/pong-client-server-monitor
game pong pong-game python3 simple simple-game socket socket-programming
Last synced: 19 days ago
JSON representation
online Pong game with monitor
- Host: GitHub
- URL: https://github.com/maze1377/pong-client-server-monitor
- Owner: maze1377
- Created: 2020-01-07T20:57:40.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-01-07T21:00:19.000Z (over 5 years ago)
- Last Synced: 2023-08-14T15:10:41.276Z (over 1 year ago)
- Topics: game, pong, pong-game, python3, simple, simple-game, socket, socket-programming
- Language: Python
- Homepage:
- Size: 27.3 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pong Cup Games
## How to run game?
> cd Pong> change Conf/conf.py to select game
> python3 server.py or ./server.py
> python3 client.py or ./client.py
> python3 client.py or ./client.py
> python3 monitor.py or ./monitor.py (if load speed of your monitor is slow, please remove "/usr/bin/ibus-daemon" why? I don't know)
## Simple Game
> change game to 'Simple' in conf.py> change server config in ./Conf/Server_Simple_Conf.py
> run server.py
> run client.py for each client
> run monitor.py and press ctrl+c to connect
> to change algorithm in python ...
> in monitor_config
```python
monitor_height=800 # set height for monitor window
monitor_width=800 # set width for monitor window
```
#### Your client
> change YourClient.py in get_action function \
function should return one of ** u, d ** directions \
run your code with `./start.sh your (my_team)` \
**your** is type of the team (default is **auto**) \
**my_team** is team name that is optional
#todo
- [] add encryption to connection (Method exist)
- [] callculate time connection in vmware mode and on local network mode
- [] ui more fun
- [] more fun roll