Question: Suppose you're doing some object modeling for a game. The game is played on an NxN board that consists of two different tile types: water

Suppose you're doing some object modeling for a game. The game is played on an NxN board that consists of two different tile types:
water (which denotes an 'un-traversable' region of the board and thus has no fields/state)-- so it's basically just a "marker" class
land -- which can have differing levels of elevations
Select what might be a useful design pattern to employ when thinking specifically about the board.
Group of answer choices
the builder/'fluent api' pattern
model view controller
singleton for the 'un-traversable' water tile
coding to the interface

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!