Skip to content

This repository it's a posted solution from the Coding Dojo Yahtzee Kata Round 1 (written in PHP).

Notifications You must be signed in to change notification settings

dsola/kata_yahtzee_round_1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yahtzee Kata Round I

General requirements

Build a playable console Yahtzee application. It's worth reading about Yahtzee before you start if you are not very familiar with the game.

The game should support 3 categories (Ones, Twos, and Threes). Player needs to roll the biggest number of 1s, 2s, and 3s for each category respectively.

The player will play categories in turn. The following is what you should see if you run the application:

> Category: Ones
> Dice: D1:2 D2:4 D3:1 D4:6 D5:1
> [1] Dice to re-run:
$ D1 D2 D4
> Dice: D1:1 D2:5 D3:1 D4:2 D5:1
> [2] Dice to re-run:
$ D2 D4
> Dice: D1:1 D2:1 D3:1 D4:5 D5:1
> Category Ones score: 4

> Category: Twos
> Dice: D1:2 D2:4 D3:1 D4:6 D5:1
> ....

> Category: Threes
> Dice: D1:2 D2:4 D3:1 D4:6 D5:1
> ....

> Yahtzee score
> Ones: 4
> Twos: [Total for Twos]
> Threes: [Total for Threes]
> Final score: [sum of the points in each category]
>

About

This repository it's a posted solution from the Coding Dojo Yahtzee Kata Round 1 (written in PHP).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages