Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fifikim/tictactoe-elixir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic Tac Toe

This Tic Tac Toe game is a command line application built in Elixir.

The initial functionality permits gameplay between two human players. The program will exit when gameplay ends: either when a player has won, or if the game has reached a draw.

Table of Contents

Getting Started

Requirements

  • Elixir 1.13.4 (use Kiex to switch versions if you have a different version of Elixir currently installed)

Installation

Clone this repo from the terminal:

git clone https://github.com/fifikim/tictactoe-elixir.git

Navigate to program directory:

cd tictactoe-elixir

Install dependencies:

mix deps.get

Linting

Run the linter:

mix credo --strict

Testing

Run tests:

mix test

Usage

Launch the program

From program directory:

mix start

Instructions

Select your opponent (computer or another human player).

Enter the number (1-9) of the space on the board where you want to move.

Player 1 moves first and marks their spaces with an "X". Player 2 marks with an "O".

To win, claim 3 adjacent spaces in a horizontal, vertical, or diagonal line.

If there are no free spaces and no player has won, the game will end in a draw.

About

Tic Tac Toe command line game (Elixir version)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages