A system automatically monitors playing and wagering of a game, including the gaming habits of players and the performance of employees at least partially by tracking the movement of chips bearing identifiers. A chip tray reader images the contents of a chip tray, while a table reader images chips on the gaming table. Chip identifiers may be associated with customer or player identifiers, the customer's or player's names may or may not be known. The system detects customer or player behavior such as prohibited playing and wagering patterns, and determines the win/loss percentage of the players and the dealer, as well as a number of other statistically relevant measures. The measurements provide automated security and real-time accounting. The measurements also provide a basis for automatically allocating complimentary player benefits.