Connect Four

Implemented in React. Used `window.connectFour.checkForWinner` to check the board state.


Requested feedback

Any better way to split apart the components/game logic?

Comments

mhchen(about 3 years ago)

Great solution!

JudoboyAlex(about 3 years ago)

What's the purpose of implementing "window.connectFour.checkForWinner" as oppose to writing checkForWinner function in JS file? I have never seen this window method actually.

Get future questions delivered straight to your inbox for free

Sign up and receive instant access to new questions when we publish them.

We‘ll only use your information to deliver new questions and to provide you updates about our product. We‘ll never spam you or sell your information without your consent. Unsubscribe at any time.