Two players take turns marking spaces on the board, trying to be the first to mark a line of consecutive spaces (horizontally, vertically, or diagonally).
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
To run the tests and play the game, make sure you have Elixir installed. To confirm it's installed, run the following command in the terminal to check the version:
$ elixir --version
Fork and clone a copy of this repo onto your local machine
Navigate to the project directory
$ cd tic-tac-toe-elixir
And install dependencies using the command:
$ mix deps.get
Finally, run the game with:
$ mix tic_tac_toe
The game begins by asking each player for their names, then alternating turns until there is a winner, or board is full and the game ends in a draw.
Tests are contained in the tic-tac-toe/tests
directory.
From the top level directory tic-tac-toe-elixir
run tests with the command:
$ mix test
- Elixir - a dynamic, functional language designed for building scalable and maintainable applications
- ExUnit - Unit testing framework for Elixir
- Matt Readout - Initial work - digitopolis
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details