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

word search #999

Merged
merged 14 commits into from
Jan 13, 2023
Merged

word search #999

merged 14 commits into from
Jan 13, 2023

Conversation

kostmo
Copy link
Member

@kostmo kostmo commented Jan 10, 2023

Inspired by this Reddit post.
image

The mechanics are:

  • You are "caged" while a system robot arranges the board. It lets you out when finished.
  • You have a finite amount of "ink" to mark (drill) the three solution letters.
  • The letters on the board are not placed completely randomly. One can peek at the header of create-puzzle.sw for a spoiler.

I include a general solution in solution.sw, but for the purpose of speeding up the integration tests, a solution hard-coded to the given seed is used.

@kostmo kostmo marked this pull request as ready for review January 12, 2023 23:14
@kostmo kostmo requested review from xsebek and byorgey January 12, 2023 23:14
Copy link
Member

@byorgey byorgey left a comment

Choose a reason for hiding this comment

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

Really cool! I love it!

@kostmo kostmo added the merge me Trigger the merge process of the Pull request. label Jan 13, 2023
@mergify mergify bot merged commit f4f3ff8 into main Jan 13, 2023
@mergify mergify bot deleted the word-search branch January 13, 2023 03:42
@kostmo kostmo mentioned this pull request Oct 7, 2023
mergify bot pushed a commit that referenced this pull request Mar 15, 2024
Makes use of rotation-aware structure recognition (#1678) to simplify goal checking for word search (#999).

![Screenshot from 2024-03-13 18-48-53](https://github.com/swarm-game/swarm/assets/261693/6fc9e62e-d9e2-4a13-8969-32dbee695e0a)

# Benchmarks

Using the following command (GHC 9.6.4):

    scripts/run-tests.sh --test-arguments '--pattern "word-search"'

| Before | After |
| --- | --- |
| `0.98s` | `0.82s` |
@kostmo
Copy link
Member Author

kostmo commented Jul 18, 2024

Incidentally, this kind of puzzle showed up in another Reddit post.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge me Trigger the merge process of the Pull request.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants