Config files for my GitHub profile.

Overview
- Board:
    Board function plays the most role in all classes of this Project

    ROLES:
    + initBoard(): used to display the score, the state of the game
    + addListener(): used to receive keyboard input commands
    + squareWidth(): size of shapes 
    + squareHeight(): size of shapes
    + shapeAt(): return the location of the Shape
    + start(): start game
    + pause(): pause game
    + doDrawing(): Draw objects on the screen.
    + dropDown(): set the Location to the bottom
    + oneLineDown(): down 1 unit faster
    + clearBoard(): fullLine => clear
    + pieceDropped(): check the state of the shape falling or falling
    + newPiece(): create new piece when the previous are Dropped
    + tryMove(): check if it can be moved or not, if it is possible to change the position as the player wants
    + rotateLeft(): rotate the shape to the left
    + removeFullLines(): check if 1 row is enough then delete 1 row
    + drawSquare(): draw shapes according to the rule x, y

- MainMenu:
    is the screen at the start of the game, helping the player to choose 1 player or 2 players or if need instructions to play. If there is no demand, the player can press exit to end the game

    ROLES:
    + addButtons(): create & setSize for Buttons & function of each buttons onePlayer, twoPlayers, howToPlay, exit, insert image into background


- Shape:
    This class is responsible for saving information about bricks, drawing shapes, coloring shapes, creating randomness when creating new shapes.

    ROLES:
    + Shape(): We define the block names in the Tetrominoes enum. In addition to the 7 basic blocks we create one more special, NoShape, this block has no shape.
    + setShape(): In the constructor, we create an array of coords to store the actual coordinates of the block.
    + setRandomShape(): equally divide the spawn rate of blocks
    + minX() & minY(): locate the smallest x and the smallest y in the 4 blocks
    + rotateLeft(): returns the same state for the square shape, and assigns new values to the remaining shapes using a for loop

- TAdapter:
    use commands to get input from keyboard


- Tetris:

You might also like...

course-project-real-estate-finder-004 created by GitHub Classroom

Real Estate Finder Running the Project: Clone the repository and open with IntelliJ IntelliJ may not correctly open the project on the first run, but

Dec 16, 2021

GitHub Action to download and install Oracle's Java Development Kit builds

oracle-actions/setup-java This action downloads a Java Development Kit (JDK) built by Oracle and installs it using actions/setup-java. JDKs built by O

Dec 15, 2022

group-project-team1 created by GitHub Classroom

Team 1 Timothy Flucker Hello my name is Timothy Flucker and I am a software developer consultant at Deloitte. I have 8 years of software development e

Nov 10, 2022

course-project-javajsk created by GitHub Classroom

Project JavaJSK - UofTruck University of Toronto Food truck ordering system. For more information see our design document. Problem specification Our p

Jan 12, 2022

code to the rat i give to people if u want to change the webhook its in "src/main/java/github/quantizr/autogg/guis/gui" please just dont sell my rat :(

SkyblockRat My rats code join my discord! https://discord.gg/bbK6ndHqN6 i got tired of people asking "is it double hooked?!" so here is my rats code y

Dec 10, 2022

A tool for reverse engineering Android apk files

Apktool This is the repository for Apktool. If you are looking for the Apktool website. Click here. It is a tool for reverse engineering 3rd party, cl

Jan 4, 2023

Decipher-pad - Encrypt and secure your text files with Decipher Pad!

Welcome to Decipher Pad 👋 Encrypt and secure your text files with Decipher Pad! Table of Contents About The Project Tech Stack Prerequisites Developm

Feb 24, 2022

KSAN : Software Defined Storage for Objects and Files

KSAN : Software Defined Storage for Objects and Files

KSAN : Software Defined Storage for Objects and Files Overview KSAN은 대규모 오브젝트 스토리지 서비스를 안정적이며 효율적으로 제공하기 위해 설계된 소프트웨어 정의 오브젝트 스토리지 시스템입니다. KSAN 시스템은 기

Dec 28, 2022

Generate and read big Excel files quickly

Generate and read big Excel files quickly

fastexcel fastexcel-writer There are not many alternatives when you have to generate xlsx Excel workbooks in Java. The most popular one (Apache POI) i

Jan 1, 2023
Owner
dtr_thuann
t code kho^ng ca^`n ha`m main
dtr_thuann
This repository shows how to natively extend Quarkus with a custom ConfigSource to use AWS AppConfig values when injecting config properties with @ConfigProperty.

Using AWS AppConfig in a custom MicroProfile ConfigSource This repository shows how to natively extend Quarkus with a custom ConfigSource to use AWS A

AWS Samples 8 May 19, 2022
Demo microservice architecture with Spring ,Spring Cloud Gateway , Spring Cloud config server , Eureuka , keycloak and Docker.

spring-microservice Demo microservice architecture with Spring ,Spring Cloud Gateway , Spring Cloud config server , Eureuka , keycloak and Docker. Arc

null 4 Sep 13, 2022
图书管理;图书管理系统;图书管理系统后端,该项目采用Springboot整合Mybatis对数据持久化以及Api的封装实现,前台项目地址:https://github.com/Nirunfeng/BookSys-Client

System of Book Management(sbm) 项目说明 图书管理系统后台,该项目采用Springboot整合Mybatis对数据持久化以及Api的封装实现,前台项目地址:BookSys-Client 项目启动 数据库:mysql5.6执行以下脚本,项目下脚本文件--sbm.sql 导

null 61 Dec 30, 2022
Welcome to the EHS robotics club's GitHub repository, this will also be used as our primary community center and means of communication. Also be sure to join our remind for on the go updates @EHSFTC21

NOTICE This repository contains the public FTC SDK for the Ultimate Goal (2020-2021) competition season. Formerly this software project was hosted her

null 5 Feb 25, 2022
🕊️ The world's most advanced open source instant messaging engine for 100K~10M concurrent users https://turms-im.github.io/docs

简体中文 What is Turms Turms is the most advanced open-source instant messaging engine for 100K~10M concurrent users in the world. Please refer to Turms D

null 1.2k Dec 27, 2022
My first proper GitHub project, I guess. Basically an automated version of the "Battle Royale" short series on Geo Facts' YouTube channel.

State-Royale Made by Pixer415, with some help from ThatOneCalculator This project needs your contributions. New modes/new features/typo fixes/suggesti

null 2 Jun 27, 2022
Expo application with detox to run e2e using Github Workflow

Expo e2e Demo Application template to demonstrate how to run e2e in an Expo Managed application using Detox Tested using: MacOS 12.1 Monterrey, M1 Pro

Carlos Thurber 38 Oct 24, 2022
hello-git-taqiyaehsan created by GitHub Classroom

?? The Basics of GitHub ?? Course overview and learning outcomes The goal of this course is to give you a brief introduction to GitHub. We’ll also pro

null 1 Feb 3, 2022
Section B of Assignment 1. Setup project and collaborate on GitHub by writing test fixtures.

Task Each member (including the team leader) should create a branch (use student number as the branch name) and include a small program in the branch

Quinn Frost 1 Apr 6, 2022
Rise SRC Leak, original leaker had his github deleted :(

Hope i don't get deleted too Original REAMDE.md: leaked by mika johans intent guard obfuscation bypass 2021 zip exploited auth to get the SRC ##Permis

null 10 May 6, 2022