Skip to main content

Just small python bot client for socket-based agario

Project description

# 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agario-bot-0.5.1.tar.gz (2.3 kB view details)

Uploaded Source

File details

Details for the file agario-bot-0.5.1.tar.gz.

File metadata

  • Download URL: agario-bot-0.5.1.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for agario-bot-0.5.1.tar.gz
Algorithm Hash digest
SHA256 583e65cb1cf056f669fd0491a26dc7baca58e892dc7bf1432302488acff573fb
MD5 14ea72044d06653d57434fb1f45ca872
BLAKE2b-256 12eba57f1ac3a71ed6f85583adedb29e84538d2d46bf239a6e6e412c0e3a9e2f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page