shogi 0.0.2
shogi: ^0.0.2 copied to clipboard
A simple shogi engine for Dart and Flutter. This engine can be combined with `flutter_shogi_board` to render static game board positions, tsume problems or shogi castles.
example/README.md
Example #
Import the package #
To import this package, simply add shogi
as a dependency in pubspec.yaml
dependencies:
flutter:
sdk: flutter
shogi:
Note that this package requires dart >= 2.3.0.
Example #
import 'package:shogi/shogi.dart';
void main() {
final boardPieces = ShogiUtils.initialBoard;
boardPieces.forEach((piece) => print(piece));
}