Follow the rules in the project.
DISCLAIMER: There is actually no way to beat the AI. No matter what, it will succeed. If you beat it, then something is wrong with the code. It physically can't lose.