Skip to content

[D&D Character] Approaches#3666

Merged
BethanyG merged 7 commits intoexercism:mainfrom
colinleach:approach-dnd-character
Apr 8, 2026
Merged

[D&D Character] Approaches#3666
BethanyG merged 7 commits intoexercism:mainfrom
colinleach:approach-dnd-character

Conversation

@colinleach
Copy link
Copy Markdown
Contributor

Something I started long ago but repeatedly got bored with.

It's still boring, but that fits with an exercise that practices many useful things, but as a result is rather bitty and with no grand design to talk about.

Thoughts?

@BethanyG
Copy link
Copy Markdown
Member

@DotLYHiyou - we don't accept reviews or contributions from non-mainatiners/long-term contributors on this repo. Thanks.

@exercism exercism locked and limited conversation to collaborators Feb 27, 2026
@BethanyG
Copy link
Copy Markdown
Member

BethanyG commented Apr 7, 2026

@colinleach - I made some modifications. Could you give this a quick read through to make sure I didn't do something objectionable? If everything looks good, I will go ahead and merge today. Many thanks!!

@BethanyG BethanyG changed the title [D&D Character] draft approaches [D&D Character] Approaches Apr 7, 2026
@exercism exercism unlocked this conversation Apr 7, 2026
@BethanyG
Copy link
Copy Markdown
Member

BethanyG commented Apr 7, 2026

@colinleach - unlocked now. Comment away. Will look at your DM shortly. 😄

@colinleach
Copy link
Copy Markdown
Contributor Author

A few formatting nits, nothing substantive to complain about.



This approach uses a `tuple` to hold character attributes in a [`class variable`][class-variable] or `class attribute`.
Since this variable is common to all instances of the class, it can be looped through during object initialization to create instance variables and assign them values using [`setattr][setattr].
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, [`setattr] is still missing a backtick

@BethanyG
Copy link
Copy Markdown
Member

BethanyG commented Apr 8, 2026

Many thanks Colin! 💙 Pushing the big, green button! So we'll see all the typos shortly.... 😆 😉

@BethanyG BethanyG merged commit 3156d5f into exercism:main Apr 8, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants