public bool Equals(OpeningFact that) { if (that == null) { return(false); } return(this.Value.Equals(that.Value)); }
public override bool Implies(IFact <ChessGame> that) { if (that == null) { return(false); } OpeningFact fact = that as OpeningFact; return(Implies(fact)); }
public bool Implies(OpeningFact that) { if (that == null) { return(false); } if (that.Value == "Gambit") { return(this.Value.Contains(that.Value)); } return(this.Value.StartsWith(that.Value)); }
public override bool Equals(Object obj) { if (obj == null) { return(false); } OpeningFact fact = obj as OpeningFact; if (fact == null) { return(false); } else { return(Equals(fact)); } }
public override bool IsTrue(ChessGame game) { var gameOpeningFact = new OpeningFact(game.Opening); return(gameOpeningFact.Implies(this)); }