mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2025-12-12 20:32:15 +00:00
added history
This commit is contained in:
parent
23db73bafd
commit
632a6768eb
15
plantuml/history/01_lower-both-values.puml
Normal file
15
plantuml/history/01_lower-both-values.puml
Normal file
@ -0,0 +1,15 @@
|
||||
@startuml
|
||||
|
||||
start
|
||||
note left
|
||||
Do this for each item in the list.
|
||||
An item has a name, a sell in value and a quality value
|
||||
end note
|
||||
|
||||
-lower quality with 1
|
||||
|
||||
-lower sell in with 1
|
||||
|
||||
stop
|
||||
|
||||
@enduml
|
||||
19
plantuml/history/02_sell-by-passed.puml
Normal file
19
plantuml/history/02_sell-by-passed.puml
Normal file
@ -0,0 +1,19 @@
|
||||
@startuml
|
||||
|
||||
start
|
||||
note left
|
||||
Do this for each item in the list.
|
||||
An item has a name, a sell in value and a quality value
|
||||
end note
|
||||
|
||||
-lower quality with 1
|
||||
|
||||
-lower sell in with 1
|
||||
|
||||
if (sell in < 0) then (yes)
|
||||
-lower quality with 1
|
||||
endif
|
||||
|
||||
stop
|
||||
|
||||
@enduml
|
||||
23
plantuml/history/03_quality-never-negative.puml
Normal file
23
plantuml/history/03_quality-never-negative.puml
Normal file
@ -0,0 +1,23 @@
|
||||
@startuml
|
||||
|
||||
start
|
||||
note left
|
||||
Do this for each item in the list.
|
||||
An item has a name, a sell in value and a quality value
|
||||
end note
|
||||
|
||||
if (quality > 0) then (yes)
|
||||
-lower quality with 1
|
||||
endif
|
||||
|
||||
-lower sell in with 1
|
||||
|
||||
if (sell in < 0) then (yes)
|
||||
if (quality > 0) then (yes)
|
||||
-lower quality with 1
|
||||
endif
|
||||
endif
|
||||
|
||||
stop
|
||||
|
||||
@enduml
|
||||
31
plantuml/history/04_aged-brie.puml
Normal file
31
plantuml/history/04_aged-brie.puml
Normal file
@ -0,0 +1,31 @@
|
||||
@startuml
|
||||
|
||||
start
|
||||
note left
|
||||
Do this for each item in the list.
|
||||
An item has a name, a sell in value and a quality value
|
||||
end note
|
||||
|
||||
if (not "Aged Brie") then (yes)
|
||||
if (quality > 0) then (yes)
|
||||
-lower quality with 1
|
||||
endif
|
||||
else (no)
|
||||
-increase quality with 1
|
||||
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
|
||||
endif
|
||||
else (no)
|
||||
-increase quality with 1
|
||||
endif
|
||||
endif
|
||||
|
||||
stop
|
||||
|
||||
@enduml
|
||||
35
plantuml/history/05_quality-max-50.puml
Normal file
35
plantuml/history/05_quality-max-50.puml
Normal file
@ -0,0 +1,35 @@
|
||||
@startuml
|
||||
|
||||
start
|
||||
note left
|
||||
Do this for each item in the list.
|
||||
An item has a name, a sell in value and a quality value
|
||||
end note
|
||||
|
||||
if (not "Aged Brie") then (yes)
|
||||
if (quality > 0) then (yes)
|
||||
-lower quality with 1
|
||||
endif
|
||||
else (no)
|
||||
if (quality < 50) then (yes)
|
||||
-increase quality with 1
|
||||
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
|
||||
endif
|
||||
else (no)
|
||||
if (quality < 50) then (yes)
|
||||
-increase quality with 1
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
stop
|
||||
|
||||
@enduml
|
||||
41
plantuml/history/06_sulfuras.puml
Normal file
41
plantuml/history/06_sulfuras.puml
Normal file
@ -0,0 +1,41 @@
|
||||
@startuml
|
||||
|
||||
start
|
||||
note left
|
||||
Do this for each item in the list.
|
||||
An item has a name, a sell in value and a quality value
|
||||
end note
|
||||
|
||||
if (not "Aged Brie") then (yes)
|
||||
if (quality > 0) then (yes)
|
||||
if (not "Sulfuras, Hand of Ragnaros") then (yes)
|
||||
-lower quality with 1
|
||||
endif
|
||||
endif
|
||||
else (no)
|
||||
if (quality < 50) then (yes)
|
||||
-increase quality with 1
|
||||
endif
|
||||
endif
|
||||
|
||||
if (not "Sulfuras, Hand of Ragnaros") then (yes)
|
||||
-lower sell in with 1
|
||||
endif
|
||||
|
||||
if (sell in < 0) then (yes)
|
||||
if (not "Aged Brie") then (yes)
|
||||
if (quality > 0) then (yes)
|
||||
if (not "Sulfuras, Hand of Ragnaros") then (yes)
|
||||
-lower quality with 1
|
||||
endif
|
||||
endif
|
||||
else (no)
|
||||
if (quality < 50) then (yes)
|
||||
-increase quality with 1
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
stop
|
||||
|
||||
@enduml
|
||||
57
plantuml/history/07_backstage-passes.puml
Normal file
57
plantuml/history/07_backstage-passes.puml
Normal file
@ -0,0 +1,57 @@
|
||||
@startuml
|
||||
|
||||
start
|
||||
note left
|
||||
Do this for each item in the list.
|
||||
An item has a name, a sell in value and a quality value
|
||||
end note
|
||||
|
||||
if (not "Aged Brie" and not "Backstage passes to a TAFKAL80ETC concert") then (yes)
|
||||
if (quality > 0) then (yes)
|
||||
if (not "Sulfuras, Hand of Ragnaros") then (yes)
|
||||
-lower quality with 1
|
||||
endif
|
||||
endif
|
||||
else (no)
|
||||
if (quality < 50) then (yes)
|
||||
-increase quality with 1
|
||||
if ("Backstage passes to a TAFKAL80ETC concert") then (yes)
|
||||
if (sell in < 11) then (yes)
|
||||
if (quality < 50) then (yes)
|
||||
-increase quality with 1
|
||||
endif
|
||||
endif
|
||||
if (sell in < 6) then (yes)
|
||||
if (quality < 50) then (yes)
|
||||
-increase quality with 1
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
if (not "Sulfuras, Hand of Ragnaros") then (yes)
|
||||
-lower sell in with 1
|
||||
endif
|
||||
|
||||
if (sell in < 0) then (yes)
|
||||
if (not "Aged Brie") then (yes)
|
||||
if (not "Backstage passes to a TAFKAL80ETC concert") then (yes)
|
||||
if (quality > 0) then (yes)
|
||||
if (not "Sulfuras, Hand of Ragnaros") then (yes)
|
||||
-lower quality with 1
|
||||
endif
|
||||
endif
|
||||
else (no)
|
||||
-lower quality with quality
|
||||
endif
|
||||
else (no)
|
||||
if (quality < 50) then (yes)
|
||||
-increase quality with 1
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
stop
|
||||
|
||||
@enduml
|
||||
Loading…
Reference in New Issue
Block a user