rec.autos.simulators

AI Programming Query

Ben Colema

AI Programming Query

by Ben Colema » Sat, 01 Sep 2001 11:20:29

I'm interested in AI programming.  Are there any Web  resources discussing
this or is it mostly proprietary "trade secret" type affairs?  Are most of
the sim programmers using C?

Thanks,

Ben

Frankie Hower

AI Programming Query

by Frankie Hower » Sat, 01 Sep 2001 12:35:07


Here's a useful resource...
http://www.gameai.com/aimain.html

Simon Brow

AI Programming Query

by Simon Brow » Sat, 01 Sep 2001 19:32:02

Ben, there's an AI forum (along with plenty of other programming forums) at
http://www.gamedev.net/ so you might get a better response if you post your
question there.  "Tricks of the Windows Game Programming Gururs" by Andre
Lamothe has a section on AI programming, but it's nothing to write home
about.

I think your best bet would be a book search on amazon, I'm pretty sure
there are published books on the subject.

As for the language, I think you'll find the majority of 'sim programmers'
are using C or C++, and the trend is towards C++.


mustan

AI Programming Query

by mustan » Sat, 01 Sep 2001 22:18:23



Although generally Prolog is billed as "THE language for AI" ...  I
never liked it much myself however.

Ryan Mitchle

AI Programming Query

by Ryan Mitchle » Sat, 01 Sep 2001 22:34:49

I know Ratbag create their AI drivers using neural networks that are trained
on the various tracks (I think drivers are trained for line, throttle and
braking). The different level competitors then represent different training
lengths (i.e. the better AI drivers were trained for longer). To my mind
this is much better than Papy's statically coded line.

I got this info from an interview with Ratbag's designers I read when
Powerslide was released. Maybe others have some more info . . . ?

Ryan

Ryan Mitchle

AI Programming Query

by Ryan Mitchle » Sat, 01 Sep 2001 23:40:59


*SPLUTTER* It's a wonderful, elegant, eye-opener of a language!!! Only
problems are that it is a little slow for regular applications, and rather
hard to learn, too (hard in terms of adjusting to the paradigm, NOT hard
like C/C++'s walking-on-eggs approach). Most things are done recursively
(like Lisp) and there are added complications in that the control flow is
not exactly explicit in the code listing. The Prolog code to solve the
Towers of Hanoi problem is something like 5 lines long . . .

Sorry for the intensely nerdish rant ;-)

Ryan

mustan

AI Programming Query

by mustan » Sun, 02 Sep 2001 09:49:51





> > Although generally Prolog is billed as "THE language for AI" ...  I
> > never liked it much myself however.

> *SPLUTTER* It's a wonderful, elegant, eye-opener of a language!!! Only
> problems are that it is a little slow for regular applications, and rather
> hard to learn, too (hard in terms of adjusting to the paradigm, NOT hard
> like C/C++'s walking-on-eggs approach). Most things are done recursively
> (like Lisp) and there are added complications in that the control flow is
> not exactly explicit in the code listing. The Prolog code to solve the
> Towers of Hanoi problem is something like 5 lines long . . .

> Sorry for the intensely nerdish rant ;-)

You pointed it out perfectly.

