Example #1
0
    def __extract_samples_exercise(self,
                                   exercise: Exercise) -> List[MoneySample]:
        """ Extract all Money Samples from a given exercise.

        Arguments:
            exercise (Exercise): The exercise from which all Money Samples are extracted.

        Returns:
            All Money Samples related to the given exercise.
        """
        major_earned = exercise.major_earned()
        minor_earned = exercise.minor_earned()

        return [
            self.__extract_single_sample(exercise, player, major_earned,
                                         minor_earned)
            for player in exercise.alive
        ]
Example #2
0
from Data.Player import Player

# Aflevering 1
# Opdracht 1 (Maximaal €4000):
# €300 (Major: Janine), €200 (Major: Joep), €200 (Major: Carolien), €100 (Major: Kees)
# Opdracht 2 (Maximaal €10000): Niks verdiend
alive1 = {
    Player.CAROLIEN_13, Player.DANIEL_13, Player.EWOUT_13, Player.JANINE_13,
    Player.JOEP_13, Player.KEES_13, Player.PAULIEN_13, Player.TANIA_13,
    Player.TIM_13, Player.ZARAYDA_13
}
exercise1_1 = Exercise(episode=1,
                       alive=alive1,
                       maximum=4000,
                       earned=[
                           Earning(money=300, major={Player.JANINE_13}),
                           Earning(money=200, major={Player.JOEP_13}),
                           Earning(money=200, major={Player.CAROLIEN_13}),
                           Earning(money=100, major={Player.KEES_13})
                       ])
exercise1_2 = Exercise(episode=1, alive=alive1, maximum=10000, earned=[])

# Aflevering 2
# Opdracht 1 (Maximaal €3000):
# €1000 (Major: Carolien) (Minor: Kees, Tim)
# Opdracht 2 (Maximaal €2000):
# €500 (Major: Carolien, Joep, Paulien)
# Opdracht 3 (Maximaal €?):
# €750 (Major: Daniel) (Minor: Allen), 1x (Major: Janine, Tim) (Minor: Allen), 1x (Major: Kees) (Minor: Allen),
# 1x (Major: Joep) (Minor: Allen), 1x (Major: Carolien, Tim) (Minor: Allen) (€1750 in totaal verdiend)
alive2 = {
Example #3
0
from Data.MoneyData.Dataclasses.Season import Season
from Data.MoneyData.Dataclasses.Exercise import Exercise
from Data.MoneyData.Dataclasses.Earning import Earning
from Data.Player import Player

# Aflevering 1
# Opdracht 1 (Maximaal €2500): Niks verdiend
# Opdracht 2 (Maximaal €1000): Gezamelijk verdiend
# Opdracht 3 (Maximaal €1800):
# €300 (Major: Nikkie) (Minor: Rick-Paul, Niels)
alive1 = {Player.EVELIEN_19, Player.EVI_19, Player.JAMIE_19, Player.MEREL_19, Player.NIELS_19, Player.NIKKIE_19,
          Player.RICK_PAUL_19, Player.ROBERT_19, Player.SARAH_19, Player.SINAN_19}
exercise1_1 = Exercise(episode = 1, alive = alive1, maximum = 2500, earned = [])
exercise1_2 = Exercise(episode = 1, alive = alive1, maximum = 1000, earned = [])
exercise1_3 = Exercise(episode = 1, alive = alive1, maximum = 1800, earned = [
                            Earning(money = 300, major = {Player.NIKKIE_19}, minor = {Player.RICK_PAUL_19, Player.NIELS_19})
                        ])

# Aflevering 2
# Opdracht 1 (Maximaal €1200):
# €300 (Major: Nikkie, Rick-Paul) (Minor: Evelien, Evi, Jamie, Merel, Niels, Robert, Sarah, Sinan)
# Opdracht 2 (Maximaal €3500):
# €250 (Major: Merel), €50 (Major: Rick-Paul), €125 (Major: Robert), €225 (Major: Evi)
# Opdracht 3 (Maximaal €2500):
# €250 (Major: Niels), €250 (Major: Sarah), €250 (Major: Jamie), -€250 (Major: Evelien), -€250 (Major: Evi),
# -€250 (Major: Nikkie), -€250 (Major: Rick-Paul),
alive2 = {Player.EVELIEN_19, Player.EVI_19, Player.JAMIE_19, Player.MEREL_19, Player.NIELS_19, Player.NIKKIE_19,
          Player.RICK_PAUL_19, Player.ROBERT_19, Player.SARAH_19, Player.SINAN_19}
exercise2_1 = Exercise(episode = 2, alive = alive2, maximum = 1200, earned = [
                            Earning(money = 300, major = {Player.NIKKIE_19, Player.RICK_PAUL_19},
                                    minor = {Player.EVELIEN_19, Player.EVI_19, Player.JAMIE_19, Player.MEREL_19,
Example #4
0
from Data.MoneyData.Dataclasses.Exercise import Exercise
from Data.MoneyData.Dataclasses.Earning import Earning
from Data.Player import Player

# Aflevering 1
# Opdracht 1 (Maximaal €0): Niks verdiend
# Opdracht 2 (Maximaal €2500): Niet duidelijk wie wat verdiend heeft
# Opdracht 3 (Maximaal €2100):
# €18 (Major: Buddy) (Minor: Anita, Jaike, Johan, Miljuschka, Nathan),
# €2 (Major: Johan) (Minor: Jaike, Miljuschka, Nathan)
alive1 = {
    Player.ANITA_20, Player.BUDDY_20, Player.CLAES_20, Player.JAIKE_20,
    Player.JOHAN_20, Player.LEONIE_20, Player.MILJUSCHKA_20, Player.NATHAN_20,
    Player.ROB_20, Player.TINA_20
}
exercise1_2 = Exercise(episode=1, alive=alive1, maximum=2500, earned=[])
exercise1_3 = Exercise(episode=1,
                       alive=alive1,
                       maximum=2100,
                       earned=[
                           Earning(money=18,
                                   major={Player.BUDDY_20},
                                   minor={
                                       Player.ANITA_20, Player.JAIKE_20,
                                       Player.JOHAN_20, Player.MILJUSCHKA_20,
                                       Player.NATHAN_20
                                   }),
                           Earning(money=2,
                                   major={Player.JOHAN_20},
                                   minor={
                                       Player.JAIKE_20, Player.MILJUSCHKA_20,
Example #5
0
# Aflevering 1
# Opdracht 1 (Onbeperkt): Gezamelijk verdiend
# Opdracht 2 (Maximaal €2500):
# €2500 (Major: Inge, Renate) (Minor: Eva, Menno, Nadja, Sander)
# Opdracht 3 (Maximaal €2250): Niks verdiend
alive1 = {
    Player.ALEX_7, Player.DICK_7, Player.EVA_7, Player.INGE_7,
    Player.LIESBETH_7, Player.MENNO_7, Player.NADJA_7, Player.PAUL_7,
    Player.RENATE_7, Player.SANDER_7
}
exercise1_2 = Exercise(episode=1,
                       alive=alive1,
                       maximum=2500,
                       earned=[
                           Earning(money=2500,
                                   major={Player.INGE_7, Player.RENATE_7},
                                   minor={
                                       Player.EVA_7, Player.MENNO_7,
                                       Player.NADJA_7, Player.SANDER_7
                                   })
                       ])
exercise1_3 = Exercise(episode=1, alive=alive1, maximum=2250, earned=[])

# Aflevering 2
# Opdracht 1 (Maximaal €3000): Niks verdiend
# Opdracht 2 (Maximaal €10000): Niks verdiend
alive2 = {
    Player.ALEX_7, Player.DICK_7, Player.EVA_7, Player.INGE_7,
    Player.LIESBETH_7, Player.MENNO_7, Player.NADJA_7, Player.PAUL_7,
    Player.RENATE_7
}
Example #6
0
from Data.MoneyData.Dataclasses.Season import Season
from Data.MoneyData.Dataclasses.Exercise import Exercise
from Data.MoneyData.Dataclasses.Earning import Earning
from Data.Player import Player

# Aflevering 1
# Opdracht 1 (Maximaal €2000): Niks verdiend
# Opdracht 2 (Maximaal €2000): Niks verdiend
alive1 = {Player.AJOUAD_15, Player.CAROLINA_15, Player.CHRIS_15, Player.EVELIEN_15, Player.MARGRIET_15, Player.MARLIJN_15,
          Player.MARTINE_15, Player.PIETER_15, Player.RIK_15, Player.VIKTOR_15}
exercise1_1 = Exercise(episode = 1, alive = alive1, maximum = 2000, earned = [])
exercise1_2 = Exercise(episode = 1, alive = alive1, maximum = 2000, earned = [])

# Aflevering 2
# Opdracht 1 (Maximaal €2000):
# -€100 (Major: Chris), -€100 (Major: Marlijn), -€100 (Major: Viktor), -€100 (Major: Margriet), -€100 (Major: Marlijn),
# -€100 (Major: Evelien), -€100 (Major: Carolina), -€100 (Major: Chris), €900 (Minor: Allen)
# Opdracht 2 (Maximaal €1500):
# €500 (Major: Ajouad, Evelien) (Minor: Carolina), €500 (Major: Margriet, Rik) (Minor: Marlijn),
# €500 (Major: Chris, Viktor) (Minor: Martine)
# Opdracht 3 (Maximaal €1500): Gezamelijk verdiend
# Daarnaast: -€200 ingeleverd door Margriet (en deels Martine)
alive2 = {Player.AJOUAD_15, Player.CAROLINA_15, Player.CHRIS_15, Player.EVELIEN_15, Player.MARGRIET_15, Player.MARLIJN_15,
          Player.MARTINE_15, Player.RIK_15, Player.VIKTOR_15}
exercise2_1 = Exercise(episode = 2, alive = alive2, maximum = 2000, earned = [
                            Earning(money = 900, minor = {Player.AJOUAD_15, Player.CAROLINA_15, Player.CHRIS_15,
                                Player.EVELIEN_15, Player.MARGRIET_15, Player.MARLIJN_15, Player.MARTINE_15,
                                Player.RIK_15, Player.VIKTOR_15}),
                            Earning(money = -200, major = {Player.CHRIS_15}),
                            Earning(money = -200, major = {Player.MARLIJN_15}),
                            Earning(money = -100, major = {Player.VIKTOR_15}),
Example #7
0
# Opdracht 2 (Maximaal €2000):
# Barbara (Major: Manuel) (Minor: Barbara), Kim (Major: Loretta) (Minor: Kim), Erik (Major: Arjen) (Minor: Erik),
# Arjen (Major: Arjen), Hind (Major: Tim) (Minor: Hind), Tim (Major: Tim), Sanne (Major: Arjen, Hind) (Minor: Sanne),
# Frits (Minor: Barbara, Erik, Frits, Kim, Sanne, Tim)
# €250 (Per correct persoon)
alive1 = {
    Player.ARJEN_10, Player.BARBARA_10, Player.ERIK_10, Player.FRITS_10,
    Player.HIND_10, Player.KIM_10, Player.LORETTA_10, Player.MANUEL_10,
    Player.SANNE_10, Player.TIM_10
}
exercise1_1 = Exercise(episode=1,
                       alive=alive1,
                       maximum=8000,
                       earned=[
                           Earning(money=1000,
                                   major={Player.ERIK_10, Player.TIM_10},
                                   minor={
                                       Player.ARJEN_10, Player.BARBARA_10,
                                       Player.HIND_10, Player.KIM_10,
                                       Player.LORETTA_10, Player.SANNE_10
                                   }),
                       ])
exercise1_2 = Exercise(episode=1,
                       alive=alive1,
                       maximum=2000,
                       earned=[
                           Earning(money=250,
                                   major={Player.MANUEL_10},
                                   minor={Player.BARBARA_10}),
                           Earning(money=250,
                                   major={Player.LORETTA_10},
                                   minor={Player.KIM_10}),
Example #8
0
from Data.Player import Player

# Aflevering 1
# Opdracht 1 (Maximaal €5000): (Telt niet mee omdat de Mol nog niet gekozen was)
# €500 (Major: Dennis), -€500 (Major: Vivienne), €? (Major: Rick), €? (Major: Anniek), -€500 (Major: Sebastiaan),
# -€500 (Major: Vera), -€500 (Major: Jon), €? (Major: Paula), €? (Major: Hans), -€500 (Major: Froukje)
# 8x -€500 en 2x +€500
# Opdracht 2 (Maximaal €3000):
# €3000 (Major: Sebastiaan) (Minor: Allen)
# Opdracht 3 (Maximaal €0):
# -€1000 (Major: Dennis, Jon), -€1000 (Major: Paula, Rick)
alive1 = {Player.ANNIEK_9, Player.DENNIS_9, Player.FROUKJE_9, Player.HANS_9, Player.JON_9, Player.PAULA_9,
          Player.RICK_9, Player.SEBASTIAAN_9, Player.VERA_9, Player.VIVIENNE_9}
exercise1_2 = Exercise(episode = 1, alive = alive1, maximum = 3000, earned = [
                            Earning(money = 3000, major = {Player.SEBASTIAAN_9}, minor = {Player.ANNIEK_9,
                                Player.DENNIS_9, Player.FROUKJE_9, Player.HANS_9, Player.JON_9, Player.PAULA_9,
                                Player.RICK_9, Player.VERA_9, Player.VIVIENNE_9})
                        ])
exercise1_3 = Exercise(episode = 1, alive = alive1, maximum = None, earned = [
                            Earning(money = -1000, major = {Player.DENNIS_9, Player.JON_9}),
                            Earning(money = -1000, major = {Player.PAULA_9, Player.RICK_9})
                        ])

# Aflevering 2
# Opdracht 1 (Maximaal €10000):
# €2300 (Major: Anniek, Hans)
# Opdracht 2 (Maximaal €?): Te complex om te analyseren
# Opdracht 3 (Maximaal €2000):
# €500 (Major: Rick) (Minor: Anniek, Dennis) (Huisnummers), €500 (Major: Dennis) (Tattoo's)
alive2 = {Player.ANNIEK_9, Player.DENNIS_9, Player.FROUKJE_9, Player.HANS_9, Player.JON_9, Player.PAULA_9,
          Player.RICK_9, Player.SEBASTIAAN_9, Player.VIVIENNE_9}
Example #9
0
from Data.MoneyData.Dataclasses.Exercise import Exercise
from Data.MoneyData.Dataclasses.Earning import Earning
from Data.Player import Player

# Aflevering 1
# Opdracht 1 (Maximaal €10000):
# -€500 (Major: Emilio, Stine), €2000 (Major: Ruben) (Minor: Olcay), -€1000 (Major: Olcay, Ruben),
# -€1000 (Major: Emilio, Stine), -€1000 (Major: Loes, Ron), -€1000 (Major: Jan, Jean-Marc),
# -€500 (Minor: Bella, Emilio, Jan, Jean-Marc, Loes, Olcay, Ron, Ruben, Simone, Stine)
alive1 = {Player.BELLA_18, Player.EMILIO_18, Player.JAN_18, Player.JEAN_MARC_18, Player.LOES_18, Player.OLCAY_18,
          Player.RON_18, Player.RUBEN_18, Player.SIMONE_18, Player.STINE_18}
exercise1_1 = Exercise(episode = 1, alive = alive1, maximum = 10000, earned = [
                            Earning(money = -1500, major = {Player.EMILIO_18, Player.STINE_18}),
                            Earning(money = 2000, major = {Player.RUBEN_18}, minor = {Player.OLCAY_18}),
                            Earning(money = -1000, major = {Player.OLCAY_18, Player.RUBEN_18}),
                            Earning(money = -1000, major = {Player.LOES_18, Player.RON_18}),
                            Earning(money = -1000, major = {Player.JAN_18, Player.JEAN_MARC_18}),
                            Earning(money = -500, minor = {Player.BELLA_18, Player.EMILIO_18, Player.JAN_18,
                                Player.JEAN_MARC_18, Player.LOES_18, Player.OLCAY_18, Player.RON_18, Player.RUBEN_18,
                                Player.SIMONE_18, Player.STINE_18}),
                        ])

# Aflevering 2
# Opdracht 1 (Maximaal €1000):
# €20 (Major: Olcay), €60 (Major: Jan) (Minor: Olcay), €120 (Major: Emilio) (Minor: Jan, Olcay),
# €200 (Major: Jean-Marc) (Minor: Emilio, Jan, Olcay), €600 (Major: Ruben) (Minor: Emilio, Jan, Jean-Marc, Olcay),
# €1000 (Major: Ruben) (Minor: Emilio, Jan, Jean-Marc, Olcay) (All multiplied by 0.86)
# Opdracht 2 (Maximaal €2000): Niks verdiend
# Opdracht 3 (Maximaal €3000): Gezamelijk verdiend
alive2 = {Player.BELLA_18, Player.EMILIO_18, Player.JAN_18, Player.JEAN_MARC_18, Player.LOES_18, Player.OLCAY_18,
          Player.RUBEN_18, Player.SIMONE_18, Player.STINE_18}
exercise2_1 = Exercise(episode = 2, alive = alive2, maximum = 1000, earned = [
Example #10
0
# Opdracht 1 (Maximaal €1500):
# €250 (Major: Coen) (Minor: Regina), €250 (Major: Annette) (Minor: Georgina). €250 (Major: Regina) (Minor: Patrick)
# Opdracht 2 (Maximaal €5000):
# €1000 (Major: Georgina), €1000 (Major: Nicolette) (Minor: Georgina), €1000 (Major: Dunya) (Minor: Georgina, Nicolette)
# Opdracht 3 (Maximaal €0):
# 10 jokers van de 17 zijn ingeleverd (-€1000 dus)
# Annette: 2 jokers, Coen: 1 joker, Dennis: 1 joker, Dunya: 1 joker, Edo: 1 joker, Georgina: 3 jokers, Joris: 2 jokers,
# Nicolette: 1 joker, Patrick: 2 jokers, Regina: 3 jokers
# -€200 (Major: Patrick), -€100 (Major: Dunya), -€300 (Major: Georgina), -€100 (Major: Nicolette),
# -€75 (Minor: Annette), -€75 (Minor: Joris), -€37.50 (Minor: Coen), -€37.50 (Minor: Dennis), -€37.50 (Minor: Edo),
# -€37.50 (Minor: Regina)
alive1 = {Player.ANNETTE_8, Player.COEN_8, Player.DENNIS_8, Player.DUNYA_8, Player.EDO_8, Player.GEORGINA_8,
          Player.JORIS_8, Player.NICOLETTE_8, Player.PATRICK_8, Player.REGINA_8}
exercise1_1 = Exercise(episode = 1, alive = alive1, maximum = 1500, earned = [
                            Earning(money = 250, major = {Player.COEN_8}, minor = {Player.REGINA_8}),
                            Earning(money = 250, major = {Player.ANNETTE_8}, minor = {Player.GEORGINA_8}),
                            Earning(money = 250, major = {Player.REGINA_8}, minor = {Player.PATRICK_8})
                        ])
exercise1_2 = Exercise(episode = 1, alive = alive1, maximum = 5000, earned = [
                            Earning(money = 1000, major = {Player.GEORGINA_8}),
                            Earning(money = 1000, major = {Player.NICOLETTE_8}, minor = {Player.GEORGINA_8}),
                            Earning(money = 1000, major = {Player.DUNYA_8}, minor = {Player.GEORGINA_8, Player.NICOLETTE_8})
                        ])
exercise1_3 = Exercise(episode = 1, alive = alive1, maximum = None, earned = [
                            Earning(money = -75, minor = {Player.ANNETTE_8}),
                            Earning(money = -37.50, minor = {Player.COEN_8}),
                            Earning(money = -37.50, minor = {Player.DENNIS_8}),
                            Earning(money = -100, major = {Player.DUNYA_8}),
                            Earning(money = -37.50, minor = {Player.EDO_8}),
                            Earning(money = -300, major = {Player.GEORGINA_8}),
                            Earning(money = -75, minor = {Player.JORIS_8}),
Example #11
0
from Data.MoneyData.Dataclasses.Earning import Earning
from Data.Player import Player

# Aflevering 1
# Opdracht 1 (Maximaal €5000): Niks verdiend
# €10 (Major: Miryanna), €20 (Major: Jan) (Minor: Miryanna), €30 (Major: Hanna) (Minor: Jan, Miryanna),
# €40 (Major: Horace) (Minor: Jan, Miryanna, Hanna)
# Opdracht 2 (Maximaal €2500): Niks verdiend
# Opdracht 3 (Maximaal €10000):
# €3000 (Major: Karin), €3000 (Major: Miryanna)
alive1 = {Player.ANNA_11, Player.ART_11, Player.HANNA_11, Player.HORACE_11, Player.JAN_11, Player.KARIN_11,
          Player.MIRYANNA_11, Player.PATRICK_11, Player.PEPIJN_11, Player.SOUNDOS_11}
exercise1_1 = Exercise(episode = 1, alive = alive1, maximum = 5000, earned = [
                            Earning(money = 10, major = {Player.MIRYANNA_11}),
                            Earning(money = 20, major = {Player.JAN_11}, minor = {Player.MIRYANNA_11}),
                            Earning(money = 30, major = {Player.HANNA_11}, minor = {Player.JAN_11, Player.MIRYANNA_11}),
                            Earning(money = 40, major = {Player.HORACE_11}, minor = {Player.HANNA_11, Player.JAN_11,
                                Player.MIRYANNA_11})
                        ])
exercise1_2 = Exercise(episode = 1, alive = alive1, maximum = 2500, earned = [])
exercise1_3 = Exercise(episode = 1, alive = alive1, maximum = 10000, earned = [
                            Earning(money = 3000, major = {Player.KARIN_11}),
                            Earning(money = 3000, major = {Player.MIRYANNA_11})
                        ])

# Aflevering 2
# Opdracht 1 (Maximaal €2500):
# €250 (Minor: Karin), €250 (Minor: Miryanna), €250 (Minor: Pepijn), €250 (Minor: Anna), €250 (Minor: Jan),
# €250 (Minor: Soundos)
# Opdracht 2 (Maximaal €2500):
# €1500 (Major: Jan) (Minor: Karin, Patrick, Miryanna, Hanna, Soundos, Horace, Anna, Art)
Example #12
0
from Data.MoneyData.Dataclasses.Season import Season
from Data.MoneyData.Dataclasses.Exercise import Exercise
from Data.MoneyData.Dataclasses.Earning import Earning
from Data.Player import Player

# Aflevering 1
# Opdracht 1 (Maximaal €1000): Gezamelijk verdiend
# Opdracht 2 (Maximaal €2000): Niks verdiend
alive1 = {Player.AIREN_16, Player.ANNEMIEKE_16, Player.CECILE_16, Player.ELLIE_16, Player.KLAAS_16, Player.MARJOLEIN_16,
          Player.REMY_16, Player.ROP_16, Player.TAEKE_16, Player.TIM_16}
exercise1_1 = Exercise(episode = 1, alive = alive1, maximum = 1000, earned = [])
exercise1_2 = Exercise(episode = 1, alive = alive1, maximum = 2000, earned = [])

# Aflevering 2
# Opdracht 1 (Maximaal €2000): Niks verdiend
# Opdracht 2 (Maximaal €2000): 1e goed, 2e goed, 3e fout, 4e fout, 5e fout, 6e fout, 7e fout, 8e goed, 9e goed (All)
# €100 (Major: Airen, Cecile, Tim) (Minor: Marjolein), €100 (Major: Airen, Cecile, Tim) (Minor: Marjolein),
# €100 (Major: Klaas, Rop, Taeke) (Minor: Marjolein), €100 (Minor: Rest)
# Opdracht 3 (Maximaal €0): Niks verdiend
alive2 = {Player.AIREN_16, Player.ANNEMIEKE_16, Player.CECILE_16, Player.ELLIE_16, Player.KLAAS_16, Player.MARJOLEIN_16,
          Player.REMY_16, Player.ROP_16, Player.TAEKE_16, Player.TIM_16}
exercise2_1 = Exercise(episode = 2, alive = alive2, maximum = 2000, earned = [])
exercise2_2 = Exercise(episode = 2, alive = alive2, maximum = 2000, earned = [
                            Earning(money = 200, major = {Player.AIREN_16, Player.CECILE_16, Player.TIM_16},
                                    minor = {Player.MARJOLEIN_16}),
                            Earning(money = 100, major = {Player.KLAAS_16, Player.ROP_16, Player.TAEKE_16},
                                    minor = {Player.MARJOLEIN_16}),
                            Earning(money = 100, minor = {Player.AIREN_16, Player.ANNEMIEKE_16, Player.CECILE_16,
                                    Player.ELLIE_16, Player.KLAAS_16, Player.MARJOLEIN_16, Player.REMY_16, Player.ROP_16,
                                    Player.TAEKE_16, Player.TIM_16}),
                        ])
Example #13
0
# €1000 (Major: Sanne) (Minor: Diederik, Imanuelle), €250 (Major: Yvonne) (Minor: Jochem, Sigrid)
# Opdracht 3 (Maximaal €0): Niks verdiend
alive1 = {
    Player.DIEDERIK_17, Player.IMANUELLE_17, Player.JEROEN_17,
    Player.JOCHEM_17, Player.ROOS_17, Player.SANNE_17, Player.SIGRID_17,
    Player.THOMAS_17, Player.VINCENT_17, Player.YVONNE_17
}
exercise1_2 = Exercise(
    episode=1,
    alive=alive1,
    maximum=2500,
    earned=[
        Earning(money=750,
                major={Player.IMANUELLE_17},
                minor={Player.DIEDERIK_17, Player.SANNE_17}),
        Earning(money=500,
                major={Player.JOCHEM_17},
                minor={Player.SIGRID_17, Player.YVONNE_17}),
        Earning(money=1000,
                major={Player.SANNE_17},
                minor={Player.DIEDERIK_17, Player.IMANUELLE_17}),
        Earning(money=250,
                major={Player.YVONNE_17},
                minor={Player.JOCHEM_17, Player.SIGRID_17}),
    ])

# Aflevering 2
# Opdracht 1 (Maximaal €3500):
# €100 (Major: Jochem) (Minor: Yvonne), €50 (Major: Jochem) (Minor: Yvonne), €50 (Major: Jochem) (Minor: Yvonne),
# €250 (Major: Yvonne) (Minor: Jochem)
# Opdracht 2 (Maximaal €?):
# €500 (Major: Sanne), €500 (Major: Imanuelle), €250 (Major: Thomas)
Example #14
0
from Data.MoneyData.Dataclasses.Season import Season
from Data.MoneyData.Dataclasses.Exercise import Exercise
from Data.MoneyData.Dataclasses.Earning import Earning
from Data.Player import Player

# Aflevering 1
# Opdracht 1 (Maximaal €2000):
# €400 (Major: Jennifer, Susan) (Minor: Aaf, Daphne, Freek, Jan-Willem, Maurice, Owen, Sophie, Tygo)
# Opdracht 2 (Maximaal €2000): Niks verdiend
alive1 = {Player.AAF_14, Player.DAPHNE_14, Player.FREEK_14, Player.JAN_WILLEM_14, Player.JENNIFER_14, Player.MAURICE_14,
          Player.OWEN_14, Player.SOFIE_14, Player.SUSAN_14, Player.TYGO_14}
exercise1_1 = Exercise(episode = 1, alive = alive1, maximum = 2000, earned = [
                            Earning(money = 400, major = {Player.JENNIFER_14, Player.SUSAN_14}, minor = {Player.AAF_14,
                                Player.DAPHNE_14, Player.FREEK_14, Player.JAN_WILLEM_14, Player.MAURICE_14,
                                Player.OWEN_14, Player.SOFIE_14, Player.TYGO_14}),
                        ])
exercise1_2 = Exercise(episode = 1, alive = alive1, maximum = 2000, earned = [])

# Aflevering 2
# Opdracht 1 (Maximaal €2000): Niks verdiend
# Opdracht 2 (Maximaal €?):
# €500 (Major: Jennifer) (Minor: Sophie), €500 (Major: Freek) (Minor: Owen, Susan, Tygo), €500 (Major: Owen, Tygo),
# €500 (Major: Freek) (Minor: Owen)
# Opdracht 3 (Maximaal €?): Niks verdiend
alive2 = {Player.AAF_14, Player.DAPHNE_14, Player.FREEK_14, Player.JAN_WILLEM_14, Player.JENNIFER_14, Player.OWEN_14,
          Player.SOFIE_14, Player.SUSAN_14, Player.TYGO_14}
exercise2_1 = Exercise(episode = 2, alive = alive2, maximum = 2000, earned = [])
exercise2_2 = Exercise(episode = 2, alive = alive2, maximum = None, earned = [
                            Earning(money = 500, major = {Player.JENNIFER_14}, minor = {Player.SOFIE_14}),
                            Earning(money = 500, major = {Player.FREEK_14}, minor = {Player.OWEN_14, Player.SUSAN_14,
                                Player.TYGO_14}),
Example #15
0
from Data.MoneyData.Dataclasses.Earning import Earning
from Data.Player import Player

# Aflevering 1
# Opdracht 1 (Maximaal €2500): Niks verdiend
# Opdracht 2 (Maximaal €1500):
# €75 (Major: Charlotte) (Minor: Remco), €100 (Major: Joshua) (Minor: Marije),
# €125 (Major: Rocky) (Minor: Charlotte), €150 (Major: Splinter)
# Opdracht 3 (Maximaal €2000):
# €900 (Major: Florentijn, Remco) (Minor: Allen)
alive1 = {
    Player.CHARLOTTE_22, Player.ERIK_22, Player.FLORENTIJN_22,
    Player.JOSHUA_22, Player.LAKSHMI_22, Player.MARIJE_22, Player.REMCO_22,
    Player.RENEE_22, Player.ROCKY_22, Player.SPLINTER_22
}
exercise1_1 = Exercise(episode=1, alive=alive1, maximum=2500, earned=[])
exercise1_2 = Exercise(episode=1,
                       alive=alive1,
                       maximum=1500,
                       earned=[
                           Earning(money=75,
                                   major={Player.CHARLOTTE_22},
                                   minor={Player.REMCO_22}),
                           Earning(money=100,
                                   major={Player.JOSHUA_22},
                                   minor={Player.MARIJE_22}),
                           Earning(money=125,
                                   major={Player.ROCKY_22},
                                   minor={Player.CHARLOTTE_22}),
                           Earning(money=150, major={Player.SPLINTER_22})
                       ])
Example #16
0
# Opdracht 1 (Maximaal €2000):
# €1000 (Major: Ellie, Horace) (Minor: Jeroen, Nikkie, Patrick, Ron, Tina)
# Opdracht 2 (Maximaal €2000): Onduidelijk wie wat verdiend heeft
# Opdracht 3 (Maximaal €2500):
# Horace (Major: €250) (Pas bekend aflevering 3)
alive1 = {
    Player.ELLIE_21, Player.HORACE_21, Player.JEROEN_21, Player.NADJA_21,
    Player.NIKKIE_21, Player.PATRICK_21, Player.PEGGY_21, Player.RON_21,
    Player.TINA_21, Player.TYGO_21
}
exercise1_1 = Exercise(episode=1,
                       alive=alive1,
                       maximum=2000,
                       earned=[
                           Earning(money=1000,
                                   major={Player.ELLIE_21, Player.HORACE_21},
                                   minor={
                                       Player.JEROEN_21, Player.NIKKIE_21,
                                       Player.PATRICK_21, Player.RON_21,
                                       Player.TINA_21
                                   })
                       ])
exercise1_2 = Exercise(episode=1, alive=alive1, maximum=2000, earned=[])
exercise1_3 = Exercise(
    episode=3,
    alive=alive1,
    maximum=2500,
    earned=[Earning(money=250, major={Player.HORACE_21}, minor=set())])

# Aflevering 2
# Opdracht 1 (Maximaal €2222.50):
# €80 (Major: Ellie, Horace, Patrick, Ron) (Minor: Jeroen, Nadja, Nikkie, Peggy, Tygo),
Example #17
0
from Data.MoneyData.Dataclasses.Earning import Earning
from Data.Player import Player

# Aflevering 1
# Opdracht 1 (Maximaal €2500): Niks verdiend
# Opdracht 2 (Maximaal €?):
# Liesbeth (0 kokers), Marion (0 kokers), Marit (3 kokers), Tim (1 koker), William (1 koker)
# Minor: Anne-Marie, Dio, Frits, Hadewych, Maarten
# -€500 verdiend
# Opdracht 3 (Maximaal €3000): Niks verdiend
alive1 = {
    Player.ANNE_MARIE_12, Player.DIO_12, Player.FRITS_12, Player.HADEWYCH_12,
    Player.LIESBETH_12, Player.MAARTEN_12, Player.MARIT_12, Player.MARION_12,
    Player.TIM_12, Player.WILLIAM_12
}
exercise1_1 = Exercise(episode=1, alive=alive1, maximum=2500, earned=[])
exercise1_2 = Exercise(episode=1,
                       alive=alive1,
                       maximum=None,
                       earned=[
                           Earning(money=-300,
                                   major={Player.MARIT_12},
                                   minor={
                                       Player.ANNE_MARIE_12, Player.DIO_12,
                                       Player.FRITS_12, Player.HADEWYCH_12,
                                       Player.MAARTEN_12
                                   }),
                           Earning(money=-100,
                                   major={Player.TIM_12},
                                   minor={
                                       Player.ANNE_MARIE_12, Player.DIO_12,