small elixir learning exercise
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

add readme

pfeyz 557637fd 278a9367

+11 -13
+11 -13
README.md
··· 1 1 # TitTacToe 2 2 3 - **TODO: Add description** 3 + A simple tic tac toe game in elixir. 4 4 5 5 ## Installation 6 6 7 - If [available in Hex](https://hex.pm/docs/publish), the package can be installed 8 - by adding `tit_tac_toe` to your list of dependencies in `mix.exs`: 7 + To see two random players play against each other, run: 9 8 10 - ```elixir 11 - def deps do 12 - [ 13 - {:tit_tac_toe, "~> 0.1.0"} 14 - ] 15 - end 16 - ``` 9 + mix start_game 10 + 11 + or you can specify two differnet players types to pit against each other, choosing from 17 12 18 - Documentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc) 19 - and published on [HexDocs](https://hexdocs.pm). Once published, the docs can 20 - be found at <https://hexdocs.pm/tit_tac_toe>. 13 + - rand: a random move player 14 + - term: an interactive player providing moves via the terminal 15 + - udp: a player that will send moves via udp packets 16 + 17 + for example, to make player X play via the terminal and player O play via upd: 21 18 19 + mix start_game term udp