Path: utzoo!attcan!uunet!mcvax!hp4nl!dutrun!hans From: hans@duttnph.UUCP (Hans Buurman) Newsgroups: comp.sources.games.bugs Subject: bug in tess Summary: be realistic, or fix bugs Message-ID: <572@dutrun.UUCP> Date: 10 Dec 88 09:43:24 GMT Sender: tnphnws@dutrun.UUCP Reply-To: hans@duttnph.UUCP (Hans Buurman) Organization: Delft University of Technology, The Netherlands Lines: 58 Tess (Beyond the Tesseract) dumps core when it asked for a probability, and there's no decimal point in your answer (which means you're either an optimist, a pessimist, or you don't know anything about probabilistics :-). The following patch fixes it (I tried not to look at the source, so no warrants made): #! /bin/sh # This is a shell archive. Remove anything before this line, then unpack # it by saving it into a file and typing "sh file". To overwrite existing # files, type "sh file -c". You can also feed this as standard input via # unshar, or by typing "sh 'tess.patch' <<'END_OF_FILE' X*** tess.c Sat Dec 10 10:33:31 1988 X--- tess.org Sat Dec 10 10:30:50 1988 X*************** X*** 532,538 **** X gets( s ); X p = strchr( s, '.' ); /* skip past decimal point */ X if (p) p++; X! if (!p || ((i=atoi(p)!=sum && i*10!=sum))) X { X prints("Wrong."); X get_flag = 0; X--- 532,539 ---- X gets( s ); X p = strchr( s, '.' ); /* skip past decimal point */ X if (p) p++; X! i = atoi( p ); X! if (i!=sum && i*10!=sum) X { X prints("Wrong."); X get_flag = 0; END_OF_FILE if test 555 -ne `wc -c <'tess.patch'`; then echo shar: \"'tess.patch'\" unpacked with wrong size! fi # end of 'tess.patch' fi echo shar: End of shell archive. exit 0 ----------------------------------------------------------------------------- Hans Buurman | hans@duttnph.UUCP Pattern Recognition Group | mcvax!hp4nl!dutrun!duttnph!hans Faculty of Applied Physics | tel. 31 - (0) 15 - 78 46 94 Delft University of Technology |