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

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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