“Assassin” is a real-life game in which a group of players all

“Assassin” is a real-life game in which a group of players all try individually to find and touch (or “kill”) one other player. You can use a linked list to represent this “kill ring” of players in the game:

If a “kill” is made, the ring adjusts by removing that person from the list. For example, the following occurs if Sally kills Jim:

Write a program that models a game of Assassin. The game reads the names of the initial kill ring from a file and puts them into a linked list in random order. Then the game repeatedly prompts for the name of a person that has been killed. The game continues until only one player remains and is declared the winner. The program should also have methods for printing the current contents of the kill ring and printing a “graveyard” of all players who have been killed.

 

Leave a Comment

Your email address will not be published. Required fields are marked *

GradeEssays.com
We are GradeEssays.com, the best college essay writing service. We offer educational and research assistance to assist our customers in managing their academic work. At GradeEssays.com, we promise quality and 100% original essays written from scratch.
Contact Us

Enjoy 24/7 customer support for any queries or concerns you have.

Phone: +1 213 3772458

Email: support@gradeessays.com

© 2024 - GradeEssays.com. All rights reserved.

WE HAVE A GIFT FOR YOU!

15% OFF 🎁

Get 15% OFF on your order with us

Scroll to Top