Collaborating with Ptolemy, we have built a Battleships game engine using test-driven design. This is one of our first attempt to apply TDD and OOD. Also, it is our first attempt to apply SOLID principles.
![Code Climate](https://camo.githubusercontent.com/9c08ec0cb199d784eb3179caf85d5f853854587bc2b8e9c3b1bd6dbf65ccf501/68747470733a2f2f636f6465636c696d6174652e636f6d2f7265706f732f3534646339313738363935363830326262353030316363662f6261646765732f64306561393635623531363064363066353030322f6770612e737667)
Responsibility |
Collaborators |
Be hit? |
Players, Board |
Sink |
Board |
Be placed |
Board, Players |
possibility: (class Primary Grid << Tracking Grid)
Responsibility |
Collaborators |
Record ship |
Ship |
Record shots |
Player |
Responsibility |
Collaborators |
Shoot |
Board |
Place ship |
Ship, Board |
Responsibility |
Collaborators |
Set Board |
Players |
Start game |
Board, Players |
Decide turn |
Players |
Finish game |
Players, Board |
Save game |
Board |