Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jameshamann/tic-tac-toe
https://github.com/jameshamann/tic-tac-toe
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/jameshamann/tic-tac-toe
- Owner: jameshamann
- Created: 2016-10-20T17:09:10.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-10-20T17:13:03.000Z (about 8 years ago)
- Last Synced: 2024-10-12T19:36:25.421Z (3 months ago)
- Language: JavaScript
- Size: 37.1 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tic Tac Toe
This is a very common tech test as it demonstrates a candidate's knowledge of basic data structures.
## The brief
The rules of tic-tac-toe are as follows:
- There are two players in the game (X and O)
- Players take turns until the game is over
- A player can claim a field if it is not already taken
- A turn ends when a player claims a field
- A player wins if they claim all the fields in a row, column or diagonal
- A game is over if a player wins
- A game is over when all fields are takenBuild the business logic for a game of tic tac toe. It should be easy to implement a working game of tic tac toe by combining your code with any user interface, whether web or command line.