Wikipedia defines “optimization” as the process of modifying a system to make some aspect of it work more efficiently or use fewer resources. Each game has a certain fixed amount of computing resources…