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

  Loops and if conditions

Write a program that requests a password

  Implement a simplified version of the set class

You will implement a simplified version of the set class. You must implement all functions defined in the provided file set.h. You may add other member functions and variables as necessary.

  Program to compute diameter in centimeters of a steel rod

Write a program to compute the diameter in centimeters of a steel rod, an aluminum rod, and a copper rod, which can withstand a particular compression load.

  Represent an instruction supported by simpletron

Implementation contains a Simpletron class and several supporting Instruction classes

  Write a program that will be used to gather statistical data

Write a program that will be used to gather statistical data about the number of movies

  Implement the guess the word

Implement  the ‘Guess the Word' game in an object-oriented manner

  Object-oriented systems is the concept of object

At the heart of all object-oriented systems is the concept of an object. Simply stated, an object is a set of related characteristics and their associated actions.

  Write c program-visual studio to scan multiple text files

Write program in C or C++ and Visual Studio to scan multiple text files and count number of occurrences of each word in those files. Use binary tree to keep track of all words.

  Write c program that forks two child processes

Write a C program that forks two child processes. The parent process will print all prime numbers up to 229, the first child process will print the first 50 Fibonacci numbers.

  Program to produce ten random permutations of numbers

In C++(must be able to compile in Visual Studio ): Write a program to produce ten random permutations of numbers 1 to 10.

  Implement database having array of pointers

One way to implement this database is to have an array of pointers pointing to Employee objects. You will obviously require a function named Calculate_salary() which will be different for each employee class. Write code in c++

  Write a program in c that will find smallest value

Write a programe c that will find the smallest, largest and average values in a collection of N numbers.Get the value of N before scanning each value in the collection of N numbers.

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