Ejemplo n.º 1
0
        public void CanGetRandomGatePosition()
        {
            List <GatePosition> list = new List <GatePosition>();

            list.Add(GatePositionHelper.GetRandomGatePosition());
            list.Add(GatePositionHelper.GetRandomGatePosition());
            list.Add(GatePositionHelper.GetRandomGatePosition());
            list.Add(GatePositionHelper.GetRandomGatePosition());
            list.Add(GatePositionHelper.GetRandomGatePosition());
            list.Add(GatePositionHelper.GetRandomGatePosition());
            list.Add(GatePositionHelper.GetRandomGatePosition());
            list.Add(GatePositionHelper.GetRandomGatePosition());
            list.Add(GatePositionHelper.GetRandomGatePosition());
            list.Add(GatePositionHelper.GetRandomGatePosition());
            list.Add(GatePositionHelper.GetRandomGatePosition());
            list.Add(GatePositionHelper.GetRandomGatePosition());
            list.Add(GatePositionHelper.GetRandomGatePosition());
            list.Add(GatePositionHelper.GetRandomGatePosition());
            list.Add(GatePositionHelper.GetRandomGatePosition());
            list.Add(GatePositionHelper.GetRandomGatePosition());
            list.Add(GatePositionHelper.GetRandomGatePosition());
            list.Add(GatePositionHelper.GetRandomGatePosition());
            list.Add(GatePositionHelper.GetRandomGatePosition());
            list.Add(GatePositionHelper.GetRandomGatePosition());

            GatePosition p1 = list.First();

            Assert.IsFalse(list.All(x => x == p1));
        }
Ejemplo n.º 2
0
 public GateState(GatePosition state, VoxelSide rotation, Vector3Int pos)
 {
     State       = state;
     Orientation = rotation;
     Position    = pos;
 }
Ejemplo n.º 3
0
 public ICBuilder(Gates.Circuit c, GatePosition pos)
 {
     this.c = c;
     this.pos = pos;
 }
Ejemplo n.º 4
0
 public ICBuilder(Gates.Circuit c, GatePosition pos)
 {
     this.c   = c;
     this.pos = pos;
 }
 public MockGatedNode(GatePosition gatePosition, int ballsPassedToLeft, int ballsPassedToRight)
 {
     this.gatePosition       = gatePosition;
     this.ballsPassedToLeft  = ballsPassedToLeft;
     this.ballsPassedToRight = ballsPassedToRight;
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Construct a new node, with its initial gate position.
 /// </summary>
 /// <param name="gatePosition">The initial gate position</param>
 public GatedNode(GatePosition gatePosition) => this.gatePosition = gatePosition;