Skip to content

Instantly share code, notes, and snippets.

KataPacMan

Taken from: http://codingdojo.org/cgi-bin/index.pl?KataPacMan

Problem Description

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?

Incomplete list of things the game needs:

Files with typical JGiven dependencies
@dpolivaev
dpolivaev / No primitives outside-in Game of Life
Last active August 31, 2016 10:15
Outside-in driven by constraints "first class collections members" and "no getters"
We couldn’t find that file to show.
@dpolivaev
dpolivaev / Instructions.md
Last active January 26, 2016 10:26 — forked from pgilad/Instructions.md
Git commit-msg hook to validate for jira issue or the word merge

Instructions

  • copy the file commit-msg to .git/hooks/commit-msg
  • make sure your delete the sample file .git/hooks/commit-msg.sample
  • Make commit msg executable. chmod +x .git/hooks/commit-msg
  • Edit commit-msg to better fit your development branch, commit regex and error message
  • Profit $$

Shell example

@dpolivaev
dpolivaev / Game.java
Created December 15, 2013 14:20
GameOfLife based on a general cell distribution function, #gdcr13
package gameoflife;
public class Game {
public interface Distribution {
boolean cellExists(int x, int y);
}
final private Distribution distribution;
public Game(Distribution initialDistribution) {