0

Connect 4

I am making a connect 4 game using JavaScript. I made the board using arrays. I was wondering if anybody had any ideas how to check for win conditions. I was thinking something like checking three surrounding spaces from the clicker ID. Has anyone else coded connect 4 in JavaScript or any similar win conditions? Any help is appreciated.

23rd Jan 2018, 9:21 PM
Matthew Tyrrell
Matthew Tyrrell - avatar
1 Odpowiedź
0
Thanks. I’ll try this out
24th Jan 2018, 7:50 PM
Matthew Tyrrell
Matthew Tyrrell - avatar