comp.lang.ada
 help / color / mirror / Atom feed
From: do_while@ridgecrest.ca.us (Do-While Jones)
Subject: Re: Would someone help a struggling ADA student
Date: 1998/10/05
Date: 1998-10-05T00:00:00+00:00	[thread overview]
Message-ID: <6vaj7d$nht$1@owens.ridgecrest.ca.us> (raw)
In-Reply-To: 6v3c4q$890$1@news.campus.mci.net

In article <6v3c4q$890$1@news.campus.mci.net>,
Steve  <DMSR1999@hotmail.com> wrote:
>I have to write an ADA program that plays Battleship.  
>I have written the basics and it will ramdomly select 
>"Hit" locations.  I now must develop a strategy and write
>that code.  I would like for the program to be able to "learn"
>as it goes.  Our programs will be run against other students in 
>the class and our grade will be based on our win-lose record.  
>Also, it will be run against the professor's which has never been 
>beaten.  Each program will play each other 20,000x.  
>I thought of setting up an array and assigning each grid in the 10x10
>board a value then changing each value depending on the outcome of 
>each shot. Do you have any better suggestions?  How should I go about 
>getting the program to "learn" (other's stragedy) as it plays?
>Steve

This is one of my pet peeves.  Is Steve taking a course in Ada
programming, or is it a course in algorithm development, or a course in
artificial intelligence?  It seems that Steve will be graded on how well
he can develop an algorithm to solve the Battleship problem.  There
doesn't seem to be any reward for program clarity, proper use of Ada
features, etc.

It would be more appropriate for the professor to give the students a
narrative description of a battelship search algorithm and tell the
students to write an Ada program that implements that algorithm.  The
student should be graded on how well he wrote the program, not how good
the algorithm is.

My comments are based on the assumption that Steve is taking an
introductory Ada programming course.  If Steve is taking "Creative Problem
Solving" or "Artifical Intelligence", and if the course has a prerequisite
of at least one Ada programming course, then I have no objections. 

My fear is that Steve will spend more effort trying to figure out a
Battleship algorithm than the syntax of an Ada loop.  I'm afraid Steve
will get the idea that it is hard to program in Ada because it is hard to
figure out how to write a program that learns the game strategy on the
fly.

Do-While Jones

            +--------------------------------+
            |    Know                 Ada    |
            |        [Ada's Portrait]        |
            |    Will              Travel    |
            | wire do_while@ridgecrest.ca.us |
            |   www.ridgenet.net/~do_while   |
            +--------------------------------+





  reply	other threads:[~1998-10-05  0:00 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-10-02  0:00 Would someone help a struggling ADA student Steve
1998-10-05  0:00 ` Do-While Jones [this message]
1998-10-05  0:00   ` dewarr
1998-10-06  0:00     ` dennison
1998-10-06  0:00       ` Michael F Brenner
1998-10-07  0:00         ` dennison
1998-10-06  0:00       ` Robert A Duff
1998-10-06  0:00         ` Martin C. Carlisle
1998-10-16  0:00           ` Robert A Duff
1998-10-16  0:00             ` Martin C. Carlisle
1998-10-07  0:00         ` dennison
1998-10-17  0:00     ` Ehud Lamm
1998-10-05  0:00 ` Michael F Brenner
  -- strict thread matches above, loose matches on Subject: below --
1998-10-08  0:00 Steve
1998-10-08  0:00 Steve
1998-10-08  0:00 ` dennison
1998-10-18  0:00 Steve
1998-10-18  0:00 ` Ehud Lamm
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox