Question

In: Computer Science

In the computer game Civilization, a character representing a world leader who advocates non-violence is uncharacteristically...

In the computer game Civilization, a character representing a world leader who advocates non-violence is uncharacteristically aggressive. In the first version of the game, this was an unintentional effect caused by a bug.

In the game, world leader characters are assigned an ‘aggression’ score and this is increased or decreased according to changes in circumstance. For example, if a leader adopts democracy, their aggression score is decreased by 2.

This particular world leader was given the lowest possible aggression of 1 by the game makers, to reflect that they thought the leader was unlikely to declare war on another character.

Given that the aggression score is stored as an 8-bit unsigned integer representation, do the following:

  • i.Write down the largest binary integer that can be represented in an 8-bit unsigned integer and by converting this to decimal, show that the largest possible aggression score is 255.
  • ii.Name the problem that occurs if the initial aggression score is decreased by 2.
  • iii.Explain, using the relevant binary numbers, why the initial aggression score becomes the maximum value of 255 when it is reduced by 2.

Solutions

Expert Solution

If you have any doubt please ask in comments and rate the answer if you understood it well.


Related Solutions

In the computer game World of Warcraft, some of the strikes are critical strikes, which do...
In the computer game World of Warcraft, some of the strikes are critical strikes, which do more damage. Assume that the probability of a critical strike is the same for every attack, and that attacks are independent. During a particular fight, a character has 261 critical strikes out of 721 attacks. What is the lower bound for the 99% confidence interval for the proportion of strikes that are critical strikes. Round to three decimal places (for example: 0.419). Write only...
In the computer game World of Warcraft, some of the strikes are critical strikes, which do...
In the computer game World of Warcraft, some of the strikes are critical strikes, which do more damage. Assume that the probability of a critical strike is the same for every attack, and that attacks are independent. During a particular fight, a character has 249 critical strikes out of 588 attacks. (a) Construct a 99.5% confidence interval for the proportion of strikes that are critical strikes. Round the answer to at least three decimal places. b) Construct a 95% confidence...
Find a ‘real world situation’ in which a non-cooperative game occurs in politics, business, commerce, group...
Find a ‘real world situation’ in which a non-cooperative game occurs in politics, business, commerce, group work etc Identify the Nash equilibria (if any). Discuss the merits of various stratagies. In the ‘real world’ is your game played once between the participants or played again and again? How might this influence the strategies used.
Question 1 Find a ‘real world situation’ in which a non-cooperative game occurs in politics, business,...
Question 1 Find a ‘real world situation’ in which a non-cooperative game occurs in politics, business, commerce, group work etc Identify the Nash equilibria (if any). Discuss the merits of various stratagies. In the ‘real world’ is your game played once between the participants or played again and again? How might this influence the strategies used.
Find a ‘real world situation’ in which a non-cooperative game occurs in politics, business, commerce, group...
Find a ‘real world situation’ in which a non-cooperative game occurs in politics, business, commerce, group work etc Identify the Nash equilibria (if any). Discuss the merits of various stratagies. In the ‘real world’ is your game played once between the participants or played again and again? How might this influence the strategies used.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT