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=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,13717fdb90d942 X-Google-Attributes: gid103376,public From: mcc@tyrolia.cs.princeton.edu (Martin C. Carlisle) Subject: Re: Would someone help a struggling ADA student Date: 1998/10/06 Message-ID: <6ve4sp$2qi$1@cnn.Princeton.EDU>#1/1 X-Deja-AN: 399151602 References: <6v3c4q$890$1@news.campus.mci.net> <6vatvr$329$1@nnrp1.dejanews.com> <6vd963$m9s$1@nnrp1.dejanews.com> Organization: US Air Force Academy, Dept of Computer Science Newsgroups: comp.lang.ada Date: 1998-10-06T00:00:00+00:00 List-Id: In article , Robert A Duff wrote: >dennison@telepath.com writes: >And does my code "win" if it causes the opponent's code to raise an >unhandled exception? > >Or how about a more suble way to cheat? My code pokes the output of the >opponent's code in such a way as to make it do bad moves. > >;-) ;-) We actually do this at the Air Force Academy (the student who wrote is not one of ours). Two points: 1) the contest is for extra credit only. We require the students to implement random moves for full credit. (This solves the AI in an intro course issue, and yet provides some interest for those who want to go above and beyond). 2) We provide an interface that your move procedure must follow (board is in parameter, move is out parameter). We then cut and paste their procedures into a tournament program. If you raise an unhandled exception, the tournament code catches it and you lose! --Martin -- Martin C. Carlisle, Computer Science, US Air Force Academy mcc@cs.usafa.af.mil, http://www.usafa.af.mil/dfcs/bios/carlisle.html DISCLAIMER: This content in no way reflects the opinions, standard or policy of the US Air Force Academy or the United States Government.