Patch for recently posted Knights Tour game

Bill Randle billr at tekred.TEK.COM
Sat Feb 20 02:26:05 AEST 1988


I received an updated source file from the author the day after I
posted the original. Here is the diff (a simple one line addition).

	-Bill Randle
	Moderator, comp.sources.games
	Tektronix, Inc.
	games-request at tekred.TEK.COM
------------------------------------------------------
*** knight.c.orig	Thu Feb 18 17:39:59 1988
--- knight.c	Fri Feb 19 08:22:15 1988
***************
*** 133,138 ****
--- 133,139 ----
  	if (row == 'R') {
  		rw = lrand48() % 8;
  		col = lrand48() % 8;
+ 		j = 8* rw + col;
  		row = rw + 'A';
  		column = col + '1';
  	}



More information about the Comp.sources.bugs mailing list