Atlassian interview question

Program a game logic, nothing too hard or confusing.