All pastes #470546 Raw Edit

Mine

public text v1 · immutable
·published 2007-05-04 10:40 UTC
rendered paste body
BOOL loop = YES;	// Breaks when set to NO
		int count = 0;		// Counts until 8
		NSLog ( @"begin loop for Whites Pawns" );
		while ( loop ) {
			[[boardArray objectAtIndex:1]
			 			 addObject: [[Pawn alloc] init_with_owner: 0
								 						 and_diag: YES	// Pawn moves diagonally to take 
								  						 and_hoz: NO 
								 						and_vert: YES 
													   and_fonly: YES 
													   and_specl: YES 
								 					    and_maxd: 1 
								 						and_maxh: 0 
								 						and_maxv: 2 
														   and_x: count 
														   and_y: 1]];
			[[[boardArray objectAtIndex:1] objectAtIndex:count] print];
			[[[boardArray objectAtIndex:1] objectAtIndex:count] release];
			NSLog ( @"added pawn to array" );
			count++;
			if ( count == 8 ) {
				NSLog ( @"breaking out of loop" );
				loop = NO;
			}