What were cock fights in the middle ages?

Cockfights were when male hens were ment to fight for a prize.