├── .github └── dependabot.yml ├── GildedRoseKata ├── Item.cs ├── CharacterizationTest.cs ├── GildedRose_UpdateQuality.cs ├── GildedRoseKata.csproj ├── Program.cs ├── GildedRose.cs └── CharacterizationTest.txt ├── LICENSE ├── GildedRoseKata.sln ├── README.md └── .gitignore /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | version: 2 2 | updates: 3 | - package-ecosystem: nuget 4 | directory: "/" 5 | schedule: 6 | interval: daily 7 | open-pull-requests-limit: 10 8 | -------------------------------------------------------------------------------- /GildedRoseKata/Item.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using Xunit; 4 | 5 | namespace GildedRoseKata 6 | { 7 | public class Item 8 | { 9 | public string Name { get; set; } 10 | public int SellIn { get; set; } 11 | public int Quality { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /GildedRoseKata/CharacterizationTest.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.IO; 4 | using System.Text; 5 | using Xunit; 6 | 7 | namespace GildedRoseKata 8 | { 9 | public class CharacterizationTest 10 | { 11 | [Fact] 12 | public void DoesWhatItDoes() 13 | { 14 | var sb = new StringBuilder(); 15 | Console.SetOut(new StringWriter(sb)); 16 | Console.SetIn(new StringReader("a\n")); 17 | Program.Main(new string[] { }); 18 | String output = sb.ToString(); 19 | 20 | 21 | string expectedOutput = File.ReadAllText("CharacterizationTest.txt"); 22 | 23 | Assert.Equal(expectedOutput.Trim(), output.Trim()); 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 Steve Smith 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /GildedRoseKata.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 16 4 | VisualStudioVersion = 16.0.30907.101 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GildedRoseKata", "GildedRoseKata\GildedRoseKata.csproj", "{9041863B-5CE3-46F7-BE85-92CA5345712F}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {9041863B-5CE3-46F7-BE85-92CA5345712F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {9041863B-5CE3-46F7-BE85-92CA5345712F}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {9041863B-5CE3-46F7-BE85-92CA5345712F}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {9041863B-5CE3-46F7-BE85-92CA5345712F}.Release|Any CPU.Build.0 = Release|Any CPU 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | GlobalSection(ExtensibilityGlobals) = postSolution 23 | SolutionGuid = {18E7C4BC-76E3-4648-A55D-0B9045962181} 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /GildedRoseKata/GildedRose_UpdateQuality.cs: -------------------------------------------------------------------------------- 1 | using FluentAssertions; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using Xunit; 5 | 6 | namespace GildedRoseKata 7 | { 8 | /// 9 | /// Test naming convention recommendation: 10 | /// https://ardalis.com/unit-test-naming-convention/ 11 | /// 12 | public class GildedRose_UpdateQuality 13 | { 14 | [Fact] 15 | public void DoesNothingGivenSulfuras() 16 | { 17 | int initialQuality = 80; 18 | var items = new List { 19 | new Item {Name = "Sulfuras, Hand of Ragnaros", SellIn = 0, Quality = initialQuality}, 20 | 21 | }; 22 | var gildedRose = new GildedRose(items); 23 | 24 | gildedRose.UpdateQuality(); 25 | 26 | var firstItem = items.First(); 27 | 28 | // Use your preferred assertion library (already included - pick one delete others) 29 | // xunit default 30 | Assert.Equal(initialQuality, firstItem.Quality); 31 | 32 | // fluentassertions 33 | firstItem.Quality.Should().Be(initialQuality); 34 | } 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /GildedRoseKata/GildedRoseKata.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net8.0 5 | false 6 | 7 | Exe 8 | true 9 | GildedRoseKata.Program 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | all 23 | runtime; build; native; contentfiles; analyzers; buildtransitive 24 | 25 | 26 | 27 | 28 | 29 | 30 | Always 31 | CharacterizationTest.cs 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /GildedRoseKata/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using Xunit; 4 | 5 | namespace GildedRoseKata 6 | { 7 | public class Program 8 | { 9 | public static void Main(string[] args) 10 | { 11 | Console.WriteLine("OMGHAI!"); 12 | 13 | IList Items = new List{ 14 | new Item {Name = "+5 Dexterity Vest", SellIn = 10, Quality = 20}, 15 | new Item {Name = "Aged Brie", SellIn = 2, Quality = 0}, 16 | new Item {Name = "Elixir of the Mongoose", SellIn = 5, Quality = 7}, 17 | new Item {Name = "Sulfuras, Hand of Ragnaros", SellIn = 0, Quality = 80}, 18 | new Item {Name = "Sulfuras, Hand of Ragnaros", SellIn = -1, Quality = 80}, 19 | new Item 20 | { 21 | Name = "Backstage passes to a TAFKAL80ETC concert", 22 | SellIn = 15, 23 | Quality = 20 24 | }, 25 | new Item 26 | { 27 | Name = "Backstage passes to a TAFKAL80ETC concert", 28 | SellIn = 10, 29 | Quality = 49 30 | }, 31 | new Item 32 | { 33 | Name = "Backstage passes to a TAFKAL80ETC concert", 34 | SellIn = 5, 35 | Quality = 49 36 | }, 37 | // this conjured item does not work properly yet 38 | new Item {Name = "Conjured Mana Cake", SellIn = 3, Quality = 6} 39 | }; 40 | 41 | var app = new GildedRose(Items); 42 | 43 | 44 | for (var i = 0; i < 31; i++) 45 | { 46 | Console.WriteLine("-------- day " + i + " --------"); 47 | Console.WriteLine("name, sellIn, quality"); 48 | for (var j = 0; j < Items.Count; j++) 49 | { 50 | System.Console.WriteLine(Items[j].Name + ", " + Items[j].SellIn + ", " + Items[j].Quality); 51 | } 52 | Console.WriteLine(""); 53 | app.UpdateQuality(); 54 | } 55 | } 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /GildedRoseKata/GildedRose.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using Xunit; 4 | 5 | namespace GildedRoseKata 6 | { 7 | public class GildedRose 8 | { 9 | IList Items; 10 | public GildedRose(IList Items) 11 | { 12 | this.Items = Items; 13 | } 14 | 15 | public void UpdateQuality() 16 | { 17 | for (var i = 0; i < Items.Count; i++) 18 | { 19 | if (Items[i].Name != "Aged Brie" && Items[i].Name != "Backstage passes to a TAFKAL80ETC concert") 20 | { 21 | if (Items[i].Quality > 0) 22 | { 23 | if (Items[i].Name != "Sulfuras, Hand of Ragnaros") 24 | { 25 | Items[i].Quality = Items[i].Quality - 1; 26 | } 27 | } 28 | } 29 | else 30 | { 31 | if (Items[i].Quality < 50) 32 | { 33 | Items[i].Quality = Items[i].Quality + 1; 34 | 35 | if (Items[i].Name == "Backstage passes to a TAFKAL80ETC concert") 36 | { 37 | if (Items[i].SellIn < 11) 38 | { 39 | if (Items[i].Quality < 50) 40 | { 41 | Items[i].Quality = Items[i].Quality + 1; 42 | } 43 | } 44 | 45 | if (Items[i].SellIn < 6) 46 | { 47 | if (Items[i].Quality < 50) 48 | { 49 | Items[i].Quality = Items[i].Quality + 1; 50 | } 51 | } 52 | } 53 | } 54 | } 55 | 56 | if (Items[i].Name != "Sulfuras, Hand of Ragnaros") 57 | { 58 | Items[i].SellIn = Items[i].SellIn - 1; 59 | } 60 | 61 | if (Items[i].SellIn < 0) 62 | { 63 | if (Items[i].Name != "Aged Brie") 64 | { 65 | if (Items[i].Name != "Backstage passes to a TAFKAL80ETC concert") 66 | { 67 | if (Items[i].Quality > 0) 68 | { 69 | if (Items[i].Name != "Sulfuras, Hand of Ragnaros") 70 | { 71 | Items[i].Quality = Items[i].Quality - 1; 72 | } 73 | } 74 | } 75 | else 76 | { 77 | Items[i].Quality = Items[i].Quality - Items[i].Quality; 78 | } 79 | } 80 | else 81 | { 82 | if (Items[i].Quality < 50) 83 | { 84 | Items[i].Quality = Items[i].Quality + 1; 85 | } 86 | } 87 | } 88 | } 89 | } 90 | } 91 | } 92 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Gilded Rose Starter 2 | 3 | A starting point for the Gilded Rose kata using dotnet core, C#, and xunit. 4 | 5 | ## Give a Star! :star: 6 | 7 | If you like or are using this project to learn, please give it a star. Thanks! 8 | 9 | ## Watch online 10 | 11 | If you'd like to see how I complete this kata, I use it to demonstrate several refactoring techniques in my [Pluralsight Refactoring Fundamentals course](https://www.pluralsight.com/courses/refactoring-fundamentals). 12 | 13 | # More Katas 14 | 15 | https://github.com/ardalis/kata-catalog 16 | 17 | Gilded Rose Kata 18 | ============ 19 | Source: [https://github.com/ardalis/kata-catalog](https://github.com/ardalis/kata-catalog) 20 | 21 | # Background # 22 | 23 | This kata puts you in the role of having to work with someone else's code. It is highly suggested that you use test-first development with this kata. 24 | 25 | Hi and welcome to team Gilded Rose. As you know, we are a small inn with a prime location in a prominent city run by a friendly innkeeper named Allison. We also buy and sell only the finest goods. Unfortunately, our goods are constantly degrading in quality as they approach their sell by date. We have a system in place that updates our inventory for us. It was developed by a no-nonsense type named Leeroy, who has moved on to new adventures. The UpdateQuality() method is called each morning by another part of our system. Your task is to add the new feature to our system so that we can begin selling a new category of items. First an introduction to our system: 26 | 27 | - All items have a SellIn value which denotes the number of days we have to sell the item 28 | - All items have a Quality value which denotes how valuable the item is 29 | - At the end of each day our system lowers both values for every item 30 | 31 | Pretty simple, right? Well, this is where it gets interesting: 32 | 33 | - Once the sell by date has passed, Quality degrades twice as fast 34 | - The Quality of an item is never negative 35 | - "Aged Brie" actually increases in Quality the older it gets 36 | - The Quality of an item is never more than 50 37 | - "Sulfuras", being a legendary item, never has to be sold or decreases in Quality 38 | - "Backstage passes", like aged brie, increases in Quality as its SellIn value approaches 39 | - Quality increases by 2 when there are 10 days or less 40 | - Quality increases by 3 when there are 5 days or less 41 | - but Quality drops to 0 after the concert 42 | 43 | # Instructions # 44 | 45 | We have recently signed a supplier of conjured items. This requires an update to our system: 46 | 47 | - "Conjured" items degrade in Quality twice as fast as normal items 48 | 49 | Feel free to make any changes to the UpdateQuality method and add any new code as long as everything still works correctly. However, **do not alter the Item class or Items property** as those belong to the goblin in the corner who will insta-rage and one-shot you as he doesn't believe in shared code ownership (you can make the UpdateQuality method and Items property static if you like, we'll cover for you). 50 | 51 | Just for clarification, an item can never have its Quality increased above 50, however "Sulfuras" is a legendary item and as such its Quality is 80 and it never alters. 52 | 53 | ## Extra Credit ## 54 | 55 | - Item categories are determined by whether they contain a given string in their name (e.g. "Aged Brie" or "Sulfuras" or "Backstage passes") 56 | - Any item can thus be conjured, with the resulting effects (e.g. "Conjured Backstage passes") 57 | 58 | # Resources # 59 | - [Original Source by Bobby Johnson (NotMyself) on GitHub](https://github.com/NotMyself/GildedRose) 60 | - [Starting code in many languages](https://github.com/emilybache/GildedRose-Refactoring-Kata) 61 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | ## 4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore 5 | 6 | # User-specific files 7 | *.suo 8 | *.user 9 | *.userosscache 10 | *.sln.docstates 11 | 12 | # User-specific files (MonoDevelop/Xamarin Studio) 13 | *.userprefs 14 | 15 | # Build results 16 | [Dd]ebug/ 17 | [Dd]ebugPublic/ 18 | [Rr]elease/ 19 | [Rr]eleases/ 20 | x64/ 21 | x86/ 22 | bld/ 23 | [Bb]in/ 24 | [Oo]bj/ 25 | [Ll]og/ 26 | 27 | # Visual Studio 2015 cache/options directory 28 | .vs/ 29 | # Uncomment if you have tasks that create the project's static files in wwwroot 30 | #wwwroot/ 31 | 32 | # MSTest test Results 33 | [Tt]est[Rr]esult*/ 34 | [Bb]uild[Ll]og.* 35 | 36 | # NUNIT 37 | *.VisualState.xml 38 | TestResult.xml 39 | 40 | # Build Results of an ATL Project 41 | [Dd]ebugPS/ 42 | [Rr]eleasePS/ 43 | dlldata.c 44 | 45 | # .NET Core 46 | project.lock.json 47 | project.fragment.lock.json 48 | artifacts/ 49 | **/Properties/launchSettings.json 50 | 51 | *_i.c 52 | *_p.c 53 | *_i.h 54 | *.ilk 55 | *.meta 56 | *.obj 57 | *.pch 58 | *.pdb 59 | *.pgc 60 | *.pgd 61 | *.rsp 62 | *.sbr 63 | *.tlb 64 | *.tli 65 | *.tlh 66 | *.tmp 67 | *.tmp_proj 68 | *.log 69 | *.vspscc 70 | *.vssscc 71 | .builds 72 | *.pidb 73 | *.svclog 74 | *.scc 75 | 76 | # Chutzpah Test files 77 | _Chutzpah* 78 | 79 | # Visual C++ cache files 80 | ipch/ 81 | *.aps 82 | *.ncb 83 | *.opendb 84 | *.opensdf 85 | *.sdf 86 | *.cachefile 87 | *.VC.db 88 | *.VC.VC.opendb 89 | 90 | # Visual Studio profiler 91 | *.psess 92 | *.vsp 93 | *.vspx 94 | *.sap 95 | 96 | # TFS 2012 Local Workspace 97 | $tf/ 98 | 99 | # Guidance Automation Toolkit 100 | *.gpState 101 | 102 | # ReSharper is a .NET coding add-in 103 | _ReSharper*/ 104 | *.[Rr]e[Ss]harper 105 | *.DotSettings.user 106 | 107 | # JustCode is a .NET coding add-in 108 | .JustCode 109 | 110 | # TeamCity is a build add-in 111 | _TeamCity* 112 | 113 | # DotCover is a Code Coverage Tool 114 | *.dotCover 115 | 116 | # Visual Studio code coverage results 117 | *.coverage 118 | *.coveragexml 119 | 120 | # NCrunch 121 | _NCrunch_* 122 | .*crunch*.local.xml 123 | nCrunchTemp_* 124 | 125 | # MightyMoose 126 | *.mm.* 127 | AutoTest.Net/ 128 | 129 | # Web workbench (sass) 130 | .sass-cache/ 131 | 132 | # Installshield output folder 133 | [Ee]xpress/ 134 | 135 | # DocProject is a documentation generator add-in 136 | DocProject/buildhelp/ 137 | DocProject/Help/*.HxT 138 | DocProject/Help/*.HxC 139 | DocProject/Help/*.hhc 140 | DocProject/Help/*.hhk 141 | DocProject/Help/*.hhp 142 | DocProject/Help/Html2 143 | DocProject/Help/html 144 | 145 | # Click-Once directory 146 | publish/ 147 | 148 | # Publish Web Output 149 | *.[Pp]ublish.xml 150 | *.azurePubxml 151 | # TODO: Comment the next line if you want to checkin your web deploy settings 152 | # but database connection strings (with potential passwords) will be unencrypted 153 | *.pubxml 154 | *.publishproj 155 | 156 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 157 | # checkin your Azure Web App publish settings, but sensitive information contained 158 | # in these scripts will be unencrypted 159 | PublishScripts/ 160 | 161 | # NuGet Packages 162 | *.nupkg 163 | # The packages folder can be ignored because of Package Restore 164 | **/packages/* 165 | # except build/, which is used as an MSBuild target. 166 | !**/packages/build/ 167 | # Uncomment if necessary however generally it will be regenerated when needed 168 | #!**/packages/repositories.config 169 | # NuGet v3's project.json files produces more ignorable files 170 | *.nuget.props 171 | *.nuget.targets 172 | 173 | # Microsoft Azure Build Output 174 | csx/ 175 | *.build.csdef 176 | 177 | # Microsoft Azure Emulator 178 | ecf/ 179 | rcf/ 180 | 181 | # Windows Store app package directories and files 182 | AppPackages/ 183 | BundleArtifacts/ 184 | Package.StoreAssociation.xml 185 | _pkginfo.txt 186 | 187 | # Visual Studio cache files 188 | # files ending in .cache can be ignored 189 | *.[Cc]ache 190 | # but keep track of directories ending in .cache 191 | !*.[Cc]ache/ 192 | 193 | # Others 194 | ClientBin/ 195 | ~$* 196 | *~ 197 | *.dbmdl 198 | *.dbproj.schemaview 199 | *.jfm 200 | *.pfx 201 | *.publishsettings 202 | orleans.codegen.cs 203 | 204 | # Since there are multiple workflows, uncomment next line to ignore bower_components 205 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 206 | #bower_components/ 207 | 208 | # RIA/Silverlight projects 209 | Generated_Code/ 210 | 211 | # Backup & report files from converting an old project file 212 | # to a newer Visual Studio version. Backup files are not needed, 213 | # because we have git ;-) 214 | _UpgradeReport_Files/ 215 | Backup*/ 216 | UpgradeLog*.XML 217 | UpgradeLog*.htm 218 | 219 | # SQL Server files 220 | *.mdf 221 | *.ldf 222 | *.ndf 223 | 224 | # Business Intelligence projects 225 | *.rdl.data 226 | *.bim.layout 227 | *.bim_*.settings 228 | 229 | # Microsoft Fakes 230 | FakesAssemblies/ 231 | 232 | # GhostDoc plugin setting file 233 | *.GhostDoc.xml 234 | 235 | # Node.js Tools for Visual Studio 236 | .ntvs_analysis.dat 237 | node_modules/ 238 | 239 | # Typescript v1 declaration files 240 | typings/ 241 | 242 | # Visual Studio 6 build log 243 | *.plg 244 | 245 | # Visual Studio 6 workspace options file 246 | *.opt 247 | 248 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.) 249 | *.vbw 250 | 251 | # Visual Studio LightSwitch build output 252 | **/*.HTMLClient/GeneratedArtifacts 253 | **/*.DesktopClient/GeneratedArtifacts 254 | **/*.DesktopClient/ModelManifest.xml 255 | **/*.Server/GeneratedArtifacts 256 | **/*.Server/ModelManifest.xml 257 | _Pvt_Extensions 258 | 259 | # Paket dependency manager 260 | .paket/paket.exe 261 | paket-files/ 262 | 263 | # FAKE - F# Make 264 | .fake/ 265 | 266 | # JetBrains Rider 267 | .idea/ 268 | *.sln.iml 269 | 270 | # CodeRush 271 | .cr/ 272 | 273 | # Python Tools for Visual Studio (PTVS) 274 | __pycache__/ 275 | *.pyc 276 | 277 | # Cake - Uncomment if you are using it 278 | # tools/** 279 | # !tools/packages.config 280 | 281 | # Telerik's JustMock configuration file 282 | *.jmconfig 283 | 284 | # BizTalk build output 285 | *.btp.cs 286 | *.btm.cs 287 | *.odx.cs 288 | *.xsd.cs 289 | -------------------------------------------------------------------------------- /GildedRoseKata/CharacterizationTest.txt: -------------------------------------------------------------------------------- 1 | OMGHAI! 2 | -------- day 0 -------- 3 | name, sellIn, quality 4 | +5 Dexterity Vest, 10, 20 5 | Aged Brie, 2, 0 6 | Elixir of the Mongoose, 5, 7 7 | Sulfuras, Hand of Ragnaros, 0, 80 8 | Sulfuras, Hand of Ragnaros, -1, 80 9 | Backstage passes to a TAFKAL80ETC concert, 15, 20 10 | Backstage passes to a TAFKAL80ETC concert, 10, 49 11 | Backstage passes to a TAFKAL80ETC concert, 5, 49 12 | Conjured Mana Cake, 3, 6 13 | 14 | -------- day 1 -------- 15 | name, sellIn, quality 16 | +5 Dexterity Vest, 9, 19 17 | Aged Brie, 1, 1 18 | Elixir of the Mongoose, 4, 6 19 | Sulfuras, Hand of Ragnaros, 0, 80 20 | Sulfuras, Hand of Ragnaros, -1, 80 21 | Backstage passes to a TAFKAL80ETC concert, 14, 21 22 | Backstage passes to a TAFKAL80ETC concert, 9, 50 23 | Backstage passes to a TAFKAL80ETC concert, 4, 50 24 | Conjured Mana Cake, 2, 5 25 | 26 | -------- day 2 -------- 27 | name, sellIn, quality 28 | +5 Dexterity Vest, 8, 18 29 | Aged Brie, 0, 2 30 | Elixir of the Mongoose, 3, 5 31 | Sulfuras, Hand of Ragnaros, 0, 80 32 | Sulfuras, Hand of Ragnaros, -1, 80 33 | Backstage passes to a TAFKAL80ETC concert, 13, 22 34 | Backstage passes to a TAFKAL80ETC concert, 8, 50 35 | Backstage passes to a TAFKAL80ETC concert, 3, 50 36 | Conjured Mana Cake, 1, 4 37 | 38 | -------- day 3 -------- 39 | name, sellIn, quality 40 | +5 Dexterity Vest, 7, 17 41 | Aged Brie, -1, 4 42 | Elixir of the Mongoose, 2, 4 43 | Sulfuras, Hand of Ragnaros, 0, 80 44 | Sulfuras, Hand of Ragnaros, -1, 80 45 | Backstage passes to a TAFKAL80ETC concert, 12, 23 46 | Backstage passes to a TAFKAL80ETC concert, 7, 50 47 | Backstage passes to a TAFKAL80ETC concert, 2, 50 48 | Conjured Mana Cake, 0, 3 49 | 50 | -------- day 4 -------- 51 | name, sellIn, quality 52 | +5 Dexterity Vest, 6, 16 53 | Aged Brie, -2, 6 54 | Elixir of the Mongoose, 1, 3 55 | Sulfuras, Hand of Ragnaros, 0, 80 56 | Sulfuras, Hand of Ragnaros, -1, 80 57 | Backstage passes to a TAFKAL80ETC concert, 11, 24 58 | Backstage passes to a TAFKAL80ETC concert, 6, 50 59 | Backstage passes to a TAFKAL80ETC concert, 1, 50 60 | Conjured Mana Cake, -1, 1 61 | 62 | -------- day 5 -------- 63 | name, sellIn, quality 64 | +5 Dexterity Vest, 5, 15 65 | Aged Brie, -3, 8 66 | Elixir of the Mongoose, 0, 2 67 | Sulfuras, Hand of Ragnaros, 0, 80 68 | Sulfuras, Hand of Ragnaros, -1, 80 69 | Backstage passes to a TAFKAL80ETC concert, 10, 25 70 | Backstage passes to a TAFKAL80ETC concert, 5, 50 71 | Backstage passes to a TAFKAL80ETC concert, 0, 50 72 | Conjured Mana Cake, -2, 0 73 | 74 | -------- day 6 -------- 75 | name, sellIn, quality 76 | +5 Dexterity Vest, 4, 14 77 | Aged Brie, -4, 10 78 | Elixir of the Mongoose, -1, 0 79 | Sulfuras, Hand of Ragnaros, 0, 80 80 | Sulfuras, Hand of Ragnaros, -1, 80 81 | Backstage passes to a TAFKAL80ETC concert, 9, 27 82 | Backstage passes to a TAFKAL80ETC concert, 4, 50 83 | Backstage passes to a TAFKAL80ETC concert, -1, 0 84 | Conjured Mana Cake, -3, 0 85 | 86 | -------- day 7 -------- 87 | name, sellIn, quality 88 | +5 Dexterity Vest, 3, 13 89 | Aged Brie, -5, 12 90 | Elixir of the Mongoose, -2, 0 91 | Sulfuras, Hand of Ragnaros, 0, 80 92 | Sulfuras, Hand of Ragnaros, -1, 80 93 | Backstage passes to a TAFKAL80ETC concert, 8, 29 94 | Backstage passes to a TAFKAL80ETC concert, 3, 50 95 | Backstage passes to a TAFKAL80ETC concert, -2, 0 96 | Conjured Mana Cake, -4, 0 97 | 98 | -------- day 8 -------- 99 | name, sellIn, quality 100 | +5 Dexterity Vest, 2, 12 101 | Aged Brie, -6, 14 102 | Elixir of the Mongoose, -3, 0 103 | Sulfuras, Hand of Ragnaros, 0, 80 104 | Sulfuras, Hand of Ragnaros, -1, 80 105 | Backstage passes to a TAFKAL80ETC concert, 7, 31 106 | Backstage passes to a TAFKAL80ETC concert, 2, 50 107 | Backstage passes to a TAFKAL80ETC concert, -3, 0 108 | Conjured Mana Cake, -5, 0 109 | 110 | -------- day 9 -------- 111 | name, sellIn, quality 112 | +5 Dexterity Vest, 1, 11 113 | Aged Brie, -7, 16 114 | Elixir of the Mongoose, -4, 0 115 | Sulfuras, Hand of Ragnaros, 0, 80 116 | Sulfuras, Hand of Ragnaros, -1, 80 117 | Backstage passes to a TAFKAL80ETC concert, 6, 33 118 | Backstage passes to a TAFKAL80ETC concert, 1, 50 119 | Backstage passes to a TAFKAL80ETC concert, -4, 0 120 | Conjured Mana Cake, -6, 0 121 | 122 | -------- day 10 -------- 123 | name, sellIn, quality 124 | +5 Dexterity Vest, 0, 10 125 | Aged Brie, -8, 18 126 | Elixir of the Mongoose, -5, 0 127 | Sulfuras, Hand of Ragnaros, 0, 80 128 | Sulfuras, Hand of Ragnaros, -1, 80 129 | Backstage passes to a TAFKAL80ETC concert, 5, 35 130 | Backstage passes to a TAFKAL80ETC concert, 0, 50 131 | Backstage passes to a TAFKAL80ETC concert, -5, 0 132 | Conjured Mana Cake, -7, 0 133 | 134 | -------- day 11 -------- 135 | name, sellIn, quality 136 | +5 Dexterity Vest, -1, 8 137 | Aged Brie, -9, 20 138 | Elixir of the Mongoose, -6, 0 139 | Sulfuras, Hand of Ragnaros, 0, 80 140 | Sulfuras, Hand of Ragnaros, -1, 80 141 | Backstage passes to a TAFKAL80ETC concert, 4, 38 142 | Backstage passes to a TAFKAL80ETC concert, -1, 0 143 | Backstage passes to a TAFKAL80ETC concert, -6, 0 144 | Conjured Mana Cake, -8, 0 145 | 146 | -------- day 12 -------- 147 | name, sellIn, quality 148 | +5 Dexterity Vest, -2, 6 149 | Aged Brie, -10, 22 150 | Elixir of the Mongoose, -7, 0 151 | Sulfuras, Hand of Ragnaros, 0, 80 152 | Sulfuras, Hand of Ragnaros, -1, 80 153 | Backstage passes to a TAFKAL80ETC concert, 3, 41 154 | Backstage passes to a TAFKAL80ETC concert, -2, 0 155 | Backstage passes to a TAFKAL80ETC concert, -7, 0 156 | Conjured Mana Cake, -9, 0 157 | 158 | -------- day 13 -------- 159 | name, sellIn, quality 160 | +5 Dexterity Vest, -3, 4 161 | Aged Brie, -11, 24 162 | Elixir of the Mongoose, -8, 0 163 | Sulfuras, Hand of Ragnaros, 0, 80 164 | Sulfuras, Hand of Ragnaros, -1, 80 165 | Backstage passes to a TAFKAL80ETC concert, 2, 44 166 | Backstage passes to a TAFKAL80ETC concert, -3, 0 167 | Backstage passes to a TAFKAL80ETC concert, -8, 0 168 | Conjured Mana Cake, -10, 0 169 | 170 | -------- day 14 -------- 171 | name, sellIn, quality 172 | +5 Dexterity Vest, -4, 2 173 | Aged Brie, -12, 26 174 | Elixir of the Mongoose, -9, 0 175 | Sulfuras, Hand of Ragnaros, 0, 80 176 | Sulfuras, Hand of Ragnaros, -1, 80 177 | Backstage passes to a TAFKAL80ETC concert, 1, 47 178 | Backstage passes to a TAFKAL80ETC concert, -4, 0 179 | Backstage passes to a TAFKAL80ETC concert, -9, 0 180 | Conjured Mana Cake, -11, 0 181 | 182 | -------- day 15 -------- 183 | name, sellIn, quality 184 | +5 Dexterity Vest, -5, 0 185 | Aged Brie, -13, 28 186 | Elixir of the Mongoose, -10, 0 187 | Sulfuras, Hand of Ragnaros, 0, 80 188 | Sulfuras, Hand of Ragnaros, -1, 80 189 | Backstage passes to a TAFKAL80ETC concert, 0, 50 190 | Backstage passes to a TAFKAL80ETC concert, -5, 0 191 | Backstage passes to a TAFKAL80ETC concert, -10, 0 192 | Conjured Mana Cake, -12, 0 193 | 194 | -------- day 16 -------- 195 | name, sellIn, quality 196 | +5 Dexterity Vest, -6, 0 197 | Aged Brie, -14, 30 198 | Elixir of the Mongoose, -11, 0 199 | Sulfuras, Hand of Ragnaros, 0, 80 200 | Sulfuras, Hand of Ragnaros, -1, 80 201 | Backstage passes to a TAFKAL80ETC concert, -1, 0 202 | Backstage passes to a TAFKAL80ETC concert, -6, 0 203 | Backstage passes to a TAFKAL80ETC concert, -11, 0 204 | Conjured Mana Cake, -13, 0 205 | 206 | -------- day 17 -------- 207 | name, sellIn, quality 208 | +5 Dexterity Vest, -7, 0 209 | Aged Brie, -15, 32 210 | Elixir of the Mongoose, -12, 0 211 | Sulfuras, Hand of Ragnaros, 0, 80 212 | Sulfuras, Hand of Ragnaros, -1, 80 213 | Backstage passes to a TAFKAL80ETC concert, -2, 0 214 | Backstage passes to a TAFKAL80ETC concert, -7, 0 215 | Backstage passes to a TAFKAL80ETC concert, -12, 0 216 | Conjured Mana Cake, -14, 0 217 | 218 | -------- day 18 -------- 219 | name, sellIn, quality 220 | +5 Dexterity Vest, -8, 0 221 | Aged Brie, -16, 34 222 | Elixir of the Mongoose, -13, 0 223 | Sulfuras, Hand of Ragnaros, 0, 80 224 | Sulfuras, Hand of Ragnaros, -1, 80 225 | Backstage passes to a TAFKAL80ETC concert, -3, 0 226 | Backstage passes to a TAFKAL80ETC concert, -8, 0 227 | Backstage passes to a TAFKAL80ETC concert, -13, 0 228 | Conjured Mana Cake, -15, 0 229 | 230 | -------- day 19 -------- 231 | name, sellIn, quality 232 | +5 Dexterity Vest, -9, 0 233 | Aged Brie, -17, 36 234 | Elixir of the Mongoose, -14, 0 235 | Sulfuras, Hand of Ragnaros, 0, 80 236 | Sulfuras, Hand of Ragnaros, -1, 80 237 | Backstage passes to a TAFKAL80ETC concert, -4, 0 238 | Backstage passes to a TAFKAL80ETC concert, -9, 0 239 | Backstage passes to a TAFKAL80ETC concert, -14, 0 240 | Conjured Mana Cake, -16, 0 241 | 242 | -------- day 20 -------- 243 | name, sellIn, quality 244 | +5 Dexterity Vest, -10, 0 245 | Aged Brie, -18, 38 246 | Elixir of the Mongoose, -15, 0 247 | Sulfuras, Hand of Ragnaros, 0, 80 248 | Sulfuras, Hand of Ragnaros, -1, 80 249 | Backstage passes to a TAFKAL80ETC concert, -5, 0 250 | Backstage passes to a TAFKAL80ETC concert, -10, 0 251 | Backstage passes to a TAFKAL80ETC concert, -15, 0 252 | Conjured Mana Cake, -17, 0 253 | 254 | -------- day 21 -------- 255 | name, sellIn, quality 256 | +5 Dexterity Vest, -11, 0 257 | Aged Brie, -19, 40 258 | Elixir of the Mongoose, -16, 0 259 | Sulfuras, Hand of Ragnaros, 0, 80 260 | Sulfuras, Hand of Ragnaros, -1, 80 261 | Backstage passes to a TAFKAL80ETC concert, -6, 0 262 | Backstage passes to a TAFKAL80ETC concert, -11, 0 263 | Backstage passes to a TAFKAL80ETC concert, -16, 0 264 | Conjured Mana Cake, -18, 0 265 | 266 | -------- day 22 -------- 267 | name, sellIn, quality 268 | +5 Dexterity Vest, -12, 0 269 | Aged Brie, -20, 42 270 | Elixir of the Mongoose, -17, 0 271 | Sulfuras, Hand of Ragnaros, 0, 80 272 | Sulfuras, Hand of Ragnaros, -1, 80 273 | Backstage passes to a TAFKAL80ETC concert, -7, 0 274 | Backstage passes to a TAFKAL80ETC concert, -12, 0 275 | Backstage passes to a TAFKAL80ETC concert, -17, 0 276 | Conjured Mana Cake, -19, 0 277 | 278 | -------- day 23 -------- 279 | name, sellIn, quality 280 | +5 Dexterity Vest, -13, 0 281 | Aged Brie, -21, 44 282 | Elixir of the Mongoose, -18, 0 283 | Sulfuras, Hand of Ragnaros, 0, 80 284 | Sulfuras, Hand of Ragnaros, -1, 80 285 | Backstage passes to a TAFKAL80ETC concert, -8, 0 286 | Backstage passes to a TAFKAL80ETC concert, -13, 0 287 | Backstage passes to a TAFKAL80ETC concert, -18, 0 288 | Conjured Mana Cake, -20, 0 289 | 290 | -------- day 24 -------- 291 | name, sellIn, quality 292 | +5 Dexterity Vest, -14, 0 293 | Aged Brie, -22, 46 294 | Elixir of the Mongoose, -19, 0 295 | Sulfuras, Hand of Ragnaros, 0, 80 296 | Sulfuras, Hand of Ragnaros, -1, 80 297 | Backstage passes to a TAFKAL80ETC concert, -9, 0 298 | Backstage passes to a TAFKAL80ETC concert, -14, 0 299 | Backstage passes to a TAFKAL80ETC concert, -19, 0 300 | Conjured Mana Cake, -21, 0 301 | 302 | -------- day 25 -------- 303 | name, sellIn, quality 304 | +5 Dexterity Vest, -15, 0 305 | Aged Brie, -23, 48 306 | Elixir of the Mongoose, -20, 0 307 | Sulfuras, Hand of Ragnaros, 0, 80 308 | Sulfuras, Hand of Ragnaros, -1, 80 309 | Backstage passes to a TAFKAL80ETC concert, -10, 0 310 | Backstage passes to a TAFKAL80ETC concert, -15, 0 311 | Backstage passes to a TAFKAL80ETC concert, -20, 0 312 | Conjured Mana Cake, -22, 0 313 | 314 | -------- day 26 -------- 315 | name, sellIn, quality 316 | +5 Dexterity Vest, -16, 0 317 | Aged Brie, -24, 50 318 | Elixir of the Mongoose, -21, 0 319 | Sulfuras, Hand of Ragnaros, 0, 80 320 | Sulfuras, Hand of Ragnaros, -1, 80 321 | Backstage passes to a TAFKAL80ETC concert, -11, 0 322 | Backstage passes to a TAFKAL80ETC concert, -16, 0 323 | Backstage passes to a TAFKAL80ETC concert, -21, 0 324 | Conjured Mana Cake, -23, 0 325 | 326 | -------- day 27 -------- 327 | name, sellIn, quality 328 | +5 Dexterity Vest, -17, 0 329 | Aged Brie, -25, 50 330 | Elixir of the Mongoose, -22, 0 331 | Sulfuras, Hand of Ragnaros, 0, 80 332 | Sulfuras, Hand of Ragnaros, -1, 80 333 | Backstage passes to a TAFKAL80ETC concert, -12, 0 334 | Backstage passes to a TAFKAL80ETC concert, -17, 0 335 | Backstage passes to a TAFKAL80ETC concert, -22, 0 336 | Conjured Mana Cake, -24, 0 337 | 338 | -------- day 28 -------- 339 | name, sellIn, quality 340 | +5 Dexterity Vest, -18, 0 341 | Aged Brie, -26, 50 342 | Elixir of the Mongoose, -23, 0 343 | Sulfuras, Hand of Ragnaros, 0, 80 344 | Sulfuras, Hand of Ragnaros, -1, 80 345 | Backstage passes to a TAFKAL80ETC concert, -13, 0 346 | Backstage passes to a TAFKAL80ETC concert, -18, 0 347 | Backstage passes to a TAFKAL80ETC concert, -23, 0 348 | Conjured Mana Cake, -25, 0 349 | 350 | -------- day 29 -------- 351 | name, sellIn, quality 352 | +5 Dexterity Vest, -19, 0 353 | Aged Brie, -27, 50 354 | Elixir of the Mongoose, -24, 0 355 | Sulfuras, Hand of Ragnaros, 0, 80 356 | Sulfuras, Hand of Ragnaros, -1, 80 357 | Backstage passes to a TAFKAL80ETC concert, -14, 0 358 | Backstage passes to a TAFKAL80ETC concert, -19, 0 359 | Backstage passes to a TAFKAL80ETC concert, -24, 0 360 | Conjured Mana Cake, -26, 0 361 | 362 | -------- day 30 -------- 363 | name, sellIn, quality 364 | +5 Dexterity Vest, -20, 0 365 | Aged Brie, -28, 50 366 | Elixir of the Mongoose, -25, 0 367 | Sulfuras, Hand of Ragnaros, 0, 80 368 | Sulfuras, Hand of Ragnaros, -1, 80 369 | Backstage passes to a TAFKAL80ETC concert, -15, 0 370 | Backstage passes to a TAFKAL80ETC concert, -20, 0 371 | Backstage passes to a TAFKAL80ETC concert, -25, 0 372 | Conjured Mana Cake, -27, 0 373 | 374 | 375 | 376 | --------------------------------------------------------------------------------