Skip to content

Several Ruby exercises don't define the required class/module interface at all #1749

@fuxoft

Description

@fuxoft

For example, the "DnD Character" exercise (https://exercism.org/tracks/ruby/exercises/dnd-character): The Instructions describe how (pen & paper) DnD character generation works but it does not say what methods I should implement, what arguments these methods accept and what type of values they should return. It does not say that class method :constitution should probably be defined by me (it's not in the template, it's not mentioned in the Instructions but the test script seems to expect it).

The exercise template also does not help. It defines the names of some (not all) methods and says "Write your code here. Make the tests in dnd_character_test.rb pass. If you understand what this test file does, you probably do not need to do this exercise. I certainly don't.

I have now completed 23 Ruby exercises and about 10 of them were like this - I had to dig in the test.rb to understand what is exepected of me. I managed to do that so far, but with "DnD Character" exercise, I am completely lost and cannot complete the exercise because I don't understand what's expected of me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions