Xiangqi-Core
1.0.1
dotnet add package Xiangqi-Core --version 1.0.1
NuGet\Install-Package Xiangqi-Core -Version 1.0.1
<PackageReference Include="Xiangqi-Core" Version="1.0.1" />
paket add Xiangqi-Core --version 1.0.1
#r "nuget: Xiangqi-Core, 1.0.1"
// Install Xiangqi-Core as a Cake Addin
#addin nuget:?package=Xiangqi-Core&version=1.0.1
// Install Xiangqi-Core as a Cake Tool
#tool nuget:?package=Xiangqi-Core&version=1.0.1
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
Xiangqi-Core is available as a NuGet package. You can install it using the NuGet Package Manager or the dotnet CLI.
dotnet add package Xiangqi-Core
Usage
To get started with Xiangqi-Core, 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
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 Xiangqi-Core are welcome! If you have suggestions for improvements or bug fixes, please feel free to fork the repository and submit a pull request.
License
Xiangqi-Core 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.