Ejemplo n.º 1
0
 public void can_evaluate_3er_Super6_Spiel77()
 {
     var ausspielung = new Ausspielung(new[] { 1, 2, 3, 4, 5, 6 }, 49, "0000001", "000001", 0);
     var result = new EvaluationService(ausspielung).evaluate(spiel);
     Assert.That(result.Protocols.Count(), Is.EqualTo(3));
 }
Ejemplo n.º 2
0
        public void merge_Sitzung()
        {
            ISitzung s = new Sitzung(
                new Spiel(
                    new Systemschein(
                        new Systemfeld(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13){SID = 13})));
            var aus = new Ausspielung(new[] { 11,12,13,14,15,16 }, 49, "1234567", "234567", 7);

            Console.WriteLine("Ziehung: " + Stringifier.stringify(aus.Gewinnzahlen, " "));
            foreach (var auftrag in s.Auftraege)
                foreach (var tipp in auftrag.Tipps)
                    Console.WriteLine("Tipp: " + Stringifier.stringify(tipp.Tipp.Tippzahlen, " "));
            var p = s.evaluate(aus);

            if (s.IsWin(aus))
                Console.WriteLine("won");
            else
                Console.WriteLine("lost");

            foreach (var protocol in p) {
                Console.WriteLine("Protocol: " + protocol.ProtocolType);
                foreach (var hit in protocol.Hits.OrderBy(x => x.Key))
                    Console.WriteLine("Hits: " + "Gk" + hit.Key + ": " + hit.Value);
            }

            var foo = new EvaluationService(aus).evaluate(s.toSpiel());
        }