Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement additional exercises #297

Open
26 of 28 tasks
BNAndras opened this issue Oct 21, 2023 · 10 comments
Open
26 of 28 tasks

Implement additional exercises #297

BNAndras opened this issue Oct 21, 2023 · 10 comments
Assignees
Labels
x:module/practice-exercise Work on Practice Exercises

Comments

@BNAndras
Copy link
Member

BNAndras commented Oct 21, 2023

CLAIMED

  • flatten-array - BNAndras
  • queen-attack - dreig

COMPLETED

  • bank-account
  • binary-search
  • clock
  • diamond
  • food-chain
  • high-scores
  • kindergarten-garden
  • knapsack
  • luhn
  • minesweeper
  • pangram
  • parallel-letter-frequency
  • pascals-triangle
  • pig-latin
  • protein-translation
  • proverb
  • robot-simulator
  • run-length-encoding
  • secret-handshake
  • sieve
  • spiral-matrix
  • square-root
  • strain
  • two-bucket
  • yacht
  • zebra-puzzle

Don't auto-close the issue please.

@BNAndras BNAndras added the x:module/practice-exercise Work on Practice Exercises label Oct 21, 2023
This was referenced Oct 25, 2023
@BNAndras BNAndras self-assigned this Oct 26, 2023
@Adrien-LUDWIG
Copy link
Contributor

I only know Racket through the #12in23 challenge and did 10 exercises... But I would be happy to try implementing one! 😄
I think I could try to implement binary-search, for example.

This would be the first time I create an exercise. I already read most of the documentation.

I could not make the "generate" command of the configlet work, but I successfully used sync and uuid to create .docs/instructions.md, .docs/introduction.md, .meta/config.json and .meta/tests.toml.
If I'm not mistaken, I need to add binary-search.rkt (the slug), binary-search-test.rkt and .meta/example.rkt.

@BNAndras
Copy link
Member Author

Yeah, that's correct. There's no test generator so you'll need to create those files by hand. You can use another practice exercise to get an idea of the general structure for those files. Of course, I'll be glad to review anything even a work in progress. You can ping me here or on the Exercism Discord (same username).

I'll claim robot-simulator for next week. I'm holding off on bank account since I need to work on the concurrency aspect.

@Adrien-LUDWIG
Copy link
Contributor

Oh, now I see why I misunderstood generate. The documentation about Generating Documents talks about exercises' from Problem Specifications having an introduction.md. But now I see they are synced, not generated.

I'll try to create a WIP PR soon!

@Adrien-LUDWIG
Copy link
Contributor

I'm now working on proverb. 😉

@BNAndras
Copy link
Member Author

Sounds great. I missed that protein-translation isn't implemented so that might be an easy one too. The Clojure and Common Lisp tracks already ported it so one could start from their examples and Racket-ify them. The Emacs Lisp track doesn't have that exercise implemented so that'd be a great follow-up PR.

@BNAndras
Copy link
Member Author

But you're welcome to implement any other exercises I haven't listed. This issue simply started off as my "wouldn't these be nice to add" list.

@Adrien-LUDWIG
Copy link
Contributor

I'll take a look at protein-translation next then!

I might not continue at this pace after Hacktoberfest (since I have to find a job too 😅) but I'll try to keep adding one from time to time. It helped me take the plunge! 😄

BNAndras pushed a commit that referenced this issue Oct 31, 2023
* Add generated files for new exercise strain

* Implement predicates in strain tests

* Add strain example

* Fix shadowing of the list built-in

* Avoid repetition in tests

* Use char=? instead of equal?
@BNAndras
Copy link
Member Author

BNAndras commented Jan 4, 2024

Picking this back up. I'll work through flatten-array, robot-simulator, and square-root next week.

@dreig
Copy link
Contributor

dreig commented Jan 10, 2024

Can I contribute here too? I'd start with queen-attack if that's OK?

@BNAndras
Copy link
Member Author

Yeah, go ahead. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
x:module/practice-exercise Work on Practice Exercises
Projects
None yet
Development

No branches or pull requests

3 participants