CMPUT174 Lecture Notes - Lecture 10: Morphism Of Algebraic Varieties, Operand

123 views4 pages
ceruleanzebra152 and 30 others unlocked
CMPUT174 Full Course Notes
25
CMPUT174 Full Course Notes
Verified Note
25 documents

Document Summary

Q1 for each of the following underlined and bolded functions used in poke version 1, indicate which is a regular function and which is a method. For each function or method, indicate whether it is built-in, user-defined or imported. For each function or method, also indicate what is the type of object returned by the function or method. Type of object window. get_surface() method imported pygame. surface game = game(window) function user-defined. Nonetype self. color = pygame. color(color) function imported pygame. color self. small_dot = dot("red", [50,75], 30, Dot self. draw() self. update() self. decide_continue() method method method user-defined. Nonetype event = pygame. event. poll(). function imported pygame. eventtype self. big_dot. move() self. window. clear() self. small_dot. draw() method method method user-defined. Nonetype pygame. draw. circle(self. surface, self. color, self. center, self. radius) function imported pygame. rect size = self. window. get_surface(). get_size() method imported tuple. Q2 use the following code fragment from poke version 1 to answer the questions. def play(self): # play the game until the player presses the close box. # - self is the game that should be continued or not. while not self. close_clicked:

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents

Related Questions