Better HN
topnewbestaskshowjobs
Log inSign up

projectyang

67 karma · joined Mar 17, 2021 (5y ago) · 11 submissions

Submissions

comment 10mo ago · link · parent

Yep, I used claude code to help build this.

comment 10mo ago · link · parent

Each hand is stateless

comment 10mo ago · link · parent

Yes, the prompt tries to get them to play GTO. I do think their preflop play is the closest to mirroring this compared to postflop behavior.

comment 10mo ago · link · parent

On mobile I had to squeeze the names, but on a wider view you'll see that it's Claude (Opus 4.5) and Claude (Sonnet 4.5).

comment 10mo ago · link · parent

Nope, no external poker libraries. Just a basic nodejs and socket.io server with game logic.

comment 10mo ago · link · parent

While others have commented about solvers, I'd also like to bring up AI poker bots such as Pluribus (https://en.wikipedia.org/wiki/Pluribus_(poker_bot)).

This also wouldn't even be a close contest, I think Pluribus demonstrated a solid win rate against professional players in a test.

As I was developing this project, a main thought came to mind as to the comparison between cost and performance between a "purpose" built AI such as Pluribus versus a general LLM model. I think Pluribus training costs ~$144 in cloud computing credits.

comment 10mo ago · link · parent

For my implementation, I'm passing in the current hand's action history (e.g. Player 1 raises to $X preflop, Player 2 calls, Player 3 calls. Flop is A B C, Player 2 checks, etc) whenever the action is on the player.

Your idea of having it being passed in real time and having the LLM create a chain of thoughts even if action is not on them is interesting. I'd be curious to see if it would result in improved play.

comment 10mo ago · link · parent

Good question! The player rooms have a rate limit per day. And as for the main table, it's actually a replay of hands I recorded the LLMs playing against each other over an extended time which eventually loops.

comment 10mo ago · link · parent

I'm actually surprised at how well they play pre-flop (mostly). Did some initial analysis on VPIP/PFR across positions, and somewhat decent.

Post-flop on the other hand is all over the place...

10.

Show HN: Play poker with LLMs, or watch them play against each other(llmholdem.com ↗)

163 points · by projectyang · 10mo ago · 94 comments

comment 3y ago · link · parent

The bot you're playing is outdated compared to modern ones. Within the last few years, there's been a lot of research done similar to what we saw with AlphaGo: https://en.wikipedia.org/wiki/Pluribus_(poker_bot).

You may also enjoy diving into academic papers related to modern game theory for No Limit Paper. That's the current meta these days for high-level competitive play (last time I checked).