Hello!
Task: in an online game to realize a passive battle, that is, without the participation of a player. The player has fighters, each has a certain amount of damage per second. It is necessary to organize a battle of fighters with enemies, while the player does not take part directly in the battle, but simply watches the battle of his units.
My thoughts: to implement a script that starts every second in crowns and analyzes current, active player battles and organizes a combat round between units. But this approach can hardly be called correct, and most importantly, fast. Please share your thoughts on this.
Technologies: php, mysql, html