<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/diceomatic-a-dsl-for-making-children-s-dice-games-bzswqqmhz" -->

---
title: diceomatic: a DSL for making children&#x27;s dice games
description: diceomatic is a Python library that lets you define custom math equation generators using a DSL with constraints. Created to power children&#x27;s dice-based...
canonical: https://daily.dev/posts/diceomatic-a-dsl-for-making-children-s-dice-games-bzswqqmhz
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: diceomatic: a DSL for making children&#x27;s dice games | daily.dev
og:description: diceomatic is a Python library that lets you define custom math equation generators using a DSL with constraints. Created to power children&#x27;s dice-based...
og:url: https://daily.dev/posts/diceomatic-a-dsl-for-making-children-s-dice-games-bzswqqmhz
og:image: https://api.daily.dev/og/posts/BzsWQqmHZ.png
og:image:alt: diceomatic: a DSL for making children&#x27;s dice games
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# diceomatic: a DSL for making children's dice games

**[Robert Heaton](https://daily.dev/sources/robertheaton)** · 5 min read · 0 upvotes · 0 comments

## Summary

diceomatic is a Python library that lets you define custom math equation generators using a DSL with constraints. Created to power children's dice-based simulation games, it lets you specify equation forms (e.g., A*B + C*D), variable domains, and constraints (like crossing a 10 boundary), then generates an infinite stream of valid equations. It can be integrated with Streamlit to build interactive apps that display questions and check answers, with optional adaptive difficulty.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://robertheaton.com/diceomatic/>

## Similar posts on daily.dev

- [A Neighborhood of Infinity: "What does it take to be a hero?" revisited](https://daily.dev/posts/a-neighborhood-of-infinity-what-does-it-take-to-be-a-hero-revisited-fdbvqcbsc) · Planet Haskell · 1 upvotes · 1 comments
- [A Neighborhood of Infinity: "What does it take to be a hero?" revisited](https://daily.dev/posts/a-neighborhood-of-infinity-what-does-it-take-to-be-a-hero-revisited-g1vdxjbot) · Planet Haskell · 0 upvotes · 0 comments
- [Playful ‘Space Dice’ Kit Shows Off Clever Design](https://daily.dev/posts/playful-space-dice-kit-shows-off-clever-design-l1gciulbp) · Hackaday · 0 upvotes · 0 comments

---

Tags: [#python](https://daily.dev/tags/python)

[View this post on daily.dev](https://daily.dev/posts/diceomatic-a-dsl-for-making-children-s-dice-games-bzswqqmhz)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"diceomatic: a DSL for making children's dice games","url":"https://daily.dev/posts/diceomatic-a-dsl-for-making-children-s-dice-games-bzswqqmhz","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/diceomatic-a-dsl-for-making-children-s-dice-games-bzswqqmhz"},"datePublished":"2026-03-31T12:29:18.169Z","dateModified":"2026-03-31T12:35:22.879Z","description":"diceomatic is a Python library that lets you define custom math equation generators using a DSL with constraints. Created to power children's dice-based...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/c969e69c5d3806031c79e2fd7d7eb36b?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/c969e69c5d3806031c79e2fd7d7eb36b?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Robert Heaton","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Robert Heaton","logo":"https://media.daily.dev/image/upload/s--grUlzRFm--/f_auto,q_auto/v1774960034/logos/robertheaton?_a=BAMAMiWQ0","url":"https://daily.dev/sources/robertheaton"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/diceomatic-a-dsl-for-making-children-s-dice-games-bzswqqmhz","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"python","timeRequired":"PT5M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Robert Heaton","item":"https://daily.dev/sources/robertheaton"},{"@type":"ListItem","position":3,"name":"diceomatic: a DSL for making children's dice games"}]}
```

