From 641ef30068673e2808059b5fba5505b3f4137f01 Mon Sep 17 00:00:00 2001 From: Anuchit Prasertsang Date: Sun, 14 Mar 2021 22:19:20 +0700 Subject: [PATCH 1/9] Create GildedRoseRequirements_th.md first draft --- GildedRoseRequirements_th.md | 45 ++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 GildedRoseRequirements_th.md diff --git a/GildedRoseRequirements_th.md b/GildedRoseRequirements_th.md new file mode 100644 index 00000000..bd0e5753 --- /dev/null +++ b/GildedRoseRequirements_th.md @@ -0,0 +1,45 @@ +# Gilded Rose Requirements Specification + +Hi and welcome to team Gilded Rose. As you know, we are a small inn with a +prime location in a prominent city ran 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. 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: + +- สินค้าแต่ละชิ้นจะต้องขายภายในระยะเวลาที่กำหนดไว้ในตัวแปร "SellIn" (มีหน่วยเป็น*วัน*) + - ยกตัวอย่างเช่น ต้องขายภายใน 3 วัน SellIn มีค่าเท่ากับ 3 +- มูลค่าของสินค้าแต่ละชิ้นจะแสดงไว้ในตัวแปร "Quality" +- ระบบจะทำการคำนวนค่า "SellIn" และ "Quality" ของสินค้าทุกชิ้นในช่วงเวลาสุดท้ายของทุกวัน + +ง่ายอะดิ, ใช่ป่ะ? Well this is where it gets interesting: + +- เมื่อสินค้าเลยกำหนดขายไปแล้ว "Quality" ของสินค้าจะลดลงเป็นสองเท่า +- "Quality" ของสินค้าไม่มีทางติดลบได้ +- สินค้าประเภท "Aged Brie" มูลค่าของสินค้าจะเพิ่มสูงขึ้นตามระยะเวลา +- "Quality" มีค่าสูงสุดคือ 50 +- สินค้าประเภท "Sulfuras" เป็นสินค้าในตำนานหายากลดมูลค่าจะไม่ลดลงและไม่ได้มีไว้เพื่อขาย +- สินค้าประเภท "Backstage passes" เหมือนกันกับสินค้าประเภท aged brie, increases in Quality as it's SellIn +value approaches; Quality increases by 2 when there are 10 days or less +and by 3 when there are 5 days or less but Quality drops to 0 after the +concert + +We have recently signed a supplier of conjured items. This requires an +update to our system: + +- "Conjured" items degrade in Quality twice as fast as normal items + +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). + +Just for clarification, an item can never have its Quality increase +above 50, however "Sulfuras" is a legendary item and as such its +Quality is 80 and it never alters. From 54c57ff6ceba029f49e4cef72306f58406104ced Mon Sep 17 00:00:00 2001 From: Anuchit Prasertsang Date: Mon, 15 Mar 2021 13:22:11 +0700 Subject: [PATCH 2/9] Update GildedRoseRequirements_th.md continues translate a second part of requirement. --- GildedRoseRequirements_th.md | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/GildedRoseRequirements_th.md b/GildedRoseRequirements_th.md index bd0e5753..90fa2e6d 100644 --- a/GildedRoseRequirements_th.md +++ b/GildedRoseRequirements_th.md @@ -12,26 +12,24 @@ can begin selling a new category of items. First an introduction to our system: - สินค้าแต่ละชิ้นจะต้องขายภายในระยะเวลาที่กำหนดไว้ในตัวแปร "SellIn" (มีหน่วยเป็น*วัน*) - - ยกตัวอย่างเช่น ต้องขายภายใน 3 วัน SellIn มีค่าเท่ากับ 3 -- มูลค่าของสินค้าแต่ละชิ้นจะแสดงไว้ในตัวแปร "Quality" +- สินค้าแต่ละชิ้นมีตัวแปร "Quality" ที่สามารถบ่งชี้ถึงมูลค่าของสินค้า - ระบบจะทำการคำนวนค่า "SellIn" และ "Quality" ของสินค้าทุกชิ้นในช่วงเวลาสุดท้ายของทุกวัน ง่ายอะดิ, ใช่ป่ะ? Well this is where it gets interesting: - เมื่อสินค้าเลยกำหนดขายไปแล้ว "Quality" ของสินค้าจะลดลงเป็นสองเท่า - "Quality" ของสินค้าไม่มีทางติดลบได้ -- สินค้าประเภท "Aged Brie" มูลค่าของสินค้าจะเพิ่มสูงขึ้นตามระยะเวลา +- คุณภาพของสินค้าประเภท "Aged Brie" จะเพิ่มสูงขึ้นตามระยะเวลา - "Quality" มีค่าสูงสุดคือ 50 -- สินค้าประเภท "Sulfuras" เป็นสินค้าในตำนานหายากลดมูลค่าจะไม่ลดลงและไม่ได้มีไว้เพื่อขาย -- สินค้าประเภท "Backstage passes" เหมือนกันกับสินค้าประเภท aged brie, increases in Quality as it's SellIn -value approaches; Quality increases by 2 when there are 10 days or less -and by 3 when there are 5 days or less but Quality drops to 0 after the -concert +- สินค้าประเภท "Sulfuras" เป็นสินค้าในตำนานหายาก คุณภาพของสินค้าจะไม่ลดลงและไม่ได้มีไว้เพื่อขาย +- สินค้าประเภท "Backstage passes" คุณภาพของสินค้าเหมือนกันกับสินค้าประเภท aged brie +เพียงแต่หากใกล้ถึงวันแสดง 10 วันก่อนหน้าหรือน้อยกว่าคุณภาพของสินค้าประเภทนี้จะเพิ่มทีละ 2 +และถ้าใกล้ถึงวันแสดง 5 วันหรือน้อยกว่าคุณภาพจะเพิ่มทีละ 3 +อย่างไรก็ตามคุณภาพของสินค้าจะกลายเป็น 0 ทันทีหลังการแสดงจบลง -We have recently signed a supplier of conjured items. This requires an -update to our system: +เมื่อเร็วๆ นี้เราพึ่งได้ลงนามกับผู้ผลิตสินค้าประเภทของขลัง และเราต้องการที่จะเพิ่มความสามารถใหม่เข้าไปในระบบ: -- "Conjured" items degrade in Quality twice as fast as normal items +- คุณภาพสินค้าประเภท "Conjured" จะลดคุณภาพลงเร็วกว่าสินค้าปกติถึงสองเท่า 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 From 1b0cfd4bba4494d9b84d909896c1246dfc236bfd Mon Sep 17 00:00:00 2001 From: Anuchit Prasertsang Date: Mon, 15 Mar 2021 14:01:48 +0700 Subject: [PATCH 3/9] Update GildedRoseRequirements_th.md update --- GildedRoseRequirements_th.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/GildedRoseRequirements_th.md b/GildedRoseRequirements_th.md index 90fa2e6d..924496f2 100644 --- a/GildedRoseRequirements_th.md +++ b/GildedRoseRequirements_th.md @@ -29,7 +29,7 @@ First an introduction to our system: เมื่อเร็วๆ นี้เราพึ่งได้ลงนามกับผู้ผลิตสินค้าประเภทของขลัง และเราต้องการที่จะเพิ่มความสามารถใหม่เข้าไปในระบบ: -- คุณภาพสินค้าประเภท "Conjured" จะลดคุณภาพลงเร็วกว่าสินค้าปกติถึงสองเท่า +- คุณภาพสินค้าประเภท "Conjured" จะเสื่อมลงเร็วกว่าสินค้าปกติถึงสองเท่า 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 @@ -38,6 +38,5 @@ 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). -Just for clarification, an item can never have its Quality increase -above 50, however "Sulfuras" is a legendary item and as such its -Quality is 80 and it never alters. +ย้ำอีกครั้งหนึ่ง, สินค้าคุณภาพของสินค้ามีค่าสูงสุดคือ 50 +อย่างไรก็ตามสินค้าประเภท "Sulfuras" เป็นสินค้าหายากในตำนานมีค่า Quality เป็น 80 เสมอไม่เปลี่ยนแปลง. From a628a25069309cb393225d97a15a0c48578cd625 Mon Sep 17 00:00:00 2001 From: Anuchit Prasertsang Date: Mon, 15 Mar 2021 21:33:31 +0700 Subject: [PATCH 4/9] Update GildedRoseRequirements_th.md finish translation --- GildedRoseRequirements_th.md | 37 ++++++++++++++++-------------------- 1 file changed, 16 insertions(+), 21 deletions(-) diff --git a/GildedRoseRequirements_th.md b/GildedRoseRequirements_th.md index 924496f2..a1090ace 100644 --- a/GildedRoseRequirements_th.md +++ b/GildedRoseRequirements_th.md @@ -1,15 +1,11 @@ -# Gilded Rose Requirements Specification +# ข้อกำหนดความต้องการของระบบ Gilded Rose -Hi and welcome to team Gilded Rose. As you know, we are a small inn with a -prime location in a prominent city ran 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. Your task is to add the new feature to our system so that we -can begin selling a new category of items. +ยินดีต้อนรับสู่ทีม Gilded Rose อย่างที่คุณทราบแล้วว่า เราคือโรงแรมขนาดเล็กที่ตั้งอยู่ทำเลทองของประเทศกรุงเทพ +นอกจากนี้เรายังซื้อและขายเฉพาะสินค้าที่ดีที่สุด แต่น่าเสียดายยิ่งใกล้ถึงวันกำหนดขายสินค้า คุณภาพของสินค้าก็จะลดลงอย่างต่อเนื่อง +ตอนนี้เรามีระบบที่ช่วอัปเดตสินค้าคงคลังให้เรา มันถูกพัฒนาโดยโปรแกรมเมอร์ศิษย์เอกของพระอินทร์ ที่ตอนนี้ได้ย้ายกลับไปอยู่กับพระอินทร์ +เป็นการถาวรแล้ว เราจึงอยากให้คุณช่วยเพิ่มฟีเจอร์ใหม่เพื่อให้เราสามารถขายสินค้าประเภทใหม่ได้ -First an introduction to our system: +ก่อนอื่นเราขอแนะนำการทำงานของระบบปัจจุบัน: - สินค้าแต่ละชิ้นจะต้องขายภายในระยะเวลาที่กำหนดไว้ในตัวแปร "SellIn" (มีหน่วยเป็น*วัน*) - สินค้าแต่ละชิ้นมีตัวแปร "Quality" ที่สามารถบ่งชี้ถึงมูลค่าของสินค้า @@ -17,26 +13,25 @@ First an introduction to our system: ง่ายอะดิ, ใช่ป่ะ? Well this is where it gets interesting: -- เมื่อสินค้าเลยกำหนดขายไปแล้ว "Quality" ของสินค้าจะลดลงเป็นสองเท่า +- เมื่อสินค้าเลยกำหนดขายไปแล้ว "Quality" ของสินค้าจะลดลงเป็นสองเท่าจากปกติ - "Quality" ของสินค้าไม่มีทางติดลบได้ - คุณภาพของสินค้าประเภท "Aged Brie" จะเพิ่มสูงขึ้นตามระยะเวลา - "Quality" มีค่าสูงสุดคือ 50 - สินค้าประเภท "Sulfuras" เป็นสินค้าในตำนานหายาก คุณภาพของสินค้าจะไม่ลดลงและไม่ได้มีไว้เพื่อขาย - สินค้าประเภท "Backstage passes" คุณภาพของสินค้าเหมือนกันกับสินค้าประเภท aged brie -เพียงแต่หากใกล้ถึงวันแสดง 10 วันก่อนหน้าหรือน้อยกว่าคุณภาพของสินค้าประเภทนี้จะเพิ่มทีละ 2 -และถ้าใกล้ถึงวันแสดง 5 วันหรือน้อยกว่าคุณภาพจะเพิ่มทีละ 3 +เพียงแต่หากใกล้ถึงวันแสดง 10 วันก่อนหน้าหรือน้อยกว่าคุณภาพของสินค้าประเภทนี้จะเพิ่มทีละ 2 และถ้าใกล้ถึงวันก่อนวันแสดง 5 วันหรือน้อยกว่าคุณภาพจะเพิ่มทีละ 3 อย่างไรก็ตามคุณภาพของสินค้าจะกลายเป็น 0 ทันทีหลังการแสดงจบลง -เมื่อเร็วๆ นี้เราพึ่งได้ลงนามกับผู้ผลิตสินค้าประเภทของขลัง และเราต้องการที่จะเพิ่มความสามารถใหม่เข้าไปในระบบ: +เมื่อเร็วๆ นี้เราพึ่งได้ลงนามกับผู้ผลิตสินค้าประเภทของขลังและของปลุกเสก +และเราต้องการที่จะเพิ่มความสามารถใหม่เข้าไปในระบบ: -- คุณภาพสินค้าประเภท "Conjured" จะเสื่อมลงเร็วกว่าสินค้าปกติถึงสองเท่า +- คุณภาพสินค้าประเภท "Conjured" จะเสื่อมลงเร็วกว่าสินค้าปกติถึงสองเท่าจากปกติ -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). +คุณสามารถปรับปรุงแก้ไขได้ทุกอย่างภายในเมธอด UpdateQuality และสามารถเพิ่มโค้ดใหม่ได้เลย +ตราบใดที่ทุกอย่างยังคงทำงานได้ถูกต้อง อย่างไรก็ตามห้ามแก้ไขคลาส Item และคุณสมบัติของคลาส +เพราะมันถูกลงอาคมจากโปรแกรมเมอร์จอมขมังเวทย์ที่ไม่เชื่อในเรื่องการแบ่งปันความเป็นเจ้าของโค้ด +ร่วมกับผู้อื่น (ถ้าคุณยังอยากจะแก้ไขทั้งเมธอด UpdateQuality และคุณสมบัติของคลาส Item เราก็จะ +นิมนต์หลวงปู่เค็มมาช่วยคุ้มกันคุณ) ย้ำอีกครั้งหนึ่ง, สินค้าคุณภาพของสินค้ามีค่าสูงสุดคือ 50 อย่างไรก็ตามสินค้าประเภท "Sulfuras" เป็นสินค้าหายากในตำนานมีค่า Quality เป็น 80 เสมอไม่เปลี่ยนแปลง. From 76a7937b0c50cfd3b55bd716a1c2758ae9dab7fa Mon Sep 17 00:00:00 2001 From: Anuchit Prasertsang Date: Mon, 15 Mar 2021 21:35:22 +0700 Subject: [PATCH 5/9] Update GildedRoseRequirements_th.md finish translate requirement to Thai language --- GildedRoseRequirements_th.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GildedRoseRequirements_th.md b/GildedRoseRequirements_th.md index a1090ace..fe6e8310 100644 --- a/GildedRoseRequirements_th.md +++ b/GildedRoseRequirements_th.md @@ -11,7 +11,7 @@ - สินค้าแต่ละชิ้นมีตัวแปร "Quality" ที่สามารถบ่งชี้ถึงมูลค่าของสินค้า - ระบบจะทำการคำนวนค่า "SellIn" และ "Quality" ของสินค้าทุกชิ้นในช่วงเวลาสุดท้ายของทุกวัน -ง่ายอะดิ, ใช่ป่ะ? Well this is where it gets interesting: +ง่ายอะดิ, ใช่ป่ะ? สิ่งที่น่าสนใจมันอยู่ตรงนี้: - เมื่อสินค้าเลยกำหนดขายไปแล้ว "Quality" ของสินค้าจะลดลงเป็นสองเท่าจากปกติ - "Quality" ของสินค้าไม่มีทางติดลบได้ From fc58f37743ec038ca871e0898531fcd22e27a798 Mon Sep 17 00:00:00 2001 From: Anuchit Prasertsang Date: Mon, 15 Mar 2021 21:36:17 +0700 Subject: [PATCH 6/9] Update GildedRoseRequirements_th.md fix typo --- GildedRoseRequirements_th.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GildedRoseRequirements_th.md b/GildedRoseRequirements_th.md index fe6e8310..597b733d 100644 --- a/GildedRoseRequirements_th.md +++ b/GildedRoseRequirements_th.md @@ -2,7 +2,7 @@ ยินดีต้อนรับสู่ทีม Gilded Rose อย่างที่คุณทราบแล้วว่า เราคือโรงแรมขนาดเล็กที่ตั้งอยู่ทำเลทองของประเทศกรุงเทพ นอกจากนี้เรายังซื้อและขายเฉพาะสินค้าที่ดีที่สุด แต่น่าเสียดายยิ่งใกล้ถึงวันกำหนดขายสินค้า คุณภาพของสินค้าก็จะลดลงอย่างต่อเนื่อง -ตอนนี้เรามีระบบที่ช่วอัปเดตสินค้าคงคลังให้เรา มันถูกพัฒนาโดยโปรแกรมเมอร์ศิษย์เอกของพระอินทร์ ที่ตอนนี้ได้ย้ายกลับไปอยู่กับพระอินทร์ +ตอนนี้เรามีระบบที่ช่วยอัปเดตสินค้าคงคลังให้เรา มันถูกพัฒนาโดยโปรแกรมเมอร์ศิษย์เอกของพระอินทร์ ที่ตอนนี้ได้ย้ายกลับไปอยู่กับพระอินทร์ เป็นการถาวรแล้ว เราจึงอยากให้คุณช่วยเพิ่มฟีเจอร์ใหม่เพื่อให้เราสามารถขายสินค้าประเภทใหม่ได้ ก่อนอื่นเราขอแนะนำการทำงานของระบบปัจจุบัน: From 84a32653b96ce55307bb90360d1876136003708e Mon Sep 17 00:00:00 2001 From: Anuchit Prasertsang Date: Mon, 15 Mar 2021 21:37:47 +0700 Subject: [PATCH 7/9] Update GildedRoseRequirements_th.md fix wording --- GildedRoseRequirements_th.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GildedRoseRequirements_th.md b/GildedRoseRequirements_th.md index 597b733d..a94f71fa 100644 --- a/GildedRoseRequirements_th.md +++ b/GildedRoseRequirements_th.md @@ -2,7 +2,7 @@ ยินดีต้อนรับสู่ทีม Gilded Rose อย่างที่คุณทราบแล้วว่า เราคือโรงแรมขนาดเล็กที่ตั้งอยู่ทำเลทองของประเทศกรุงเทพ นอกจากนี้เรายังซื้อและขายเฉพาะสินค้าที่ดีที่สุด แต่น่าเสียดายยิ่งใกล้ถึงวันกำหนดขายสินค้า คุณภาพของสินค้าก็จะลดลงอย่างต่อเนื่อง -ตอนนี้เรามีระบบที่ช่วยอัปเดตสินค้าคงคลังให้เรา มันถูกพัฒนาโดยโปรแกรมเมอร์ศิษย์เอกของพระอินทร์ ที่ตอนนี้ได้ย้ายกลับไปอยู่กับพระอินทร์ +ตอนนี้เรามีระบบที่ช่วยอัปเดตสินค้าคงคลังให้เรา มันถูกพัฒนาโดยโปรแกรมเมอร์ศิษย์เอกของพระอินทร์ ซึ่งโปรแกรมเมอร์คนนี้ได้ย้ายกลับไปอยู่กับพระอินทร์ เป็นการถาวรแล้ว เราจึงอยากให้คุณช่วยเพิ่มฟีเจอร์ใหม่เพื่อให้เราสามารถขายสินค้าประเภทใหม่ได้ ก่อนอื่นเราขอแนะนำการทำงานของระบบปัจจุบัน: From 2dfcaeb347346de04b5342c739b21b462bdd646b Mon Sep 17 00:00:00 2001 From: Anuchit Prasertsang Date: Mon, 15 Mar 2021 21:40:21 +0700 Subject: [PATCH 8/9] Update GildedRoseRequirements_th.md fix spacing --- GildedRoseRequirements_th.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GildedRoseRequirements_th.md b/GildedRoseRequirements_th.md index a94f71fa..563a211b 100644 --- a/GildedRoseRequirements_th.md +++ b/GildedRoseRequirements_th.md @@ -29,8 +29,8 @@ คุณสามารถปรับปรุงแก้ไขได้ทุกอย่างภายในเมธอด UpdateQuality และสามารถเพิ่มโค้ดใหม่ได้เลย ตราบใดที่ทุกอย่างยังคงทำงานได้ถูกต้อง อย่างไรก็ตามห้ามแก้ไขคลาส Item และคุณสมบัติของคลาส -เพราะมันถูกลงอาคมจากโปรแกรมเมอร์จอมขมังเวทย์ที่ไม่เชื่อในเรื่องการแบ่งปันความเป็นเจ้าของโค้ด -ร่วมกับผู้อื่น (ถ้าคุณยังอยากจะแก้ไขทั้งเมธอด UpdateQuality และคุณสมบัติของคลาส Item เราก็จะ +เพราะมันถูกลงอาคมจากโปรแกรมเมอร์จอมขมังเวทย์ที่ไม่เชื่อในเรื่องการแบ่งปันความเป็นเจ้าของโค้ดร่วมกับผู้อื่น +(ถ้าคุณยังอยากจะแก้ไขทั้งเมธอด UpdateQuality และคุณสมบัติของคลาส Item เราก็จะ นิมนต์หลวงปู่เค็มมาช่วยคุ้มกันคุณ) ย้ำอีกครั้งหนึ่ง, สินค้าคุณภาพของสินค้ามีค่าสูงสุดคือ 50 From e805a2fa0bcba659bbbb56324b3c2d1caa490bf9 Mon Sep 17 00:00:00 2001 From: Anuchit Prasertsang Date: Mon, 15 Mar 2021 21:41:10 +0700 Subject: [PATCH 9/9] Update GildedRoseRequirements_th.md fix typo --- GildedRoseRequirements_th.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GildedRoseRequirements_th.md b/GildedRoseRequirements_th.md index 563a211b..6d8a51ce 100644 --- a/GildedRoseRequirements_th.md +++ b/GildedRoseRequirements_th.md @@ -33,5 +33,5 @@ (ถ้าคุณยังอยากจะแก้ไขทั้งเมธอด UpdateQuality และคุณสมบัติของคลาส Item เราก็จะ นิมนต์หลวงปู่เค็มมาช่วยคุ้มกันคุณ) -ย้ำอีกครั้งหนึ่ง, สินค้าคุณภาพของสินค้ามีค่าสูงสุดคือ 50 +ย้ำอีกครั้งหนึ่ง, คุณภาพของสินค้ามีค่าสูงสุดคือ 50 อย่างไรก็ตามสินค้าประเภท "Sulfuras" เป็นสินค้าหายากในตำนานมีค่า Quality เป็น 80 เสมอไม่เปลี่ยนแปลง.