frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Gin rummy strategies

12•bix6•10h ago
Hi HN, I am having AI build me a local Gin Rummy trainer and it cannot figure out medium and hard bot strategies, they keep losing to easy! The point of this is to help me learn so I don't really know how to advise it on strategies. Right now it's just looping through tests and modifying but it keeps not improving. Does anyone have any recommendations or guidance for strategies I could suggest to it?

Comments

pschw•1h ago
See if you can find a copy of Michael Sall's book, it's pricey but it's the definitive guide to the game
aidenn0•3m ago
A bot that will minimize the expected number of (not yet seen) cards to draw to complete the hand the hand does reasonably well at deciding which card to draw or discard. The number of potential melds in a hand is small enough for modern hardware to completely enumerate, and you start the game with only 42 possible cards in the draw pile, with the number going down almost every turn, so the calculation is very feasible.

For knocking, a heuristic for how many turns vs. amount of deadwood (which should vary based on the undercut bonus you use) does "okay"; adding a bit of randomness should be done to prevent stronger players from being able to place a lower-bounds on your count may be a good idea.

Ask HN: Gin rummy strategies

13•bix6•10h ago•2 comments

Ask HN: So what happened to Facebook "localhost" tracking?

71•juliusceasar•11h ago•82 comments

Ask HN: Spent thousands, got no customers. What's wrong with my site?

8•petebay•14h ago•12 comments

I'm tired of LLM skill slop, so I built mine with regression tests

3•iliaov•1h ago•0 comments

Ask HN: Why is it still so hard for LLMs to query NoSQL databases?

4•cammasmith•8h ago•1 comments

Ask HN: How do you find deep technical content?

19•f311a•11h ago•10 comments

Being privacy-conscious comes with some downsides

4•wqtz•2h ago•2 comments

Ask HN: Good books/resources for learning SQL?

3•CobaltFire•4h ago•1 comments

Ask HN: Who is hiring? (June 2026)

238•whoishiring•3d ago•415 comments

Ask HN: Who wants to be hired? (June 2026)

148•whoishiring•3d ago•496 comments

Life saving / first aid posters

33•cpu_•2d ago•3 comments

Ask HN: AI efficiency in the workplace

3•localhoster•10h ago•0 comments

Google killed my $1M ARR startup overnight

4•vadumo•13h ago•3 comments

Ask HN: What are all the ways to punch through NAT?

4•jupr•10h ago•5 comments

Tell HN: Max messenger app removed from App Store

8•secondary_op•20h ago•3 comments

Ask HN: A Brief History of LLMs

9•menomatter•1d ago•6 comments

Laid off. Broke. Depressed. & idk how to market my SaaS

14•touseefbuilds•1d ago•23 comments

Ask HN: Why Ask HN has only 14 questions now?

11•throwaw12•1d ago•3 comments

Ask HN: What is your opinion on index rule changes to accommodate Mega-Cap IPOs?

16•figmert•2d ago•10 comments

Ask HN: Why are so many Show HNs being flagged?

3•866-RON-0-FEZ•1d ago•6 comments

Angular jasmine unit tests are harder to code/maintain than the actual feature

4•GamingAtWork•2d ago•0 comments

I'm Done Using AI

32•nyxtom•2d ago•23 comments

$100 to a Debian Developer who can get Fresh Editor into Trixie

28•jph•4d ago•14 comments

Please don't spam people looking for employment. It's just cruel

960•IliaLitviak•2d ago•271 comments

Recruiters, How do you vet resume in 2026?

15•CoffeeSky•4d ago•8 comments

AI Goal: Senior Software Engineer

4•oryocyph•2d ago•5 comments

You've reached the end!