On Dec 23, 2008, at 9:28 PM, wubbie wrote:
Hi, I ran it with the changes and got the message: java.lang.IllegalArgumentException: Don't know how to create ISeq from: Symbol (NO_SOURCE_FILE:22) What can be the problem?
I recommend you try this:- copy and paste the code from the website into a file called snake.clj stored at the top level of a directory that's in classpath. - replace the "import" form at the top of the page with this (be careful with quoting in this edit):
(ns snake (:import (java.awt.event KeyEvent ActionListener KeyListener) (javax.swing JPanel JFrame Timer))) - fix the doseq and doto forms Then, at the repl run it with: user=> (require 'snake) nil user=> (snake/run-snake)Click on the window that comes up and use the arrow keys at the keyboard to control the snake.
If you still have trouble, please post info about it here. At that point we should have more to work with.
--Steve
smime.p7s
Description: S/MIME cryptographic signature