Our academic experts are ready and waiting to assist with any writing project you may have. From simple essay plans, through to full dissertations, you can guarantee we have a service perfectly matched to your needs.
GET A 40% DISCOUNT ON YOU FIRST ORDER
Write a program to display the game of Concentration. The layout for Concentration consists of a shuffled deck of cards arranged face down in four rows that have thirteen cards each. The player then turns two cards over. If those two cards match in rank, then they are removed from the layout. If they do not match the cards are turned face down again and the player has a chance to pick new cards. The purpose of the game is to sharpen your memory for where the cards have been seen in earlier rounds. The challenge is to implement Concentration without using the graphics library. The cards should be displayed using tags, and your program should update the image on the screen by changing the src attribute to the name of the appropriate image file. Attached is a file of the images for the deck of cards.