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
- Host: GitHub
- URL: https://github.com/raulpe7eira/ex_mon
- Owner: raulpe7eira
- Created: 2024-01-05T03:15:19.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-18T23:27:38.000Z (about 1 year ago)
- Last Synced: 2025-02-12T07:23:51.197Z (3 months ago)
- Topics: course, credo, elixir, game, learn, udemy
- Language: Elixir
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)
```