Tic Tac Toe in Elixir!
A library for building/playing a fun Tic Tac Toe game!
Change Log
See the CHANGELOG.md file for further details.
Building Your Own Game
Add :ttt as a dependency to your project's mix.exs with hex package manager(default):
def deps do
[
{:ttt, "~> 0.1.0"}
]
endor through GitHub:
def deps do
[
{:ttt, git: "https://github.com/mrfishball/TicTacToeElixir.git", tag: "0.1.0"}
]
endAnd run:
$ mix deps.getUsage
Visit https://hexdocs.pm/ttt/api-reference.html for documentation on how to use the APIs.
Compiling An Executable
Clone this repo by running:
$ git clone https://github.com/mrfishball/TicTacToeElixir.gitIn the root of the project folder, run:
$ mix deps.getAnd run:
$ mix escript.buildThis will build an executable binary of the game then, simply double click on the new executable file named "ttt" or run:
./tttWarnings
Follow these steps to update the dependencies in order to remove any warnings.
rm -rf _buildfollow by
mix deps.update --allthen the script in compile step above
Tests
Simply run:
$ mix testCredo (Optional)
If you like to use Credo to check your code, run:
$ mix credoAvailable flags for strict mode and detail mode use:
$ mix credo --strictand
$ mix credo listAuthor
Steven Kwok (@mrfishball)
License
TTT is released under the MIT License. See the LICENSE file for further details.