예제 #1
0
 public FarmerWolfGoatState(FarmerWolfGoatState parent, FarmerWolfGoatSide farmer, FarmerWolfGoatSide wolf, FarmerWolfGoatSide goat, FarmerWolfGoatSide cabbage) : base(parent)
 {
     this.farmer  = farmer;
     this.wolf    = wolf;
     this.goat    = goat;
     this.cabbage = cabbage;
 }
예제 #2
0
 public FarmerWolfGoatState()
 {
     farmer = wolf = goat = cabbage = FarmerWolfGoatSide.East;
 }
예제 #3
0
 public static FarmerWolfGoatSide GetOpposite(this FarmerWolfGoatSide side)
 {
     return(side == FarmerWolfGoatSide.East ? FarmerWolfGoatSide.West : FarmerWolfGoatSide.East);
 }