Playing an online game.

 

 

 

 

 

 

Project requirements
Write a program in whatever programming language you would like to use to simulate the following
scenario.
10 gamers are playing an online game. All of them need to enter a room but only one gamer can be in the
room at any moment. A gamer cannot progress to the next step of game until the gamer collects 20 gold
coins in the room.
There are 20 miners adding gold coins to the room. Only one miner can enter and drop gold coins in the
room at any moment. One miner can leave at most 5 gold coins in the room each time.
Once a gamer collects the gold coin in the room, regardless how many are in the room and how
many coins the gamer collects, the gamer must leave the room. If the gamer has more than 20
gold coins already, the gamer can progress to the next step. Otherwise, the gamer needs to wait
to enter the room again to collect more gold coins.
A miner cannot enter the room without coin. At any moment, at most one gamer, and one miner,
can be in the room. A miner can enter the room even if nobody is in the room.
Please add additional policies and details to the above rules: for example, how a gamer waits
outside the room and be selected – in a queue, or randomly, or any other policy defined by your
team. You can also decide how many coins a miner bring to the room, a random number, or a
fixed number, etc.
For any missing details necessary for your design, please add the details discussed by you

Sample Solution

who gain commitment from this group of members to this direction and who then motivate these members to achieve the direction’s outcomes. On exploring the interlink between the culture of an organisation and the leadership styles, several factors come into account like organisational culture, transactional as well as transformational leadership styles. Voon, et al., (2011) had conducted a research and understood about the influence leadership has on the workforce of an organisation. Several factors like wages, job security as well as autonomy and flexibility at office were used. They concluded that transformational leadership style had a better direct relationship with job satisfaction. Transformational Leadership The transformational leadership style focuses on the nurturing of the respective followers as well as on what they actually need. This concept was first brought down by James MacGregor Burns, et al., (1978) in which he insists on the fact that how transforming leadership is a process in which “leaders and followers help each other to advance to a higher level of morale and motivation”. The leaders with transformational leadership style pay attention to growth and development of the value system of the workers, with their ingenuity level and ethics with the prologue of their capability. The extent of a transformational leader can be measured by the fact that how well can that individual influence the performance and motivate the follower. As suggested by Bass, et al., (1977) that the primary aim of a transformational leader is to ‘transform’ the employees as well as the company in the very literal manner, that is to change the way of their thinking in the mind and heart as well as broadening their vision and insight. It also means changing their way of comprehension making their behaviour in sync with the values of the organisation. This henceforth leads to changes deep within which are permanent in nature, self-sustaining and also builds a sense of momentum. Conclusion It is thus observed from the above and several literary texts, that all the researches that are done are related to the large sectors, which further indicate that the different styles of leadership, commitment towards the organisation as well as satisfaction at workplace are all dependent on each other. Therefore it can be concluded that the different styles of leadership directly impacts the quality and nature of work life in an organisation. The followers of a transformational leader harvest a sense of trust, loyalty, respect as well as admiration, which gradually builds up towards the leader and in light of the calibre of the transformational leader; the followers are ready to work more intensely than expected by the leader. Such an outcome eventually occurs as the transformational leader extends their followers something much more important than just working for one’s own benefit; an inspirational mission and vision is offer

This question has been answered.

Get Answer
WeCreativez WhatsApp Support
Our customer support team is here to answer your questions. Ask us anything!
👋 Hi, Welcome to Compliant Papers.