Skip to content

Instantly share code, notes, and snippets.

@mokele
Created September 23, 2012 17:20
Show Gist options
  • Save mokele/3772352 to your computer and use it in GitHub Desktop.
Save mokele/3772352 to your computer and use it in GitHub Desktop.
check_ko(#move{
point = #point{x = X2, y = Y2},
taken_points = [#point{x = X1, y = Y1}]
}, #move{
point = #point{x = X1, y = Y1},
taken_points = [#point{x = X2, y = Y2}]
}) ->
{error, ko_not_allowed};
check_ko(_, _) ->
ok.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment