Questions tagged [tetris]

Tetris is a block-matching game created by Alexey Pajitnov. Elements are 4-segmented pieces where the name of the game comes (tetra is numerical prefix in Greek used for 4).

Filter by
Sorted by
Tagged with
2
votes
2answers
116 views

Tetris game for Windows improved version

About a month ago I made a Tetris game for Windows. After a helpful review, I improved the code. I want to hear again an opinion about the implementation, how readable the code is, new mistakes or ...
5
votes
1answer
74 views

Classic Tetris implementation for Windows console (Follow up)

This is a follow up question of Classic Tetris implementation for Windows console - Initial Version Review Since the changes this small project of mine suffered after applying all the excellent ...
8
votes
1answer
182 views

Classic Tetris implementation for Windows console

Let me start by saying that until very recently procedural was the paradigm of choice for about 100% of my programming activity, and I was a complete stranger to C++ and OOP concepts. Since a few ...
6
votes
1answer
62 views

Tetris Game Javascript

I am creating Tetris in javascript. I have finished the basic mechanics. I would appreciate some feedback on how I could improve it. Down, left, and right arrow keys move the piece while the up arrow ...
7
votes
1answer
210 views

Tetris game for Windows

I'm a student and this is my first application/project that I made and finished today in C++ using OOP and I want to hear your opinions and suggestions, what I did wrong, what I did good, what should ...
4
votes
1answer
81 views

A simplified Tetris solver

As part of an job interview process, I was tasked to write a solver for a simplified Tetris game using JavaScript. The game board size is 4x4 and there are 4 different pieces given in a .txt file. It ...
5
votes
0answers
65 views

Tetris clone in Rust using specs

In order to get a hang of the ECS paradigm of game making, I decided to try my hand at making a clone of Tetris. I am using the specs crate for Rust in order to ...
3
votes
0answers
103 views

First project “Game Tetris”, Python 3.4

I just study Python, and have finished my first personal challenge game Tetris. It has multi-game, bindable keys, customizable game field. It would be great to have review/feedback on it. https://...
5
votes
2answers
1k views

Tetris game demonstrating OOP principles

I've designed a basic Tetris game, and implemented it in Java language. I'll use it for demonstrating software engineering, designing. I'll re-implement it in many different programming languages, in ...
8
votes
1answer
695 views

Genetic algorithm for playing Tetris

Readme.md Tetris In my quest to building a Tetris game, where you can challenge an AI, I have created and trained an AI that plays Tetris all by himself. Github link I think the easiest way to run ...
9
votes
1answer
2k views

Tkinter 1 Player Tetris game

README.md Tetris game I am working towards making a Tetris game where you can challenge an AI. Multiple parts have been finished, but a lot is still under construction. However I would like an ...
9
votes
1answer
1k views

Excel VBA Multiplayer Tetris Game Loop Repaint Rate

While searching VBA Excel Tetris games online, I noticed several single player Tetris games but no multiplayer games. I am looking for a better strategy to manage the speed of the Application and ...
5
votes
1answer
624 views

CodeFights: A Simple Tetris Solver

Long time no Codefights, link to the challenge Tetris game Description Let's play Tetris! But first we need to define the rules, especially since they probably differ from the way you've played ...
8
votes
1answer
626 views

NCurses-based Tetris game in C++

What sticks out and what would you have done better in this termina-tetris implementation? I do not intend to use namespaces or split it up into multiple files. ...
8
votes
2answers
2k views

Tetris as general game example

I coded a (more or less) simple Tetris game as an example for some of the other trainees in my company. Since I am used to my coding style I would like to have some other people to look over it and ...
6
votes
1answer
1k views

Tetris clone in C++ using SDL

Overview Using SDL and my own tiny wrapper library for it, I've written a tetris clone. I would really appreciate it if someone could take a look at it and tell me if something is particularly bad (...
5
votes
1answer
2k views

Tetris clone in C++ using ncurses

Recently, just for fun, I've created a clone of the widely popular game Tetris using C++. Since I am still a novice when it comes to C++, I would really appreciate all the feedback I can get from ...
6
votes
1answer
200 views

My Tetris implementation

I just wrote a Tetris game and I'd like to humbly request for code review especially in terms of code transparency, code efficiency (whether something can be coded in faster way using less resources) ...
17
votes
2answers
6k views

Tetris in C, in 200 lines

I aimed at making fully functional (real) Tetris, in the shortest way possible in C. The result is a terminal game for Linux, that uses ncurses. I made it for my friend, who wanted to play it on his ...
6
votes
1answer
846 views

Piece class as part of implementation for the Tetris game

Here is my Piece class as part of implementation for the Tetris game. If possible, I want my code to face the same level of scrutiny as actual production code. ...
4
votes
2answers
453 views

Multithreaded text-based Tetris game

I have decided to make a game of text-based Tetris in C. At first I had no idea how to start so I settled for threads. Each thread moves its own piece down the grid and all the main thread does is ...
4
votes
1answer
1k views

Tetris random piece generator

I was inspired by this Reddit /r/dailyprogrammer challenge: Contrary to popular belief, the tetromino pieces you are given in a game of Tetris are not randomly selected. Instead, all seven pieces ...
6
votes
1answer
189 views

TetrisBoard Class in C#

I am writing a Tetris program in C# for programming practice, and I've got it working. This is the second post in a multi-part series. My previous post covered the ...
5
votes
1answer
515 views

TetrisPiece Class in C#

I am writing a Tetris program in C# for programming practice, and I've got it working. This will be the first post in a multi-part series. Future posts will cover the ...
13
votes
2answers
1k views

Calculating holes on a Tetris grid quickly

I have created a Tetris AI which can play Tetris on its own given a set of rules. It places the next piece in every possible way on the board, and calculates which position that gives the fewest "...
3
votes
1answer
130 views

UpdateGame function for Tetris

I am writing a Tetris game while learning Haskell and I'm trying to make the following code more concise and easier to read. How can I improve it? Note that the function is not finished yet (There is ...
2
votes
2answers
236 views

Text-based Tetris game CRTP 3

Previous question: Text-based Tetris game with CRTP - follow-up 2 Summary of improvements: Fixed Issues preventing the code from compiling on Clang Implemented helper class ...
2
votes
1answer
160 views

Text-based Tetris game with CRTP - follow-up 2

Previous question: Text-based Tetris game with CRTP - follow-up Summary of improvements: Fixed issues preventing the code from compiling on Clang Implemented override specifier Fixed single letter ...
4
votes
1answer
927 views

Text-based Tetris game with CRTP - follow-up

Previous question: https://codereview.stackexchange.com/questions/74677/text-based-tetris-game-follow-up-final Summary of improvements: Implementation of a ...
3
votes
2answers
1k views

Text-based Tetris game - follow-up 2

The original source code by falgon. For kbhit() and getch() in Linux/UNIX is written by Chris Giese. Previous question: Text-...
6
votes
2answers
390 views

Text-based Tetris game - follow-up

Previous question: Text-based Tetris game I don't have a Linux terminal to be sure whether or not I have implemented the Linux version correctly, but hopefully it's OK. Summary of improvements: ...
10
votes
2answers
22k views

Text-based Tetris game

How can I improve this game? ...
6
votes
1answer
2k views

Tetris clone written in Python/Pygame

I have a medium-sized project here, and I would like some comments on the code. In particular I'd like comments on how well I'm handling OO-programming, my programs logic and whether you think my code ...
7
votes
1answer
5k views

Tetris code for pieces and map

I'm making a simple Tetris clone and would like to know how's my code for the map and pieces. I'm using x, y, ...
10
votes
1answer
13k views

Learning the basics of JavaScript with a Tetris game

I want to get a better feeling for how JavaScript works and how to use it well. I coded up this Tetris game, and have iterated over the code base and improved it a couple of times now. I hope the ...
13
votes
1answer
5k views

Self-playing Tetris game

I have an extremely simple self-playing Tetris game which I coded up and I am looking to see how it could be improved. It would also be a learning curve for me to see how those much better than I am ...