1
0
mirror of https://github.com/gsi-upm/soil synced 2024-11-14 07:22:29 +00:00
soil/examples/pubcrawl
J. Fernando Sánchez 3776c4e5c5 Refactor
* Removed references to `set_state`
* Split some functionality from `agents` into separate files (`fsm` and
`network_agents`)
* Rename `neighboring_agents` to `neighbors`
* Delete some spurious functions
2022-10-17 21:49:31 +02:00
..
pubcrawl.py Refactor 2022-10-17 21:49:31 +02:00
pubcrawl.yml WIP: all tests pass 2022-10-13 22:43:16 +02:00
README.md All tests pass 2018-12-08 18:17:21 +01:00

Simulation of pubs and drinking pals that go from pub to pub.

Th custom environment includes a list of pubs and methods to allow agents to discover and enter pubs. There are two types of agents:

  • Patron. A patron will do three things, in this order:
    • Look for other patrons to drink with
    • Look for a pub where the agent and other agents in the same group can get in.
    • While in the pub, patrons only drink, until they get drunk and taken home.
  • Police. There is only one police agent that will take any drunk patrons home (kick them out of the pub).