In: Computer Science
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:
If you have any doubt please ask in comments and rate the answer if you understood it well.