explaingit

sebastiaanspeck/yahtzee

Analysis updated 2026-07-18 · repo last pushed 2018-03-11

PythonAudience · generalComplexity · 2/5DormantSetup · easy

TLDR

A Python implementation of the classic Yahtzee dice game that handles dice rolling, rerolls, and automatic scoring.

Mindmap

mindmap
  root((yahtzee))
    Inputs
      Dice rolls
      Player choices
      Reroll selections
    Outputs
      Scored combinations
      Round results
    Use Cases
      Play Yahtzee on your computer
      Learn Yahtzee scoring rules
      Study turn-based game logic
    Tech Stack
      Python

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Play a full game of Yahtzee on your computer without physical dice or a scorecard.

USE CASE 2

Learn or practice standard Yahtzee scoring rules through automatic score calculation.

USE CASE 3

Study the source code as an example of turn-based game logic and rule enforcement in Python.

What is it built with?

Python

How does it compare?

sebastiaanspeck/yahtzee0xallam/my-recipe0xhassaan/nn-from-scratch
Stars0
LanguagePythonPythonPython
Last pushed2018-03-112022-11-22
MaintenanceDormantDormant
Setup difficultyeasymoderatemoderate
Complexity2/52/54/5
Audiencegeneralgeneraldeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

README doesn't specify the exact gameplay mode (solo, vs computer, or multiplayer), check the code directly.

License is not stated in the available content.

Copy-paste prompts

Prompt 1
Walk me through how this Yahtzee implementation scores combinations like a full house or three of a kind.
Prompt 2
Show me how dice rerolling works in this project's game loop.
Prompt 3
Help me extend this Yahtzee game to support two players taking turns.
Prompt 4
Explain how this project's code is structured so I can add a new scoring category.

Frequently asked questions

What is yahtzee?

A Python implementation of the classic Yahtzee dice game that handles dice rolling, rerolls, and automatic scoring.

What language is yahtzee written in?

Mainly Python. The stack also includes Python.

Is yahtzee actively maintained?

Dormant — no commits in 2+ years (last push 2018-03-11).

What license does yahtzee use?

License is not stated in the available content.

How hard is yahtzee to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is yahtzee for?

Mainly general.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.