Goal: Understanding better functional programming.
Elixir Berlin meetup: 05/11/2013.
- Fork this project.
- Create a branch with your name.
- Once happy submit a pull request.
Pacman finds himself in a grid filled with monsters.
Oh no!
Will he be able to eat all the dots on the board before the monsters eat him?
For this challenge we are concerned with the transformations required on a board state and less on the pretty graphics or user interaction.
This problem can be taken as far as you would like. Don't expect to complete everything.
Here is a guideline for what the game needs:
- pacman is on a grid filled with dots
- pacman has a direction
- pacman moves on each tick
- user can rotate pacman
- pacman eats dots
- pacman wraps around
- pacman stops on wall
- pacman will not rotate into a wall
- game score (levels completed, number of dots eaten in this level)
- monsters...
- levels
- animate pacman eating (mouth opens and closes)
Some questions and thoughts to get you started.
- How do we represent the grid?
- How do we indicate where pacman is?
- How do we indicate where dots are?
- How does pacman eat dots.