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

Libraries

apiverve_chessmovevalidator
Chess Move Validator API client for Dart/Flutter