Code Monkey home page Code Monkey logo

stephanie041996 / project-3-tictactoe Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tanzila-abedin/project-3-tictactoe

3.0 0.0 0.0 210 KB

For this project we built 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. WE made use of different elements of Object Oriented programming(OOP) within the game - Class ,Instance variable, and Method.

License: MIT License

Ruby 100.00%

project-3-tictactoe's Introduction

Project 3 - Tic Tac Toe

For this project we built 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. WE made use of different elements of Object Oriented programming(OOP) within the game - Class ,Instance variable, and Method.

How Tic Tac Toe is played?

  • Tic Tac Toe is board game played on a board with a 3 squared by 3 squared grid.

  • The players are assigned their own symbols to place on the board cells

  • Player 1 will be assigned the X symbol.

  • Player 2 will be assigned the O symbol.

  • Players take turn to place their symbols on the board.

  • The grid is numbered from 1 to 9.

  • You place the symbol by choosing the cell number.

  • The First Player to get 3 of her symbols in a row (up, down, across, or diagonally) wins the game.

  • When all 9 squares are full, the game is over. If no player has 3 marks in a row, the game ends in a tie.

Built With

  • Ruby

Getting Started

To get a local copy up and running follow these simple example steps.

Prerequisites

  • Text editor
  • GitHub
  • Git
  • Ruby

Setup

Clone repository from github to your local drive by following these steps:

  • Go to the main page of the repository
  • Above the listed files, click the green Code button
  • You can clone the repository using:
  • HTTP: https://github.com/tanzila-abedin/Project-3-TicTacToe.
  • Open Terminal
  • Change the current working directory to the location you want the cloned directory
  • Type git clone and paste the HTTP link.
  • Press Enter to create your local clone

Install

  • Install Atom or Microsoft Visual Studio text editor(preferred) to view the code on your local machine.
  • Install Git.

Running the game

  • Open your terminal
  • Navigate to project directory
  • type 'git checkout game_logic' to navigate to correct branch
  • 'cd bin' to enter the bin
  • Run ruby main.rb in your terminal to play and press Enter.
  • Follow the instructions in the Tic Tac Toe Game Instructions section.
  • Enjoy the game

Authors

👤 Tanzila

Tanzila's GitHub stats

👤 Stephanie

Stephanie's GitHub stats

📝 License

This project is MIT licensed.

project-3-tictactoe's People

Contributors

tanzila-abedin avatar stephanie041996 avatar

Stargazers

 avatar Ahmet Bozacı avatar Samrood Ali 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.