Thinking Abstractly About Problems

Modeling Problems with Application-Level Ideas

So by now you've seen how we can model the information in a BattleshipTM game, by using C++ structures (i.e., struct or class).  Using structured data types, also called objects in C++, is one way to think abstractly about a problem.

Suppose, we would now like to make our computer player smarter than just randomly guessing grid locations.  What strategies do you use when you play?  Do those strategies change as the game goes along?

 

A Model for Thinking