Building Simple Dot Com Game

isuru sellahewa
Jun 24, 2021

I built a game called Simple Dot Com Game using java. First of all, I declared new integer two variables called ‘locationCells’ and ‘numOfHits’. After that I declared two methods called ‘String checkYourself(String guess)’ and ‘void setLocationCells(int[] loc)’ .After the declaring,I Wrote test code for the SimpleDotCom class Based on prepcode.Everything in prepcode happens in the main method.After implementing the test code ,I had a problem. After that ,I made a new smaller array to solve this problem.Finnaly, I built the game.

--

--