Inspiration
Inspiration was from the original tic-tac-toe game!
What it does
This project allows the users to play tic-tac-toe and reset the board, and entire game. A warning pops up before resetting the entire game, just in case you meant to just restart the board and play again.
How we built it
I used code.org's app lab and created a screen with the design of the game, then coded all of the buttons and text boxes.
Challenges we ran into
I haven't used app lab in a while, and I'm used to Java, not Javascript, so figuring out the syntax for some things was a bit different, but I did learn that Javascript is much easier because it doesn't require you to define things as integers, or strings or anything! I also ran into a challenge when counting the number of turns to determine who's turn it was. I originally used a function to update the turn variable, but then realized I called that function too many times and should just update the turn variable separately inside the function that runs when a board square is pressed.
Accomplishments that we're proud of
I'm proud of being able to create this whole app, even though it was pretty simple. I ran into several challenges but learned through all of them. After finishing the original game play, I added extra features like the play another game button, restart the entire game button, and the player scores. I'm proud I was able to do this in the time I was here and I enjoyed it a lot!
What we learned
I relearned how to program in Javascript, and a learned how much I really like coding and debugging simple projects. I want to use this experience to create my own game someday, and this project helped me learn that I would want to achieve that goal someday!
What's next for Tic-Tac-Toe
Adding a human or robot option! I want to see if I can create an algorithm that the user can play against, if they don't have someone in person. After creating an algorithm, I'd want to see if I can create an east, medium, and hard mode!
Built With
- codestudio
- javascript

Log in or sign up for Devpost to join the conversation.