Files
yugioh-legacy-bots/src/BotArena/BotArena.csproj
T
donnyandClaude Opus 5.5 3bbfe08ab1 feat(arena): BotArena for linux-x64 and win-x64 on the library
The shims go; ArenaHost implements BotHost (stderr log, Microsoft.Data.Sqlite read-only, locale, the
expansions' .cdb, bot.conf). EngineLibrary finds ygol-engine.dll / libygol-engine.so (env, the root's plugin
folder, a built player, next to the exe) for both hosts. Same options and report. --host server is refused off
Windows: on Linux the engine's server reads ./expansions and ./script, finds no cards, and every duel ends at
turn 0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 18:19:14 -07:00

39 lines
2.0 KiB
XML

<Project Sdk="Microsoft.NET.Sdk">
<!-- Headless, parallel Bot Arena: N bot-vs-bot duels of the YGOLegacy.Bots library on the engine release
engine.json pins, from a game root (Deck/, Data/, Expansions/). linux-x64 and win-x64. See README.md. -->
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<RuntimeIdentifiers>linux-x64;win-x64</RuntimeIdentifiers>
<AssemblyName>BotArena</AssemblyName>
<RootNamespace>YGOLegacy.Tools.BotArena</RootNamespace>
<StartupObject>YGOLegacy.Tools.BotArena.Program</StartupObject>
<LangVersion>latest</LangVersion>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<InformationalVersion>$(BotsVersion)</InformationalVersion>
<NoWarn>$(NoWarn);CS0618;CA1416</NoWarn>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="../YGOLegacy.Bots/YGOLegacy.Bots.csproj" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="Microsoft.Data.Sqlite" Version="8.0.8" />
</ItemGroup>
<ItemGroup>
<!-- The engine release's C# binding, shipped next to the exe; and the platform's native engine library,
which EngineLibrary.Locate finds there. -->
<Reference Include="YGOLegacy.Engine">
<HintPath>$(EngineDir)YGOLegacy.Engine.dll</HintPath>
</Reference>
<None Include="$(EngineDir)linux-x64/libygol-engine.so" Condition="'$(RuntimeIdentifier)' == 'linux-x64'"
CopyToOutputDirectory="PreserveNewest" CopyToPublishDirectory="PreserveNewest" Link="libygol-engine.so" Visible="false" />
<None Include="$(EngineDir)win-x64/ygol-engine.dll" Condition="'$(RuntimeIdentifier)' == 'win-x64'"
CopyToOutputDirectory="PreserveNewest" CopyToPublishDirectory="PreserveNewest" Link="ygol-engine.dll" Visible="false" />
<None Include="$(RepoRoot)engine.json" CopyToOutputDirectory="PreserveNewest" CopyToPublishDirectory="PreserveNewest"
Link="engine.json" Visible="false" />
</ItemGroup>
</Project>