Skip to content

Latest commit

 

History

History
43 lines (36 loc) · 1.59 KB

documentation.md

File metadata and controls

43 lines (36 loc) · 1.59 KB

Hilo Class Documentation

Classes

Card

Attributes

  • number: int

Methods

  • __init__(min, max): None
  • __eq__(obj): boolean
  • __lt__(obj): boolean
  • __gt__(obj): boolean

Director

Attributes

  • min_card: int
  • max_card: int
  • ask_h_or_l_func: function
  • right_guess_func: function
  • wrong_guess_func: function
  • same_number_func: function

Methods

  • __init__(min_card, max_card, ask_h_or_l, right_guess, wrong_guess, same_number): None
  • next_play(): None

Behavioral Relationship

Main Director Card
next_play() Card(min,max) __init__(min,max)
Card(min_max) __init__(min,max)
input('Higher or lower?') ask_h_or_l()
__lt__(), __eq__(), __gt__()
score += POINTS right_guess(), wrong_guess()
input('Play again?')