ReflectionsProjections / mm19

Mechmania 19
0 stars 1 forks source link

Ship ID's were off #90

Closed ace-n closed 11 years ago

ace-n commented 11 years ago

According to the design document, ship IDs were supposed to be from 1 through 5. According to the code, they are from 0 to 4 (at least for setTurn statements). The design document was updated to reflect the code.

eparsons commented 11 years ago

IDs in a two player game with five boats actually range from 0-9. Not sure if you are doing this but careful not to hard code the IDs or associate a particular ship type with a specific ID in your client. They could be different for each game.