우분투 Ubuntu 24.04 테트리스 게임 코딩 연습(1)
우분투 24버전에 심심해서 테트리스 코딩c언어로 만들어봄#include #include #include #include #define WIDTH 10#define HEIGHT 20int field[HEIGHT][WIDTH] = {0};int shapes[7][4] = { {1, 3, 5, 7}, // I {2, 4, 5, 7}, // Z {3, 5, 4, 6}, // S {3, 5, 4, 7}, // T {2, 3, 5, 7}, // L {3, 5, 7, 6}, // J {2, 3, 4, 5} // O};typedef struct { int x, y; int shape; int rotation;} Piece;Piece current;int score..
2025. 10. 16.
UP!