Archived
1
0
Fork 0

Show empty space on Tetrominoe print

This commit is contained in:
Ethanell 2022-04-07 13:52:28 +02:00
parent 3c97673d50
commit 4a775ee9a3

View file

@ -44,8 +44,7 @@ public class Tetrominoe {
_orientation = value;
Point newCoords = _coordinates;
//ToDo edit position ?
//ToDo move position when hot a wall
//ToDo: move position when hit a wall
if (!_grid.CanGo(this, newCoords)) {
_orientation = oldOrientation;
@ -113,7 +112,7 @@ public class Tetrominoe {
if (Shape[x, y])
s += "x".Pastel(_color);
else
s += " ";
s += "-".Pastel(Color.Black);
s += "\n";
}
return s;