Beispiel #1
0
        public void setup()
        {
            Board.Instance.Reset();
            using (TestRandom rnd = new TestRandom())
                Board.Instance.InitializeMaster(new string[] { "A", "B", "C", "D", "E" }, 2, rnd);                //il mazziere è C

            AIPlayerController AI0 = new AIPlayerController((Player)0, new AIBMobileJump(10, 1, 1), new AISQuality(), new AICProva());
            AIPlayerController AI1 = new AIPlayerController((Player)1, new AIBMobileJump(10, 1, 1), new AISQuality(), new AICProva());
            AIPlayerController AI2 = new AIPlayerController((Player)2, new AIBMobileJump(10, 1, 1), new AISQuality(), new AICProva());
            AIPlayerController AI3 = new AIPlayerController((Player)3, new AIBMobileJump(10, 1, 1), new AISQuality(), new AICProva());
            AIPlayerController AI4 = new AIPlayerController((Player)4, new AIBMobileJump(10, 1, 1), new AISQuality(), new AICProva());

            Board.Instance.Start();

            while (!Board.Instance.IsPlayTime)
            {
                Board.Instance.Update();
            }

            _brisc = Board.Instance.CalledCard;

            _noBrisc1 = Board.Instance.GetCard((EnSemi)(((int)_brisc.seme + 1) % Board.Instance.nSemi), EnNumbers.ASSE);
            _noBrisc2 = Board.Instance.GetCard((EnSemi)(((int)_brisc.seme + 1) % Board.Instance.nSemi), EnNumbers.CAVALLO);
            _noBrisc3 = Board.Instance.GetCard((EnSemi)(((int)_brisc.seme + 2) % Board.Instance.nSemi), EnNumbers.TRE);
        }
Beispiel #2
0
        public void setup()
        {
            Board.Instance.Reset();

            using (TestRandom rnd = new TestRandom())
                Board.Instance.InitializeMaster(new string[] { "A", "B", "C", "D", "E" }, 2, rnd);                //il mazziere è C

            _null1 = null;
            _null2 = null;

            _pass1 = new PassBid(Board.Instance.AllPlayers [0]);
            _pass2 = new PassBid(Board.Instance.AllPlayers [1]);

            _normalBid1 = new NormalBid(Board.Instance.AllPlayers [0], EnNumbers.ASSE, 70);
            _normalBid2 = new NormalBid(Board.Instance.AllPlayers [1], EnNumbers.DUE, 61);
            _normalBid3 = new NormalBid(Board.Instance.AllPlayers [2], EnNumbers.DUE, 70);
            _normalBid4 = new NormalBid(Board.Instance.AllPlayers [2], EnNumbers.DUE, 70);

            _carichi1 = new CarichiBid(Board.Instance.AllPlayers [0], 61);
            _carichi2 = new CarichiBid(Board.Instance.AllPlayers [0], 70);
            _carichi3 = new CarichiBid(Board.Instance.AllPlayers [0], 70);
        }
Beispiel #3
0
 public void setup()
 {
     Board.Instance.Reset();
     using (TestRandom rnd = new TestRandom())
         Board.Instance.InitializeMaster(new string[] { "A", "B", "C", "D", "E" }, 2, rnd);                //il mazziere è C
 }