Ibinola / tictactoe-cli

A command line implementation of the classic game Tic Tac Toe written in JavaScript. Players take turns placing X's and O's on a 3x3 grid until one player gets three in a row, either horizontally, vertically, or diagonally, or until the board is full and the game is a tie.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tic Tac Toe in JavaScript

This is a command line implementation of the classic game Tic Tac Toe written in JavaScript. Players take turns placing X's and O's on a 3x3 grid until one player gets three in a row, either horizontally, vertically, or diagonally, or until the board is full and the game is a tie.

Getting Started

To play the game, simply run the index.js file in a terminal:

node index.js

Then follow the on-screen prompts to take turns making moves. The game will continue until a winner is found or the board is full and the game is a tie.

Contributing

If you'd like to contribute to the project, feel free to submit a pull request. All contributions are welcome!

License

This project is licensed under the MIT License.

About

A command line implementation of the classic game Tic Tac Toe written in JavaScript. Players take turns placing X's and O's on a 3x3 grid until one player gets three in a row, either horizontally, vertically, or diagonally, or until the board is full and the game is a tie.


Languages

Language:JavaScript 89.9%Language:HTML 10.1%