Brick Game v1.0
Implementation of the game Tetris in the C programming language with a terminal user interface.
Loading...
Searching...
No Matches
PieceData Struct Reference

An array of blocks the piece consists of. More...

#include <piece.h>

Data Fields

int blocks [PIECE_ROWS][PIECE_COLS]
 A 4 by 4 matrix of blocks that a piece consists of.
 

Detailed Description

An array of blocks the piece consists of.

Field Documentation

◆ blocks

int PieceData::blocks[PIECE_ROWS][PIECE_COLS]

A 4 by 4 matrix of blocks that a piece consists of.

0 represents an empty cell and 1 represents a filled cell.


The documentation for this struct was generated from the following file: