mirror of
https://github.com/TwoFX/Morris.git
synced 2026-03-22 01:50:39 +00:00
26 lines
461 B
C#
26 lines
461 B
C#
using System;
|
|
using System.Windows;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Morris
|
|
{
|
|
class Program
|
|
{
|
|
[STAThread]
|
|
static void Main(string[] args)
|
|
{
|
|
var a = new ConsoleInteraction();
|
|
var b = new RandomBot();
|
|
var w = new GameWindow();
|
|
var g = new Game(a, b);
|
|
g.AddObserver(a);
|
|
g.AddObserver(w);
|
|
Task.Run(() => g.Run(0));
|
|
new Application().Run(w);
|
|
}
|
|
}
|
|
}
|