usaco / CowCatcher

USACO 2014 Camp Game
0 stars 3 forks source link

Are array indices 0 and 1 reserved for cow and decoy? Also how to contact? #1

Open nyanpasu64 opened 10 years ago

nyanpasu64 commented 10 years ago

Actually for cow, players[0] is an object containing cow (0) and decoy (1). players[1] is an object containing farmers. For farmer, players[0] is an object containing farmers. players[1] is an object containing cow and decoy randomly.

(incorrect below)

From looking at the mm_client source, it appears that all players are stored in the same array and when calling the turn function, the unit is a pointer to part of the array. Also, given the other comments, the cow is always at index 0 and the decoy is at index 1. Is that correct?

Also which order is the cow and decoy processed in?

ecnerwala commented 10 years ago

In particular, the farmer seems to always receive the cows with index 0 as the real cow. This seems to break the decoy entirely.