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