Commit Graph

695 Commits

Author SHA1 Message Date
Trobax
284a01fac5 create Sulfuras subclass
create sulfuras subclass and override StorageItem methodes
2022-11-23 17:51:26 +01:00
Trobax
025c3e4a9a create backstage Passes class
Override the methods from StorageItem to the sub class backstage Passes
2022-11-23 17:48:06 +01:00
Trobax
77fca57da8 create subclass for AgedBrie
creating AgedBrie class to implement the methhods for each type alone
2022-11-23 17:43:24 +01:00
Trobax
4fa88bab43 update StorageItem
remove Item item due to item is a field in this class
2022-11-23 17:33:59 +01:00
Trobax
fa31f828a1 move methods to StorageItem
moving the methods from GildedRose to Storage item for a polimorfizm solution
2022-11-23 17:27:37 +01:00
Trobax
4e692bf70e add new class
add new class to start wrapping all the methods
2022-11-23 17:17:42 +01:00
Trobax
0d3aefb6c8 update updateExpired method
update updateExpired method to process Aged Brie then Backstage passes then Sulfuras then all the rest items

also refactoring increase and decease quality methods to prevent duplication code and for easy maintain
2022-11-23 17:14:08 +01:00
Trobax
e0c5b8b5bd update updateQuality method
update updateQuality method to process each item individually Aged Brie then Backstage passes then Sulfuras then the rest of items
2022-11-23 17:04:15 +01:00
Trobax
bdcd441019 invert if condition
invert if condition to simplify the code
2022-11-23 16:54:56 +01:00
Trobax
7422960de8 breaking down more scopes
breaking down the Gilded Rose class to several methods for a better approach
2022-11-23 16:52:22 +01:00
Trobax
aefb4310a9 break down the method
breaking down the method updateQuality for to various scopes as a refactoring
2022-11-23 16:46:46 +01:00
Trobax
1302ae4686 update item quality
updating the ite.quality affectation
2022-11-23 16:41:27 +01:00
Trobax
112db7306b test case for legendary items
legendary items never have to be sold
2022-11-23 16:38:17 +01:00
Trobax
ab94957940 test cases for aged items 2
1- aged item quality increases twice as fast past selling date
2- aged item quality 50 past selling date does not increase
3- quality of an item is never greater than 50
2022-11-23 16:37:43 +01:00
Trobax
623d654efd test cases for aged items
1- aged items increase in quality over time
2- aged item quality 49 increases up to 50
2022-11-23 16:35:25 +01:00
Trobax
e1aa1664e5 item quality test cases
1 - test case for item quality degrades twice as fast past selling date
2 - item quality degrades by one with one day left
3- item quality degrades down to zero
4 - item quality is never negative
2022-11-23 16:34:08 +01:00
Trobax
8692a3e3e9 test case 2
test case for multiple items degrade each day
2022-11-23 16:30:39 +01:00
Trobax
9b36b7d134 adding test case quality selling decreases
adding test case for quality decreases and selling decreases each day
2022-11-23 16:24:15 +01:00
Trobax
013c72196b update gildedRose
enhanced the for loop for reading the code more effecient
2022-11-23 15:56:19 +01:00
Trobax
bcaa2d1ef5 update versions
junit.jupiter and adding assertj-core  dependency for testing
2022-11-23 15:41:39 +01:00
Trobax
9fc3dcb6cf update readme file
update readme file
2022-11-23 15:21:52 +01:00
Trobax
889455d4a0 clean up repository
clean the repo to focus only on JAVA
2022-11-23 15:17:57 +01:00
Emily Bache
ac8fce7557
Merge pull request #374 from ZeKap/patch-1
removed a word that didn't mean anything in the sentence in french
2022-11-10 09:05:22 +01:00
Kap
e8b4d95519
removed a word that didn't mean anything in the sentence in french
Now it's understandable
2022-11-07 09:31:27 +01:00
Emily Bache
878f2da3aa
Merge pull request #366 from Chemaclass/php/update-approvals-dependency
Bugfix: Update approvals php dependency
2022-10-12 15:43:45 +02:00
Emily Bache
e1e3c990f2
Merge pull request #367 from Chemaclass/php/update-phptan-max-level
Update level: max in phpstan.neon
2022-10-10 11:20:47 +02:00
Jose Maria Valera Reales
86fd140c4d Update level:max in phpstan.neon 2022-10-07 10:06:58 +02:00
Jose Maria Valera Reales
07962c0803 Bugfix: Update approvals php dependency 2022-10-07 10:01:01 +02:00
Emily Bache
a7cebcebed
Merge pull request #364 from Neppord/main
Added GnuCobol support
2022-10-05 08:15:05 +02:00
Samuel Ytterbrink
0dfaefa147 Add add script that helps you add items 2022-09-26 15:28:05 +02:00
Samuel Ytterbrink
f97344859b Dont ignore the items files 2022-09-26 15:28:05 +02:00
Samuel Ytterbrink
cae6ee8d5d Add add programm to add item to the in-items file 2022-09-26 15:28:05 +02:00
Samuel Ytterbrink
38da2b91ce Don't touch in-items file 2022-09-26 15:28:05 +02:00
Samuel Ytterbrink
9f208d7947 Build all cbl files 2022-09-26 15:28:05 +02:00
Samuel Ytterbrink
3720febc88 Reduce the size of sell in and quality 2022-09-26 15:28:05 +02:00
Samuel Ytterbrink
07c3edcb48 Fix warning 2022-09-26 15:28:05 +02:00
Samuel Ytterbrink
cfb27bf23c Add test script 2022-09-26 15:28:05 +02:00
Samuel Ytterbrink
e284c47e89 Add base for GnuCobol version 2022-09-26 15:28:05 +02:00
Emily Bache
1184504cfe
Merge pull request #363 from pesterhazy/clojure
Add Clojure translation
2022-09-26 07:56:19 +02:00
Paulus Esterhazy
c81d02acf5 Add Clojure translation 2022-09-25 20:41:30 +02:00
Emily Bache
bdcea60169
Merge pull request #357 from Mavelous/main
Added Gradle to Groovy project.
2022-08-29 15:14:34 +02:00
Mike Vitale
b3d0da2a9a Added Gradle to Groovy project. 2022-08-26 13:51:13 -05:00
Emily Bache
bc7de77181
Merge pull request #338 from jonreid/master
Apply SwiftFormat
2022-06-13 07:47:31 +02:00
Jon Reid
31afd92d95
a - Apply SwiftFormat 2022-06-10 11:30:11 -07:00
Emily Bache
b57ae7007d
Merge pull request #337 from maszczyn/polish_translation
add polish translation of requirements
2022-06-10 14:33:51 +02:00
Łukasz Maszczyński
cbaaa719fd add polish translation of requirements 2022-06-09 20:17:36 +02:00
Emily Bache
9653512287
Merge pull request #332 from zsebastian/cpp-compiles
Fix syntax errors in cpp kata
2022-05-16 08:12:19 +02:00
Sebastian Zander
15fa497fbd Fix syntax errors in cpp kata 2022-05-13 21:24:02 +02:00
Emily Bache
d20c40501b
Merge pull request #330 from AlganOngun/issue263-fix
Fixed Issue#263, Fixed the usage of C functions in Cpp
2022-05-02 07:43:07 +02:00
Emily Bache
81cc8266e1
Merge pull request #329 from AlganOngun/turkishTranslation
Added GildedRoseRequirements in Turkish
2022-05-02 07:39:04 +02:00