Skip to content

aristides1000/tic_tac_toe_project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Linters errors

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 Aristides Jose Molina Pérez

👤 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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages