Desktop Application

[Highlight Project]

1. Introduction

1-1. Overview

During my first semester of freshman year, I took on the challenge of implementing a fully playable version of Tetris in C, entirely within the console. This project marked my first major milestone in programming — blending game logic, memory handling, and real-time input processing without any graphics libraries.

I later shared this project with a friend studying at Tsinghua University (清华大学) in China, where it was used as his final group assignment for an undergraduate programming course.

The game served as a valuable template for learning about:
  • Procedural game logic in C
  • Console UI simulation
  • Input polling without GUI libraries

1-2. Project Highlights

  • Text-based interface using ASCII symbols ([], {}, .) to simulate game pieces and boundaries.

  • Real-time controls:
    • ←, → - move left/right
    • ↑ - rotate block
    • ↓ - slow descent
    • Space - instant drop
  • Game loop, collision detection, and line clearing were all implemented manually.

2. Techs

  • Language / Script

  • OS

  • IDE

  • VCS

3. Screenshots

© 2025 hansf14. All Rights Reserved.