Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/alvp01/tic-tac-toe

Microverse Ruby project about OOP
https://github.com/alvp01/tic-tac-toe

Last synced: 4 days ago
JSON representation

Microverse Ruby project about OOP

Awesome Lists containing this project

README

        

# TIC TAC TOE GAME
> Ruby code for tic-tac-toe Game.

![screenshot](./tic-tac-toe.gif)

### Game rules
Tic tac toe game consists in a 3 by 3 board and two players.

Players choose between X and O as their tokens to play.

Players take turns to play their token in a unoccupied cell.

The first player who gets three of their tokens in line wins the game.

If no player gets three tokens in line and the board is full it is a tie.

## Live Demo

[![Try on repl.it](https://repl-badge.jajoosam.repl.co/try.png)](https://repl.it/@alvp01/tic-tac-toe?ref=button)

## Installation

Open a bash console and type:
- [ ] git clone https://github.com/alvp01/tic-tac-toe.git
- [ ] cd tic-tac-toe
- [ ] bin/main.rb

## Built With

- RUBY
- VSCode

## Testing
We are using RSpec testing tool to test all enumerable methods. Also some detailed documentation about this tool

## Install
- In a terminal window type gem install rspec
- Once rspec install has finished, type rspec --init
- You will see a folder spec and a file .rspec
- Inside spec folder you'll see a spec_helper.rb file.

## Run
We have already created rspec-testing files called board_spec.rb, helper_spec.rb, player_spec.rb and spec_helper.rb if you want to create another one with the end [your file name]_spec.rb

- go to the folder inside your terminal type rspec
- If all test were passed you will see:

`15 examples, 0 failures`

Else you'll see a red message, then check errors and fix them

## Authors

👤 **Abel Lavieri**

- Github: [@alvp01](https://github.com/alvp01)
- Twitter: [@alvp01](https://twitter.com/alvp01)
- Linkedin: [alvp01](https://linkedin.com/in/alvp01)

👤 **Shingirayi Mandebvu**

- Github: [@simandebvu](https://github.com/simandebvu)
- Twitter: [@simandebvu](https://twitter.com/simandebvu)
- Linkedin: [simandebvu](https://linkedin.com/in/simandebvu)

## 🤝 Contributing

Contributions, issues and feature requests are welcome!

Feel free to check the [issues page](issues/).

## Show your support

Give a ⭐️ if you like this project!

## Acknowledgments

- Microverse

## 📝 License

This project is [MIT](LICENSE) licensed.