Xiangqi-Core
1.0.0
See the version list below for details.
dotnet add package Xiangqi-Core --version 1.0.0
NuGet\Install-Package Xiangqi-Core -Version 1.0.0
<PackageReference Include="Xiangqi-Core" Version="1.0.0" />
paket add Xiangqi-Core --version 1.0.0
#r "nuget: Xiangqi-Core, 1.0.0"
// Install Xiangqi-Core as a Cake Addin
#addin nuget:?package=Xiangqi-Core&version=1.0.0
// Install Xiangqi-Core as a Cake Tool
#tool nuget:?package=Xiangqi-Core&version=1.0.0
xiangqi-core Nuget Package
Description
xiangqi-core is a comprehensive library designed to facilitate the development of applications related to Xiangqi (Chinese Chess). It provides a robust set of functionalities including move generation, move validation, game state management, etc. Built with flexibility and performance in mind, XiangqiCore aims to be the go-to solution for developers looking to integrate Xiangqi mechanics into their software.
Features
- Fluent API: Provides a fluent API for easy configuration and initialization of game instances.
- Game State Management: Easily manage game states, including piece positions, turn tracking, and game outcome detection.
- Parsing of Move Notations: Supports parsing of move notations in UCCI, Chinese, and English, allowing for versatile game command inputs.
- Move Validation: Validate player moves, ensuring moves adhere to the rules of Xiangqi.
- Utility Functions: A collection of utility functions for piece and board management, including piece movement simulation and position checking.
Installation
XiangqiCore is available as a NuGet package. You can install it using the NuGet Package Manager or the dotnet CLI.
dotnet add package XiangqiCore
Usage
To get started with XiangqiCore, first import the package into your project:
using XiangqiCore;
Here's a simple example of setting up a game board and making a move:
// Create a new game instance with the help of the XiangqiBuilder using fluent API
XiangqiBuilder builder = new ();
XiangqiGame game = builder.UseDefaultConfiguration().Build();
// Make a move
game.MakeMove("�ڶ�ƽ��", MoveNotationType.Chinese);
Refer to the documentation for more detailed examples and usage instructions.
Contributing
Contributions to XiangqiCore are welcome! If you have suggestions for improvements or bug fixes, please feel free to fork the repository and submit a pull request.
License
XiangqiCore is licensed under the MIT License. See the LICENSE file for more details.
Contact
For questions or support, please contact chijason99@gmail.com
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net8.0
- LinqKit (>= 1.2.5)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.