Skip to main content

apiverve_chessmovevalidator 1.2.3 copy "apiverve_chessmovevalidator: ^1.2.3" to clipboard
apiverve_chessmovevalidator: ^1.2.3 copied to clipboard

Chess Move Validator verifies algebraic chess notation and identifies move types including castling, captures, checks, and promotions.

Chess Move Validator API - Dart/Flutter Client #

Chess Move Validator verifies algebraic chess notation and identifies move types including castling, captures, checks, and promotions.

pub package License: MIT

This is the Dart/Flutter client for the Chess Move Validator API.

Installation #

Add this to your pubspec.yaml:

dependencies:
  apiverve_chessmovevalidator: ^1.2.3

Then run:

dart pub get
# or for Flutter
flutter pub get

Usage #

import 'package:apiverve_chessmovevalidator/apiverve_chessmovevalidator.dart';

void main() async {
  final client = ChessmovevalidatorClient('YOUR_API_KEY');

  try {
    final response = await client.execute({
      'move': 'Nf3'
    });

    print('Status: ${response.status}');
    print('Data: ${response.data}');
  } catch (e) {
    print('Error: $e');
  }
}

Response #

{
  "status": "ok",
  "error": null,
  "data": {
    "move": "Nf3",
    "valid": true,
    "type": "piece move",
    "piece": "N",
    "capture": false,
    "check": false,
    "checkmate": false,
    "promotion": false
  }
}

API Reference #

Authentication #

All requests require an API key. Get yours at apiverve.com.

License #

MIT License - see LICENSE for details.


Built with Dart for APIVerve

0
likes
140
points
132
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Chess Move Validator verifies algebraic chess notation and identifies move types including castling, captures, checks, and promotions.

Homepage
Repository (GitHub)
View/report issues
Contributing

License

MIT (license)

Dependencies

http, http_parser

More

Packages that depend on apiverve_chessmovevalidator