Skip to content

camfilho/oop-tic-tac-toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation



Logo

3nd Project. Ruby Course. PROJECT: OOP - TIC TAC TOE GAME


Explore the docs »

Request Feature

Table of Contents

About The Project

Tic Tac Toe is a fun game most people know since the beggining of time. The rules are really simple.

There are 2 players, one plays with token "x" and one plays with token "o" There is a board formed by 9 boxes Each player gets a turn and selects a box where they want to place their token. The first player to get 3 tokens aligned in vertical, horizontal or diagonal line wins!.

In this project, we created a tic-tac-toe game that can be played via the command line. For the implementation of the game we decided to put a number tag from 1 to 9 to each box so users will select a number and their token will be placed in that box. When 3 tokens are aligned, the game will stop and declare a winner.

After each turn, there will be an array displaying the available boxes to choose from. Once the box has been set, it can't be changed, so choose wisely!.

Happy tic-tac-toe games!

Starting date October 31st Send to Code Review November 1st



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

Built With

Getting Started

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

  • Clone or fork the repo in the directory of your choice https://github.com/camfilho/oop-tic-tac-toe
  • Navigate to the folder containing the repo in your terminal and enter (cd oop-tic-tac-toe/bin/)
  • Run the game by typing (./main.rb)
  • Follow the onscreen instructions and Have fun!

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 feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

No licenses required as project was developed in educational eviroment.

Contact

Luis Puente - @mkezmkez Carlos De Medeiros @camfilho Project Link: https://github.com/camfilho/oop-tic-tac-toe

Acknowledgements

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages