Text Yahtzee

版本 1.4.0.0 (6.0 KB) 作者: Zachary Danziger
Play Yahtzee in the command window, with multiple players per game.
1.3K 次下载
更新时间 2013/4/3

查看许可证

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: http://www.hasbro.com/common/instruct/Yahtzee.pdf)
- 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!

引用格式

Zachary Danziger (2024). Text Yahtzee (https://www.mathworks.com/matlabcentral/fileexchange/27891-text-yahtzee), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2009b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Word games 的更多信息
标签 添加标签
致谢

参考作品: Yahtzee, Yahtzee, Yahtzee

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.4.0.0

Fixed high score record recording bug that occurred when the current directory was different from the Yahtzee directory.

1.3.0.0

Added features to bonus stats display - The game will now save scores to appropriate directory (even when not currently in that dir) - there is now no need to include spaces when entering held die numbers for faster play

1.2.0.0

This update fixes the improper scoring for Yahtzees in versus mode.

1.1.0.0

- fixed spelling error in game board
- do not accept bad die number inputs (instead of ignoring them)
- added statistics "easter egg"
- added multi-player versus capability
- automatically score final roll

1.0.0.0