A simple package to handle chess moves that will be used in my future project: a multiplayer chess web app.
- Fix an issue with ForsythNotation.startingBoard
- Add class ChessBoard
- Add class ChessPosition
- Add class Chessman
- Add utility classes in chess_notation.dart
- Unit testing
- Initial commit
Use this package as a library
1. Depend on it
Add this to your package's pubspec.yaml file:
dependencies: chess_logic: ^1.0.2
2. Install it
You can install packages from the command line:
$ pub get
$ flutter pub get
Alternatively, your editor might support
pub get or
flutter pub get.
Check the docs for your editor to learn more.
3. Import it
Now in your Dart code, you can use:
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
We analyzed this package on Feb 13, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
- Dart: 2.7.1
- pana: 0.13.5
lib/src/chess_notation.dart. (-1 points)
lib/src/chess_notation.dart reported 2 hints:
line 154 col 7: DO use curly braces for all flow control structures.
line 163 col 9: Use isNotEmpty instead of length
lib/src/chessman.dart. (-0.50 points)
lib/src/chessman.dart reported 1 hint:
line 3 col 8: Unused import: 'move.dart'.
dartfmt to format
Fix additional 3 files with analysis or formatting issues.
Additional issues in the following files:
Maintenance issues and suggestions
Homepage URL doesn't exist. (-20 points)
At the time of the analysis the
https://github.com/UMR1352/chess was unreachable.
Maintain an example. (-10 points)
Create a short demo in the
example/ directory to show how to use this package.
Common filename patterns include
chess_logic.dart. Packages with multiple examples should provide
For more information see the pub package layout conventions.