Your functions only affect your code through their return values. They have no side-effects.
A pure function is a function where the return value is only determined by its input values, without observable side effects. For this constraint, you must solve the problem only with pure functions.
- No values stored between turns. The game accepts a board as input and returns a board.
- All methods or functions are static