The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 3 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
Hello I need help with this assignment please. It is a computer science assignment. The goal is to make a simple coin flip game. The guidelines are attached. Â i will tip very well. Thank you in advance.
Â
Homework 1
Part 1:
Install your jMonkey SDK development environment (IDE)
Part 2:
Using either the jMonkey SDK IDE or another Java SDK of your choice, create a basic coin-flip guessing
game based on the following:
1. Download the repository at
https://github.com/seccodingguy/CMSC325/tree/master/src/cmsc325gameconcepts
2. Using the Strategy and StrategyRandom class, create a game that prompts the user to
choose heads or tails, flips a virtual coin, and then displays the results to the user. The game
must continue until 100 flips have been completed. Save the results of the flip results in a
format of your choosing.
3. Modify the code to include the StrategyProbability class, using the results saved from the
StrategyRandom as the starting values for the setMoves() function. The game must continue
until 100 flips have been completed. Save the results of the flip results in a format of your
choosing and separate from the StrategyRandom results.
4. For both 2 and 3, generate statistics on the odds of getting the right guess as well as the
number of heads and tails flipped, displayed, respectively, to the user as well as saved with
the results.
5. The program does not have to use graphics of actual coins - this is optional.
6. The 100 flips can be generated manually, i.e. user pressing a button, or automatically.
What to submit: A screenshot showing the installed and running jMonkey SDK IDE All the source code for your game. The output results from the execution of both the StategyRandom and StrategyProbability
functionality A text file briefly describing how to import, compile, run, and play your game. Compare the results of the StrategyRandom and StrategyProbability functionality, writing a 250
word summary of what your expectations were vs. what the two different strategies produced.
Also, provide an answer in the summary to the following questions: 1) Does either strategy
produce a near 50% probability? And 2) Which strategy produced more or less?
All of the above should be attached to your assignment as a single *.zip file. The naming format for the
.zip file is YOURLASTNAME_HOMEWORK1_CMSC325.zip 1 Grading Rubric
Attribute
jME install Coin-flip guessing
game Meets
20 points Does not meet
0 points jME was successfully installed. jME was not successfully
installed.
0 points 30 points
Creates a game that prompts the user to
choose heads or tails, flips a virtual coin,
and then displays the results to the user.
Continues until 100 flips have been
completed.
Saves the results of the flip results in a
format of your choosing. Does not create a game that
prompts the user to choose
heads or tails, flips a virtual
coin, and then displays the
results to the user.
Does not continue until 100 flips
have been completed.
Does not save the results of the
flip results in a format of your
choosing. Modifies and
Statistics 30 points 0 points Modifies the code to include the
StrategyProbability class, using the results
saved from the StrategyRandom as the
starting values for the setMoves()
function. Does not modify the code to
include the StrategyProbability
class, using the results saved
from the StrategyRandom as
the starting values for the
setMoves() function. Generates statistics on the odds of getting
the right guess as well as the number of
heads and tails flipped, displayed,
respectively, to the user as well as saved
with the results. Documentation and
submission Does not generate statistics on
the odds of getting the right
guess as well as the number of
heads and tails flipped,
displayed, respectively, to the
user as well as saved with the
results. 20 points 0 points Provides a document showing a
screenshot showing the installed and
running jMonkey SDK IDE. Does not provide a document
showing a screenshot showing
the installed and running
jMonkey SDK IDE. Includes all the source code for your game.
Does not include all the source
code for your game.
2 Provides output results from the execution
of both the StategyRandom and
StrategyProbability functionality.
Describes how to import, compile, run,
and play your game.
Compares the results of the
StrategyRandom and StrategyProbability
functionality by writing an approximate
250 word summary of what your
expectations were vs. what the two
different strategies produced. Also,
provide an answer in the summary to the
following questions: 1) Does either
strategy produce a near 50% probability?
And 2) Which strategy produced more or
less?
Compresses all files into one .zip file using
proper naming conventions. Does not provide output results
from the execution of both the
StategyRandom and
StrategyProbability
functionality.
Does not describe how to
import, compile, run, and play
your game.
Does not compare the results of
the StrategyRandom and
StrategyProbability functionality
by writing an approximate 250
word summary of what your
expectations were vs. what the
two different strategies
produced. or provide an answer
in the summary to the following
questions: 1) Does either
strategy produce a near 50%
probability? And 2) Which
strategy produced more or less?
Does not compress all files into
one .zip file using proper
naming conventions. 3