Either a duel in which you face the computer. You have 15 cards. Your opponent has the same. Each game consists of 5 rounds. In each of these rounds, you must place a Molecule card, a Property card,...


Either a duel in which you face the computer. You have 15 cards. Your opponent has the same. Each game consists of 5 rounds. In each of these rounds, you must place a Molecule card, a Property card, and a card containing a combination of temperature and pressure. Once the 3 cards are placed by you and your opponent (the computer), the combination of molecule / property / temperature / pressure resulting in the highest numerical value wins the round. The goal is to win the most rounds among the 5 rounds.The module allowing you to play is called projecta21, which you can install on your computer in the Spyder console:


! pip install projecta21 You can then import the module in this way:First element


A script called autoplay.py (which must be imported as autoplay) which contains the selection function. This function must take two input arguments: The first argument corresponds to the part variable. The second argument corresponds, to the first card selection in the game, to an empty list. The selection function must return two lists: The first list (list0) contains in the first position the string A, B or C and, in the second position, an integer with the value 0, 1, 2, 3 or 4. You program what you want in the second list (list1). This list will be reused as the second argument when calling the selection function. It's up to you to decide / schedule what this list will contain. Second element A script called qwe.py. This script must play levels from 0 to 99 automatically by repeatedly calling the selection function contained in autojeu.py. If a level is lost, the script should not play subsequent levels. The script should display the number of levels achieved in the console. Third element An interface allowing you to play the game manually. The interface must ask at what level (0 to 99) you want to play.
















Nov 30, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here