Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!eos!aurora!labrea!kestrel!jeff From: jeff@kestrel.ARPA (Jeff Kitson) Newsgroups: comp.sources.games.bugs Subject: nobs misses some pairs of aces Message-ID: <35502@kestrel.ARPA> Date: 29 Mar 88 02:51:43 GMT Organization: Kestrel Institute, Palo Alto, CA Lines: 27 The initialization of the array rep[] in evalhand() in gamescore.c does not set rep[0] to 0 so isolated pairs of Aces do not get found. *** gamescore.c Mon Mar 28 18:44:50 1988 --- /usr/src/local/nobs/gamescore.c Mon Mar 28 18:41:58 1988 *************** *** 85,91 /* * Count the ranks. */ ! for (i=1; i<15; i++) rep[i]=0; for (i=0; i<5; i++) rep[RANK(ehand[i])]+=1; /* * Look for isolated pairs, etc. --- 85,91 ----- /* * Count the ranks. */ ! for (i=0; i<15; i++) rep[i]=0; for (i=0; i<5; i++) rep[RANK(ehand[i])]+=1; /* * Look for isolated pairs, etc. -- Jeff Kitson jeff@kestrel.arpa