TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
pad pad
NA
20
17.3k
how to write WarCardGame in Console and Windowsformapplicati
Oct 14 2014 2:17 AM
In the card game War a deck of playing cards is divided between two players. Each player exposes a card; the player whose card has the higher value wins possession of both exposed cards. Create a console based computerized game of war named WarCardGame in which standard 52-card deck is randomly divided between two players, one of which is the computer.Reveal one card for the computer and one card for the player at a time. Award two points for the player whose card has the higher value.(for this game the king is the highest card, followed by the queen and jack, the the numbers 10 down to 2 and finally the ace) if the computer and player expose cards with equal values in the same turn,award one point to each. At the end of the game, all 52 cards should have been played only once, and the sum of the players and computers score will be 52.
use an array of 52 integers to store unique values for each card. write a method named FillDeck() that places 52 unique values into this array. write another method named SelectCard() that you call twice on each deal to select a unique card for each player, with no repetition of cards in 26 deals.(To pause the play between each dealt hand, use a call to ReadLine())
Please any body can help writing this program I was not able get since few weeks.
Reply
Answers (
0
)
Progressbar
logical and syntax errors