Hi!
It's my first time in LispForum and i have a question. I'am suposse to do a board to a game (game y) and when i give
> (setf tab1 (do-board 4))
((* * *)
(* * * * * *)
(* * * * * * * * *)
(* * * * * * * * * * * *))
and now my code is
(defun do-board (x)
(defun board2 (i list1 list2)
(if (zerop i)
(append (list1 list2))
list1))
(if (zerop x)
(list '(* * *))
(board 2 x list1 list2)))
(defun append (list1 list2)
(if (null list1)
list2
(cons (first list1) (append (rest list1) list2))))
I hope you understand and help me please.
Thank you
