home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / rec / games / programm / 4788 < prev    next >
Encoding:
Internet Message Format  |  1992-11-21  |  2.1 KB

  1. From: Eric.Kjellman@f99.n121.z1.FidoNet.Org (Eric Kjellman)
  2. Sender: FredGate@p0.f99.n121.z1.FidoNet.Org
  3. Path: sparky!uunet!cs.utexas.edu!uwm.edu!daffy!uwvax!gorgon!fullfeed!ninejacknine!FredGate
  4. Newsgroups: rec.games.programmer
  5. Subject: Games and genetic algorithms
  6. Message-ID: <722323613.0@ninejacknine.FidoNet.Org>
  7. Date: 20 Nov 92  21:27:14 EST
  8. Lines: 25
  9.  
  10.  ACG> I have written several computer games using the 
  11.  ACG> Borland Pascal compiler and
  12.  ACG> would like to teach the computer to learn from its own 
  13.  ACG> mistakes when it plays
  14.  ACG> against a human opponent (a la War Games).  I am going to try to insert a
  15.  ACG> genetic algorithm into the board evaluation subroutine so that the game
  16.  ACG> strategies whose parameters produce the most successful games survive to
  17.  ACG> the "next generation".  Is this a good idea?  If not, 
  18.  ACG> what other method of
  19.  ACG> computer learning should I use?
  20.  ACG>   My first project will be to convert either Checkers, Othello, or Ataxx.
  21.  
  22.  
  23. Hmmm. Well, if you do do something like that, I'd suggest you set it up so the computer can play the computer, instead of relying on a human to sit down through a few hundred games until the program gets good. If you have a fast computer and a lot of spare processing time, you could also try a "King of the Mountain" like method... for example:
  24.  
  25. Method 1 is randomly generated, it starts as king of the mountain. Then another method is generated (Method 2), and 3 games are played between the two. The method that wins the most games stays on, and the other method is erased. Then Method 3 is generated, and it plays the method that won best out of 3 games. Wineer stays on. Etc. Eventually you should end up with something that plays quite well... although it could take quite a long time...
  26.  
  27. (One more note... in a game like Chess where a draw is possible, a score of 1.5-1.5 could happen in a best of three series, so you might either have them keep playing until the tie is broken, or you could save both methods and have like a "Co-kings of the mountain")
  28.  
  29. hope this gives you some ideas!
  30.  
  31.         -Eric Kjellman
  32.  
  33.  
  34.  * Origin: NineJackNine (1:121/99)
  35.