Parsons problem from Craig'n'Dave

Noughts and crosses - won

Drag the code statements putting them into the correct order in the solution area. Select Get feedback when you have finished. If the solution area turns green, it's correct.
Remember to use correct indenting after def, if, match, case, while and for statements.

Code the winning conditions in the following order: horizontal & vertical, left to right diagonal, right to left diagonal.