Skip to content

mcmillen-classroom/tetris-stage-1-JesusGD15

Repository files navigation

CSA Tetris - Stage 1

In this project you will complete a full tetris game using the Java programming language and platform. This repository is for the first stage of the project. In this stage, you will be implementing the S, Z, and I shapes.

Compiling Stage 1 Code

Run this from your repository directory:

javac Game.java

Running Stage 1 Code

Log into your C9.io workspace and launch VNC before attempting to run the application.

Run this from your repository directory:

java Game

Launching CSA Tetris

Set your Tab Size to 2 Spaces

When you are writing your Java code, make sure that you set your tab size to be 2 spaces.

Proper Tab Size

Tasks for Assignment

  • Create repository
  • Install VNC
  • Compile and launch Game
  • Fix SShape.rotate() method: it is not checking whether cells are empty before rotating
  • Implement ZShape and all of its methods. Comment in z code in Grid.java to test your ZShape class.
  • Implement IShape and all of its methods. Comment in i code in Grid.java to test your IShape class.

Turn In

Use your GitHub repository to turn in your assignment. Complete each task one at a time. Once you've completed the task and it work as you'd like, commit and push it.

Check the status of your repository. Notice that the files you've modified are listed:

git status

git status

Add the files you want to commit to the staging area:

git add SShape.java

git add

Commit the staged files (include the task description from the assignment):

git commit -m "Task: TASK DESCRIPTION"

git commit

Push your commits back to GitHub:

git push

git push

About

tetris-stage-1-JesusGD15 created by GitHub Classroom

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages