Advertisement
Guest User

Untitled

a guest
Nov 21st, 2014
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. addCoord :: BoardSpec -> BoardSpec -> BoardSpec -> BoardSpec
  2. addCoord as [] gs = gs
  3. addCoord as (((d, e), f) : ds) gs = if (isNeighbour (d, e) as) then addCoord as ds (gs ++ [((d, e), f)]) else addCoord as ds gs
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement