Pergunta

I am extremely new to lisp. I have the following piece of code that I obtained online:

http://goo.gl/tXReiS

I essentially need to run a sample game using this code. I installed Steel Bank Common Lisp and did (load "file.lisp") and I was able to compile the code. However, I am unable to run a sample game. I don't really understand what is going on. Can someone please help me with this.

Foi útil?

Solução

There are testing functions down the bottom

; (iso3-test-me 3 #'player-xxx 100000 iso-map3)
; (iso3-test-me 3 #'player-xxx 10000 iso-map3)
; (iso3-test-me 3 #'player-xxx 10000 iso-board-small)

What happens if you compile the rest of the code and then run one of these?

[EDIT] Ok scratch that, this code does not appear to be complete. I changed the definitions of the following so that the first part of the file will compile.

(defparameter first-round? t)
(defparameter verbose t)

But then you will find that on compiling that the (get-time-ms) function is missing. Is this something you have been asked to get working or are you just interested in lisp games?

If it is a uni assignment then perhaps the missing function is in an earlier piece of code you have been given?

If you are just interested in lisp games then welcome! There are a few of us and we are often around the #lispgames channel on freenode. Also I would recommend having a look at xelf (used to be called blocky) check out the video here, the graphics in the example are very basic but the techniques he uses are very cool.

I'm also working on cepl, but it is in a very alpha state right now so probably not a good place to start unless you are quite proficient with common lisp already.

Hope this helps!

Outras dicas

Check the function isogame - this seems to be the entry point to the game in question. You need to provide correct arguments to it though.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top