Question:
Write programs using Java that will implement the array and link-list structure according
to the questions given below.
A popular single-player game called Tetris has different coloured blocks and shapes that
fall to the bottom. The user can rotate the blocks to get a complete solid line of blocks.
This line is then removed. The aim of this game is to get the highest number of complete
lines which will be calculated as scores.
This game keeps a score of users points achieved during every session. The information
kept is the user’s name, level, score and lines.
Based on the information given, create a list that will emulate a Tetris game score list,
with additions of possibly new higher scores, and thus deleting scores that are below the
10th entry in the list. Ensure that the list is sorted at all times from the highest to the
lowest score.
i) To create the list:
a) Use an array data structure
b) Use a link list data structure
please anyone can give an idea ??