JanSorensen
Posts: 3684
Joined: 5/2/2005 From: Aalborg, Denmark Status: offline
|
Steve, Should the '1' not be a '0' in this line? Otherwise the rest does not make sense. else Result := 5; // 2 1 (52) I would probably have used an array rather than the case structure as I find that easier to adjust as well as verify but thats obviously a matter of personal taste. Something like: {6, // 1941 chits
5,5,5,
4,4,4,
3,3,3,3,
2,2,2,1,
5, // 1940 chits, the 5 is suspect
4,
3,3,3,
2,2,2,2,2,
1,1,1,1,1,1,1,1,
0,0,0,0,0,0,
5, // 1939 chits
4,4,4,4,4,4,
3,3,3,3,3,3,
2,2,2,2,2,2,2,
1,1,1,1,1,1,1,
0,0,0}; Maybe someone with the counters can confirm or deny the '5' in 1940.
< Message edited by JanSorensen -- 1/23/2006 9:38:44 AM >
|