Hi, My dear Friend! In this repo You'll see console tetris game! Why tetris? Well, I decided to make a tetris because I love tetris! And there will be other figures in it. In this project I use C# and Visual Studio. Hope You will enjoy!
I use codacy to check My code quality, but also ignore some issues like "Use spaces instead of tabs". And sometimes "Console.WriteLine()" or/and lines in README are an issues for Codacy so I ignore these problems too and etc:
Target Framework: .NET Framework 4.7.2
public void MoveRight(ref char[][] tetrisGrid, char shapes, char freeSpace)
{
for (int i = 0; i < matrixWidth; i++)
{
for (int j = matrixHeight - 1; j >= 0; j--)
{
if (tetrisGrid[i][j] == shapes && tetrisGrid[i][j + 1] == freeSpace)
{
char tempMatrix = tetrisGrid[i][j];
tetrisGrid[i][j] = tetrisGrid[i][j + 1];
tetrisGrid[i][j + 1] = tempMatrix;
}
}
}
}
And game:
To get started...
- Fork this repo! 🍴
- HACK AWAY! 🔨🔨🔨
- MIT license
- My telegram https://t.me/VsIG_official
- Copyright 2020 © VsIG.