Skip to main content

Xor

A class in Root.Township, Alta.Intelligence.

Logical XOR operator for the AI's predicate system. Written as A ^ B.

Constructors​

MemberWhat it is
Xor(Predicate left, Predicate right)Creates a Xor from left and right.

Methods​

MemberWhat it is
override Result Resolve(Result a, Result b)Returns the higher weighted of two results when their bindings conflict, or null when they agree.
override string ToString()Returns the two sides joined by ^.
protected override Predicate FromCompoundPart(CompoundPart compoundPart)Builds an Xor from the first two remaining parts of a parsed compound.