From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_40,FREEMAIL_FROM, INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,13717fdb90d942,start X-Google-Attributes: gid103376,public From: Steve Subject: Would someone help a struggling ADA student Date: 1998/10/02 Message-ID: <6v3c4q$890$1@news.campus.mci.net>#1/1 X-Deja-AN: 397153105 Organization: CampusMCI Newsgroups: comp.lang.ada Date: 1998-10-02T00:00:00+00:00 List-Id: 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