Skip to content

Instantly share code, notes, and snippets.

@atamocius
Last active September 19, 2019 18:24
Show Gist options
  • Save atamocius/aac374f580f386e61317bf68704c590e to your computer and use it in GitHub Desktop.
Save atamocius/aac374f580f386e61317bf68704c590e to your computer and use it in GitHub Desktop.
Coding Challenge: Tic-Tac-Toe

Coding Challenge: Tic-Tac-Toe

Create a Tic-Tac-Toe game.

ttt1

Requirements

  • Create a 3x3 grid tic-tac-toe game.
  • Once there is a winner, the winning token must be displayed atop the grid.
  • The grid must be centered on the page.
  • Try to replicate the UI design as faithful to the mockup/screenshot as possible (see screenshot below).

Note:

  • The images used are actually emojis: ๐ŸŒ๐Ÿ„.
  • If you are having issues rendering the emojis (ie. Windows 7, etc.), feel free to just use X and O.

Guidelines

  • Use HTML, CSS, and JavaScript to create the app.
  • Do not use 3rd-party libraries (ie. jQuery, Bootstrap, etc.).
  • Do not write inline CSS and JS (ie, no CSS and JS in the HTML; place CSS and JS in separate files).
  • You are encouraged to use the latest JS syntax (ie. ES2015 and above, class, const, let, etc.); I will be running the app on the latest release version of Chrome.
  • Employ a consistent coding and naming convention.
  • Be as neat and well organized as possible.

Submission

To submit your work, you have 2 options:

Online Code Editors

Github

  • Push your code to GitHub as a private repo.
  • Add me as a collaborator to the repo.

Screenshot

tictactoe1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment