subject

Problem 1. The current implementation includes only 4 types (a bar, a square, two square shapes). Implement the 3 types of blocks (green, purple and red colored ones in Figure 1). Also, design your own block (of any size) and include in the code. Be creative! That is, your Tetris will be composed of 8 types of blocks. (10%) 2. Your source code should make the Tetris check existing blocks on the floor. Your source code should make room for the block landing to stacks on top of the other blocks on the floor. (30%) 3. Calculate the score of the game and print it. When a block is successfully landed on the floor, increase the score by +1. When (some) rows are eliminated simultaneously, increase the score as follows. (10%) 1 row +10 2 row +40 3 row +120 4 row +320 4. Create a file ‘tetris_score. txt’, and record top 5 high scores. That is, when the game ends (except for force to quit with ‘q’), compare the current score with the previous top 5 ones stored in ‘tetris_score. txt’. If the current score is top 5, receive the name of player “xxx” and store the score with the name. Then, print out top 5 scores and names. Please refer to Figure 3. (40%) 5. Increase the speed of the game for every 10 blocks. You can reduce the wait time by 30% (10%). 6. (Bonus points-I) Implement the ‘drop’ operation by ‘space’ key. That is, when you push the ‘space’ key, it will drop and immediately stack on top of existing blocks (20%). 7. (Bonus points-II) Implement any fun and creative stuff as you wish. Persuade us to give you another points (30%) . (c) Explain all the steps of the code in 2(b) and explain the logic behind the operation with an algorithm.


Problem 1. The current implementation includes only 4 types (a bar, a square, two square shapes). I

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 22:00
Competent nonverbal communication involves interacting with others in a manner that is appropriate for which of the following? select all that apply. situation task individuals
Answers: 3
question
Computers and Technology, 23.06.2019 02:00
Which software would you use to create a print design? a. illustrator b. audacity c. reaper d. dreamweaver
Answers: 2
question
Computers and Technology, 23.06.2019 13:10
What is domain name system (dns)? allows dynamic ip address allocation so users do not have to have a preconfigured ip address to use the network converts ip addresses into domains, or identifying labels that use a variety of recognizable naming conventions the efficient coexistence of telephone, video, and data communication within a single network, offering convenience and flexibility not possible with separate infrastructures the integration of communication channels into a single service
Answers: 2
question
Computers and Technology, 24.06.2019 08:50
Write a program that will compute the volume of ice cream served in a cone. as you can see in the diagram below, the ice cream is served as a hemisphere of frozen deliciousness on top of a cone, which is also packed with frozen deliciousness. thus, the total volume of ice cream sold is the volume of the hemisphere plus the volume of the cone. the example shows an ice cream cone in which the hemisphere and cone have a radius of 10 inches and the cone has a height of 15 inches. your program must instead prompt for these two values, which are taken from the keyboard as integers: • the hemisphere/cone radius in inches, and
Answers: 3
You know the right answer?
Problem 1. The current implementation includes only 4 types (a bar, a square, two square shapes). Im...
Questions
question
Mathematics, 12.12.2020 20:50
question
Chemistry, 12.12.2020 20:50
question
Physics, 12.12.2020 20:50
question
English, 12.12.2020 20:50
Questions on the website: 13722367