# basic example
```
from agario_bot.bot import BotClient
b = BotClient('botname', speed_rate=1)
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'])
print(surroundings['mass'])
b.move_up()
surroundings = b.get_visible_surroundings()
print(surroundings['cells'])
print(surroundings['food'])
print(surroundings['mass'])
b.move_right()
surroundings = b.get_visible_surroundings()
print(surroundings['cells'])
print(surroundings['food'])
print(surroundings['mass'])
b.move_down()
surroundings = b.get_visible_surroundings()
print(surroundings['cells'])
print(surroundings['food'])
print(surroundings['mass'])
```
# where
- speed_rate - time to execute movement, 1 - one second
- wait_rate - time to wait before server response on client emitted socket
- cells - players
- mass - will be removed
```
from agario_bot.bot import BotClient
b = BotClient('botname', speed_rate=1)
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'])
print(surroundings['mass'])
b.move_up()
surroundings = b.get_visible_surroundings()
print(surroundings['cells'])
print(surroundings['food'])
print(surroundings['mass'])
b.move_right()
surroundings = b.get_visible_surroundings()
print(surroundings['cells'])
print(surroundings['food'])
print(surroundings['mass'])
b.move_down()
surroundings = b.get_visible_surroundings()
print(surroundings['cells'])
print(surroundings['food'])
print(surroundings['mass'])
```
# where
- speed_rate - time to execute movement, 1 - one second
- wait_rate - time to wait before server response on client emitted socket
- cells - players
- mass - will be removed
Metadata
Release files for agario-bot 0.5.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| agario-bot-0.5.1.tar.gz | 2.3 kB | Details |
Release files / agario-bot-0.5.1.tar.gz
| Download URL | agario-bot-0.5.1.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
583e65cb1cf056f669fd0491a26dc7baca58e892dc7bf1432302488acff573fb
|
|
BLAKE2b-256 checksum How to use checksums |
12eba57f1ac3a71ed6f85583adedb29e84538d2d46bf239a6e6e412c0e3a9e2f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |