Coder Social home page Coder Social logo

tic-tac-toe's Introduction

Table of Contents

About The Project

This is a project where you can play the Tic-Tac-Toe game, (builded with Ruby language), for two players, who take turns for drawing X or O in spaces of a 3ร—3 board. The player who first place three of their marks in a horizontal, vertical, or diagonal row is the winner.

Built With

  • RUBY

Getting started

  1. Clone or download the project in the repository.
  2. Acess to the name of folder with your terminal commands.
  3. Run this instruction: bin/main.rb

How to play

  1. Once you initialize the game, it will ask you for two names: Player1 and Player2. Player1 will get the first turn and the sign 'X' and Player2 will get the second turn and the sign 'O".
  1. The board is displayed in the screen and the game will ask the Player1 to type a move from numbers 1 to 9 representing the cells of the board. If you choose another number, or character, the game will display an alert, and will ask you to select a valid move.
  1. For a win you need to place three of their marks in a horizontal, vertical, or diagonal row. If no player won and there are no available spots in the board, the game will display a tie.
  1. The game will display the result: win or tie, and gives you the option of play again or end the game.

Contact

Melissa Castorena - [email protected]

Guadalupe Rangel- [email protected]

Project Link: Tic-Tac-Toe

Acknowledgements

tic-tac-toe's People

Contributors

mcastorena0316 avatar luzaks avatar

Stargazers

Oscar De La Lanza avatar Tiago Ferreira (tiagoit) avatar

Watchers

James Cloos avatar  avatar

Forkers

mcastorena0316

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.