Skip to content

Raivias/assimilation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Assimilation!

Assimilation is an altered version of tag where the teams grow

Rules

  1. On creation each agent is assigned a team(color)
  2. Agents are able to fire their color in the form of bullets at other agents
  3. If an Agent is hit by a bullet it becomes an agent of that team

System Flow

Sequence

  1. Initialize Server
  2. If no agents wait for agents to join
    2a) When someone joins (Observer or Agent)
  • Add to subscriber list
  • Send current state
  1. Send all agents AgentMove msg
  • Kill Agents if they don't move in time/timeout?
  • Wait for all msgs to return
  1. Update map
  • Kill any agents that intersect?
  • Update each item location. Check for interactions if items intersect
  • Generate joined agents at random non-intersecting location
  • Remove any bots that have quit
  1. Send MapUpdate to Observers and Agents
  • if no ACK remove from list
  1. Go back to 2

Objects

Class

More Info

APIs

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages