-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
41 lines (32 loc) · 1 KB
/
Copy pathProgram.cs
File metadata and controls
41 lines (32 loc) · 1 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
using System;
namespace Group1Game
{
class Program
{
static void Main(string[] args)
{
int boardSize = 10;
Player player1 = new Player();
Player player2 = new Player();
Rock rock = new Rock(2, 2);
Rock rock1 = new Rock(3, 2);
Rock rock2 = new Rock(1, 2);
Hammer hammer = new Hammer(2, 2); //nytt
Board currentGame = new Board(boardSize);
currentGame.ResetBoard();
rock.Size(currentGame);
rock1.Size(currentGame);
rock2.Size(currentGame);
hammer.PlaceFixedItem(currentGame);
hammer.PlaceRandomItem(currentGame); //nytt
currentGame.PrintBoard(player1);
player1.currentPos = (0,0);
player2.currentPos = (0, 1);
while(true)
{
currentGame.PlayerMovement(player1, player2);
currentGame.PrintBoard(player1);
}
}
}
}