anntzer / redeal

A reimplementation of Thomas Andrews' Deal in Python.
Other
64 stars 41 forks source link

add dds support for currentTricks #27

Closed ed2k closed 2 years ago

anntzer commented 2 years ago

Thanks for the suggestion. I would prefer an API like https://github.com/anntzer/redeal/tree/ct (see https://github.com/anntzer/redeal/commit/14172abc7fbdf840e1a57a35fc58e3f1665d3fdf), what do you think?

ed2k commented 2 years ago

to complete (as playable) we need more than currentTrciks. we also need trump and lead I think trump can be 'CDHSU' and lead could be 'NESW' https://github.com/ed2k/dds/blob/wasm/examples/dds.cpp https://ed2k.github.io/dds/test_dds.html I haven't settle on the actual api

anntzer commented 2 years ago

That information is passed via the strain and declarer args.

ed2k commented 2 years ago

ah, yes, that looks complete then.

anntzer commented 2 years ago

I merged that branch into master.