What's the idea of online game synchronization about MoBa or csgo

In the hero League and csgo, players and players can fight against AI online. But how to control this AI? If it is controlled by the server, then the server can’t easily control and judge the situation, such as the current terrain, what? If it is controlled by the client and multiple clients, will the server collect AI execution results? In this case, it’s not very stable, because the client may have different data. If it’s the unified analysis of the result data, then every client must run these AI. Isn’t it a bit wasteful? What’s the design idea of csgo about the synchronization of computer AI? Pls Thanks!

CS:GO has the server in charge of any bots and syncs to the clients. No idea has League implements it.

So how does it judge the terrain factors? After all, the server has no image interface, no client-side things

any one can help?