When creating an Action Schema
can we change
Constant piece = new Constant(pieceName);
Constant pos = new Constant(posName);
Constant toPos = new Constant(toPosit);
List variables = new ArrayList(Arrays.asList(piece,pos,toPos));
to :
Variable piece = new Variable("piece");
Variable frompos = new Variable("from");
Variable topos = new Variable("to");
List variables = new ArrayList(Arrays.asList(piece,pos,toPos));
and then:
ActionSchema movedAction = new ActionSchema(actionName,variables,precondition,effects);
But then the preconditions and effects must also contain the same Variables.
This would represent one general Action Schema for all Action Schemas represented in the Problem
17.08.22:
These points have been done.
The castling move needs to be reworked.
Create a new Action schema based on the castling move.
(King to g1, Castle to f1, King to c1 Castle to d1)
When creating an Action Schema
can we change
Constant piece = new Constant(pieceName);
Constant pos = new Constant(posName);
Constant toPos = new Constant(toPosit);
List variables = new ArrayList(Arrays.asList(piece,pos,toPos));
to :
Variable piece = new Variable("piece");
Variable frompos = new Variable("from");
Variable topos = new Variable("to");
List variables = new ArrayList(Arrays.asList(piece,pos,toPos));
and then:
ActionSchema movedAction = new ActionSchema(actionName,variables,precondition,effects);
But then the preconditions and effects must also contain the same Variables.
This would represent one general Action Schema for all Action Schemas represented in the Problem
17.08.22:
These points have been done.
The castling move needs to be reworked.
Create a new Action schema based on the castling move.
(King to g1, Castle to f1, King to c1 Castle to d1)