digitopolis / tic-tac-toe-elixir

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tic Tac Toe

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).

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

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

Installing

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.

Running the tests

Tests are contained in the tic-tac-toe/tests directory.

Running Unit Tests

From the top level directory tic-tac-toe-elixir run tests with the command:

$ mix test

Built With

  • Elixir - a dynamic, functional language designed for building scalable and maintainable applications
  • ExUnit - Unit testing framework for Elixir

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About


Languages

Language:Elixir 100.0%