Design a war game that you can play against the computer

Assignment Help JAVA Programming
Reference no: EM13690900

Please help me, or at least assist me get started?

Create a Card class to store a single playing card.  Create a class called DeckOfCards that stores 52 objects of the card class.  Create appropriate constructors and methods for each class that allow for the following requirements.  Create a driver class with a main method that has the following options.

0. create a deck of cards

creates a standard deck of 52 cards with no jokers

1. shuffles the deck

always start with all 52 cards in the deck before shuffling randomly puts the cards in different positions                     

2. deal every card remaining in a deck this will allow me to check if the deck was shuffled you may want to turn on unlimited buffering in bluej to see all the cards

3. deals a specified number of cards (determined by user) Allow the user to deal a certain number of cards off the top of the deck

4. counts how many cards are left in the deck

Allows me to see if you are keeping track of the number of cards left in the deck

5. quit

This menu should loop until the user chooses to quit.

Part I)  Design a war game that you can play against the computer

Part II) Design a Black Jack Game that follows the rules of the game.

You need to prepare these games. Create this program in java programming

Reference no: EM13690900

Questions Cloud

Write a recursive function squares : Write a recursive function squares that takes a list of numbers, and returns a new list of the squares of those numbers.
Function that takes as input parameters a function : Define a function that takes as input parameters a function handle f, start, and end values a and b, and a number of steps n. The function should compute and return the average value of f over the range a to b.
Prompts the user to enter grades in a loop : Define a function that takes two input parameters, a vector of test scores and a scalar passing grade. The function returns the fraction of passing grades as a number in the range
Simulate a game of blackjack : Design and implement a C++ program to simulate a game of Blackjack between two to four players. Your program must incorporate a two-dimensional array to represent the suit and the value of each card dealt to a player
Design a war game that you can play against the computer : Create a Card class to store a single playing card.  Create a class called DeckOfCards that stores 52 objects of the card class.  Create appropriate constructors and methods for each class that allow for the following requirements.
Gathering requirements to develop sql queries : Describe some techniques for gathering requirements to develop SQL queries. Provide an example using a business case.
Determine the combined total of joe and jims worth : What type of equation would you create to determine the combined total of Joe and Jim's worth? What is the equation in Java? What would be an incorrect way of writing this equation (think parentheses)?
Write a regular expression : Write a regular expression that matches a date in the usual format:   mm/dd/yy
Write a script that prints out the full pathnames : Write a script that prints out the full pathnames of your files that are over a specified size.  The size should beread as a command line argument to the script.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Build the gui layout of the gamecreate a class called

build the gui layout of the gamecreate a class called pipegameapp.java which will be the main game user interface. the

  Solving programming problems

Write a computer program that will figure out the total of an order when given the amount of the order ($1000) and a sales tax rate of eight percent.

  Overriding the equals method

Use the equals method, which Player inherits from the Object class, to determine whether two players are the same. Are the results what you expect?

  Image to a "black-to-green scale" image

Call a method that will change the image to a "black-to-green scale" image.

  Java code that needs to be coded-complex number class

Just a Java Code that needs to be coded. Your given the design, just needs the methods and such to be fixed. This is for a Complex Number class.

  Hypothetical situation

Hypothetical Situation - A company lowers its price of an economy car a small amount   ($15,000 to $14,000) Sales go from 10,000 units to 50,000 units. Another company lowers its price on a luxury car a large amount ($80,000 to $40,000). Its sales go..

  Write a recursive instance method

Write a recursive instance method

  Design a boolean function named isprime,

A prime number is a number that is only evenly divisible by itself and 1. For example, the number 5 is prime because it can only be evenly divided by 1 and 5. The number 6, however, is not prime because it can be divided evenly by 1, 2, 3, and 6. Des..

  1 linked listsin this problem you will write a class that

1 linked listsin this problem you will write a class that implements an ordered list of strings. your class will able

  Write a java program to implement the finite field

Write a program called "GF2.java" to implement the finite field GF(p n ) where p is a prime number and n is a positive integer.  You also need to write four methods to realize "+", "-", "´", and "/".

  Menu based program to maintain student records

Write a menu based program to maintain student records. Your program should take the following inputs: 1. Student first name (max. 20 characters) 2. Student last name, (max. 20 characters) 3. Student scores (float/double), eg. 85.4 Problem

  Part a -code comprehensionusing the uncommented sample code

part a -code comprehensionusing the uncommented sample code has been provided in moodleanswer the following questions1.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd