The first issue that I faced in this project was "How to represent the Pacman game using LISP", and I couldn't find a solution fast enough to be done right on time at the end of the semester, so I decide to use Java to represent the environment and LISP to control the intelligence of the Pacman, as required in the course. For that I used the
Armed Bear Common Lisp Library written in Java that can run Lisp code and make the connection between both.
That is a pretty good library, but I had some hard time trying to give some complex objects to the LISP side of my software, so I decided to transform everything in strings of integer numbers and than parse it back in the format that I wanted on LISP side, I had some problems but in the end I could encapsulate everything in those two classes(
LispFunction.java and
LispConnection.java) and in the first session of
code in lisp.
Thanks For the article
ReplyDelete