Design and write a c++11/fltk game program

Assignment Help C/C++ Programming
Reference no: EM1381042

The project is to design and write a C++11/FLTK game program with a graphical user interface. The game is based on "pancake sorting," which actually has some mathematical significance.

The heart of the game is a centered stack of pancakes, each one a different size. The goal is to get the stack into order (from smallest on top to largest on bottom) by flipping over the top partial stack of some number of pancakes. See the Wikipedia article for an example flipping the top three pancakes. Since we're flipping flapjacks, the game is named "FlipFlaps".

The program must:

1. Start with an attractive splash screen showing (at least) the name of the game ("FlipFlaps"), the team number, and the team member's names. Feel free to add team member's pictures, animations (see extra credit section below), etc.

2. Explain how to play the game.

3. Ask for the player's initials and display the top 5 scores read in from the disk (see item 6 below) followed by the player's initials. The top scores file starts out empty.

4. Ask for a difficulty level from 2 to 9; this is the number of pancakes. Each pancake is a different size. Display the pancakes in a centered stack in a random order. Hint: Look up "permutation" at cplusplus.

5. Allow the player to select where to insert the spatula(below some pancake); you may decide to have a button beside each possible spatula position, or choose some other way to indicate where to flip. When the player clicks the "Flip!" button, flip over the partial stack above the spatula and redraw the screen.

6. If the pancake stack is now in order, from smallest on top to largest on the bottom, calculate the player's score (see "Scoring" below) and display it next to the player's initials. Sort the list of 6 scores and write the top 5 out to disk with initials. Then the next time the game is played that file will be read in and displayed in step 3 above. Note: The game is also over if the player makes too many flips (see "Scoring" below). Ask the player if they want to play another game or quit.

All user input and output must be through the GUI, not the console window. However, you may use the console window for printing debugging messages for the developers .

Reference no: EM1381042

Questions Cloud

Creating a program : For several years, your Uncle Frank has been running a small landscaping business. Through these years, he acquired many steady customers and knew most of them on a first name basis.
Find out two to three page paper formatted according apa : Document your sources. Write your find outings as a two to three page paper formatted according to APA style as shown in the approved style guide.
Johnson industries received a contract to develop : Johnson Industries received a contract to develop and produce four high intensity long distance receiver/transmitters for cellular telephones. The first took 2000 labor hours, and cost $39000 worth of purchased and manufactured parts.
Determine the crossover point for the two options : Determine the crossover point for the two options. Please give the formula for calculating crossover points, at least one step of calculation, and the correct answer.
Design and write a c++11/fltk game program : The project is to design and write a C++11/FLTK game program with a graphical user interface. The game is based on "pancake sorting," which actually has some mathematical significance.
Explain why was it different also not a classic first move : Explain why was it different also not a ‘classic' first mover situation. Illustrate what did each company try to do to gain the first mover advantage.
The new-accounts office at the savings and loans bank : The new-accounts office at the Savings and Loans Bank enrolls all new customers in checking accounts. During the three-week period in September encompassing the beginning of the new school year at State University
Using javascript to liven up web site : How to Use JavaScript to Liven up your site, how to protect users whose browsers will not load JavaScript. What is the tip?
Which stage of the product life cycle is cargill operating : There is little price competition, although several competitors have come out through reasonable imitations. Total industry sales also profits are both rising. In which stage of the product life cycle is Cargill operating.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Techniques for information hiding and encapsulation

What techniques did you utilize for information hiding and encapsulation? Are there any improvements you would make? If so, what would they be?

  Write a program to calculate students average test scores

Write a program to calculate students average test scores

  Write a program for find greatest common divisor

Write code for a recursive implementation of Euclid's algorithm

  Structured programming using procedural languages

A a program that is called "Playing with Numbers or Letters".

  Write test program to call function several times for gcd

Greatest common divisor of two integers is largest integer which will evenly divide both integers. Implement this function in assembly language and write test program which calls function several times, passing it different values.

  Program to declare array alpha of components of type int

Write C++ statements to do the following: Declare an array alpha of 15 components of the type int. Output the value of the tenth component of the array alpha.

  Represent an instruction supported by simpletron

Implementation contains a Simpletron class and several supporting Instruction classes

  Write c program which compute acceleration of jet fighter

Write a C++ program which compute the acceleration (m/s 2) of jet fighter launched from aircraft-carrier based catapult, provided jet's takeoff speed in km/hr

  Programmingto compute the volume of water in the cubic feet

Write down an algorithm (Programming in C) in order to compute the volume of water in the cubic feet, flowing through a pipe of diameter d in feet, having a velocity of v feet per second.

  Design for storing the maze layout

Design and implement a C++ program for maze layout

  Calculate the trajectory of a soccer ball

Write a program to calculate the trajectory (flight path) of a soccer ball

  Why does the neverwet spray protect it from water

As is know, acetone is a polar molecule like water, so isn't it suppose to mix? So my question is: why does the Neverwet spray protect it from water but not from oils and detergents?

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