PACMAN KATA
Pacman finds himself in a grid filled with
monsters.
Will he be able to eat all the dots on the board
before the monsters eat him?
• pacman is on a grid filled with dots
• pacman has a direction
• pacman moves on each tick
• user can rotate pacman
• pacman eats dots
SESSION
OVERVIEW
• Test Driven Pacman
• Wrapping/Scoring
• Cross Platform
• .Net/Mono/JS
• Game development 101
• Input/AI/Rendering
• Tasks
• Pacman has a direcation
• Ghosts navigate maze
PACMAN WRAPS AROUND
open NUnit.Framework
[<Test>]
let ``pacman should wrap from right to left`` () =
// ...
[<Test>]
let ``pacman should wrap from left to right`` () =
// ...
PACMAN EATS STUFF
Scenario: Pacman eats dots
When pacman eats a pac-dot
Then he scores 10
Scenario: Pacman eats power pellets
When pacman eats a power pellet
Then he scores 50
Scenario Outline: Pacman eats ghosts
Given the ghosts are vulnerable
When pacman eats <ghost> in succession
Then he scores <points>
Examples:
| ghost | points |
| 1 | 200 |
| 2 | 400 |
| 3 | 800 |
| 4 | 1600 |
CROSS PLATFORM F#
.Net
• Windows
• Windows Store
• Windows Phone
Mono
• Mac
• Linux
• iOS
• Android
• Ouya
• Playstation Vita
JS
• Chrome/IE
• iOS
• Android
• Blackberry
• Windows Phone
• Windows Store