exercism / crystal

Exercism exercises in Crystal.
https://exercism.org/tracks/crystal
MIT License
75 stars 53 forks source link

[New Practice Exercise]: Dnd Character #608

Closed meatball133 closed 5 months ago

meatball133 commented 6 months ago

For #48in24, the Crystal track missing a few exercises, we would appreciate contributors to help out with implementing exercises.

✅ Getting started

Before you start, write a message in this issue that you like to claim the issue.

Docs

This doc do you have to read first, if you are a first-time contributor:

How to use the Crystal track generator General information about how to implement practice exercise

Here are some documents that might be useful (not mandatory to read):

Contributing to Exercism | Exercism and GitHub | - Contributor Pull Request Guide What are those Weird Task Tags about? Exercism Formatting and Style Guide Exercism Markdown Specification Reputation

Start

Fetch configlet by:

bin/fetch-configlet

Then

bin/configlet create --practice-exercise dnd-character

Read problem spec canonical data, then look at already written test_template.ecr, which can be found under most practice exercises .meta folder.

Then write a template, to test if the template works you can just (this requires Crystal to be installed):

bin/generator.sh dnd-character

After that should the spec file be updated if not an error should have been raised which may or may not have to be solved. Then you just write a solution and put that in .meta/src/example.cr, then make a stub file in src/<exercise_name>. Then in config.json of the exercise add your GitHub username and you just push and your pr is ready for review.

Got stuck?

No problem, we are here to help, just drop a comment in the issue with what you need help with.

adamazing commented 6 months ago

Going to have a look at this 🙇

adamazing commented 6 months ago

FYI, I think the first link (How to use the Crystal track generator) in your issue template is broken. Should it be: https://github.com/exercism/crystal/tree/main/document-generator?

ryanplusplus commented 6 months ago

FYI, I think the first link (How to use the Crystal track generator) in your issue template is broken. Should it be: https://github.com/exercism/crystal/tree/main/document-generator?

Thanks! Can you make a PR to fix this?