Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- insert_on_board(Value, 0, Row, [H | T], [H2 | T]) :-
- insert_on_ine(Value, Row, H, H2).
- insert_on_board(Value, Line, Row, [H | T], [H | NewList]) :-
- Line2 is Line - 1,
- insert_on_board(Value, Line2, Row, T, NewList).
- insert_on_ine(Value, 0, [_ | T], [Value | T]).
- insert_on_ine(Value, Row, [H | T], [H | NewList]) :-
- Row2 is Row - 1,
- insert_on_ine(Value, Row2, T, NewList).
Add Comment
Please, Sign In to add comment