示例#1
0
        public PlayGame(Game game, IView view)
        {
            a_game = game;
            a_view = view;

            a_game.AddSubscribers(this);
        }
示例#2
0
        static void Main(string[] args)
        {
            model.Game g = new model.Game();
            view.IView v = new view.SimpleView(); // new view.SwedishVie();
            controller.PlayGame ctrl = new controller.PlayGame(v);

            g.AddSubscribers(ctrl);
            while (ctrl.Play(g));
        }