Jump to Post
- Check if the board is full, meaning that all cells are occupied and not empty
- Then make sure there aren't any winning patterns for 'x' -- use your checkAll('x')
- Then make sure there aren't any winning patterns for 'o' -- use your checkAll('o')
- If all the above passed then …
All 7 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.