diff --git a/take5.py b/take5.py index 55dacea..4dce865 100644 --- a/take5.py +++ b/take5.py @@ -272,6 +272,18 @@ def cost_fun(card : Card) -> float: return best_card_so_far +class CheatingBastard(Player): + """This strategy is very good at avoiding any penalty points """ + + def choose_card(self, board: Board) -> Card: + return Card(1) + + def choose_row(self, board: Board) -> int: + """Oops""" + board.rows[0].clear() + return 0 + + class Take5: NR_TURNS = 10 NR_CARDS = 104 @@ -347,6 +359,7 @@ def round(self): ShortestRowPlayer('martijnbot 2'), DescendingPlayer('martijnbot 3'), SmallestGapPlayer('martijnbot 4'), + CheatingBastard('Isha'), ] take5 = Take5(players, quiet=True) stats = dict()