There are 21 bottles, you and the computer take turns taking between 1 and 3 bottles. Whomever takes the last one loses (it is tainted)