BBO Discussion Forums: Redeal: a reimplementation of Deal in Python - BBO Discussion Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Redeal: a reimplementation of Deal in Python

#1 User is offline   antonylee 

  • PipPipPipPip
  • Group: Full Members
  • Posts: 499
  • Joined: 2011-January-19
  • Gender:Male

Posted 2012-June-11, 18:28

Thomas Andrews' Deal is, in my opinion, an excellent program, except for one thing: using Tcl as a programming language. So I tried to replace Tcl by Python, and here is the result: redeal. Please give it a try! Feedback / bug reports are welcome.
(PS: the code is still way in alpha stage.)
0

#2 User is offline   Mbodell 

  • PipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 2,871
  • Joined: 2007-April-22
  • Location:Santa Clara, CA

Posted 2012-June-12, 00:46

View Postantonylee, on 2012-June-11, 18:28, said:

Thomas Andrews' Deal is, in my opinion, an excellent program, except for one thing: using Tcl as a programming language. So I tried to replace Tcl by Python, and here is the result: redeal. Please give it a try! Feedback / bug reports are welcome.
(PS: the code is still way in alpha stage.)


Looks interesting. I agree that deal is a great program - and I agree that Tcl is a little odd.

I think it would be easiest for people to make the move if there were sample programs of the same sample programs that Andrews' has, and also if there were some statistics that shows that stacked hand dealing is both accurate and quick. Comparing the number of hands attempted and the speed of the two programs for some normal hands and some long tail (double void hands, gambling 3nt hands, etc.) would be helpful.
0

#3 User is offline   antonylee 

  • PipPipPipPip
  • Group: Full Members
  • Posts: 499
  • Joined: 2011-January-19
  • Gender:Male

Posted 2012-June-12, 14:07

I shamelessly copied examples 1-5 from Deal (as well as defvector, losers, etc.) in today's version. There is no smartstack dealing yet (it is in my todo list), so redeal is much slower than deal on rare hands. I haven't added statistics tests yet either.
0

#4 User is offline   antonylee 

  • PipPipPipPip
  • Group: Full Members
  • Posts: 499
  • Joined: 2011-January-19
  • Gender:Male

Posted 2012-June-12, 19:44

More documentation in as well.
0

#5 User is offline   han 

  • Under bidder
  • PipPipPipPipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 11,797
  • Joined: 2004-July-25
  • Gender:Male
  • Location:Amsterdam, the Netherlands

Posted 2012-June-13, 07:00

Great project, we need more good dealer programs.
Please note: I am interested in boring, bog standard, 2/1.

- hrothgar
0

#6 User is offline   antonylee 

  • PipPipPipPip
  • Group: Full Members
  • Posts: 499
  • Joined: 2011-January-19
  • Gender:Male

Posted 2012-June-18, 03:08

Smartstacking is in, as well as the ability to do most scripting directly from the command line (if you like that and are not scared by long lambda forms). A quick comparison on the same "Gambling 3NT" example as the one given by Deal gives similar statistics :-)
0

#7 User is offline   bluecalm 

  • PipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 2,555
  • Joined: 2007-January-22

Posted 2012-June-18, 04:22

Great, that may push me to finally start writing my analysis tools :)
As to dd solvers I was using this: http://www.bcalc.w8....PI_C/index.html and wrote a wrapper in Python for it back in the day it didn't have API (by inputting/reading human readable output and invoking it via popen). I had an impression that it's very fast comparing to other programs but I didn't seriously benchmark anything. If the human readable output format didn't change it should still work. You can find it on my repo: https://github.com/O...82/Bridge-Tools in bridgetools file. There are Python functions to calculate minimax, best lead etc. included.
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users