Jon Aquino's Mental Garden

Engineering beautiful software jon aquino labs | personal blog

Sunday, January 30, 2005

Ruby script to generate a Bolles-style "Prioritizing Grid"


n = 5
def pad(x)
return " "+x.to_s if x < 10
return x
end
1.upto(n-1) {|i|
(i+1).upto(n) {|j|
print "#{pad(i)}, #{pad(j)} "
}
print "\n"
}


Example output:


1, 2 1, 3 1, 4 1, 5
2, 3 2, 4 2, 5
3, 4 3, 5
4, 5

2 Comments:

  • For those who have struggled, as I have, with the manual version of Richard Bolles’ Prioritizing Grid, there is a web version at: www.GroundOfYourOwnChoosing.com

    By Anonymous Anonymous, at 3/05/2009 8:15 AM  

  • Cool.

    By Blogger Jonathan, at 3/05/2009 8:04 PM  

Post a Comment

<< Home