コード例 #1
0
ファイル: Program.cs プロジェクト: peku33/ScrabbleSolver
        static void Main()
        {
            String DictionaryFile = @"..\..\Slowa.txt";

            Encoding.Encoding DictionaryEncoding = new Encoding.Polish();
            Dictionary.Dictionary D = new Dictionary.TrieDictionary(DictionaryFile, DictionaryEncoding);
            Language.Language Language = new Polish();
            //Dictionary.Benchmark.Benchmark1(D);

            //Console.Read();
            D.Reload();
            BlockingCollection<ApplicationEvent> ViewEvents = new BlockingCollection<ApplicationEvent>();
            Model.Model GameModel = new Model.Model(D, Language);
            //GameForm GameForm = new GameForm();
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            GameForm GameForm = new GameForm(ViewEvents);
            GameController = new Controller.Controller(GameModel, GameForm, ViewEvents);

            GameController.AddStrategies();
            ThreadStart childref = new ThreadStart(ControllerThread);
            Thread childThread = new Thread(childref);
            childThread.Start();

            Application.Run(GameForm); //TODO use GameForm implemented above

            GameController.Start();
        }
コード例 #2
0
ファイル: Controller.cs プロジェクト: peku33/ScrabbleSolver
 protected Strategy(Controller Parent)
 {
     this.Parent = Parent;
 }
コード例 #3
0
ファイル: Controller.cs プロジェクト: peku33/ScrabbleSolver
 public ReplaceTileStrategy(Controller Parent)
     : base(Parent)
 {
 }
コード例 #4
0
ファイル: Controller.cs プロジェクト: peku33/ScrabbleSolver
 public PutWordStrategy(Controller Parent)
     : base(Parent)
 {
 }
コード例 #5
0
ファイル: Controller.cs プロジェクト: peku33/ScrabbleSolver
 public PassStrategy(Controller Parent)
     : base(Parent)
 {
 }
コード例 #6
0
ファイル: Controller.cs プロジェクト: peku33/ScrabbleSolver
 public NewGameStrategy(Controller Parent)
     : base(Parent)
 {
 }