A real-time chess application built with Flutter, connecting to the Lichess API for online gameplay.
Follow these instructions to get a copy of the project up and running on your local machine for development and testing purposes.
Before you begin, ensure you have the following installed:
-
Flutter SDK
- Go to: https://docs.flutter.dev/get-started/install
- Choose your operating system (Windows, macOS, Linux, ChromeOS) and follow the detailed installation instructions.
- Verify Installation: Open your terminal or command prompt and run:
This command checks your environment and displays a report of the status of your Flutter installation. Address any issues reported.
flutter doctor
-
Android Studio / VS Code + Required Plugins
- Install an IDE: Choose either Android Studio or Visual Studio Code.
- Install Plugins: Make sure the Flutter and Dart plugins are installed in your chosen editor. These provide syntax highlighting, code completion, debugging tools, and more.
- Set up a Device:
- Android Emulator: Set up an Android Virtual Device (AVD) using Android Studio's AVD Manager.
- Physical Device: Connect a physical Android mobile device via a USB cable. Ensure USB debugging is turned on in your device's Developer Options.
-
Clone the repository: Open your terminal or command prompt and run:
git clone [https://github.com/mhdaslamp/ZChess.git](https://github.com/mhdaslamp/ZChess.git)
-
Navigate to the project directory:
cd ZChess -
Install Project Dependencies: Fetch all the necessary Dart packages for the project:
flutter pub get
- Note on
pubspec.yamlerrors: If you encounter issues related topubspec.yamldependencies, it might be due to Flutter version compatibility. This repository is developed and tested with Flutter 3.22.1. You can switch your Flutter version usingfvm(Flutter Version Management) or by directly installing that specific version.
- Note on
-
Connect a Device: Ensure an Android emulator is running or a physical device is connected and recognized by Flutter. You can check connected devices by running:
flutter devices
-
Run the application: With your device connected and the project dependencies installed, run the app:
flutter run
The app should now launch on your connected device or emulator.