All Projects → deven98 → Flutter_chess_board

deven98 / Flutter_chess_board

Licence: bsd-2-clause
A Chessboard widget for Flutter.

Programming Languages

dart
5743 projects

Projects that are alternatives of or similar to Flutter chess board

Ostinato
A chess library that runs on the server (Scala) and on the browser (ScalaJS).
Stars: ✭ 42 (-67.69%)
Mutual labels:  chess
Lila
♞ lichess.org: the forever free, adless and open source chess server ♞
Stars: ✭ 10,315 (+7834.62%)
Mutual labels:  chess
Vue Chessboard
Chessboard vue component to load positions, create positions and see threats
Stars: ✭ 109 (-16.15%)
Mutual labels:  chess
Galvanise zero
Learning from zero (mostly based off of AlphaZero) in General Game Playing.
Stars: ✭ 60 (-53.85%)
Mutual labels:  chess
Lichs
♟ Play chess against real players in your terminal using Lichess
Stars: ✭ 70 (-46.15%)
Mutual labels:  chess
Arasan Chess
Arasan chess engine
Stars: ✭ 75 (-42.31%)
Mutual labels:  chess
Countergo
UCI chess engine (golang)
Stars: ✭ 32 (-75.38%)
Mutual labels:  chess
Chessdata
PGN Mirror
Stars: ✭ 123 (-5.38%)
Mutual labels:  chess
React Chessground
React wrapper of Chessground
Stars: ✭ 71 (-45.38%)
Mutual labels:  chess
Python Chess
A chess library for Python, with move generation and validation, PGN parsing and writing, Polyglot opening book reading, Gaviota tablebase probing, Syzygy tablebase probing, and UCI/XBoard engine communication
Stars: ✭ 1,341 (+931.54%)
Mutual labels:  chess
Chessli
A free and open source chess improvement app that combines the power of Lichess and Anki.
Stars: ✭ 64 (-50.77%)
Mutual labels:  chess
Pgn2gif
A small tool that generates gif of a chess game
Stars: ✭ 65 (-50%)
Mutual labels:  chess
Allie
Allie: A UCI compliant chess engine
Stars: ✭ 89 (-31.54%)
Mutual labels:  chess
Lichobile
lichess.org mobile application
Stars: ✭ 1,043 (+702.31%)
Mutual labels:  chess
Chess Ai
Simple chess AI in Javascript. Uses the chess.js and chessboard.js libraries.
Stars: ✭ 113 (-13.08%)
Mutual labels:  chess
Sunfish rs
Rust rewrite of the sunfish simple chess engine
Stars: ✭ 41 (-68.46%)
Mutual labels:  chess
Stockfish
Integrates the Stockfish chess engine with Python
Stars: ✭ 75 (-42.31%)
Mutual labels:  chess
Fairy Stockfish
chess variant engine supporting Xiangqi, Shogi, Janggi, Makruk, S-Chess, Crazyhouse, Bughouse, and many more
Stars: ✭ 124 (-4.62%)
Mutual labels:  chess
Blackwidow Chess
Chess
Stars: ✭ 120 (-7.69%)
Mutual labels:  chess
Chess Inspector
Visualize move, protection and threat status
Stars: ✭ 94 (-27.69%)
Mutual labels:  chess

flutter_chess_board

A Chessboard Widget for Flutter. The widget maintains game state and gives callbacks for game events like moves, checkmate and draws. Under final testing before 1.0.

alt text

alt text

alt text

Import the package

To use this package, add chess_board as a dependency in your pubspec.yaml

Example

    import 'package:flutter/material.dart';
    import 'package:flutter_chess_board/flutter_chess_board.dart';
    
    void main() {
      runApp(
        new MaterialApp(
          home: new Scaffold(
            body: new Center(
              child: ChessBoard(
                size: 200.0,
                onMove: (move) {
                  print(move);
                },
                onCheckMate: (color) {
                  print(color);
                },
                onDraw: () {
                  print("DRAW!");
                },
              ),
            ),
          ),
        ),
      );
    }

Board parameters:

size:

Gives length and width of chess board

boardType:

Type of board to display (Brown, Green, etc.)

onMove:

Callback for when a move is made. Returns a move as a string. E.g.: "Nf4"

onDraw:

Callback for when game becomes a draw.

onCheckMate:

Callback for when a player checkmates the other. Returns the color of the winner.

whiteSideTowardsUser:

Defines if white or black side faces user. The player is white by default(true). If set to false, black faces the user.

controller

Defines the ChessBoardController for the widget for changing the board programmatically.

enableUserMoves

Disables user moves when set to false.

Getting Started

For help getting started with Flutter, view our online documentation.

For help on editing package code, view the documentation.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].