home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / gnu / chess / 510 < prev    next >
Encoding:
Internet Message Format  |  1992-12-30  |  844 b 

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!rpi!bu.edu!dartvax!news
  2. From: fermat@fermat.dartmouth.edu (Michael Glenn)
  3. Newsgroups: gnu.chess
  4. Subject: Gnuchess infinite loop?
  5. Message-ID: <1992Dec30.054927.26996@dartvax.dartmouth.edu>
  6. Date: 30 Dec 92 05:49:27 GMT
  7. Sender: news@dartvax.dartmouth.edu (The News Manager)
  8. Organization: Dartmouth College, Hanover, NH
  9. Lines: 15
  10.  
  11.  
  12. I've tried compiling gnuchess4.0.pl60 with gcc 2.3.3, and I consistantly  
  13. get an infinite loop (usually after 4-5 seconds of successful operation).   
  14. It happens around line 54 of atak.c in the loop
  15.  
  16.           do
  17.             {
  18.               a[u] = ((a[u]+1) | c);
  19.               u = ((color[u] == neutral) ? ppos[u] : pdir[u]);
  20.           } while (u != sq);
  21.  
  22. Obviously u never gets to equal sq here.  Anyone else have such a problem,  
  23. or is this old news?
  24.  
  25. Michael Glenn
  26.