The virtual worlds in which most games take place have a huge advantage over the real world in terms of AI and its perception. Unlike the real world, we know the amount of literally everything that exists in the virtual world: somewhere among the game’s resources there is a list that lists everything that exists in the game. You can search this list by specifying the desired query, and instantly get information that your agent can use to make more informed decisions. In doing so, you can either stop at the first object of interest to your agent, or you can get a list of all objects within a given range so that the agent can make the best decision about the world around them.