Another day I was arguing with my friends about how to bid for a given hand in bridge.
I'm in 3rd position and the bidding was: Pas, Pas
My hand:
If I had had less than 6-7 points, I would have clearly bid 3 spades, but with 9 points and a nice distribution, I thought that maybe I would go down 3 but could make 2. 😁
Or maybe they don't have a game, and I can push myself up to 3 spades in the bidding or even 4s if they discover they have a game in hearts.
They argued that after the two "Pass", the chance that the opponents have >=24 points is high, so it is not good to give them time to discover their suits; therefore, I should bid right away: 3 spades.
But my gut didn't really tell me that they were more likely to have game points…😄
Where does this simulation come from.😉
NOTE: Actually, it was more of an excuse to see how I get along with the ChatGPT prompt and GitHub Copilot in VS. You can view the initial prompt here and the subsequent ones in the commits history of bridge.py file.
And the results:
(via Pyodide terminal emulator / Python 3.11.3 (main, Mar 31 2024 11:27:51) on WebAssembly/Emscripten 👍)