I am tasked with writing an application that is similar to battle ship. There is a 100x100 grid. Initial, each cell of the grid has a red box in it. A user clicks the red box, enters a special code that they were given, and that red box reveals a letter or a blank space. There a certain "winning words". So lets say the letters WINNIN have been revealed. The person who reveals the G is a "winner". So, the application does a few things:
Firstly, after a user clicks the square and enters a code, it checks to see if the code is valid.
Then, assuming the code is valid, the red square turns into a letter or a blank space.
If a letter is revealed, the system checks to see if it's a "winning" letter. Therefore, the system would need to see if the other letters in that same word have been revealed.