chess_interface 1.0.7
chess_interface: ^1.0.7 copied to clipboard
A chess interface for the chess engine with all basic functionalities like move, undo, redo, etc. and a chess board widget with custom themes.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add chess_interfaceWith Flutter:
$ flutter pub add chess_interfaceThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
chess_interface: ^1.0.7Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:chess_interface/arbiter/arbiter.dart';
import 'package:chess_interface/chess_board_widget.dart';
import 'package:chess_interface/env.dart';
import 'package:chess_interface/logical_interface/interface.dart';
import 'package:chess_interface/logical_interface/move_validator.dart';
import 'package:chess_interface/logical_interface/piece.dart';
import 'package:chess_interface/models/board_theme_config.dart';
import 'package:chess_interface/utils/color_extension.dart';