File Exchange

image thumbnail

Text Yahtzee

version (5.97 KB) by Zachary Danziger
Play Yahtzee in the command window, with multiple players per game.


Updated 03 Apr 2013

View Version History

View License

Object: Roll dice for scoring combinations and get the highest total score.
This text-based command window Yahtzee game was inspired by a few of the other submissions on this site. This version has the following features:

- High scores list
- Multi-player versus option
- Stable, pleasing and intuitive interface
- Conforms to all official Yahtzee rules (including bonus Yahtzee joker scoring:
- Short, modular, commented code (usefull for editing and following flow)
- Consice and transparent score allocation logic
- Text-only game mechanics makes it look like you're working

>> ZYahtzee % runs game
>> ZYahtzee(p) % runs game for p players

Enjoy a brief game of Yahtzee!

Cite As

Zachary Danziger (2021). Text Yahtzee (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (2)

Jaime D


MATLAB Release Compatibility
Created with R2009b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Inspired by: Yahtzee, Yahtzee, Yahtzee

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!