Welcome to TetrisMB! This is a command line based graphical tetris game.
- Clone the repository and open in Xcode.
- Press
cmd + B
or build the files. - Open terminal
- Drag and drop the build executable file from the file inspector on the left onto the terminal and remove "Tetris" from the end
- Press enter to go into this directory
- Type
./Tetris
, press enter, and follow the directions
- Copy files from the "Tetris" folder located in the root folder
- Make an executable file
- Run it and follow the instructions
This implementation allows the user to modify the game experience based on their preferences.
- In
globals.h
change the constant besideTRUE_RANDOM_SIZE_4_DISTRIBUTION
to0
to enable our random block generator. Keep in mind that this does not allow for a truly random distribution between different block appearances. However, this does allow for a variable block size to be generated. - In
globals.h
changeMAX_ROWS
andMAX_COLS
to increase or decrease the grid size based on your preference. Note that any margin beneath 10 may result in unexpected behavior. - In
globals.h
changeBLOCK_SIZE
to the block size you would like to play with. By default, it is set to 4. Ensure thatTRUE_RANDOM_SIZE_4_DISTRIBUTION
is0
before you play the game with a modified block size.