Dandyland

Dandyland is a exploration and production management simulation. It is played on a two dimensional map, a grid of land sectors. As the player explores the map they allocate population to sectors discovered. The sectors produce natural resources based on the sector type. To advance the player can build buildings which convert natural resources into goods. By achieving a number of victory points, the player wins the game.

The Turn

The game starts at year 1 and each season represents a turn. The seasons occur in the following order: spring, summer, fall, winter. Each season all sectors:

Player actions

At the end of each season, the player may take any of the following actions

Initial Conditions

The map is stored in a file called "Dandyland.map". This file contains m lines of n characters each. The characters are the letters F,M and P for forest, mountain and prairie.

The player should start at position (n/2, m/2). That sector is visible and all other sectors hidden. An initial population of 10 should be placed in the sector and 100 food should be placed in the warehouse. All other resources in the warehouse should be set to 0. The year should be initialized to 1 and the season should be set to spring.

The player should be given a description of the initial sector and presented with the map.

The following is an example of a Dandyland.map file.

6 5
MMMMM
MPFPM
MFFFM
MFPFM
MFFFM
MMMMM
This describes a 5x6 map. The player would start at position (2,3) , where positions start at 0. This would be the prairie in the middle of the forest.

Positions are given in a normal coordinate system. (2, 3) is column 2, row 3.

Gameplay

At the beginning of each season the player is presented with the year and the season. As each season the player must be informed in detail of the actions that are occurring. This includes the name of the season, and information about all computations that occur during that season phase in all sectors. This will be quite verbose.

Your output should be similar to the following

Year 1, Spring
Population Phase

    Sector (2,3) has a population of 10.
    The sector consumes 2 food of 100, so food is now at 98.
    The sector produces 1 new population, so the sector has a population of 11.

Goods Production Phase

    Sector (2,3) has no buildings so produces nothing.
   
Resource Harvesting Phase

    Sector (2,3) has a population of 11.
    The sector produces 11 food, so food is now 109.
    The sector produces 2 wood, so wood is now  2.
    The sector produces 0 gold, so gold is now 0.

Player Turn
Spring Year 1.
   +-----+
   |.....| Food: 101
   |.....| Wood: 2
   |.....| Gold: 0
   |..P..| Materials: 0
   |.....| Coins: 0
   |.....| Victory Points: 0
   +-----+ Population 111 

   What do you want to do now?
       1. Explore a new sector.
       2. Transfer population between sectors.
       3. Build a building.
       4. Print information about a sector.
       5. Redraw the map.
       6. Finish Turn.
       7. Exit the game.

       Enter choice =>

End of Game

The game ends with a loss if the entire population dies, or with a win when the player produces 100 victory points.