Example #1
0
        public BlackjackCursesView(BlackjackModel Model, BlackjackController Controller)
        {
            this.Model      = Model;
            this.Controller = Controller;

            SetUsUp();
        }
Example #2
0
        public BlackjackConsoleView(BlackjackModel Model, BlackjackController Controller)
        {
            Console.OutputEncoding = System.Text.Encoding.UTF8;

            this.Model      = Model;
            this.Controller = Controller;
        }
Example #3
0
        static void Main(string[] args)
        {
            BlackjackHand   Hand   = new BlackjackHand();
            BlackjackDealer Dealer = new BlackjackDealer();
            BlackjackPlayer Player = new BlackjackPlayer(Hand, 500, "Player 1");

            BlackjackModel      Model      = new BlackjackModel(Dealer, Player);
            BlackjackController Controller = new BlackjackController(Model);

            //  >>>>>[  To use the straight Console/CLI View
            //          -----
            //          BlackjackConsoleView View = new BlackjackConsoleView(Model, Controller);

            //  >>>>>[  To use the "Fake-Curses" View
            //          -----
            BlackjackCursesView View = new BlackjackCursesView(Model, Controller);

            Model.LinkView(View);
            View.ModelChanged();
        }
Example #4
0
 public void LinkController(BlackjackController Controller)
 {
     this.Controller = Controller;
 }