GithubHelp home page GithubHelp logo

abdelrhmanamin / tictactoe-ruby Goto Github PK

View Code? Open in Web Editor NEW

This project forked from anapdh/tictactoe-ruby

1.0 1.0 0.0 47 KB

Consists of building Ruby version of Tic Tac Toe.

License: MIT License

Ruby 100.00%

tictactoe-ruby's Introduction

Tic Tac Toe

This project consists of building a Ruby version of Tic Tac Toe game Tic Tac Toe using Ruby.

About the project

The goal was to use classes and methods to set up the basic elements of the game.

The specifications for this project can be found at The Odin Project.

Installation

No instalation needed, just download/clone this repository GitHub Repository on your computer.

How to play

  1. The interface of this game will be your computer's terminal. Search terminal in your computer to open it.
  2. In the terminal, use the command cd to go to the place where you have saved/cloned the Tic Tac Toe repository. For example: Desktop/User/tic-tac-toe/. You may use the comand ls to see the files and repositories exitent in your current location.
  3. Now, use the comand cd bin again to enter the folder and execute ruby main.rb in the terminal to start the game.
  4. Enjoy the game!

Game rules

  1. Type the name of Player1, which will be signed to the symbol 'X';
  2. Type the name of Player2, which will be signed to the symbol 'O';
  3. Now the first player ('X') can select any space to insert the value, follow your number keyboard to compare the available spaces:
   7 | 8 | 9
   -----------
   4 | 5 | 6	--> The number in the virtual board will be represented by the number on your keyboard.
   -----------
   1 | 2 | 3
  1. Remember not to insert any invalid number (above 9) or repeat the same number that is already taken by a symbol (no cheating!!);
  2. The winner will be the first player/symbol to complete a sequence of a row, column, or diagonal.

Authors

πŸ‘©πŸΌβ€πŸ’» Ana Paula HΓΌbner

😎 Abdo Amin

🀝 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 MIT licensed.

tictactoe-ruby's People

Contributors

anapdh avatar abdelrhmanamin avatar

Stargazers

VanessaAoki avatar

Watchers

James Cloos avatar

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.