Skip to content

Dani-Luk/ChatGPT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

ChatGPT prompt samples (OpenAI + GitHub Copilot)

1. Bridge: simulation of 3 hands dealing


 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:

Ace of spades King of spades Queen of spades 10 of spades 7 of spades 5 of spades 3 of spades 9 of hearts 6 of hearts 4 of hearts 7 of clubs 5 of clubs 8 of diamonds

 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 👍) Bridge simulation of 3 hands dealing

About

ChatGPT prompt samples (OpenAI + GitHub Copilot)

Topics

Resources

Stars

Watchers

Forks

Languages