Esempio n. 1
0
 private void Init()
 {
     yama = new Yama();
     kawas = new List<Kawa> { new Kawa(), new Kawa(), new Kawa(), new Kawa() };
     tehais = new List<Tehai> { new Tehai(), new Tehai(), new Tehai(), new Tehai() };
     field = new Field();
     currentActor = 0;
     infoForResult = new List<InfoForResult>() {new InfoForResult(field.KyokuId,0), new InfoForResult(field.KyokuId,1), new InfoForResult(field.KyokuId,2), new InfoForResult(field.KyokuId,3) };
     points = new List<int> { 25000, 25000, 25000, 25000 };
 }
Esempio n. 2
0
 public void Init()
 {
     yama = new Yama();
     kawas = new List<Kawa> { new Kawa(), new Kawa(), new Kawa(), new Kawa() };
     tehais = new List<Tehai> { new Tehai(), new Tehai(), new Tehai(), new Tehai() };
     field = new Field();
     infoForResult = new List<InfoForResult>() { new InfoForResult(), new InfoForResult(), new InfoForResult(), new InfoForResult() };
     points = new List<int> { 25000, 25000, 25000, 25000 };
     currentActor = 0;
     
 }
Esempio n. 3
0
        public void 山ツモテスト()
        {
            Yama testYama = new Yama();

            Assert.AreEqual(testYama.GetRestYamaNum(), FIRST_YAMA_LENGTH);
            foreach (var omote in testYama.GetDoraMarkers())
            {
                Debug.WriteLine("Dora = "+omote.PaiString);
            }



            while( testYama.GetRestYamaNum() > 0 )
            {
                Debug.WriteLine(testYama.DoTsumo().PaiString);
            }
        }
Esempio n. 4
0
 public void Init()
 {
     yama  = new Yama();
     kawas = new List <Kawa> {
         new Kawa(), new Kawa(), new Kawa(), new Kawa()
     };
     tehais = new List <Tehai> {
         new Tehai(), new Tehai(), new Tehai(), new Tehai()
     };
     field         = new Field();
     infoForResult = new List <InfoForResult>()
     {
         new InfoForResult(), new InfoForResult(), new InfoForResult(), new InfoForResult()
     };
     points = new List <int> {
         25000, 25000, 25000, 25000
     };
     currentActor = 0;
 }
Esempio n. 5
0
 private void Init()
 {
     yama  = new Yama();
     kawas = new List <Kawa> {
         new Kawa(), new Kawa(), new Kawa(), new Kawa()
     };
     tehais = new List <Tehai> {
         new Tehai(), new Tehai(), new Tehai(), new Tehai()
     };
     field         = new Field();
     currentActor  = 0;
     infoForResult = new List <InfoForResult>()
     {
         new InfoForResult(field.KyokuId, 0), new InfoForResult(field.KyokuId, 1), new InfoForResult(field.KyokuId, 2), new InfoForResult(field.KyokuId, 3)
     };
     points = new List <int> {
         25000, 25000, 25000, 25000
     };
 }
Esempio n. 6
0
        public void 山リンシャンテスト()
        {
            Yama testYama = new Yama();

            Assert.AreEqual(testYama.GetRestYamaNum(), FIRST_YAMA_LENGTH);
            
            Debug.WriteLine(testYama.DoRinshan().PaiString);
            Assert.AreEqual(testYama.GetRestYamaNum(), FIRST_YAMA_LENGTH - 1);
            Assert.IsTrue(testYama.CanKan());
            
            Debug.WriteLine(testYama.DoRinshan().PaiString);
            Assert.IsTrue(testYama.CanKan());
            
            Debug.WriteLine(testYama.DoRinshan().PaiString);
            Assert.IsTrue(testYama.CanKan());
            
            Debug.WriteLine(testYama.DoRinshan().PaiString);
            Assert.IsFalse(testYama.CanKan());

        }