Skip to content

Natisk/tic_tac_toe_master

Repository files navigation

TicTacToeMaster

🎮 TicTacToeMaster is a Ruby gem for playing Tic Tac Toe.
It supports both console interface and easy integration into web applications.

Ruby Gem Build Status Coverage Status


Features

  • Simple console interface (UI::ConsoleUI) for quick play in the terminal
  • Flexible structure to add other UIs (e.g., UI::WebUI)
  • Supports two players with names and symbols X and O
  • Checks for win, draw, and invalid moves
  • Clean, testable code with RSpec

Installation

Add this line to your application's Gemfile:

gem 'tic_tac_toe_master'

Or install it yourself as:

gem install tic_tac_toe_master

To start playing just type in console:

tic_tac_toe

Usage

require 'tic_tac_toe_master'

# Start the game in console
TicTacToeMaster.start

Roadmap

  • Add UI::WebUI for integration with Rails or Sinatra
  • Add AI for playing against the computer
  • Support customizable board size and symbols

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the TicTacToeMaster project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

About

small game to play tic-tac-toe in console

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors