Xiangqi-Core
3.0.0
dotnet add package Xiangqi-Core --version 3.0.0
NuGet\Install-Package Xiangqi-Core -Version 3.0.0
<PackageReference Include="Xiangqi-Core" Version="3.0.0" />
<PackageVersion Include="Xiangqi-Core" Version="3.0.0" />
<PackageReference Include="Xiangqi-Core" />
paket add Xiangqi-Core --version 3.0.0
#r "nuget: Xiangqi-Core, 3.0.0"
#:package Xiangqi-Core@3.0.0
#addin nuget:?package=Xiangqi-Core&version=3.0.0
#tool nuget:?package=Xiangqi-Core&version=3.0.0
Xiangqi-Core NuGet Package
What is Xiangqi-Core?
Xiangqi-Core is the ultimate library for building Xiangqi (Chinese Chess) applications in C#. Whether you're creating a learning tool, or a visualization platform, Xiangqi-Core provides everything you need to bring your ideas to life. Designed with performance, flexibility, and developer experience in mind, it’s the go-to solution for Xiangqi enthusiasts and professionals alike.
Why Xiangqi-Core?
- Comprehensive: Covers all aspects of Xiangqi, from move generation to game visualization.
- Customizable: Tailor the library to your needs with flexible configurations and extensible APIs.
- Battle-Tested: Built with .NET 9, ensuring top-notch performance and compatibility.
- Developer-Friendly: Clear documentation, intuitive APIs, and support for dependency injection make development a breeze.
Key Features
- Fluent API: Effortlessly configure and initialize game instances with a developer-friendly API.
- Game State Management: Manage piece positions, turn tracking, and game outcomes with ease.
- Move Parsing & Validation: Parse and validate moves in UCCI, Traditional Chinese, Simplified Chinese, and English notations.
- Image & GIF Generation: Create stunning, customizable images and GIFs of the game board for visual representation.
- PGN Support: Generate and save PGN files for game records, or import games from dpxq.com.
- Move Translation: Seamlessly translate moves between different notations.
- Randomized Board Positions: Generate random board setups for training or analysis.
- Dependency Injection Ready: Integrate seamlessly into modern .NET applications.
Get Started
Install Xiangqi-Core via NuGet:
dotnet add package Xiangqi-Core
Example Usage
XiangqiBuilder builder = new();
XiangqiGame game = builder.WithDefaultConfiguration().Build();
game.MakeMove("炮二平五", MoveNotationType.TraditionalChinese);
game.MakeMove("馬8進7", MoveNotationType.TraditionalChinese);
Console.WriteLine(game.CurrentFen);
// Outputs the current board state in FEN notation
// rnbakab1r/9/1c4nc1/p1p1p1p1p/9/9/P1P1P1P1P/1C2C4/9/RNBAKABNR w - - 2 1
For more examples/documentations for the API, please refer to the Docs folder
Contributing
Contributions are very welcome! If you have ideas for improvements or bug fixes, 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
Have questions or need support? Reach out to me at chijason99@gmail.com.
Start building your Xiangqi application today with Xiangqi-Core – the most comprehensive and developer-friendly library for Chinese Chess in C#.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net9.0
- Microsoft.Extensions.DependencyInjection (>= 9.0.1)
- SixLabors.ImageSharp.Drawing (>= 2.1.7)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.0.0 | 425 | 8/3/2025 |
| 2.2.0 | 246 | 5/10/2025 |
| 2.1.0 | 261 | 2/18/2025 |
| 2.0.1 | 221 | 1/25/2025 |
| 2.0.0 | 228 | 1/25/2025 |
| 1.6.0 | 255 | 1/4/2025 |
| 1.5.0 | 263 | 12/25/2024 |
| 1.4.2 | 254 | 12/21/2024 |
| 1.4.1 | 213 | 12/21/2024 |
| 1.4.0 | 235 | 12/21/2024 |
| 1.3.0 | 226 | 10/30/2024 |
| 1.2.1 | 240 | 9/24/2024 |
| 1.2.0 | 236 | 9/22/2024 |
| 1.1.0 | 249 | 9/13/2024 |
| 1.0.1 | 272 | 6/30/2024 |
| 1.0.0 | 275 | 6/22/2024 |