agario-bot-0.7
توضیحات
Just small python bot client for socket-based agario
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | agario-bot-0.7 |
| نام | agario-bot |
| نسخه کتابخانه | 0.7 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://gitlab.com/prettyGoo/agario-python-bot |
| آدرس اینترنتی | https://pypi.org/project/agario-bot/ |
| مجوز | - |
## agario-python-bot
##### Lightweight client library for writing agario bots in Python
##### socketio server: https://gitlab.com/unidev/agario
##### installation: pip install agario-bot
#### Examples
###### Simplest cycle bot
```python
from agario_bot.bot import BotClient
b = BotClient('prettygoo', wait_rate=0.1)
surroundings = b.get_visible_surroundings()
while True:
b.move_left()
surroundings = b.get_visible_surroundings()
print(surroundings['cells'])
print(surroundings['food'])
b.move_up()
surroundings = b.get_visible_surroundings()
print(surroundings['cells'])
print(surroundings['food'])
b.move_right()
surroundings = b.get_visible_surroundings()
print(surroundings['cells'])
print(surroundings['food'])
b.move_down()
surroundings = b.get_visible_surroundings()
print(surroundings['cells'])
print(surroundings['food'])
```
###### Scary bot, just runs away from everyone one the gameboard
```python
from agario_bot.examples.scary_bot import run_scary_bot
run_scary_bot()
```
##### BotClient arguments
- float:speed_rate - time to execute movement, 1 - one second
- float:wait_rate - time to wait before server response on client emitted socket
- list:cells - players
- mass - will be removed
- string:host - default localhost (0.0.0.0 will not work on Windows, 127.0.0.1 is highly likely not to work as well)
- int:port - must be None for real server deployment
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3 | Python |
نحوه نصب
نصب پکیج whl agario-bot-0.7:
pip install agario-bot-0.7.whl
نصب پکیج tar.gz agario-bot-0.7:
pip install agario-bot-0.7.tar.gz