0 carbon Posted July 22, 2010 Report Share Posted July 22, 2010 Use this for Goulash practice as-is, or choose different final line using earlier definitions===================================== bigN = shape(north, any 6xxx + any 7xxx + any 8xxx + any 9xxx + any 00xx + any 01xx + any 11xx + any 02xx + any 12xx + any 03xx ) bigS = shape(south, any 6xxx + any 7xxx + any 8xxx + any 9xxx + any 00xx + any 01xx + any 11xx + any 02xx + any 12xx + any 03xx ) bigE = shape(east, any 6xxx + any 7xxx + any 8xxx + any 9xxx + any 00xx + any 01xx + any 11xx + any 02xx + any 12xx + any 03xx ) bigW = shape(west, any 6xxx + any 7xxx + any 8xxx + any 9xxx + any 00xx + any 01xx + any 11xx + any 02xx + any 12xx + any 03xx ) solidN = (hascard(north, AS) and hascard(north, KS) and hascard(north, QS) and hascard(north, JS) and hascard(north, TS) ) or (hascard(north, AH) and hascard(north, KH) and hascard(north, QH) and hascard(north, JH) and hascard(north, TH) ) (hascard(north, AD) and hascard(north, KD) and hascard(north, QD) and hascard(north, JD) and hascard(north, TD) ) or (hascard(north, AC) and hascard(north, KC) and hascard(north, QC) and hascard(north, JC) and hascard(north, TC) ) solidS = (hascard(south, AS) and hascard(south, KS) and hascard(south, QS) and hascard(south, JS) and hascard(south, TS) ) or (hascard(south, AH) and hascard(south, KH) and hascard(south, QH) and hascard(south, JH) and hascard(south, TH) ) (hascard(south, AD) and hascard(south, KD) and hascard(south, QD) and hascard(south, JD) and hascard(south, TD) ) or (hascard(south, AC) and hascard(south, KC) and hascard(south, QC) and hascard(south, JC) and hascard(south, TC) ) longN = shape(north, any 6xxx + any 7xxx + any 8xxx + any 9xxx + any 012x + any 011x + any 003x + any 002x) longS = shape(south, any 6xxx + any 7xxx + any 8xxx + any 9xxx + any 012x + any 011x + any 003x + any 002x) twoN = shape(north, any 55xx + any 56xx + any 57xx + any 58xx + any 66xx + any 67xx) twoS = shape(south, any 55xx + any 56xx + any 57xx + any 58xx + any 66xx + any 67xx) highNS = hcp(south)+hcp(north)>20 majorsNS = shape(north, 5xxx + x5xx) or shape(south, 5xxx + x5xx) spadeEW = spades(west)+spades(east)>9 diamondEW = diamonds(west)+diamonds(east)>9 heartEW = hearts(west)+hearts(east)>9 clubEW = clubs(west)+clubs(east)>9 competition = clubEW or heartEW or diamondEW or spadeEW bigE and bigW and bigN and bigS Quote Link to comment Share on other sites More sharing options...
Recommended Posts