Skip to content

Game strategies from week 30 22 #49

Description

@olufjen

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions