Question: Question 3 - Squid Game [5 points] If you haven't heard already, Netflix's newest show Squid Game, which is a Korean Survival Drama, has
![Question 3 - Squid Game [5 points] If you haven't heard already,](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2022/11/6381ed1da5dac_2296381ed1d72740.jpg)
Question 3 - Squid Game [5 points] If you haven't heard already, Netflix's newest show "Squid Game", which is a Korean Survival Drama, has broken all records and has become the most watched show around the world recently. The general idea of the show Squid Game is that a group of players compete with each other in a "contest" to win #45.6 Billion by playing familar children games. The catch is that each round (there are 6 rounds in total) only the winners proceed to the next round, and well, the others get killed... However, there is a rule that "if the majority of players agree to abandon the game, the game ends." Keeping this rule in mind, write a function called endSquidGame (motivation_list), which takes a list of floats motivation_list that contains the motivation levels of each player between 0 and 100, and returns a str that indicates if the game ends, and when. To do this, follow the ideas that: . Before every round, the players vote on whether they want to abandon the game or not If a player's motivation level is under 45, they will vote Yes for abandoning the game. Otherwise, they would want to continue playing and vote No . If more people vote for abandoning the game, then the games end and your output will be a string which will look something like Game abandoned before round "N" where N is an integer between 1 and 6 . If the majority of people vote for continuing the game, or there is a tie, then the game moves to the next round and the next game is played . After each game there are a few changes to the motivation levels: . Every round, people will die, or there will be a winner: A 0 If there are more than 13 players left, kill the 10 people with the lowest motivation score. If there are between 13 to 4 players inclusive, kill n 3 players, where n is the amount of remaining players. o If there are 3 players or less, 1 player is killed. If there is 1 player remaining, the games end and you must return Game won on round "N", where N is the current round. . After seeing their friends get killed, the remaining players' motivation levels decrease by 2% of the original level, unless their motivation level is already below 35, in which case they would instead be happy for surviving the round and their motivation levels would increase 5% . After these changes, the players vote again before playing the next round . If the game doesn't abandon and there are more then one survivor after the final round, then you would output Game not abandoned
Step by Step Solution
3.53 Rating (156 Votes )
There are 3 Steps involved in it
Answer Code import random importing modules def line line function for printing new lines and a patt... View full answer
Get step-by-step solutions from verified subject matter experts
