예제 #1
0
파일: Program.cs 프로젝트: ks222rt/1DV607
        static void Main(string[] args)
        {
            model.Game g = new model.Game();
            view.IView v = new view.SimpleView(); //new view.SwedishView();
            controller.PlayGame ctrl = new controller.PlayGame(g, v);

            g.Subscribe(ctrl);
            while (ctrl.Play());
        }
예제 #2
0
        static void Main(string[] args)
        {
            model.rules.AbstractRulesFactory ruleSet = new model.rules.EasyRulesFactory();
            //model.rules.AbstractRulesFactory ruleSet = new model.rules.HardRulesFactory();

            model.Game g = new model.Game(ruleSet);
            view.IView v = new view.SwedishView();//new view.SimpleView();
            controller.PlayGame ctrl = new controller.PlayGame();

            g.Subscribe(ctrl);

            while (ctrl.Play(g, v));
        }