-
Notifications
You must be signed in to change notification settings - Fork 0
/
Program.cs
25 lines (23 loc) · 837 Bytes
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using System;
using System.Collections.Generic;
using System.IO;
using System.Text.RegularExpressions;
using System.Threading;
namespace MyPersonalTetris
{
public static class Program
{
public static void Main()
{
new MusicPlayer().Play();
int TetrisRows = 20;
int TetrisColumns = 10;
ScoreManager scoreManager = new ScoreManager("scores.txt");
var tetrisConsoleWriter = new TetrisConsoleWriter(TetrisRows, TetrisColumns, '0');
var game = new TetrisGame(TetrisRows, TetrisColumns);
IInputHandler inputHandler = new ConsoleInputHandler();
var gameManager = new TetrisGameManager(game, inputHandler, tetrisConsoleWriter, scoreManager);
gameManager.MainLoop();
}
}
}