Optional Contest 1: Hog Strategy

A strategy is
A single function that makes
Ten thousand choices.

Table of Contents

This contest is completely optional!

Instructions

Submit a hog.py file containing a function called final_strategy and a name called final_bid bound to a non-negative integer.

python3 ok --submit

A blank hog.py file and simple tests for correct formatting can be downloaded as a zip archive. Type python3 ok to run the provided tests.

Overview

Each submitted strategy will play against all other submissions. We will exactly compute the expected win rate for each player, so that the outcome of this tournament will be determined by strategy alone and not the roll of the dice.

The final_bid of each player will determine who plays first and the starting scores of each player. The following three rules apply:

A submission scores a match point each time it has an expected win rate above 50.00000001% (.5 + 1e-10). The submissions with the most match points win.

Contest Rules