Giter VIP home page Giter VIP logo

tictactoe's Introduction

Tic Tac Toe AKA Noughts and Crosses

This is a practice tech test, to develop the business logic of the game "Tic Tac Toe", then implement this with a user interface (e.g. web or command line)

https://github.com/makersacademy/course/blob/master/individual_challenges/tic_tac_toe.md http://web.cecs.pdx.edu/~bart/cs541-fall2001/homework/tictactoe-rules.html

Getting started

git clone path-to-your-repo command_to_install_dependencies (e.g. bundle)

Usage

[(1) How to install it (what to clone, what to run to get all dependencies)]

command_to_start (e.g. rackup or rails s) Navigate to http://localhost:4567/

[(2) How to run it (is it a command line tool? Do you have to load it into IRB? Is is a web application? What port needs to be used?)]

Running tests

test_command (e.g. rspec)

Later on, you can add screenshots and additional information to your heart's content, but make sure you have this with all your repos as you proceed through the course. You will thank yourself later. https://github.com/matiassingers/awesome-readme

Image Title

##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 taken

##User Stories As a player I want to play a game of tic Tac Toe with another player So I can win or draw

As a player I want to enter my name and be assigned a O or X So I can start to play a game

As a player I want to claim a field if it has not already been taken So I can try to claim 3 fields in a row to win

As a player I expect my turn to end When I have claimed a field during a game

As a player I expect to win If I claim all fields in a row, column on diagonal

As a player, I expect a game to be over If myself or another player wins

As a player, I expect a game to be over If all fields are taken

As a player, I expect a game to be over (and called a "Cat game") If myself or another player draws

tictactoe's People

Contributors

shezdev avatar

Watchers

James Cloos avatar

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.