Project description:
The project consists of the development of the world-famous Tetris game. The game implementation was done through matrices running the specific encoding for each board element, that is updated with each action on the form (Frontend). TOP10 scores are recorded in a SQL Server database with name and score fields.
Project status:
⏳ Developing
Project steps:
Gameboard:
✅ Gameboard (front)
✅ Gameboard (back)
Pieces:
✅ Pieces design
✅ Piece movimentations
Game intelligence:
✅ Piece colision
✅ Wall colision
❌ Speed acceleration according game time duration
✅ Full line detection
✅ Scoreboard refresh
✅ End game detection
✅ Game pause
✅ Game restart
✅ Game exit
Forms:
❌ Init game form
✅ Play Form
✅ Edit player name form
❌ Edit level dificult form
❌ Edit window theme form (colors)
✅ Game over form
✅ Highscores form
SQL Server communication:
✅ Read highscores stored - Top10
✅ Write new high score
Create the following SQL Server Data Base and column tables:
CREATE DATABASE TetrisDataBase
CREATE TABLE HighScores (
PlayerName VARCHAR(50),
Pontuation INT
);
INSERT INTO HighScores (PlayerName,Pontuation)
VALUES
('None',0),
('None',0),
('None',0),
('None',0),
('None',0),
('None',0),
('None',0),
('None',0),
('None',0),
('None',0);Connection string info:
This example I am using defaul user: User: sa | Password: (no password) as we can see in the following String Connection:
Tetris>Entities>DataBase>Connection
public Connection()
{
//SQL server connection string
_connection.ConnectionString = @"Persist Security Info=False;User ID=sa;Initial Catalog=TetrisDataBase;Data Source=(local)";
}
