Question
I am trying to teach myself how to code in JavaScript with CodeHS as an independent learner. I am trying to code their simplified version
I am trying to teach myself how to code in JavaScript with CodeHS as an independent learner. I am trying to code their "simplified" version of the game "connect4", but they just grade hw, they don't give feedback, or solutions. I have created a grid to store my empty white cells against a blue background, but when I click on them as either of player one (black) or player two (red), I don't know how to keep track of which column I am in, in order to start filling in the white cells from the bottom up. Any suggestions would be greatly appreciated.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started