covariant.ai interview question

Implement this game with a certain interface