MinMax algorithm

If I'm human, I want the max result

If I'm AI, I want the minimum result.