JeremyLARDENOIS / pokemon-python

A simple combat platform online in round by round
3 stars 0 forks source link
pokemon python python-3 python3

pokemon-python

A simple, online, round-by-round combat platform.


Simple functionality

You can use pokepy_server.py to create a server and pokepy.py to join an existing server.

 With parameters

Default IP is localhost and default port is 3333. You can change this setting on the server and client using the CLI.

Example for server:

./pokepy_server.py --host 127.0.0.2 --port 1234

Equivalent example for client:

./pokepy.py --host 127.0.0.2 --port 1234

What's the purpose?

This project was initially a project I made to enter into an Engineer school, and it worked!

It's based on Pokemon and the game of Roshambo (AKA Rock-Paper-Scissors or Shi-Fu-Mi), where each attack does damage based on the attack of the opponent.

Build and launch the server with docker

docker build -t pokepy .
docker run -p 3333:3333 -d pokepy

 Test of lint (with pylint)

pylint pokepy_server.py
pylint pokepy.py

Test of type (with mypy)

mypy pokepy_server.py pokepy.py

To Do

Bug Reports and Contributions

Don't hesitate to create Issues or Pull Request if you want to contribute to this project, ask questions, or just give feedback. Enjoy!

Crédits

Main coder: JérémyLARDENOIS

Beautify and correct errors in README: TurnipGuy30