Question: pls use python programming code to do this question 14 ABC ABB (5 marks) Run 3 Orestock, 1-mate, 2-outstanding. Enter choices : Summarised Data for
14 ABC ABB (5 marks) Run 3 Orestock, 1-mate, 2-outstanding. Enter choices : Summarised Data for OUTSTANDING ABBE 3 Question 3 Develop an NxN memory card game and allow 2-4 players to play. On the face of each card is a single letter, A-Z. The cards are shuffled and randomly placed face down in N-column and N-row grid. Players take turn to pick two cards at cach turn. Whenever a player picks 2 cards with matching letters, the cards are placed face up, and the player earns one point. The player gets to pick another pair repeatedly until the letters do not match or there are no more cards to pick The game can be placed at 2 levels: Levell N is 4, resulting in a 4x4 grid. Letters are randomly chosen and assigned to either 2 cards or 4 cards, repeatedly until 16 cards have been assigned letters. Level 2 N is an integer between 2 to 7. If the number of cells in the grid is odd, the last grid position is left empty and is marked NIL so only an even number of cards will be used in each game. For example, when N is 3, 5 or 7, there are 8, 24 or 48 cards respectively. Letters are randomly chosen and assigned to either only I card or 2 cards. The letters on cards may come in pairs (50% chance) or there can be exactly 2 letters without a match (50% chance). Implement the memory card game. Your collections can be ONLY of these types: un- nested lists, dict or str collections. Note: The implementation of level 2 game play is worth 14 marks. You may implement level 1 first and then build level 2 on top of the implementation for level 1. Start the application by getting the names of the players. There should be 2 to 4 players with no repeating names. The same set of players will play one or more memory games until the application ends. Before each new game commences, the application randomly orders the players, and this will be the order that the players take their turn. (4 marks)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
