Finding maxmin allocations in cooperative and competitive fair division