C program to play a tiling game called Pentominoes

Task: Write a C program to play a tiling game called Pentominoes, a variation of the game Tetris. The game starts with an empty playing field (a rectangular vertical shaft called the “well”). A pentomino, whichis an arrangement of five connected squares chosen from a select set of possible pentominoes, appears at the top of the well. The pentomina falls straight down the well one square at a ime. A pentomino cannot fall inte a square already occupied by a previously fallen pentomino. When a pentomino can fall no further, anew pentomine appears at the top of the well and begins to fall. As pentominoes fall, a solid horizontal line without gaps may form. When such a lineis formed, it disappears and any squares aboveit fall down one square to ill the newly emptied space. The basic pentominoes are: TIrdA+ N The possible pentominoes include the basic pentominoes, and their rotations in quarter tums. Essentially, each pentomino belongs to a family of betw een one and four distinct rotations. The N pentomino has one rotation, and the M pentomino hasfour. As an example, the following are the four rotations of the M pentomino: Hh FY The case-insensitive user input is given in the form of a text file. Each line represents a pentomino, number of quarter-tum clockwise rotations to perform, and the column where the pentomino to appear at the top of the well. The three fields are separated by whitespace, and thelines can be of different lengths. Only when a pentomine can’t fall any further, and solid lines are dealt with, should the next pentomino appear at the top of the well. The program must accept the name of the input text file through a command-line argument. After all the pentominoes fall down the well, the program should print the entire content of the well to standard output. The well is a 12×10 rectangle. Each pentomine has a name, a letter of the alphabet. The number of rotationsis anonnegativeinteger. When a pieceis at the top of the well, its leftmost square(s) must be on the column specified (an integer between 0 and 9inclusive), and the bottom block(s) of the piece must be at thetop of the well (i.e. immediately above the well). Deliverables A file named pentominoes. c containing the ANSI C source code, Before submitting your solutions via Canvas, zip the ANSI C source code and name the archive, if your name is Harry Houdini, for example, HW2_HarryHoudini zip. Grading Policy + Students who violate the University Policy on Academic Integrity will face disciplinary action. + Thisisanindividual project; collaboration isnot permitted. All work that you represent as your own must, in fact, be your own. + The submission will not receive a gradeif the file pentominoes. c produces compilation warnings or errors. Therefore, before submitting your solution, make sure it compiles cleanly using the gee compiler as follows: $ gcc -ansi Wall -Wextra -Wpedantic -Werror pentaminoes.c