Advertisement
Guest User

Untitled

a guest
May 1st, 2015
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. let set_open_wall x y wall_pos (_, _, c) =
  2. let (color, wall) = c.(x).(y) in
  3. match wall_pos with
  4. 1 -> let (_, b, c, d) = wall in c.(x).(y) <- (color, (wall_pos, b, c, d))
  5. | 2 -> let (a, _, c, d) = wall in c.(x).(y) <- (color, (a, wall_pos, c, d))
  6. | 3 -> let (a, b, _, d) = wall in c.(x).(y) <- (color, (a, b, wall_pos, d))
  7. | 4 -> let (a, b, c, _) = wall in c.(x).(y) <- (color, (a, b, c, wall_pos))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement