Skip to content

Add affine cipher exercise #2787

Merged
IsaacG merged 5 commits intoexercism:mainfrom
KasimKaizer:add-affine-cipher
Mar 12, 2026
Merged

Add affine cipher exercise #2787
IsaacG merged 5 commits intoexercism:mainfrom
KasimKaizer:add-affine-cipher

Conversation

@KasimKaizer
Copy link
Copy Markdown
Contributor

No description provided.

@github-actions
Copy link
Copy Markdown
Contributor

Hello. Thanks for opening a PR on Exercism 🙂

We ask that all changes to Exercism are discussed on our Community Forum before being opened on GitHub. To enforce this, we automatically close all PRs that are submitted. That doesn't mean your PR is rejected but that we want the initial discussion about it to happen on our forum where a wide range of key contributors across the Exercism ecosystem can weigh in.

You can use this link to copy this into a new topic on the forum. If we decide the PR is appropriate, we'll reopen it and continue with it, so please don't delete your local branch.

If you're interested in learning more about this auto-responder, please read this blog post.


Note: If this PR has been pre-approved, please link back to this PR on the forum thread and a maintainer or staff member will reopen it.

@github-actions github-actions Bot closed this Apr 23, 2024
@ErikSchierboom ErikSchierboom requested a review from a team April 23, 2024 13:04
Comment thread exercises/practice/affine-cipher/.docs/instructions.md
Comment thread exercises/practice/affine-cipher/.docs/instructions.md
@IsaacG
Copy link
Copy Markdown
Member

IsaacG commented Feb 22, 2026

@KasimKaizer Would you like to resync this from the problem spec and get it merged?

@KasimKaizer
Copy link
Copy Markdown
Contributor Author

@IsaacG Yes please, I would appreciate that.

@IsaacG
Copy link
Copy Markdown
Member

IsaacG commented Feb 23, 2026

@KasimKaizer Go for it. I was just added to the maintainer list and I'm still sorting out getting merge permissions but I'd be happy to merge in new exercises once they're updated to match the latest version from the problem specs!

Comment thread exercises/practice/affine-cipher/.docs/instructions.md Outdated
Comment thread exercises/practice/affine-cipher/.meta/config.json Outdated
Comment thread exercises/practice/affine-cipher/go.mod Outdated
Comment thread exercises/practice/affine-cipher/affine_cipher_test.go Outdated
Comment on lines +54 to +56
var tmpl = `package affinecipher

{{.Header}}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
var tmpl = `package affinecipher
{{.Header}}
var tmpl = `{{.Header}}

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.

Should I really do this?
Because in the README of the Go track, they specifically ask for

"var tmpl = `package

{{.Header}}"

Copy link
Copy Markdown
Contributor Author

@KasimKaizer KasimKaizer Mar 7, 2026

Choose a reason for hiding this comment

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

@IsaacG

the teast cases file needs to package name

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The package name is added by the {{.Header}}. However, you may need to rebase your PR to pick up the generator changes.

Comment thread exercises/practice/affine-cipher/affine_cipher_test.go Outdated
@IsaacG
Copy link
Copy Markdown
Member

IsaacG commented Mar 3, 2026

@KasimKaizer Ping?

@IsaacG IsaacG added x:action/create Work on something from scratch x:module/generator Work on Exercise generators x:module/practice-exercise Work on Practice Exercises x:size/large Large amount of work x:rep/large Large amount of reputation labels Mar 4, 2026
@IsaacG
Copy link
Copy Markdown
Member

IsaacG commented Mar 7, 2026

@KasimKaizer FYI If I don't hear back from you in the next few days, I may close this out and implement it myself.

@KasimKaizer
Copy link
Copy Markdown
Contributor Author

Sorry for the delay @IsaacG

I am currently in the Middle East, and with everything going on here, I have a lot on my plate at the moment.

I will try to get this implemented as soon as possible (max by next week).

@IsaacG
Copy link
Copy Markdown
Member

IsaacG commented Mar 7, 2026

Sounds good. If it takes longer, that's fine, so long as I have some idea that it's not abandoned 🙂
Good luck with everything there!

Comment thread exercises/practice/affine-cipher/go.mod Outdated
Comment thread exercises/practice/affine-cipher/.meta/gen.go Outdated
Comment thread exercises/practice/affine-cipher/.meta/gen.go Outdated
Comment thread config.json
Comment thread exercises/practice/affine-cipher/affine_cipher_test.go Outdated
Add the affine cipher exercise with:
- Stub file, example solution, test cases
- Test generator (gen.go) and metadata
- Instructions and config.json entry
Co-authored-by: Isaac Good <IsaacG@users.noreply.github.com>
Comment thread exercises/practice/affine-cipher/.meta/gen.go Outdated
Comment thread exercises/practice/affine-cipher/.meta/gen.go Outdated
Comment thread exercises/practice/affine-cipher/.meta/gen.go Outdated
Comment thread exercises/practice/affine-cipher/affine_cipher_test.go Outdated
KasimKaizer and others added 3 commits March 12, 2026 13:20
Co-authored-by: Isaac Good <IsaacG@users.noreply.github.com>
Co-authored-by: Isaac Good <IsaacG@users.noreply.github.com>
@IsaacG IsaacG merged commit 07539a7 into exercism:main Mar 12, 2026
17 checks passed
@IsaacG
Copy link
Copy Markdown
Member

IsaacG commented Mar 12, 2026

Thank you for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

x:action/create Work on something from scratch x:module/generator Work on Exercise generators x:module/practice-exercise Work on Practice Exercises x:rep/large Large amount of reputation x:size/large Large amount of work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants