word_search_safety
0.1.2-nullsafety.1, released 4 years ago by an unverified publisher
A word search puzzle generator and solver built with Dart.
WASM-ready
What it does
Allows you to create a word search puzzle from a list of input words arranged in various orientations. It also includes functionality to solve the generated puzzle for a given word list.
AI-written summary of version 0.1.2-nullsafety.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to generate word search puzzles programmatically in Dart or Flutter.
- You want to solve or verify word search puzzles within your application.
Skip it when
- You are building complex action or real-time games that require a full game engine.
Strengths
- Supports multiple word orientations like horizontal, vertical, and diagonal.
- Provides built-in puzzle solving and error checking for unplaced words.
Weaknesses
- Limited documentation outside of basic example usage.
- No topics or advanced configuration explicitly documented.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
not documented
import 'package:word_search/word_search.dart';
void main() {
final List<String> wl = ['hello', 'world', 'foo', 'bar', 'baz', 'dart'];
final WSSettings ws = WSSettings(
width: 10,
height: 10,
orientations: List.from([
WSOrientation.horizontal,
WSOrientation.vertical,
WSOrientation.diagonal,
]),
);
final WordSearchSafety wordSearch = WordSearchSafety();
final WSNewPuzzle newPuzzle = wordSearch.newPuzzle(wl, ws);
if (newPuzzle.errors.isEmpty) {
print(newPuzzle.toString());
}
}