[SOLVED] COMP3121 - Homework4

30.00 $

Programming resource
Digital learning resource
Category:
✓ Practical programming resource
✓ Suitable for guided study and reference
✓ Tutor guidance available when needed

Description

5/5 - (1 vote)

Question 1

 

Modeling the scenario into a game

 

A river flows through two countries, A and B. It starts in country A, and then flows through B to the ocean. Both countries can either dam the river (and get electricity) or fish the river. If either country dams the river, it hurts the fish population in the river (either by decreasing the water flow downstream, or preventing fish from swimming upstream). So if one dams and the other fishes, it’s bad for the one who fishes. If they both fish, it’s good for both, but not as good as if they both dam, since the electric power is worth more than the fish.

 

Question 2

 

Modeling the scenario into a game

 

Minority game: Three agents each have two possible actions. Whichever agent ends up in the minority (choosing a different action from the other two) wins.

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.