https://github.com/aaamoon/crossword
Automatically generate crossword puzzles from input words.
https://github.com/aaamoon/crossword
crossword scrabble shopify
Last synced: about 2 months ago
JSON representation
Automatically generate crossword puzzles from input words.
- Host: GitHub
- URL: https://github.com/aaamoon/crossword
- Owner: aaamoon
- License: mit
- Created: 2024-12-11T04:05:36.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-12-11T04:10:23.000Z (5 months ago)
- Last Synced: 2025-02-05T09:24:22.920Z (3 months ago)
- Topics: crossword, scrabble, shopify
- Language: JavaScript
- Homepage: https://aaamoon.github.io/crossword
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Crossword Generator
An elegant online crossword puzzle generator that automatically arranges input words into crossword patterns.
## Features
- 🎯 Automatic crossword layout generation
- 🎲 Random word generation
- 💫 Elegant animations
- 🎮 Keyboard shortcuts support
- 📱 Responsive design
- 💎 Special highlighting for intersections
- 🎯 Scrabble-style letter scoring## Online Demo
[Live Demo](https://aaamoon.github.io/crossword)
## Usage
1. Enter English words separated by commas in the input box
2. Click "Generate" button or press "G" key to generate crossword puzzles
3. Use "Reset" button or "R" key to clear the current content
4. Click "Random Words" or press "N" key to generate random word combinations### Keyboard Shortcuts
- `G`: Generate crossword puzzles
- `R`: Reset
- `N`: Generate random word combinations## Core Algorithm
The project uses the following algorithm to generate crossword puzzles:
1. The first word is placed horizontally
2. Traverse subsequent words, searching for possible intersections
3. Check the validity of word placement
4. Ensure all words have at least one intersection## Letter Scoring System
Uses a letter scoring system similar to Scrabble:
- 1 point: A, E, I, L, N, O, R, S, T, U
- 2 points: D, G
- 3 points: B, C, M, P
- 4 points: F, H, V, W, Y
- 5 points: K
- 8 points: J, X
- 10 points: Q, Z## License
MIT License
[MIT License](LICENSE)