辅导ESTR1002编程、 写作Python程序设计

” 辅导ESTR1002编程、 写作Python程序设计ESTR1002 2020 21 Term 1,Project ExtensionSince we cannot have face‐to‐face final exam in this semester, we have arrangedproject extension as discussed in the first lecture of this course. The project extension will contribute to 10% of total course grade and you need to choose and complete 3 out of 6 extension items below bymodifying your code of the basic part of the project:1. Step‐by‐Step VisualizationCurrently,you are only required to display the game board after each swap operation.In this extension,you are required to display the game board in the intermediate steps,including the game board after eliminating all numbers, after moving down thenumbers and after generating the new numbers, etc. You may use 0to representthose empty cells on the game board.2. Human player vs. AI playerInstead of having only one Player to play the game, you are required to implement a competitive game that the human player and the AI player can take turns to perform the swap operations. The scores of one player is the total number of scores obtained by each player in the swap step of his/her turn.Your program should record the scoreof each player, and display their scores on top of the game board after each swap.3. Random Generation of the Stone BlockIn the original Candy Crush game, there is a special type of cell calledStoneBlock,which cannot be swapped and eliminated.In this extension, you can include this typeof block in your program and the block should satisfy the following requirements:‐ First,before a game start,your program should be able to generate randomnumber of such stones at random locations.Second,your program can detect that the swap operations that try to move aStone Block,and report an invalid step to the user.‐ Also,having 3Stoneblocks in a row or column will not eliminate any blocks.This type of block should be displayed as@on the game board.4. Random Generation of theChoco BlockSimilar to theStone Block,there is another type of Candy in the original Candy Crush Game called the Choco Block,which also cannot be wapped andeliminated.Furthermore,aChoco Blockwill lock its 4 neighbor numbers(i.e., top,down,left,right),and does not allow them to be swapped and eliminated.In your implementation,you should treat each of theChoco Blockand its fourneighbors as aStone Block.However, instead of keeping all theStone Blockthroughout the game, your program needs to randomly remove one existingChoco Blockevery 5 steps and also randomly grow (change a number to aChoco Block) aChoco Blockafter the removal.This type of block should beprinted asCin the game board.5. Random Generation of anIce BlockAn Ice Blockcontains the same properties that theStone Blockhas,but anIceBlockcanmelt(change to a number) if the numbers of its neighbors(i.e.top,down,left, right) are eliminated.This Type of block should be printed as!on the gameboard.6. Generation of BombIn the last extension, your program should be able to generate a special block, calledBomb, when the user gets more than 30 points in 1 step.ABombcan be swappedwith any other neighbor numbers,and after swapping,all the special blocks on thegame board will be eliminated.ABombshould be printed asBon the game board.If you choose this item,you must also choose at least one of items 3‐5 to ensure thatyou can test the features.Grading:Instead of integrating Your extended functions into your basic program(see projectspecification),you need to prepare the project extension as a separate version of theprogram. You have to submit the project extension to the blackboard by Dec 30 andbesides, and need to do a demonstration of your program on the project extensiondemo day (Dec.30).On the demo day,The TA will evaluate your extension features one by one, by assessingthe correctness of each extended feature, and asking your questions on your code.Note that to show the correct implementation of your feature, you MUST design ascenario (i.e., a planned list of swap operations) by yourself, and demo how yourfeatures work to the TA on the project demo day.如有需要,请加QQ:99515681 或邮箱:99515681@qq.com

添加老师微信回复‘’官网 辅导‘’获取专业老师帮助,或点击联系老师1对1在线指导