An exercise in OOP using Ruby to create an interactive and irreverent command line Tic-Tac-Toe game
Explore This Repository ยป
Download The Game
ยท
Report A Bug
ยท
Fork It
- About This Project
- The Project Brief
- Technologies & Languages Used
- How To Play
- Contributions, Issues and Forking
- Creators
- Show Your Support
- Licensing
This project is part of a series of projects to be completed by students of Microverse.
This project consisted of creating a Tic-Tac-Toe game to be run from the command line, with the purpose of practicing and exercising the main concepts of Object Oriented Programming.
The project specification and assinment details are part of The Odin Project's Ruby Programming course, which can be found here.
This project was split up into four key milestones:
-
Project Setup - creating the two main directories: lib for game logic and *bin for the executable file
-
User Interface - Creating the main play flow, user interactions, randomised messages and all other 'content' for the game.
-
Game Logic - Creation of all classes and methods to make the game run. This is the main 'engine' of the game.
-
ReadMe
- Ruby
- Rubocop
- Stickler-CI
You must have Ruby downloaded and available on your computer. If you do not, you can download it here.
-
Download this repo and place it somewhere accessible and convenient.
-
The file you will use to run the game is the main file, located in the bin folder. If you cannot run the file out of the box, give the main file execute permissions using the following command in terminal:
`chmod +x bin/main`
This will allow you to double click the file and run it easily.
-
You will then be able to open the game by entering the following command into your terminal:
`ruby ./bin/main`
NB. In order for the two commands above to successfully be implemented in your terminal, you must navigate to the directory in which the game is located. MORE INFO
Just incase you're not too familiar with the game of Tic-Tac-Toe (or Noughts and Crosses for that matter), it goes a little something like this:
- The game is played on a 3x3 board
- Each player is assigned either a 'O' or a 'X' at the start of the game
- The objective of the game is to line up three of your 'X's or 'O's either horizontally, vertically or diagonally.
- Each player has one move per turn.
- If neither player lines up their 'X's or 'O's, then it's a draw!
Instructions are also optionally available in-game in case you forget!
Contributions, issues and feature requests are more than welcome!
If you have any problems running or setting up the game, please do check out the issues page.
If you want to make your own changes, modifications or improvements, go ahead and Fork it!
- Fork it (https://github.com/queeksm/Tic-Tac-Toe/fork)
- Create your working branch (git checkout -b [choose-a-name])
- Commit your changes (git commit -am 'what this commit will fix/add/improve')
- Push to the branch (git push origin [chosen-name])
- Create a new Pull Request
Rory Hellier - Github
Andres Perez - GitHub
Give a โญ๏ธ if you like this project!
This project is MIT licensed.