frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Yahtzeeql – Yahtzee solver that's mostly SQL

https://github.com/charliemeyer/yahtzeeql
18•skadamat•3d ago

Comments

BarryGuff•6h ago
Yahtzee is 100% random luck from dice rolls. You can't "solve" it.
sram1337•6h ago
What do you think the link is about then?
AStonesThrow•6h ago
So I handed him my bottle,

And he drank down my last swallow

Then he bummed a cigarette,

And asked me for a light

And the night got deathly quiet

And his face lost all expression...

“If you’re gonna play the game, boy,

Gotta learn to play it right.”

xyst•5h ago
skill issue
nkrisc•5h ago
The rolls may be random, and luck is a significant factor, but the game as a whole is not 100% random luck. You still have to make decisions.

I do agree that “solve” isn’t the right word. Probably more accurate to refer to an optimal strategy.

cbarrick•3h ago
You should read more about Markov Decision Processes (MDPs) and Game Theory in general.

The word "solve" is well defined in this context, and is used accurately by OP. You "solve" a game by finding the policy that maximizes the expected return.

Obviously we can only talk about "expectation" because the outcome is random. But that doesn't mean that an optimal policy doesn't exist.

Optimal policies are also often random, expressed like "in state S, perform action A with probability P and action B with probability 1-P". A policy then boils down to a table, with a row for each state and a column for each action, where each cell is the probability of performing that action in that state.

Even more interesting are partially observable Markov decision processes, where your agent doesn't even know what state it is in. Instead, you get observations that hint to the true state, and you model the state as a probability distribution over possible concrete states. Solving these POMDPs is quite a bit more difficult than traditional MDPs.

It is possible to solve some MDPs (and POMDPs) by hand, but in practice we often use reinforcement learning to learn the policy table by simulating games.

mathgeek•1h ago
You're wrong about it being 100% luck (you have choices that alter the outcomes).

You're correct that the game cannot be solved by the definition of a solved game (being one where the outcome can be predicted from any position if both players play perfectly). https://en.wikipedia.org/wiki/Solved_game

canvascritic•5h ago
This is a clever hack and a cute abuse of SQL joins to brute-force what’s essentially a 2-ply MDP over a finite space.

The core idea btw of using precomputed transition/score tables to simulate and optimize turn-by-turn play is a classical reinforcement learning method

What would be interesting here is to flip it: train a policy network (maybe tiny, 2-layer MLP) to approximate the SQL policy. then you could distill the SQL brute-force policy into something fast and differentiable.

i’d love to see a variant where the optimizer isn’t just maximizing EV, but is tuned to human psychology. e.g., people like getting Yahtzees more than getting 23 in chance. could add a utility function over scores.

Anyway this is a great repo for students to learn expected value optimization with simple mechanics.

New research reveals the strongest solar event ever detected, in 12350 BC

https://phys.org/news/2025-05-reveals-strongest-solar-event-bc.html
76•politelemon•3d ago•30 comments

"There are people who can see and others who cannot even look"

https://worldhistory.substack.com/p/there-are-people-who-can-see-and
51•crescit_eundo•3h ago•6 comments

Spaced repetition systems have gotten better

https://domenic.me/fsrs/
750•domenicd•16h ago•433 comments

The people stuck using ancient Windows computers

https://www.bbc.com/future/article/20250516-the-people-stuck-using-ancient-windows-computers
3•zdw•16m ago•0 comments

Ditching Obsidian and building my own

https://amberwilliams.io/blogs/building-my-own-pkms
268•williamsss•11h ago•286 comments

France Endorses UN Open Source Principles

https://social.numerique.gouv.fr/@codegouvfr/114529954373492878
311•bzg•5h ago•74 comments

Font Activations: A Note on the Type

https://robhorning.substack.com/p/font-activations
9•prismatic•2d ago•0 comments

Show HN: I modeled the Voynich Manuscript with SBERT to test for structure

https://github.com/brianmg/voynich-nlp-analysis
293•brig90•11h ago•94 comments

The Connoisseur of Desire

https://www.nybooks.com/articles/2025/05/29/the-connoisseur-of-desire-the-annotated-great-gatsby/
9•samclemens•2d ago•0 comments

$30 Homebrew Automated Blinds Opener

https://sifter.org/~simon/journal/20240718.html
213•busymom0•10h ago•88 comments

Show HN: Vaev – A browser engine built from scratch (It renders google.com)

https://github.com/skift-org/vaev
148•monax•9h ago•62 comments

The Tongue Is a Fire

https://www.lrb.co.uk/the-paper/v47/n09/ferdinand-mount/the-tongue-is-a-fire
7•Petiver•3d ago•0 comments

Show HN: A platform to find tech conferences, discounts, and ticket giveaways

https://www.tech.tickets/
56•danthebaker•2d ago•15 comments

Spaced Repetition Memory System

https://notes.andymatuschak.org/Spaced_repetition_memory_system
181•gasull•12h ago•16 comments

Hyper Typing

https://pscanf.com/s/341/
55•azhenley•7h ago•48 comments

K-Scale Labs: Open-source humanoid robots, built for developers

https://www.kscale.dev/
67•rbanffy•8h ago•37 comments

Show HN: Python Simulator of David Deutsch’s “Constructor Theory of Time”

https://github.com/gvelesandro/constructor-theory-simulator
55•SandroG•7h ago•7 comments

The Fall of Roam (2022)

https://every.to/superorganizers/the-fall-of-roam
101•ingve•9h ago•51 comments

Comparing Parallel Functional Array Languages: Programming and Performance

https://arxiv.org/abs/2505.08906
56•vok•2d ago•11 comments

The Journal of Imaginary Research

https://journalofimaginaryresearch.home.blog/
21•cenazoic•2d ago•2 comments

Show HN: Buckaroo – Data table UI for Notebooks

https://github.com/paddymul/buckaroo
85•paddy_m•11h ago•6 comments

Living beings emit a faint light that extinguishes upon death, study

https://phys.org/news/2025-05-emit-faint-extinguishes-death.html
43•pseudolus•3h ago•15 comments

In Memoriam: John L. Young, Cryptome Co-Founder

https://www.eff.org/deeplinks/2025/05/memoriam-john-l-young-cryptome-co-founder
177•coloneltcb•3d ago•17 comments

Show HN: Job board aggregator for best paying remote SWE jobs in the U.S.

https://www.remoteswe.fyi
6•xitang•3h ago•2 comments

Emergent social conventions and collective bias in LLM populations

https://www.science.org/doi/10.1126/sciadv.adu9368
52•jbotz•11h ago•16 comments

Dezyne Programming Language

https://dezyne.org/dezyne/manual/dezyne/dezyne.html
39•aulisius•1d ago•5 comments

Show HN: Hardtime.nvim – break bad habits and master Vim motions

https://github.com/m4xshen/hardtime.nvim
174•m4xshen•15h ago•68 comments

Mystical

https://suberic.net/~dmm/projects/mystical/README.html
372•mmphosis•1d ago•44 comments

KDE is finally getting a native virtual machine manager called “Karton”

https://www.neowin.net/news/kde-is-finally-getting-a-native-virtual-machine-manager-called-karton/
87•bundie•5h ago•29 comments

AniSora: Open-source anime video generation model

https://komiko.app/video/AniSora
330•PaulineGar•1d ago•193 comments