Create a bagel game app using given instruction

Assignment Help JAVA Programming
Reference no: EM131144527

Bagel Practice App Using Javascript

The computer game Bagels was created by Resek and Rowe from the Lawrence Hall of Science in Berkeley, California. In the game of Bagels, you must guess the number that the computer is thinking of.

The computer generates a three digit number where each digit must be unique. You are provided with 20 turns to guess the number. The computer can give the following hints in response to each guess:

Pico - One digit correct but in the wrong position.
Fermi - One digit correct and in the right position.
Bagles - No digits correct.
Imagine that the computer is thinking of the number 398. Here are some sample responses:

435 - Pico (because 3 is a correct digit in the wrong position).
387 - Fermi Pico (because 3 is a correct digit in the right position but 8 is a correct digit in the wrong position).
419 - Bagels (because none of the digits are correct).
839 - Pico Pico Pico (because all of the digits are correct but in the wrong position).
So a game of Bagels might go like this:

-- Turn 1 ---

You: 123

Computer: Pico

-- Turn 2 ---

You: 213

Computer: Fermi

-- Turn 3 ---

You: 273

Computer: Fermi Pico

-- Turn 4 ---

You: 257

Computer: You got it!

-----

In theory, you should be able to guess the number in 8 moves. If you don't guess the number in 20 moves then you lose.

just follow the instruction to create a bagel app. theres no question for it.

if theres any question please ask before handshake.

Reference no: EM131144527

Questions Cloud

Which objects are used in raster format representations : Name and describe the different simple spatial objects used for representing graphic data in digital form.Which objects are used in raster format representations?
What are the advantages and disadvantages of social media : What are the advantages and disadvantages of easily obtainable information? - •What are the advantages and disadvantages of social media?
Describe fiscal impact of the growth and aging of population : Take a position as to whether or not nursing homes should have the authority to restrain a resident. Next, determine who should be held liable if the resident sustains injuries while being restrained. Provide a rationale for your response.
Designing the organization and nurturing culture and ethics : Three key activities--setting a direction, designing the organization, and nurturing a culture and ethics--are all part of what effective leaders do on a regular basis. Explain how these three activities are interrelated.
Create a bagel game app using given instruction : In theory, you should be able to guess the number in 8 moves. If you don't guess the number in 20 moves then you lose. Just follow the instruction to create a bagel app. theres no question for it.
Determine the resultant internal normal and shearforce : Determine the resultant internal normal and shearforce in the member at (a) section a - a and (b) section b - b ,each of which passes through point A . The 500-lb load isapplied along the centroidal axis of the member.
Identify any barriers that may exist for each goal : Compare the achievements with the goals list to identify any conflicts. After this comparison, create a revised list of goals. Create a plan of action. How will you achieve each goal? Identify any barriers that may exist for each goal. How will you..
Lack one important qualification for job : If you lack one important qualification for a job but have made it past the initial screening stage, how should you prepare to handle this issue during the next round of interviews? Explain your answer.
Determine the largest vertical load p the frame : The cable will fail when subjected to a tension of 2 kN.Determine the largest vertical load P the frame will supportand calculate the internal normal force, shear force, and moment at the cross section through point C for this loading.

Reviews

Write a Review

JAVA Programming Questions & Answers

  What is the purpose of the enableevents method

What is the difference between the JDK 1.02 event model and the event-delegation model introduced with JDK 1.1? What is the purpose of the enableEvents() method?

  Program produces 1000 integer ranging

Then your program produces 1000 integer ranging from 1to 10000 in the array and then sort them in ascending order and then print the result into data.txt file. (You may list integers separated by space or new line)

  Program will read parameters plaintext and ciphertextfrom

Specifically, your program will read parameters, plaintext and ciphertextfrom a file named "input.txt" (under the same directory).Then your program needs tocreate a file named "output.txt" (under the same directory) and prints the public key, private..

  Write down a java gui application index2java based on the

write a java gui application index2.java based on the program in step 1 that inputs several lines of text and uses

  Determine the example of a javascriptr framework in the

what is an example of a javascriptr framework? in the framework you have described what is an example of an application

  Write a fraction class called fraction.java

Write a Fraction class called Fraction.java that implements these methods: add - This method receives a Fraction parameter and adds the parameter fraction to the calling object fraction. multiply - This method receives a Fraction parameter and multip..

  Program (using java) that is suppose to find the largest

writing a program (using java) that is suppose to find the lowest integer that can be evenly divided by a range (ex. 1-25). I need help fixing/debugging it so it comes up with the proper output.

  Java classes that are implementations of the rectangle class

Write a Java application that enables the user to specify the length, width and location of two instances of a PlaneRectangle and check whether the first lies completely within the second.

  Re matches a string shorter

A. _____ No RE matches a string shorter than itself. B. _____ Any RE without closure (* or +) describes only finitely many strings. C. _____ No problem in NP can be solved in polynomial time. D. _____

  What is the purpose of the pivot value in quicksort

What is the purpose of the pivot value in quicksort and How did we first select it in the text, and what is wrong with that approach for choosing a pivot value?

  User to input a decimal number and ouputs the number

Write a program that prompts the user to input a decimal number and ouputs the number rounded to the nearest integer.Remember the rules around proper development style and form, including adding comments. A software developer should always add commen..

  What are some debugging techniques for javascript

What are some common programming errors? How can they be prevented? What is the try catch structure, how is it useful? What are some debugging techniques for JavaScript?

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