Giter Club home page Giter Club logo

tic-tac-toe's Introduction

Story

As a CMG manager, I want to see how you code a game of Tic Tac Toe, so that I can get a feel for a candidate's skills and strengths.

Acceptance criteria

  • Application is a stand alone, static web page game of tic tac toe.
  • Computer (AI) will never lose a game.
  • Application should be able to run based on HTML, CSS and Javascript.
  • Game will let player choose to be either X or O, computer will take other choice.
  • Game will let player go first.

Submission Tips

  • Quality counts! A good submission that takes a while is better than a poor submission quickly.
  • Make sure your submission accurately reflects your development style.
  • Commit early and often, with good messages.
  • Comments and Unit tests are appreciated but not required, if you know good practice, then show us.
  • Research the AI, there are multiple well known algorithms available, show us your implementation.
  • Plagarism will not be tolerated.

Submissions

  • Fork this repo and send us a pull request.
  • if you prefer you can send us a ZIP of your submission, due to email filters, rename the file to *.txt and mention it is a ZIP in your email.

tic-tac-toe's People

Contributors

bentmatthews avatar cmheisel avatar datagrok avatar jepeters2 avatar richardbronosky avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tic-tac-toe's Issues

'Tile already played' alert popping up at inappropriate times after multiple plays.

Somehow the clickTile() function is being called twice sometimes when the tiles are clicked by the human player. It is called once when it should be, and then somewhere it is being called again( which is what I can't figure out ) after it has received the 'played' class, which triggers an alert. It only seems to happen after at least one game has been played, and sometimes after multiple games are played with no issue. But once it starts, it happens every time.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.