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.
- Elixir 1.13.4 (use Kiex to switch versions if you have a different version of Elixir currently installed)
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
Run the linter:
mix credo --strict
Run tests:
mix test
From program directory:
mix start
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.