Giter Club home page Giter Club logo

tic-tac-toe's Introduction

tic-tac-toe

Ruby implementation of tic tac toe

This project was developed as a learning project part of the Microverse curriculum.

screenshot

A Ruby implementation of Tic Tac Toe. In three steps we added the basic setup, the user interface and finally the logic behind the game. We used OOP to implement the game logic.

Built With

  • Ruby

Getting Started

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

Prerequisites

Ruby installed locally

Install

  1. [Download](Clone the repository to your machine)
$ git clone https://github.com/meronokbay/tic-tac-toe
  1. Navigate to the project folder and execute the "bin/main.rb" file.

  2. Type in bin/main.rb in the terminal.

Usage

  1. Find a friend to play with and run the program.
  2. Input both of your names and the program will select one of you to start.
  3. The selected player will be asked to input a number from 1 to 9 - each representing one field in the tic tac toe 3x3 grid.
  4. Afterwards the other player will select the next field which will be marked by another symbol.
  5. Selecting a field previously selected by anyone or inputting something besides an integer from 1 to 9 will not be accepted.
  6. You will keep alternating until a winner is declared or the game ends in a draw.
  7. First one to fill out a line with his three of his own symbols horizontally, vertically or diagonally wins!

Testing

To test this code download RSpec, access the repository using the terminal, write rspec and execute.

Authors

๐Ÿ‘ค Marco Erhardt

๐Ÿ‘ค Meron Ogbai

๐Ÿค Contributing

Contributions, issues and feature requests are welcome!

Show your support

Give a โญ๏ธ if you like this project!

Acknowledgments

  • Microverse for showing the way for this project to happen

tic-tac-toe's People

Contributors

ajkacca457 avatar marcode95 avatar meronogbai 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.