Ironclad interview question

Code a lightweight game AI