How wise-introvert/crossplay-solver works
This is a browser-based Crossplay board solver. Users enter a board and rack, or import a screenshot; the app loads its word list, generates and scores legal plays, then presents ranked results and board previews. Screenshot recognition uses image analysis and character templates before returning board and rack data. The excerpts show the main dictionary, solver, UI, and OCR responsibilities, but omit some wiring, so uncertain internal calls are not asserted.
Main entry points: ocr.js OCR Pipeline · app.js Screenshot Import · dict.txt Word List · templates.json Glyph Templates
Components 13
Board Entry
- Board Editor
app.js - Rack Input
app.js - Screenshot Import
app.js
Move Solving
- Dictionary Loader
app.js - Move Generator
app.js - Move Scoring
app.js - Results Preview
app.js
Screenshot Recognition
- OCR Pipeline
ocr.js - Board Detection
ocr.js - Glyph Matching
ocr.js
Data Assets
- Word List
dict.txt - Glyph Templates
templates.json
Other components
- Player
Connections 10
- Player → Board Editor: enters board
app.js - Player → Rack Input: enters rack
app.js - Player → Screenshot Import: selects image
app.js - Dictionary Loader → Word List: fetches words
app.js - Screenshot Import → OCR Pipeline: processes image
app.js - OCR Pipeline → Glyph Templates: loads templates
ocr.js - OCR Pipeline → Board Detection: analyzes image
ocr.js - OCR Pipeline → Glyph Matching: matches glyphs
ocr.js - Move Generator → Move Scoring: scores plays
app.js - Results Preview → Board Editor: previews play
app.js