static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); var board = new Board(); var game = new BackGammon(); GameMethods methods = new GameMethods(board, game); Task.Run(new Action(() => { Thread.Sleep(100); board.Play(); })); Application.Run(game); }
public GameMethods(Board board, BackGammon game) { _board = board; _game = game; RegisterToEvents(_board); }