Skip to content

This repo is Sean Donnellan's "Tic-Tac-Toe" game. This game was built to meet the first project requirements of General Assembly's Web Development Immersive course, cohort 25.

License

Notifications You must be signed in to change notification settings

seandonn-boston/tic-tac-toe-client

Repository files navigation

General Assembly Logo

Sean Donnellan Tic Tac Toe Game

The Assignment

Create a Tic Tac Toe game. The game must be a single page application, feature account creation and user authentication, and provide user-facing success and error messages for user authentication, game turns, and game-api calls.

Technologies Used

  • Expo Marker and White Board
  • Pencil and Paper
  • Git
  • Github
  • Grunt
  • HTML
  • Bootstrap
  • SASS
  • JavaScript
  • jQuery
  • AJAX
  • JSON
  • Issue Cue

Prepwork

  • I completed the game scope study (https://git.generalassemb.ly/ga-wdi-boston/game-project/issues/1423)
  • After building the basic structure of my gameboard in HTML, Bootstrap, and a few SASS styles, I then detailed my game logic on a whiteboard first and transferred those notes into my notebook as a way to doublecheck my logic. This provided an easy-to-follow framework which I began building in my code as engine.js.

Wireframes

User Stories

  • As a user, I want to play tic-tac-toe so I can have fun.
  • As two children, we want to play a game so we can determine who is the tic-tac-toe champion.
  • As a bored businessperson, I want to slack off at work so I can make the day go by faster.
  • As feuding roommates, we want to compete so we can determine who will take out the trash.
  • As a Tic-Tac-Toe scout, I want to access the leaderboard so I can recruit champions.

Development Process

  • Wireframes
  • Basic HTML/SCSS game board
  • User Authentication
  • Game Engine
  • Game API
  • View States

Obstacles

  • Retrieving the total number of games
  • Understanding the game-api and understanding how apis work
  • Checking if a space is empty or not
  • Checking for a win

Accomplishments

  • Utilizing store to grab global variables
  • Providing descriptive ID's for each square on the gameboard yet utilizing these IDs to grab unique numbers for each square (all in one line too! I'm proud)
  • Checking for a win and telling the appropriate user if they won.

Unsolved Problems

  • This README needs some work - I rushed most of the content here just to make sure my thoughts were written down. Next is to turn each section into more of a story and less of a list, keeping technical terms consistent throughout and providing code snippets and console.log outputs when relevant
  • Refactor engine.js, try to make a bunch of smaller callback functions rather than a bunch of functions nested within an umbrella function.
  • Clean up theme.scss, order it, organize it, and turn reusable values into SASS variables
  • Github gives me the following vulnerability warning:
  Potential security vulnerability found in the hoek dependency

cont: this warning appeared before I ever wrote any code (from the browser-template) and I did not ask about it yet. I will do further investigation by reviewing the closed issue cue and asking the teacher pointed questions.

Next Steps and Nice-to-Have's

  • Style the entire SPA - revist wireframes
  • Add all user authentication forms into dropdown forms in a top-navbar
  • Create a scoreboard

About

This repo is Sean Donnellan's "Tic-Tac-Toe" game. This game was built to meet the first project requirements of General Assembly's Web Development Immersive course, cohort 25.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published