Highlights of the 11th Lanqiao Cup Scratch Provincial Competition

programming questions

Question 1 Quiz

Match

topic description

programming

Match

There are a total of four buckled cards that are the same in pairs, and two cards are turned over each time. If the two cards are the same, they will disappear, and if the two cards are not the same, they will be deducted again. When all the cards on the stage disappear, you pass the level

.1) Create four classic card characters, each card contains two shapes (front and back), two of which are kittens, and the other two are puppies, and the backs of the cards are all the same;

Specific requirements:

 

2). When the green flag is clicked, the four cards will appear in the four positions shown in the figure in a random order in a face-down state (cannot overlap), reference coordinates: (-100, 100),,

(-100,-50) 、(50,-50) ;

(50,100)

3. Choose a card arbitrarily, and click to turn over the card. Whenever two cards are turned over, it is necessary to judge whether the two cards are the same. If they are the same, the two cards disappear. If they are not the same, the two cards will be returned and wait for the next flop;

4. When all four cards on the complex are eliminated, the game is successful. The kitten character appears in the center of the complex and tells the game time from the beginning of the paper yard to the elimination of all the cards, which lasts for 2 seconds. And add this game time to the last item of the list "transcript", and the list "transcript" will also be displayed on the stage at this time;

Guess you like

Origin blog.csdn.net/IT_Scratch/article/details/130900198