A simple, elegant, Tic-Tac-Toe game to be played via a command line, optimised for use in a UNIX terminal.
Anyone who enjoys playing Tic-Tac-Toe! The game supports either one or two players, depending on the selected game mode.
Good question. Just follow these simple steps:
- Using your terminal, check that you have a working version of Elixir by running the following command
$ elixir --version
- You should see something like this...
Erlang/OTP 20 [erts-9.3] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]
Elixir 1.6.4 (compiled with OTP 20)
- If you received the message above, you should be good to go, move on to the next step in this guide.
- If you didn't receive the message above, visit Elixir's offical site to find instructions on installing Elixir, then come back here and re-try step 1
- Clone this GitHub repo onto your machine eg.
$ git clone https://github.com/michaelbjacobson/elixir-ttt.git
- Using your terminal, navigate into the main Tic-Tac-Toe directory eg.
$ cd ~/elixir-ttt
- At the root of the elixir-ttt directory, run the following command
$ mix play
- Enjoy the game!
- First things first, make sure you've completed all the steps in the guide above
- Using your terminal, navigate into the main Tic-Tac-Toe directory eg.
$ cd ~/elixir-ttt
- At the root of the elixir-ttt directory, run the following command
$ mix test
- Watch the tests pass!