mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2025-12-11 20:02:09 +00:00
39 lines
641 B
Plaintext
39 lines
641 B
Plaintext
@startuml
|
|
|
|
skinparam backgroundColor transparent
|
|
|
|
start
|
|
|
|
if (not "Aged Brie") then (yes)
|
|
if (quality > 0) then (yes)
|
|
:lower quality with 1;
|
|
else (no)
|
|
endif
|
|
else (no)
|
|
if (quality < 50) then (yes)
|
|
:increase quality with 1;
|
|
else (no)
|
|
endif
|
|
endif
|
|
|
|
:lower sell in with 1;
|
|
|
|
if (sell in < 0) then (yes)
|
|
if (not "Aged Brie") then (yes)
|
|
if (quality > 0) then (yes)
|
|
:lower quality with 1;
|
|
else (no)
|
|
endif
|
|
else (no)
|
|
if (quality < 50) then (yes)
|
|
:increase quality with 1;
|
|
else (no)
|
|
endif
|
|
endif
|
|
else (no)
|
|
endif
|
|
|
|
stop
|
|
|
|
@enduml
|