Jinksy Posted May 21, 2014 Report Share Posted May 21, 2014 I'm doing a programming course for which the final two weeks will be a project of my choice. It had occurred to me when I was putting together my own takes on Fantunes (details) that I often wanted 'or' dealing functionality - that is, a dealing program that could give eg 'a hand with either 12-14 points and no shortage or any 18+'. So far as I've seen, no online dealing programs offer that, so I'm thinking about writing something along those lines if it seems like a realistic option. So this raises a couple of questions:a) Are there any dealing programs I've missed which offer such an option?b) Are there any other parameter-combinations missing from dealing programs that you'd like the option to specify? Link to comment Share on other sites More sharing options...
hrothgar Posted May 21, 2014 Report Share Posted May 21, 2014 I'm doing a programming course for which the final two weeks will be a project of my choice. It had occurred to me when I was putting together my own takes on Fantunes (details) that I often wanted 'or' dealing functionality - that is, a dealing program that could give eg 'a hand with either 12-14 points and no shortage or any 18+'. So far as I've seen, no online dealing programs offer that, so I'm thinking about writing something along those lines if it seems like a realistic option. So this raises a couple of questions:a) Are there any dealing programs I've missed which offer such an option?b) Are there any other parameter-combinations missing from dealing programs that you'd like the option to specify? The dealer program that is integrated into BBO has a complete scripting language built into it 1 Link to comment Share on other sites More sharing options...
nige1 Posted May 21, 2014 Report Share Posted May 21, 2014 I'm doing a programming course for which the final two weeks will be a project of my choice. It had occurred to me when I was putting together my own takes on Fantunes (details) that I often wanted 'or' dealing functionality - that is, a dealing program that could give eg 'a hand with either 12-14 points and no shortage or any 18+'. So far as I've seen, no online dealing programs offer that, so I'm thinking about writing something along those lines if it seems like a realistic option. So this raises a couple of questions:a) Are there any dealing programs I've missed which offer such an option?b) Are there any other parameter-combinations missing from dealing programs that you'd like the option to specify? Hans van Staveren's Dealer with this syntax can be used to generate hands, on BBO or separately, for practice purposes, with scripts like condition hcp (north) > 17 or (hcp (north) > 11 and hcp (north) < 15 and spades (north) > 1 and hearts (north) > 1 and diamonds (north) > 1 and clubs (north) > 1) 1 Link to comment Share on other sites More sharing options...
FM75 Posted May 21, 2014 Report Share Posted May 21, 2014 I'm doing a programming course for which the final two weeks will be a project of my choice. It had occurred to me when I was putting together my own takes on Fantunes (details) that I often wanted 'or' dealing functionality - that is, a dealing program that could give eg 'a hand with either 12-14 points and no shortage or any 18+'. So far as I've seen, no online dealing programs offer that, so I'm thinking about writing something along those lines if it seems like a realistic option. So this raises a couple of questions:a) Are there any dealing programs I've missed which offer such an option?b) Are there any other parameter-combinations missing from dealing programs that you'd like the option to specify? As a project, you could write a program to "manage" scripting the dealer program on BBO. It is capable of reporting various forms of statistics. Two weeks won't be much time for a project like this unless you are pretty darn good at the language you are using. That said, just because one exists should not stop you from writing your own. You could look at the links mentioned to see what BBO/Dealer support. You need to do several things - one generate random deals, two establish a mechanism for specifying constraints, and three establish whether a deal meets the constraints, and finally do something with what you got - report statistics or whatever. You might find that any one or two of those components might take a week or more. Deciding how long software development takes experience. The best advice - predicting is hard, especially about the future - and software engineers routinely underestimate how long it takes to develop something. Sounds like fun. Report back if you do something like this. :) 1 Link to comment Share on other sites More sharing options...
mycroft Posted May 21, 2014 Report Share Posted May 21, 2014 One thing that doesn't show up, to my knowledge, is an ability to skew the probability of various conditions. If I'm practising, for instance, slam-potential hands in standard, opener will be for example 13-20 and responder 13-20. Unfortunately, because there are just more 13 point hands than 20, the dealer will present "at random" 60, 70% of the hands of the 1♠-2NT; 4♠ variety, and not enough of the "slam potential, but possibly 4 is the limit" hands that are the tough ones to handle at the table. If you push one hand or the other enough to get a large number of the borderline hands, you get way too many that are "6 or 7" hands instead, and you still aren't practising "borderline slam". So it would be nice to say "13-20, but make the sets 13-14, 15-17, 18-20 equally likely" as opposed to the correct distributions given random chance. 1 Link to comment Share on other sites More sharing options...
barmar Posted May 22, 2014 Report Share Posted May 22, 2014 What you can do is deal a bunch of hands of each type into different files. Then select from the different files according to the desired percentages. Link to comment Share on other sites More sharing options...
helene_t Posted May 23, 2014 Report Share Posted May 23, 2014 What about a program that takes some known cards as input (for example, the user could specify one hand, or two hands) and then the program deals the remaining cards randomly, possibly subject to some restrictions known from the bidding? Say condition: balanced (South) and 15<=hcps(South)<=17 and hearts(north)<5 and spades(north)<5 and picture(west,"J76-QJ32-K983-J9") 2 Link to comment Share on other sites More sharing options...
nige1 Posted May 24, 2014 Report Share Posted May 24, 2014 What about a program that takes some known cards as input (for example, the user could specify one hand, or two hands) and then the program deals the remaining cards randomly, possibly subject to some restrictions known from the bidding? Saycondition: balanced (South) and 15<=hcps(South)<=17 and hearts(north)<5 and spades(north)<5 and picture(west,"J76-QJ32-K983-J9") dealer has such a facility e.g. predeal north SJ76, HQJ32, DK983, CJ9condition shape (south, any 4333 + any 4432 + any 5332 - 5xxx - x5xx)and hcp (south) > 14 and hcp (south) < 18 2 Link to comment Share on other sites More sharing options...
Jinksy Posted May 24, 2014 Author Report Share Posted May 24, 2014 As a project, you could write a program to "manage" scripting the dealer program on BBO. It is capable of reporting various forms of statistics. Two weeks won't be much time for a project like this unless you are pretty darn good at the language you are using. Not sure exactly what you mean. Do you mean something that would accumulate statistics over time? If so, to what end? Most of what I can think of that these could tell you would mathematically demonstrable outcomes that wouldn't benefit much from data. You might find that any one or two of those components might take a week or more. Deciding how long software development takes experience. The best advice - predicting is hard, especially about the future - and software engineers routinely underestimate how long it takes to develop something. Sounds like fun. Report back if you do something like this. :) Yeah, I'm only just starting to learn, and the course progresses at a rapid rate, so I'm even less able to predict anything about scope atm. That said, the advantage of trying to create functionality that doesn't already exist is I'll be much more interested in carrying on with the task at the end of the two weeks. The course is one of the development 'bootcamps' that have sprung up in the last few years and doesn't grade or offer qualifications in any meaningful way, which has the upside that, while I might want some sort of feeling of accomplishment at the end of the last two weeks, I don't necessarily need to strive to artificially 'finish' the final project. Link to comment Share on other sites More sharing options...
hrothgar Posted May 24, 2014 Report Share Posted May 24, 2014 Here's what I would dearly love to see: A Monte Carlo system that is able to compare the effectiveness of various auction termination systems after relay auctions. Start with a good double dummy solver as your basic engine. Build in logic so the engine is able to decide whether to continue to explore for slam or sign off.Build in an interface such that you can easily input multiple auction termination methods. Run the resulting systems over large numbers of hands and see which prove most effective. Link to comment Share on other sites More sharing options...
FM75 Posted May 24, 2014 Report Share Posted May 24, 2014 Not sure exactly what you mean. Do you mean something that would accumulate statistics over time? If so, to what end? Most of what I can think of that these could tell you would mathematically demonstrable outcomes that wouldn't benefit much from data. Statistics of hand distributions meeting your constraints. For example, how likely were the hands to occur? What was the average, std deviation of each individual suit, points held, both individually and as partnership. Link to comment Share on other sites More sharing options...
nige1 Posted May 26, 2014 Report Share Posted May 26, 2014 Statistics of hand distributions meeting your constraints. For example, how likely were the hands to occur? What was the average, std deviation of each individual suit, points held, both individually and as partnership. Dealer has limited facilities to calculate averages and print histograms e.g. condition hcp (north) > 17 or (hcp (north) > 11 and hcp (north) < 15 and spades (north) > 1 and hearts (north) > 1 and diamonds (north) > 1 and clubs (north) > 1) action frequency "Table (2D) HCP North and South" (hcp (north), 11, 25, hcp (south), 0, 20) 1 Link to comment Share on other sites More sharing options...
Cascade Posted May 26, 2014 Report Share Posted May 26, 2014 Is there an online version of the equivalent of big deal? Link to comment Share on other sites More sharing options...
benlessard Posted May 26, 2014 Report Share Posted May 26, 2014 An easy to use database system. There is something called bridge browser but it doesnt look so easy to use. I remember using Chessbase 3 in early 90's and it was awesome. Sad that bridge software are 20-25 years behind. There also should be an easy to use easy to import export dealer/simulation program. Not a script software. Link to comment Share on other sites More sharing options...
FM75 Posted May 28, 2014 Report Share Posted May 28, 2014 Dealer has limited facilities to calculate averages and print histograms e.g. condition hcp (north) > 17 or (hcp (north) > 11 and hcp (north) < 15 and spades (north) > 1 and hearts (north) > 1 and diamonds (north) > 1 and clubs (north) > 1) action frequency "Table (2D) HCP North and South" (hcp (north), 11, 25, hcp (south), 0, 20) As mentioned, Dealer has some pretty nice features built in. These make for an easier project that is still interesting. You could have plenty of fun "integrating" your application with an existing system. A good software developer is "constructively lazy". He/she does not reinvent the wheel, but "stands on the shoulders of giants". Apologies for a truly "mixed metaphor" there. Link to comment Share on other sites More sharing options...
inquiry Posted May 28, 2014 Report Share Posted May 28, 2014 An easy to use database system. There is something called bridge browser but it doesnt look so easy to use. I remember using Chessbase 3 in early 90's and it was awesome. Sad that bridge software are 20-25 years behind. There also should be an easy to use easy to import export dealer/simulation program. Not a script software. You can use Deal MasterPro as a database program, it can also be used as a dealer and program, and has double dummy solving stuff. I have Deal Masterpro, but I use excel for my database program, along with data grabbed from Double Dummy solver for par contract and makeable contact. And, of course, I have Bridgebrowser. It is really not hard to use, but, and this is a big but, YOU CAN NOT insert hands into it yourself. (neither can I). That, is a huge bummer. But since I have used two of the top of class programs (bridgeboreser, and Deal MasterPro), I can say that excel does a whole lot for you (but not scripting). There is also an older database around (bridge manager), but it doesn't work with 64 bit computers, it is $20 I think. I happen to like the excel solution. Maybe it is because I am use to working in Excel. But I can paste into the forum, paste handviewer version into a browser, past a lin version into a text file and open with netbridgvu, double dummy solver, or bridge composer, I can pull hands by auctions 16 bids deep if I wanted to with no problem, etc. And now that I have the greasemonkey script, importing hands into the database is a piece of cake. 1eyejack wanted tag's for hands played on bbo, well you can add virtually unlimtied tags to the excel database as well. Anyway, if you have questions about deal masterpro write me, and we can talk about what it can and can't do. I would like to hear about peoples experience with bridge manager. Link to comment Share on other sites More sharing options...
Siegmund Posted May 28, 2014 Report Share Posted May 28, 2014 Better integration with database type programs would be a nice addition. As already mentioned in the thread, the van Staveren dealer has most of the requested features for constraints and combinations... so too does the Thomas Andrews DEAL package. In the case of Deal, the front end can take any TCL command/subroutine/program you care to write - as, for instance, a branching routine that deals 12-14, 15-17 and 18-20 hands equally frequently, either with a random number generator or something like set counter 0main {incr counterset h [south hcp]if {counter % 3 == 0} { reject if {$h<12} {$h>14}} { if {counter % 3 == 1} {reject if {$h<15} {$h>17}} {reject if {$h<18} {$h>20} } }accept} It's really just a matter of what kinds of constraints you want to make easy for yourself, and what programming languages you know.In my case, I taught myself TCL so I could use the Deal software. For basic statistics I use the built-in commands; for more complicated statistics I dump intermediate results from Deal to a .csv file that I can process in SAS (or the statistics program of your choice.) Link to comment Share on other sites More sharing options...
benlessard Posted May 28, 2014 Report Share Posted May 28, 2014 Thanks Inquity, I already have Dealmasterpro but understand only 50% of it, for me easy to use = less than 5 min of reading or something that i can show to a friend for 5-10 min and let him figured out the rest for himself. So dealmp doesnt fit in that category (too many options and a weird layout). Since nobody told they were using Dealmp as a database I didnt want to try it as a DB since ive got a very limited patience for these things (ive had many poker, chess and BG software) so i cannot afford to be a highend user. I guess I should give it a better try to dealmp. Normally the excel-openoffice conversion is pretty smooth do you see any trap that could occur ? Link to comment Share on other sites More sharing options...
inquiry Posted June 16, 2014 Report Share Posted June 16, 2014 Thanks Inquity, I already have Dealmasterpro but understand only 50% of it, for me easy to use = less than 5 min of reading or something that i can show to a friend for 5-10 min and let him figured out the rest for himself. So dealmp doesnt fit in that category (too many options and a weird layout). Since nobody told they were using Dealmp as a database I didnt want to try it as a DB since ive got a very limited patience for these things (ive had many poker, chess and BG software) so i cannot afford to be a highend user. I guess I should give it a better try to dealmp. Normally the excel-openoffice conversion is pretty smooth do you see any trap that could occur ? In deal masterpro, you can enter upto 10 keywords for any deal. These are keywords you create. So you might gave one key word as play, another as defense. Then you might start creating all kind of keywords related to squeeze (simple squeeze, double squeeze, hedgehog, etc. You want a squeeze hand you might include Defense if you need to break up the squeeze on defense, or play if it is a find a squeeze hand. Still as a database DMPro is greatly limited. Link to comment Share on other sites More sharing options...
BillPatch Posted June 29, 2014 Report Share Posted June 29, 2014 ....It's really just a matter of what kinds of constraints you want to make easy for yourself, and what programming languages you know.In my case, I taught myself TCL so I could use the Deal software. For basic statistics I use the built-in commands; for more complicated statistics I dump intermediate results from Deal to a .csv file that I can process in SAS (or the statistics program of your choice.)Help! I am trying to make deal319 work on Windows 8.1 machine. What is the best way to learn enough TCL to make deal functional? Have a quant MBA background most familiar with excel, SAS, SPSS and GPSS, with a limited knowledge of command prompt, but little knowledge of other programming languages. Link to comment Share on other sites More sharing options...
Recommended Posts