Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Created a TIC TAP TOE game using ruby.

NotificationsYou must be signed in to change notification settings

cvilla714/oop_tic_tac_toe

Repository files navigation

OOP TIC TAC TOE

Setup the first milestone for the TIC TAP TOE project

Built With

  • Ruby

Requirements

-run bundle install

Instructions

How the game starts

  • The very first thing to do is to type this command main.rb this will start the game

  • First players will be asked to provide the name, it cannot have an empty space and it can be a combination of numbers and lettersscreenshot

  • The first players will be asked to choose between X and O

  • Second Player will be asked for the name, same rules apply no empty characters and it can combination between lettesr and numbers - The Second players won't be asked to choose between X and O because they will be assigned the next value that the first player picked - Once the game starts the players will be asked to choose a number from the grid between 1 to 9 or quite the game by pressing the letter q.

    screenshot

  • If a players chooses a number from the grid that has already been chosen by the opposite player then you will get a message saying " spot has bee alreadyselected please try again".

  • In order to win the game, a player must place three of their marks in a horizontal, vertical, or diagonal row.screenshot

-The game will end in a draw if no one has three of their marks in a horizontal, vertical or diagonal row.

screenshot

Running Tests

  • Open the console
  • Navigate to the Tic-Tac-Toe project
  • Run gem install rspec
  • Run rspec
  • The spec file is in the spec folder

Authors

👤Cosmel Villalobos

👤Kender Bolivar

👤Mir Rawshan Ali

👤Will Nyamunokora

Show your support

Give a ⭐️ if you like this project!

About

Created a TIC TAP TOE game using ruby.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp