From 73dbef30beff5f9403c45913012743b025e8060a Mon Sep 17 00:00:00 2001 From: Erik Schierboom Date: Fri, 5 Apr 2024 09:42:39 +0200 Subject: [PATCH 1/9] dnd-character: convert Note heading to exercism/note --- exercises/dnd-character/description.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exercises/dnd-character/description.md b/exercises/dnd-character/description.md index bce59230e4..b51b2c3223 100644 --- a/exercises/dnd-character/description.md +++ b/exercises/dnd-character/description.md @@ -22,10 +22,10 @@ For example, the six throws of four dice may look like: Because constitution is 3, the constitution modifier is -4 and the hitpoints are 6. -## Notes - +~~~~exercism/note Most programming languages feature (pseudo-)random generators, but few programming languages are designed to roll dice. One such language is [Troll][troll]. +~~~~ [dnd]: https://en.wikipedia.org/wiki/Dungeons_%26_Dragons [troll]: https://di.ku.dk/Ansatte/?pure=da%2Fpublications%2Ftroll-a-language-for-specifying-dicerolls(84a45ff0-068b-11df-825d-000ea68e967b)%2Fexport.html From 42d6478cdfaf09386b58ce7f1f357fb9d18a1385 Mon Sep 17 00:00:00 2001 From: Erik Schierboom Date: Fri, 5 Apr 2024 09:47:53 +0200 Subject: [PATCH 2/9] dnd-character: grammar fix --- exercises/dnd-character/description.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/dnd-character/description.md b/exercises/dnd-character/description.md index b51b2c3223..99a784fba3 100644 --- a/exercises/dnd-character/description.md +++ b/exercises/dnd-character/description.md @@ -9,7 +9,7 @@ You do this six times, once for each ability. Your character's initial hitpoints are 10 + your character's constitution modifier. You find your character's constitution modifier by subtracting 10 from your character's constitution, divide by 2 and round down. -Write a random character generator that follows the rules above. +Write a random character generator that follows the above rules. For example, the six throws of four dice may look like: From fdf0eb6b6e5bda5660c4168dba8b4633ffdefb2a Mon Sep 17 00:00:00 2001 From: Erik Schierboom Date: Fri, 5 Apr 2024 10:14:10 +0200 Subject: [PATCH 3/9] dnd-character: split up into introduction and instructions --- .../{description.md => instructions.md} | 2 +- exercises/dnd-character/introduction.md | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) rename exercises/dnd-character/{description.md => instructions.md} (99%) create mode 100644 exercises/dnd-character/introduction.md diff --git a/exercises/dnd-character/description.md b/exercises/dnd-character/instructions.md similarity index 99% rename from exercises/dnd-character/description.md rename to exercises/dnd-character/instructions.md index 99a784fba3..baae600e73 100644 --- a/exercises/dnd-character/description.md +++ b/exercises/dnd-character/instructions.md @@ -1,4 +1,4 @@ -# Description +# Instructions For a game of [Dungeons & Dragons][dnd], each player starts by generating a character they can play with. This character has, among other things, six abilities; strength, dexterity, constitution, intelligence, wisdom and charisma. diff --git a/exercises/dnd-character/introduction.md b/exercises/dnd-character/introduction.md new file mode 100644 index 0000000000..4403f506be --- /dev/null +++ b/exercises/dnd-character/introduction.md @@ -0,0 +1,13 @@ +# Introduction + +After weeks filled with eager anticipation, the day has finally arrived for you and your friends to embark on your inaugural adventure in [Dungeons & Dragons][dnd] (D&D). +As newcomers to the realm of fantasy and role-playing, the first step for each of you is to breathe life into your characters by crafting their identities. +The fate of these characters hinges on the whims of 6-sided dice. +Yet, in a sudden twist of fate, you're met with puzzled looks—everyone's eyes are on you, expecting you to unveil the dice. +The realization hits you like a bolt from the blue: the responsibility of providing the dice was yours, sparked by your enthusiasm for D&D. +Your heart sinks as the oversight dawns on you, threatening to unravel the day's plans. +However, not all is lost. +Armed with a rudimentary knowledge of coding, a spark of ingenuity flickers to life. +You decide to forge a digital alternative: a program to simulate the dice rolls, salvaging your D&D adventure from the jaws of cancellation. + +[dnd]: https://en.wikipedia.org/wiki/Dungeons_%26_Dragons From f283b8aea98f7a7912b94ab8b548da57f01e5e0b Mon Sep 17 00:00:00 2001 From: Erik Schierboom Date: Fri, 5 Apr 2024 14:41:12 +0200 Subject: [PATCH 4/9] Fix link --- exercises/dnd-character/instructions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/dnd-character/instructions.md b/exercises/dnd-character/instructions.md index baae600e73..8e4170e089 100644 --- a/exercises/dnd-character/instructions.md +++ b/exercises/dnd-character/instructions.md @@ -25,7 +25,7 @@ Because constitution is 3, the constitution modifier is -4 and the hitpoints are ~~~~exercism/note Most programming languages feature (pseudo-)random generators, but few programming languages are designed to roll dice. One such language is [Troll][troll]. +[troll]: https://di.ku.dk/Ansatte/?pure=da%2Fpublications%2Ftroll-a-language-for-specifying-dicerolls(84a45ff0-068b-11df-825d-000ea68e967b)%2Fexport.html ~~~~ [dnd]: https://en.wikipedia.org/wiki/Dungeons_%26_Dragons -[troll]: https://di.ku.dk/Ansatte/?pure=da%2Fpublications%2Ftroll-a-language-for-specifying-dicerolls(84a45ff0-068b-11df-825d-000ea68e967b)%2Fexport.html From f4ee5d9e4326c92096bb8bb4d37795574bc8f80e Mon Sep 17 00:00:00 2001 From: Erik Schierboom Date: Fri, 5 Apr 2024 14:44:43 +0200 Subject: [PATCH 5/9] Tone it down --- exercises/dnd-character/introduction.md | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/exercises/dnd-character/introduction.md b/exercises/dnd-character/introduction.md index 4403f506be..fb78f76fe9 100644 --- a/exercises/dnd-character/introduction.md +++ b/exercises/dnd-character/introduction.md @@ -1,13 +1,10 @@ # Introduction -After weeks filled with eager anticipation, the day has finally arrived for you and your friends to embark on your inaugural adventure in [Dungeons & Dragons][dnd] (D&D). -As newcomers to the realm of fantasy and role-playing, the first step for each of you is to breathe life into your characters by crafting their identities. -The fate of these characters hinges on the whims of 6-sided dice. -Yet, in a sudden twist of fate, you're met with puzzled looks—everyone's eyes are on you, expecting you to unveil the dice. -The realization hits you like a bolt from the blue: the responsibility of providing the dice was yours, sparked by your enthusiasm for D&D. -Your heart sinks as the oversight dawns on you, threatening to unravel the day's plans. -However, not all is lost. -Armed with a rudimentary knowledge of coding, a spark of ingenuity flickers to life. -You decide to forge a digital alternative: a program to simulate the dice rolls, salvaging your D&D adventure from the jaws of cancellation. +After weeks of anticipation, you and your friends get together for your very first game of [Dungeons & Dragons][dnd] (D&D). +It being the first game, each player has to start by generating a character to play with. +The character's abilities are determined by rolling 6-sided dice, but where _are_ the dice? +With a shock, you realize that your friends are waiting for _you_ to produce the dice, after all it was your idea to play D&D! +Panicking, you realize you forgot to bring the dice, which would mean no D&D game. +As you have some basic coding skills, you quickly come up with a solution: you'll write a program to simulate dice rolls. [dnd]: https://en.wikipedia.org/wiki/Dungeons_%26_Dragons From 953b9f98f7154bc719bf9b1a762e57e8b88b9495 Mon Sep 17 00:00:00 2001 From: Erik Schierboom Date: Fri, 5 Apr 2024 14:58:13 +0200 Subject: [PATCH 6/9] Update exercises/dnd-character/instructions.md Co-authored-by: Matthijs <19817960+MatthijsBlom@users.noreply.github.com> --- exercises/dnd-character/instructions.md | 1 + 1 file changed, 1 insertion(+) diff --git a/exercises/dnd-character/instructions.md b/exercises/dnd-character/instructions.md index 8e4170e089..6f507dc239 100644 --- a/exercises/dnd-character/instructions.md +++ b/exercises/dnd-character/instructions.md @@ -25,6 +25,7 @@ Because constitution is 3, the constitution modifier is -4 and the hitpoints are ~~~~exercism/note Most programming languages feature (pseudo-)random generators, but few programming languages are designed to roll dice. One such language is [Troll][troll]. + [troll]: https://di.ku.dk/Ansatte/?pure=da%2Fpublications%2Ftroll-a-language-for-specifying-dicerolls(84a45ff0-068b-11df-825d-000ea68e967b)%2Fexport.html ~~~~ From 5d94e95d81f0765c9b7e6c33e94f4b27d8f4f05e Mon Sep 17 00:00:00 2001 From: Erik Schierboom Date: Tue, 9 Apr 2024 09:04:13 +0200 Subject: [PATCH 7/9] Update exercises/dnd-character/introduction.md Co-authored-by: Isaac Good --- exercises/dnd-character/introduction.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/dnd-character/introduction.md b/exercises/dnd-character/introduction.md index fb78f76fe9..ff68053086 100644 --- a/exercises/dnd-character/introduction.md +++ b/exercises/dnd-character/introduction.md @@ -1,7 +1,7 @@ # Introduction After weeks of anticipation, you and your friends get together for your very first game of [Dungeons & Dragons][dnd] (D&D). -It being the first game, each player has to start by generating a character to play with. +Since this is the first session of the game, each player has to generate a character to play with. The character's abilities are determined by rolling 6-sided dice, but where _are_ the dice? With a shock, you realize that your friends are waiting for _you_ to produce the dice, after all it was your idea to play D&D! Panicking, you realize you forgot to bring the dice, which would mean no D&D game. From b0a6cbea747ded453d0e191b85e3b90fa35e9fee Mon Sep 17 00:00:00 2001 From: Erik Schierboom Date: Tue, 9 Apr 2024 09:04:18 +0200 Subject: [PATCH 8/9] Update exercises/dnd-character/introduction.md Co-authored-by: Isaac Good --- exercises/dnd-character/introduction.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/dnd-character/introduction.md b/exercises/dnd-character/introduction.md index ff68053086..5301f61829 100644 --- a/exercises/dnd-character/introduction.md +++ b/exercises/dnd-character/introduction.md @@ -3,7 +3,7 @@ After weeks of anticipation, you and your friends get together for your very first game of [Dungeons & Dragons][dnd] (D&D). Since this is the first session of the game, each player has to generate a character to play with. The character's abilities are determined by rolling 6-sided dice, but where _are_ the dice? -With a shock, you realize that your friends are waiting for _you_ to produce the dice, after all it was your idea to play D&D! +With a shock, you realize that your friends are waiting for _you_ to produce the dice; after all it was your idea to play D&D! Panicking, you realize you forgot to bring the dice, which would mean no D&D game. As you have some basic coding skills, you quickly come up with a solution: you'll write a program to simulate dice rolls. From 6d5639bd5f2a52b794f69fd912396267f4f16c1b Mon Sep 17 00:00:00 2001 From: Erik Schierboom Date: Wed, 10 Apr 2024 08:13:00 +0200 Subject: [PATCH 9/9] Fix grammar --- exercises/dnd-character/instructions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/dnd-character/instructions.md b/exercises/dnd-character/instructions.md index 6f507dc239..e14e7949d6 100644 --- a/exercises/dnd-character/instructions.md +++ b/exercises/dnd-character/instructions.md @@ -3,7 +3,7 @@ For a game of [Dungeons & Dragons][dnd], each player starts by generating a character they can play with. This character has, among other things, six abilities; strength, dexterity, constitution, intelligence, wisdom and charisma. These six abilities have scores that are determined randomly. -You do this by rolling four 6-sided dice and record the sum of the largest three dice. +You do this by rolling four 6-sided dice and recording the sum of the largest three dice. You do this six times, once for each ability. Your character's initial hitpoints are 10 + your character's constitution modifier.