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

Add queen-attack exercise #190

Merged
merged 2 commits into from
Nov 5, 2023
Merged

Add queen-attack exercise #190

merged 2 commits into from
Nov 5, 2023

Conversation

BNAndras
Copy link
Member

@BNAndras BNAndras commented Nov 5, 2023

Related to #172

@BNAndras BNAndras marked this pull request as ready for review November 5, 2023 06:26
@BNAndras
Copy link
Member Author

BNAndras commented Nov 5, 2023

I deviated from the auto-generated test suite which only used the Create function for the first few tests and then passed dictionaries representing positions into CanAttack without going through Create. That didn't seem that interesting so I made Create return a dictionary representing a Queen with a stored CanAttack function.

Since the first test requires a dictionary be returned, students should hopefully make the connection to storing functions in it. However, this might require an instructions append outlining that Vim script doesn't really have classes so that's why we're using a dictionary and maybe a link about Vim script dictionaries.

Copy link
Member

@kotp kotp left a comment

Choose a reason for hiding this comment

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

Hopefully the missing EOL character will come in before this is merged, but pre-approving.

exercises/practice/queen-attack/.meta/example.vim Outdated Show resolved Hide resolved
@kotp kotp merged commit 170a0e1 into exercism:main Nov 5, 2023
3 checks passed
@BNAndras BNAndras deleted the add-queen-attack branch November 6, 2023 00:42
@BNAndras BNAndras added x:module/practice-exercise Work on Practice Exercises x:rep/medium Medium amount of reputation labels Dec 2, 2023
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 x:rep/medium Medium amount of reputation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants