Jump to content

kiwinacol

Full Members
  • Posts

    78
  • Joined

  • Last visited

Everything posted by kiwinacol

  1. Hello Wayne, and thanks for your help. I’ve incorporated one of your tips into the north hand - thanks. My hope was to get one West ‘IF’ working, then nest the other suits in their ‘else’ An issue I’ve notice with my “OR” ’s for East is that the choices don’t get equal selection. The first, clubs is generated much more than the last OR in hearts. Is there any way of evening up the priority? Also I suspect when code for West is run, it ‘robs’ cards from other hands to fit that hands code requirements, even when that results in north no longer has >=5 spades and fewer HCP’s? my, (hearts(east) >= 5 ? shape(west, + x4x1 + x41x + x4x1+ x3x1 + x31x + x3x1 ) : shape(west, xxxx)) doesn’t generate errors, but also doesn’t work when east has hearts as the overcall >=5 suit. Is there an expression to temporarily deactivate a line or lines? ================== North: 1S (>=5 card), (other suits <=5 cards) opening bid, 11 - 14 HCP East: simple Major overcall 7-10 HCP (with 5+HCP in M) or simple minor overcall 10-12 HCP, 5+ card suits (with 6+HCP in 5 m) West: balance of cards and HCP ( for overcall suit, hand has splinter raises, at the moment 3 card support OK, later voids ) the, : shape(west, xxx2) xxx2 is just junk to give me an indication that the first ‘then’ has been rejected South: 4-7 HCP, S support, any xxx (enough for single raise) North/South: <= 20 HCP ======start of code ( hcp(north)>=12 and hcp(north)<=14 and spades(north)>=5 and hearts(north)<=spades(north) and diamonds(north)<=hearts(north) and clubs(north)<=hearts(north)) and (( hcp(east)>=9 and hcp(east)<=12 and hcp(east,clubs)>=6 and clubs(east)>=5) or ( hcp(east)>=9 and hcp(east)<=12 and hcp(east,diamonds)>=5 and diamonds(east)>=6) or ( hcp(east)>=9 and hcp(east)<=12 and hcp(east,diamonds)>=6 and diamonds(east)>=5) or ( hcp(east)>=7 and hcp(east)<=11 and hcp(east,hearts)>=5 and hearts(east)>=6 ) or ( hcp(east)>=7 and hcp(east)<=12 and hcp(east,hearts)>=6 and hearts(east)>=5 )) and (hearts(east) >= 5 ? shape(west, + x4x1 + x41x + x4x1+ x3x1 + x31x + x3x1 ) : shape(west, xxxx)) and (hcp(south)>=4 and hcp(south)<=6 and hcp(north)+hcp(south)<=20 and spades(south)<=3 ) ======end of code
  2. Greetings all, I want west to bid based on Easts overcall in hearts, then dealer script to generate splinter type hands for west. When I've got that right I can have East overcalling in other suits with splinters for those. Why? My partner and I are trialling Ruben Transfers and Lebensohl, and I want to generate different hands to test sequences and combinations. Most of my code is working so far but I'm stuck at testing East's Heart holding. I've looked around the site but haven't found similar code as yet. My condition statement starts: (hearts(east) >= 5 ? shape(west, + x4x1 + ..... but it (this part of my script) doesn't seem to 'know' what easts holding is. Do I have to make easts holding into a variable, that I can then check against? And how would I do that, or is there an alternative approach? thanks from unskilled scripture Ash
×
×
  • Create New...