Skip to content

A tic-tac-toe CLI game built in Ruby and tested with RSpec. It employs concepts of Object-Oriented Programming. Particularly, classes and access to their attributes.

Notifications You must be signed in to change notification settings

Elukoye/tic-tac-toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 

Repository files navigation

TIC-TAC-TOE

Object Oriented Programming in RUBY

[Collaborative Project]

The main goal is to put into practice the main concepts of Object Oriented Programming. Particularly, classes, methods and access to their attributes. The original project specification is at: https://www.theodinproject.com/courses/ruby-programming/lessons/oop

TIC-TAC-TOE Game Rules

Game is played via the CLI

1.Game requires two players

2.Each player choses a piece x or o to place on a board.

3.Player with piece x always starts the game ,choosing a number between 1-9

4.Player with piece o players after first player ,choosing a number between 1-9

5.Players keep alternating, if there is a win or a draw game ends and players can play again.

Conditions for a win:

If either player has a combination of 3 consecutive x's or o's vetically, diagonally or horizontally.

Conditions for a draw:

If the board is full and neither player has above condition.

Collaborators : IbunHabibu and Elukoye

About

A tic-tac-toe CLI game built in Ruby and tested with RSpec. It employs concepts of Object-Oriented Programming. Particularly, classes and access to their attributes.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages