Tagged articles
Tetris
11 articles · Page 1 of 1

ITPUBApr 19, 2025 · Databases
This article showcases a spectacular PostgreSQL query that implements the classic Tetris game using recursive CTEs, provides the full source code, highlights a known long‑run disk‑usage issue, and then presents several other impressive SQL snippets and a concise checklist for writing high‑quality SQL.
PostgreSQLRecursive CTESQL
0 likes · 25 min read

This article introduces four classic games—2048, Snake, Tetris, and LianLianKan—explaining their design principles, gameplay mechanics, and providing complete Python source code using Pygame and Tkinter, suitable for learners with basic Python and game programming knowledge.
2048LianLianKanPygame
0 likes · 33 min read

This tutorial walks through creating a Tetris game in Python using the built‑in Tkinter library, covering window setup, drawing the board, implementing block movement, rotation, line clearing, scoring, and full source code with explanations.
GUIPythonTetris
0 likes · 26 min read

This article provides step-by-step tutorials and complete Python Pygame source code for implementing four classic games—2048, Snake, Tetris, and LianLianKan—explaining game mechanics, design principles, and code structure to help Python developers build and understand these interactive applications.
2048LianLianKanPygame
0 likes · 43 min read

This article provides step‑by‑step Python tutorials for creating classic games—including 2048, Snake, Tetris, and LianLianKan—detailing design principles, core logic, and complete source code using Pygame and Tkinter for learners with basic Python and game‑programming knowledge.
2048LianLianKanPython
0 likes · 39 min read

This tutorial shows how to create a Tetris mini‑game with AI using a straightforward algorithm, Python 3.6, PyQt5, and detailed code that evaluates board states based on cleared lines, holes, heights, and other metrics to select optimal moves.
AIAlgorithmPyQt5
0 likes · 5 min read

This article explains how to build a Tetris game with a basic AI using Python 3.6.4 and PyQt5, covering environment setup, the underlying algorithm that evaluates future board states, and the complete source code for the AI decision‑making and scoring functions.
PythonTetrisgame AI
0 likes · 6 min read

In the Tencent Geek Challenge, Wang Haosheng leveraged a custom Tetris simulator and intensive hand‑play—enhanced with limited AI tools—to clear all 10,000 blocks, achieving 1.179 million points and third place, illustrating that manual strategy outperformed the AI despite extensive competition and technical analysis.
AICompetitionSimulation
0 likes · 9 min read

This tutorial walks you through creating a fully functional Tetris clone using Python's PyQt5 library, covering game logic, rendering, user controls, shape management, line clearing, and includes complete source code for all core classes and methods.
GUIPyQt5Python
0 likes · 20 min read

This article compiles a series of entertaining Python code examples—including flag drawing with Turtle, image‑to‑ASCII conversion, Tetris, a plane shooter game, and a 25‑line face‑recognition script—to inspire learners and demonstrate practical programming techniques.
ASCII artOpenCVPygame
0 likes · 6 min read

This article showcases five engaging Python projects—including drawing a national flag with Turtle, converting images to ASCII art, building a Tetris clone, creating a simple plane‑shooter game, and implementing a 25‑line face‑detection script—complete with code snippets, installation tips, and visual results.
ASCII artFace DetectionOpenCV
0 likes · 5 min read
