2023-10-08 14:25:57 +01:00
|
|
|
# Puzzle Solver
|
|
|
|
|
|
|
|
Match patterns and solve anagrams - handy for crossword fanatics.
|
|
|
|
|
|
|
|
## Standalone Server
|
|
|
|
|
|
|
|
```bash
|
2023-10-08 15:05:12 +01:00
|
|
|
cd standalone
|
2023-10-08 14:25:57 +01:00
|
|
|
go run main.go
|
|
|
|
```
|
|
|
|
|
|
|
|
## Cloud Function
|
|
|
|
|
|
|
|
To test using the Cloud Functions Framework:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
env FUNCTION_TARGET=WordSearch WORDLIST_BUCKET=word-search-1729-assets \
|
2023-10-08 15:05:12 +01:00
|
|
|
WORDLIST_PATH=data/wordlist.txt LOCAL_ONLY=true go run ./cmd/fn-framework-test/main.go
|
2023-10-08 14:25:57 +01:00
|
|
|
|
|
|
|
curl 'http://localhost:8080?mode=anagrams&pattern=idea'
|
|
|
|
```
|