AI Match fix

This commit is contained in:
dingo
2026-04-15 12:51:14 -04:00
parent afa9e73489
commit abf2c1d96c
4 changed files with 32 additions and 12 deletions
+3 -1
View File
@@ -68,7 +68,9 @@ public static class GameEngine
{
(p1AccountId, p1Deck, p1ArchSpirit, 0, 0),
(p2AccountId, p2Deck, p2ArchSpirit, 1, 1),
}, "FFA", rules?.BoardShape is null or "" or "Default" ? "Rectangle" : rules.BoardShape, rules);
}, "FFA", rules?.BoardShape is null or "" or "Default"
? (rules?.GridType == "Hexagon" ? "Hexagon" : "Rectangle")
: rules.BoardShape, rules);
/// <summary>
/// N-player Initialize overload. Each player entry carries their account ID,
@@ -203,7 +203,7 @@ internal sealed class GameReadyHandler : GameHandlerBase, IMessageHandler
}
var boardShape = rules?.BoardShape is null or "" or "Default"
? BoardShapeGenerator.AutoShape(playerList.Count)
? (rules?.GridType == "Hexagon" ? "Hexagon" : BoardShapeGenerator.AutoShape(playerList.Count))
: rules.BoardShape;
state = GameEngine.Initialize(
session.Id,