Giter Site home page Giter Site logo

tic-tac-toe's Introduction

Tic_Tac_To



Table of Contents

About The Project

This project requires us to build a tic-tac-toe game on the command line where two human players can play against each other and the board is displayed in between turns. The game is to operate based on the same set of rules of the real life tic-tac-to game.

Rules Of The Game

The game is really fun to play but consist of a set of simple rules to get started. The rules of the game are as highlighted in the steps below. Just follow rules step by step and you will see yourself become a master of the game in no time.

  1. The game is played on a grid that's 3 squares by 3 squares. It basicly involves each player placing his/her mark in empty squares in turn.

NOTE : Two players can't place their marks in the same square. Once a square is occupied, then the next player has to choose from any of the empty squares left.

  1. Your mark is represented by X and your friend's mark is represented by O. Players take turns putting their marks in empty squares.

  2. The first player to get 3 of his/her marks in a row (up, down, across, or diagonally) is the winner.

  3. When all 9 squares are filled without any of the players having their marks in a row, then the game is over and ended in a tie.

How To Start The Game

You don't need to be a programmer to start the game. There are simple instructions in form of prompt messages throughout the game to tell you the next thing to do at any point in time.
You only need to launch your command prompt and navigate the project folder and type "bin/main.rb". Then you will start seeing different prompt messages to guide you on what to do next.

For more details about the Project and it's requirements go to The Odin Project

Built With

Getting Started

Clone or fork the repo https://github.com/adewaleK/Tic_Tac_To.git to get a copy and explore the content of the project.

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b [Branch-name])
  3. Commit your Changes (git commit -m '[Commit-message]')
  4. Push to the Branch (git push origin [Branch-name])
  5. Open a Pull Request

Authors

Muhammad Fahad Umer

Adewale kamilu A

tic-tac-toe's People

Contributors

mfahadumer avatar

Stargazers

Yoko Saka avatar  avatar

Watchers

 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.