Skip to content

tashoaf/gilded_rose

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hi and welcome to team Gilded Rose. We provide a library that provides calculations for how items should change each day. We have no control over the app that consumes this library and cannot change how it interfaces with our library.

Items have the following fields: name - The name of the item. days remaining - The number of days remaining until the item "expires". quality - The quality of the item.

By default, an item degrades 1 days remaining, and it degrades quality or by 1 before it expires and by 2 after. But there are also several special items that behave differently from normal items.

We have recently signed a supplier for a new item. Please implement the following:

  • "Raw Milk": quality degrades by 2 per day before the days remaining date has passed and by 4 after. Its days remaining decreases by one every day. Its quality can never decrease to less than 0.

The tests work and are fully comprehensive. Use them to your advantage!

Remember, this app is just a piece of a greater whole, so respect the contract defined in the tests. You may add tests, but you should not change the existing tests.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors