Code skill Creating Two Players

Using the return keyword and a ternary operator make it so that each player can take a turn. Once a nought or cross has been placed in the box, it cannot be changed.

See the Pen M1 GB4 by Walker Books UK (@walkerbooks) on CodePen.