Show empty space on Tetrominoe print
This commit is contained in:
parent
3c97673d50
commit
4a775ee9a3
1 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||||
|
|
Reference in a new issue