Making Four-In-A-Row Using JavaScript - Part 4: Winning Ways and Tedious Ties
Intro
In the previous blog post, you implemented player moves.
Now you're ready to check for wins and draws in the game.
Checking For Wins
In four-in-a-row, there are three ways for a player to win a game:
Place 4 consecutive tokens horizontally
Pl...
colinkiama.hashnode.dev7 min read