GithubHelp home page GithubHelp logo

vanessaaoki / tictactoe Goto Github PK

View Code? Open in Web Editor NEW
12.0 2.0 1.0 89 KB

This project consists of a Ruby version of the Tic Tac Toe game. You and a friend can play it directly at the terminal.

License: MIT License

Ruby 100.00%
ruby microverse tictactoe

tictactoe's Introduction

TicTacToe

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

Getting Started

Prerequisites

To run this project, you need a computer with Ruby installed.

If you are uncertain on how to install Ruby, check out this tutorial made by The Odin Project.

How to Play

In your local enviroment:

  1. Clone the repository:
https://github.com/VanessaAoki/TicTacToe.git
  1. Type $ cd bin to move to the bin folder;

  2. Execute the file by using $ main on the terminal;

  3. Enter your moves on the terminal and enjoy the game!

Live server:

  1. If you prefer, you can run the game on your web browser by clicking on this link;

  2. Click on the green button that says 'Run' at the top of the page to start the tic tac toe game;

  3. Type $ cd bin to move to the bin folder;

  4. Execute the file by using $ main on the terminal;

  5. Enter your moves on the terminal and enjoy the game!

Game Rules

  1. Tic tac toe is a 2-player game, X and O;

  2. Players alternate turns to choose a move on a 3x3 grid, like this one:

1 | 2 | 3
-----------
4 | 5 | 6	--> This is the tic tac toe board
-----------
7 | 8 | 9 
  1. The first player to secure three consecutive positions on a row, column or diagonal wins;

  2. The end games in a tie if neither player has won and all positions on the board are taken.

Screenshot of the output

  • This is an example of a winning move: screenshot

  • This is an exemple of a draw game: screenshot

Built With

  • Ruby
  • Visual Studio, Git & GitHub

Authors

๐Ÿ‘ฉ๐Ÿผโ€๐Ÿ’ป Vanessa Aoki

๐Ÿง‘โ€๐Ÿ’ป Sunil Kumar

๐Ÿค 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's People

Contributors

sunilkumardevalla avatar vanessaaoki avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

tictactoe's Issues

Numbers in each space

I think the project is a good start, congrats on your work!! There are the things that I could observe...

  • Like a player, I'd prefer to don't have a number in each empty space, because this could be confusing with 'X' and 'O' symbols.

  • I could see that when the number in the space is changed to an empty space it just change the board size

And that's all, have fun :D

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.