S.Lott -- Software Architect
  • Area Effect Aspect Volume Computations [V2]
  • Other Articles
  • Publications
  • S.Lott Biography

Analyzing the "Worst-of-2D6" Dice Mechanic

Date Thu 14 September 2023 Tags games / tutorial / dice / mechanic

A "Dice Mechanic"? Yes. The thing you do with the dice to determine an outcome. We'll use Python to see how the dice shake out.

A little backstory

For a casino game of craps, the roll of the dice can be 7 or 11 for an immediate win, 2, 3 …

more ...

Software Rewrites to Add Hints

Date Thu 04 May 2023 Tags architecture / object-oriented design / patterns / python / games

Let's reach way, way back. 1989 - 1990. This will let me talk about OO programming and Python Type Hints. (really) And doing OO design for things that are as pervasive (and transparent) as air. Things that need to be part of a design, but don't appear in any documentation.

In …

more ...

  • «
  • 1
  • 2
  • »
  • Social

    • Mastodon
    • Github
    • StackOverflow
    • LinkedIn
    • O'Reilly
    • Amazon
  • Categories

    • Architecture & Design
    • Books
    • FOSS
    • Literate Programming
    • Management
    • News
    • Python
    • Technologies
    • Technology
    • TTRPG
  • Links

    • Pelican
    • Python.org
    • Jinja2
  • Archive

    • June 2026 (2)
    • May 2026 (1)
    • April 2026 (3)
    • March 2026 (1)
    • February 2026 (1)
    • January 2026 (1)
    • September 2025 (1)
    • September 2023 (1)
    • May 2023 (1)

© 2026 S.Lott · Powered by pelican-bootstrap3, Pelican, Bootstrap

Back to top