Black box sim engine (commands in, events out) with 3 piece types (Rook, Bishop, Knight), cargo transfer system with social status priority, collision detection, and victory/defeat conditions. 57 tests covering rules, simulation, loading, and solvability. Godot 4 presentation layer scaffolding.
14 lines
335 B
C#
14 lines
335 B
C#
using Chessistics.Engine.Events;
|
|
|
|
namespace Chessistics.Engine.Commands;
|
|
|
|
public class CommandRejectedException : Exception
|
|
{
|
|
public IWorldEvent RejectionEvent { get; }
|
|
|
|
public CommandRejectedException(IWorldEvent rejectionEvent)
|
|
: base(rejectionEvent.ToString())
|
|
{
|
|
RejectionEvent = rejectionEvent;
|
|
}
|
|
}
|