Skip to main content

Timeline for Battleship Game in Java

Current License: CC BY-SA 4.0

8 events
when toggle format what by license comment
Mar 27, 2019 at 8:11 comment added TorbenPutkonen @TimothyTruckle For this abstraction, yes. Battleshjip game is not a simulation of real life.
Mar 27, 2019 at 7:41 comment added Timothy Truckle @TorbenPutkonen The real world is way to complex to be used as guideline for our software - is this what you gonna say?
Mar 27, 2019 at 6:22 comment added TorbenPutkonen @TimothyTruckle Real world is often way too complicated to be represented as a class hierarchy. In the real world the ship is in water but that water might be moved by currents and wind which affecfts the true heading. Heck, sometimes that body of water might be on a ferris wheel. :) So... there are many ways to skin this cat and whatever way fits here depends on the required fetures.
Mar 26, 2019 at 10:41 comment added Timothy Truckle @TorbenPutkonen "Is a ship supposed to know it's location and orientation?" - When doing OOP it is a good approach to look at the real world: In the real world, is it the ship or the ocean knowing position and heading?
Feb 18, 2019 at 13:19 comment added TorbenPutkonen Is a ship supposed to know it's location and orientation? If a board consists of Bombable cells and each bombable is connected to either a reference to a Ship or a NOP, depending if the cell is occupied by a vessel or not. Ship would only know it's length, as it's an inherent trait, and you'd add it to the board in either horizontal or vertical orientation and the board would be responsible for knowing which cells the ship occupies, since the cells belong to the board.
Feb 16, 2019 at 16:09 comment added Timothy Truckle @KorayTugay "I can not tell I agree with all but I think it is ok to disagree sometimes" - yes, there is no "right or wrong", only "more or less useful". But may you share where you disagree? Maybe I can learn something too?
Feb 16, 2019 at 16:02 comment added Koray Tugay Very useful tips, thank you. I can not tell I agree with all but I think it is ok to disagree sometimes and I guess there is no specific concrete way.
Feb 16, 2019 at 15:59 history answered Timothy Truckle CC BY-SA 4.0