The problem that *I* had with Prolog is that I have been a "functional"
(Cobol/Assembly/Pascal/C/C++/Java/C#) programmer for too long by the
time I tried to learn it.  I simply could NOT adjust to the paradigm.
FWIW: I had the same problem trying to adjust to LISP. (Lots of
Irritating Stupid Parenthesis)

Bryon Lap

AI Programming Query

by Bryon Lap » Sun, 02 Sep 2001 12:11:55

I always thought it was Lots of Inline Single Parenthesis.....





> > > Although generally Prolog is billed as "THE language for AI" ...  I
> > > never liked it much myself however.

> > *SPLUTTER* It's a wonderful, elegant, eye-opener of a language!!! Only
> > problems are that it is a little slow for regular applications, and rather
> > hard to learn, too (hard in terms of adjusting to the paradigm, NOT hard
> > like C/C++'s walking-on-eggs approach). Most things are done recursively
> > (like Lisp) and there are added complications in that the control flow is
> > not exactly explicit in the code listing. The Prolog code to solve the
> > Towers of Hanoi problem is something like 5 lines long . . .

> > Sorry for the intensely nerdish rant ;-)

> You pointed it out perfectly.

> The problem that *I* had with Prolog is that I have been a "functional"
> (Cobol/Assembly/Pascal/C/C++/Java/C#) programmer for too long by the
> time I tried to learn it.  I simply could NOT adjust to the paradigm.
> FWIW: I had the same problem trying to adjust to LISP. (Lots of
> Irritating Stupid Parenthesis)

mustan

AI Programming Query

by mustan » Sun, 02 Sep 2001 14:49:33



> I always thought it was Lots of Inline Single Parenthesis.....






> > > > Although generally Prolog is billed as "THE language for AI" ...  I
> > > > never liked it much myself however.

> > > *SPLUTTER* It's a wonderful, elegant, eye-opener of a language!!! Only
> > > problems are that it is a little slow for regular applications, and rather
> > > hard to learn, too (hard in terms of adjusting to the paradigm, NOT hard
> > > like C/C++'s walking-on-eggs approach). Most things are done recursively
> > > (like Lisp) and there are added complications in that the control flow is
> > > not exactly explicit in the code listing. The Prolog code to solve the
> > > Towers of Hanoi problem is something like 5 lines long . . .

> > > Sorry for the intensely nerdish rant ;-)

> > You pointed it out perfectly.

> > The problem that *I* had with Prolog is that I have been a "functional"
> > (Cobol/Assembly/Pascal/C/C++/Java/C#) programmer for too long by the
> > time I tried to learn it.  I simply could NOT adjust to the paradigm.
> > FWIW: I had the same problem trying to adjust to LISP. (Lots of
> > Irritating Stupid Parenthesis)

If they were 'single' it wouldn't be bad ... but there's lots of them
... inline .... more and more ..... they are everywhere .....  oh my
god.... they are taking over the code .... help
Asbj?rn Bj?rnst

AI Programming Query

by Asbj?rn Bj?rnst » Sun, 02 Sep 2001 15:36:55


> The Prolog code to solve the Towers of Hanoi problem is something
> like 5 lines long . . .

Five lines, huh?

This is my solution in dc (Simple calculator program on unixes)
(The output is which ring, from peg, to peg):

-- cut here
2[SdSsSaln1-dSn0<xLnLaLsLdc]sy1[ldlslalyx12Pldlslnfclslaldlyx]sx3? 1+snlyx
-- cut here

Of course, the five prolog-lines may be a bit more readable...

You're forgiven.:-)
--
  [asbjxrn]            [lLd25z*%ds1-100/sLlSdI%ds2-O/sSl1l2*PlL0<l]sl
                       21172310731916131628237117 3237142523312SSSLllxq

Dave Henri

AI Programming Query

by Dave Henri » Sun, 02 Sep 2001 21:41:22

 Ah!  the Old Hanoi towers puzzle....splendid solution by the way...uhmmmm
what does it mean?
:)
dave henrie


> > The Prolog code to solve the Towers of Hanoi problem is something
> > like 5 lines long . . .

> Five lines, huh?

> This is my solution in dc (Simple calculator program on unixes)
> (The output is which ring, from peg, to peg):

> -- cut here
> 2[SdSsSaln1-dSn0<xLnLaLsLdc]sy1[ldlslalyx12Pldlslnfclslaldlyx]sx3? 1+snlyx
> -- cut here

> Of course, the five prolog-lines may be a bit more readable...

> > Sorry for the intensely nerdish rant ;-)

> You're forgiven.:-)
> --
>   [asbjxrn]            [lLd25z*%ds1-100/sLlSdI%ds2-O/sSl1l2*PlL0<l]sl
>                        21172310731916131628237117 3237142523312SSSLllxq

Gunnar Horrigm

AI Programming Query

by Gunnar Horrigm » Sun, 02 Sep 2001 22:43:07



> > The Prolog code to solve the Towers of Hanoi problem is something
> > like 5 lines long . . .

> Five lines, huh?

> This is my solution in dc (Simple calculator program on unixes)
> (The output is which ring, from peg, to peg):

> -- cut here
> 2[SdSsSaln1-dSn0<xLnLaLsLdc]sy1[ldlslalyx12Pldlslnfclslaldlyx]sx3? 1+snlyx
> -- cut here

cool!  a programming contest!  

Gunnar, waiting to see the INTERCAL version.
--
Gunnar
    #31 SUCKS#015 Tupperware MC#002 DoD#0x1B DoDRT#003 DoD:CT#4,8 Kibo: 2
                          DE RECTIS NON TOLERANDUM EST

Gunnar Horrigm

AI Programming Query

by Gunnar Horrigm » Sun, 02 Sep 2001 22:59:08



> > The Prolog code to solve the Towers of Hanoi problem is something
> > like 5 lines long . . .

> Five lines, huh?

> This is my solution in dc (Simple calculator program on unixes)
> (The output is which ring, from peg, to peg):

> -- cut here
> 2[SdSsSaln1-dSn0<xLnLaLsLdc]sy1[ldlslalyx12Pldlslnfclslaldlyx]sx3? 1+snlyx
> -- cut here

cool!  a programming contest!  

Gunnar, waiting for that INTERCAL version.
--
Gunnar
    #31 SUCKS#015 Tupperware MC#002 DoD#0x1B DoDRT#003 DoD:CT#4,8 Kibo: 2
                          DE RECTIS NON TOLERANDUM EST

Doug Millike

AI Programming Query

by Doug Millike » Mon, 03 Sep 2001 07:18:46




> > > The Prolog code to solve the Towers of Hanoi problem is something
> > > like 5 lines long . . .

> > Five lines, huh?

> > This is my solution in dc (Simple calculator program on unixes)
> > (The output is which ring, from peg, to peg):

> > -- cut here
> > 2[SdSsSaln1-dSn0<xLnLaLsLdc]sy1[ldlslalyx12Pldlslnfclslaldlyx]sx3? 1+snlyx
> > -- cut here

> cool!  a programming contest!  

> Gunnar, waiting to see the INTERCAL version.

<grin>
That's nothing, my old FinalWordII wordprocessor (DOS) includes a fully
recursive macro language.  Tower of Hanoi is about 10 lines of code (given
in the manual) and produces a nicely formated list of all the moves
required for N disks!  
</grin>

rec.autos.simulators is a usenet newsgroup formed in December, 1993. As this group was always unmoderated there may be some spam or off topic articles included. Some links do point back to racesimcentral.net as we could not validate the original address. Please report any pages that you believe warrant deletion from this archive (include the link in your email). RaceSimCentral.net is in no way responsible and does not endorse any of the content herein.