An open API service indexing awesome lists of open source software.

https://github.com/raulpe7eira/ex_mon

Section 3 of Elixir e Phoenix do Zero Course by Rafael Camarda
https://github.com/raulpe7eira/ex_mon

course credo elixir game learn udemy

Last synced: about 1 month ago
JSON representation

Section 3 of Elixir e Phoenix do Zero Course by Rafael Camarda

Awesome Lists containing this project

README

        

# ExMon

This code corresponds to the [Section 3 of Elixir e Phoenix do Zero Course](https://www.udemy.com/course/elixir-e-phoenix-do-zero) lab by [Rafael Camarda](https://cursos.rafaelcamarda.com/).

> The project simulates a turn-based game (like Pokémon).

## Compilation, tests and runs

```bash
$ cd ex_mon
$ asdf install
$ mix compile
$ mix test
$ iex -S mix
```

## How to use?

```elixir
# creates a player with three movements
iex> player = ExMon.create_player("Raul", :kick, :cure, :punch)
# starts a game for the player
iex> ExMon.start_game(player)
# makes move for the player
iex> ExMon.make_move(:kick)
```