Instructions


 

Notes:

This code works if you have a java operating system. This can be obtain by searching Java in your browser. Certain java based files must be imported

Please be cautious. Do not type random commands into terminal. If you don’t feel comfortable running the code, please do not attempt so.

For MacOS:

  • Create a folder on desktop named “Tetris”

  • Download Piece.java, Tetris.java, and GuiTetris.java into the “Tetris” folder on desktop

  • Search (CMD+[Space]) and open “terminal”

  • Type the following commands (NOTE: Please do not continue if uncomfortable)

    • “cd ~” (change directory)

    • “cd Desktop/Tetris” (change directory to Tetris folder, where the 3 files should be)

    • “javac Piece.java” (compile code)

    • “javac Tetris.java” (compile code)

    • “javac GuiTetris.java” (compile code)

    • “java GuiTetris” (run code)

  • The game is played with the arrow keys. Space key is to bring the Tetris key all the way down

  • Enjoy!