All pastes #1713954 Raw Edit

Untitled

public text v1 · immutable
#1713954 ·published 2009-12-14 03:31 UTC
rendered paste body
for (int i = 0; i < grid.length(); i++) {
	for (int j = 0; j < grid[i].length(); j++) {
		//if (this square contains pirates) grid[i][j] = (red color object)
		//else if (this square contains ninjas) grid[i][j] = (blue color object)
		// else (neither pirates nor ninjas) grid[i][j] = black color object
	}
}