[ Help | Earliest Comments | Latest Comments ][ List All Subjects of Discussion | Create New Subject of Discussion ][ List Earliest Comments Only For Pages | Games | Rated Pages | Rated Games | Subjects of Discussion ]Single Comment ChessV. Program for playing numerous Chess variants against your PC.[All Comments] [Add Comment or Rating] Robert Mate wrote on Thu, Aug 5, 2021 12:28 PM UTC in reply to Greg Strong from Sun Jan 24 12:24 PM:EDIT: just answered my own question... I needed to put the line inside of AddRules {} Upon trying Pawn.AddMoveCapability( MoveCapability( <1, 0>, 2, 2, false, false ) ).Condition = { location: location.Rank == 1 }; with "Generic Chess" I get this: Exception type: ChessV.Exceptions.GameInitializationException Message: Unable to create game 'Silverman' Source: ChessV.Base Stack Trace: at ChessV.Game.Initialize(GameAttribute gameAttribute, Dictionary2 definitions, InitializationHelper helper) at ChessV.Manager.Manager.CreateGame(String name, Dictionary2 definitions, InitializationHelper initHelper) at ChessV.GUI.MainForm.createGame(String name, Dictionary`2 definitions, Boolean interactive) Don't think I can use another place in the hierarchy bcs the board would be too big. Nice update on the engine itself btw.
EDIT: just answered my own question... I needed to put the line inside of AddRules {}
Upon trying Pawn.AddMoveCapability( MoveCapability( <1, 0>, 2, 2, false, false ) ).Condition = { location: location.Rank == 1 };
with "Generic Chess" I get this:
Exception type: ChessV.Exceptions.GameInitializationException Message: Unable to create game 'Silverman' Source: ChessV.Base Stack Trace: at ChessV.Game.Initialize(GameAttribute gameAttribute, Dictionary
2 definitions, InitializationHelper helper) at ChessV.Manager.Manager.CreateGame(String name, Dictionary
2 definitions, InitializationHelper initHelper) at ChessV.GUI.MainForm.createGame(String name, Dictionary`2 definitions, Boolean interactive)Don't think I can use another place in the hierarchy bcs the board would be too big. Nice update on the engine itself btw.