gamble.models.golf

golf related games

Classes

Course(name, holes)

a golf course object

Group(course, players)

a golf group object

Hole(tee, yards, par, handicap)

a golf hole object

Player(name, handicap)

a golf player object

class gamble.models.golf.Course(name: str, holes: list[gamble.models.golf.Hole])[source]

Bases: object

a golf course object

Parameters:
  • name (str) – the name of this golf course

  • holes (list[gamble.models.golf.Hole]) – a list of holes in this golf course

class gamble.models.golf.Group(course: gamble.models.golf.Course, players: list[gamble.models.golf.Player])[source]

Bases: object

a golf group object

Parameters:
class gamble.models.golf.Hole(tee: int, yards: int, par: int, handicap: int)[source]

Bases: object

a golf hole object

Parameters:
  • tee (int) –

  • yards (int) –

  • par (int) –

  • handicap (int) –

__init__(tee: int, yards: int, par: int, handicap: int) None[source]

hole constructor

Parameters:
  • tee (int) – the tee number for this hole

  • yards (int) – the number of yards from tee to hole

  • par (int) – the par for this hole

  • handicap (int) – the handicap value for this hole

Return type:

None

class gamble.models.golf.Player(name: str, handicap: int)[source]

Bases: object

a golf player object

Parameters:
  • name (str) – the name of the player

  • handicap (int) – the handicap of the player