Giter VIP home page Giter VIP logo

tic_tac_toe_rspec's Introduction

Project - Tic Tac Toe

The purpose of this project is to consolidate the acquired knowledge of the Ruby programming language. For this, we decided to develop a Video Game development project called Tic Tac Toe, in order to learn the correct operation of Object Oriented Programming.

screenshot

This web page was the third Ruby Programming Language Project of the Microverse curriculum. In this project, we learned the importance of Object Oriented Programming in programming languages and how Ruby can help us accomplish this task.

Built With

Getting Started

This project was created to study the importance of Object Oriented Programming and its application in Ruby.

Prerequisites

Computer running Mac OS, Windows, or Linux Ubuntu. Ruby V.3.0.0...

Install

Getting Started To get a local copy up and running follow these simple example steps:

Usage

Run main.rb with Ruby V.3.0.0.

Run tests

In order to run RSpec tests you can type in your terminal rspec

Game Description

Tic-tac-toe is a paper-and-pencil game for two players, X and O, who take turns marking the spaces in a 3Γ—3 grid. The player who succeeds in placing three of their marks in a diagonal, horizontal, or vertical row is the winner

How to play

  1. This game will take place in your computer's terminal. In order to open the terminal you only need to search for 'terminal' in your computer or hit "Ctrl + `" or "Cmd + `" to open it.
  2. In the terminal, type cd to go to the game's folder where you cloned the Tic Tac Toe repository. For example: Desktop/User/tic-tac-toe/. You can also use the comand ls to see the files listed in the folder.
  3. Now, cd into bin folder by typying cd bin and executing the command ruby main.rb in the terminal to start the game. Or, you can just type ruby bin/main.rb without change to bin directory.
  4. Enjoy the game!

Game rules

  1. Type the name for Player1, and it will be assigned the symbol 'X';
  2. Type the name for Player1, and it will be assigned the symbol 'O';
  3. Now the first player can select any cell in the range of (1-9) to put his/her mark (X in this case)
  4. Remember to insert a valid number (from 1 to 9) and don't repeat any number that is already taken by a symbol;
  5. The first player to complete three marks in a row, column, or diagonal line will be the winner.

Authors

πŸ‘€ Author Chibuike Uzoechina

  • GitHub: @Chike1990
  • Twitter: @ChibuikeUzoechi
  • LinkedIn: @Chibuike-Uzoechina

πŸ‘€ Author Alexander Morales

🀝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ⭐️ if you like this project!

License

This project is CC0-1.0 licensed.

Acknowledgments

  • Ariel Camus CEO Microverse: For letting us start this journey.
  • Google: For letting us find crucial information in order to create this project.
  • Aristides Jose Molina PΓ©rez
  • GitHub: @aristides1000 who I worked with for the game logic

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.