It is currently Wed Jun 19, 2013 12:38 am Advanced search

Common Lisp pack?

Random stuff about the contest, posts that don't fit in the other forums.

Common Lisp pack?

Postby anthonyf » Thu Feb 04, 2010 9:16 pm

Any chance for a Common Lisp starter pack?
anthonyf
Cadet
 
Posts: 2
Joined: Thu Feb 04, 2010 9:14 pm

Re: Common Lisp pack?

Postby pgpaskar » Fri Feb 05, 2010 4:03 am

A Scheme package will be coming shortly (iirc) which is quite similar. I'm not sure if a dedicated CL package will be produced, however.
User avatar
pgpaskar
Lieutenant
 
Posts: 13
Joined: Mon Feb 01, 2010 1:24 am

Re: Common Lisp pack?

Postby dhowden » Fri Feb 05, 2010 4:09 am

Changing from scheme to cl shouldn't be a drama (At least I hope it wont because it's what I'm planning on doing as well). Any eta on the scheme pack though? :)
User avatar
dhowden
Cadet
 
Posts: 5
Joined: Fri Feb 05, 2010 4:03 am
Location: Australia

Re: Common Lisp pack?

Postby aerique » Fri Feb 05, 2010 3:31 pm

I've got the very first beginnings of a Common Lisp (well... SBCL) pack here.

It works ok with the Java tournament engine but after playing a game in the Python engine SBCL barfs. I haven't investigated why though.

Also there's no AI in my client. It just goes in one direction.

Perhaps someone else can get it up as official client with some work? I don't know when I have time again to work on this but it'll probably be a couple of days.

See viewtopic.php?p=559#p559 for the v0.3 download.
Last edited by aerique on Tue Feb 09, 2010 11:50 am, edited 1 time in total.
aerique
Brigadier-General
 
Posts: 131
Joined: Fri Feb 05, 2010 3:23 pm
Location: Netherlands

Re: Common Lisp pack?

Postby aerique » Fri Feb 05, 2010 4:16 pm

Right, changing the loop at the end of the MyTronBot.lisp file to

Code: Select all
(loop with map = (make-instance 'tron-map)
      while (peek-char nil *input* nil nil)
      for move from 0
      do (logmsg "--- move: " move " ---~%")
         (parse-map map)
         (make-move map))

makes it work in round.py as well.
aerique
Brigadier-General
 
Posts: 131
Joined: Fri Feb 05, 2010 3:23 pm
Location: Netherlands

Re: Common Lisp pack?

Postby aerique » Fri Feb 05, 2010 7:43 pm

Just tested it successfully with SBCL 1.0.29 on Windows Vista.

See viewtopic.php?p=559#p559 for the v0.3 download.
Last edited by aerique on Tue Feb 09, 2010 11:50 am, edited 1 time in total.
aerique
Brigadier-General
 
Posts: 131
Joined: Fri Feb 05, 2010 3:23 pm
Location: Netherlands

Re: Common Lisp pack?

Postby aerique » Fri Feb 05, 2010 8:50 pm

Newer, cleaned up version that has debugging output off by default.

See viewtopic.php?p=559#p559 for the v0.3 download.
Last edited by aerique on Tue Feb 09, 2010 11:51 am, edited 1 time in total.
aerique
Brigadier-General
 
Posts: 131
Joined: Fri Feb 05, 2010 3:23 pm
Location: Netherlands

Re: Common Lisp pack?

Postby dhowden » Sat Feb 06, 2010 12:31 am

Score, checking it out now.
User avatar
dhowden
Cadet
 
Posts: 5
Joined: Fri Feb 05, 2010 4:03 am
Location: Australia

Re: Common Lisp pack?

Postby mspang » Mon Feb 08, 2010 3:19 am

It doesn't appear to be able to read the provided map files:

$ sbcl --dynamic-space-size 2000 MyTronBot.lisp < ~/tron/maps/u.txt
This is SBCL 1.0.18.debian, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>.

SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses. See the CREDITS and COPYING files in the
distribution for more information.
*
15
*
15
*
debugger invoked on a SB-INT:SIMPLE-READER-ERROR in thread #<THREAD "initial thread" RUNNING {10023BDD21}>:
SB-INT:SIMPLE-READER-ERROR at 8 (line 2, column 2) on #<SYNONYM-STREAM :SYMBOL SB-SYS:*STDIN* {1000184671}>:
missing label for ##

Type HELP for debugger help, or (SB-EXT:QUIT) to exit from SBCL.

restarts (invokable by number or by possibly-abbreviated name):
0: [ABORT] Exit debugger, returning to top level.

(SB-INT:SIMPLE-READER-ERROR
#<SYNONYM-STREAM :SYMBOL SB-SYS:*STDIN* {1000184671}>
"missing label for ##")[:EXTERNAL]
0]

mspang
Colonel
 
Posts: 74
Joined: Fri Feb 05, 2010 1:53 am

Re: Common Lisp pack?

Postby aerique » Mon Feb 08, 2010 8:18 am

mspang wrote:It doesn't appear to be able to read the provided map files:

You need to use the "--script" switch to load the file:

Code: Select all
$ sbcl --dynamic-space-size 2000 --script MyTronBot.lisp < maps/u.txt
4

This is tested with the v0.2 pack I attached in an earlier post in this thread. I haven't tried the lower versioned packs.

Will the dynamic-space-size switch be used for all SBCL submissions?
aerique
Brigadier-General
 
Posts: 131
Joined: Fri Feb 05, 2010 3:23 pm
Location: Netherlands

Next

Return to Misc

Who is online

Users browsing this forum: No registered users and 1 guest

cron