The project is to design and write a c11fltk game program

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

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: EM13371292

Questions Cloud

Question 1 the exercise price on one of orne corporations : question 1 the exercise price on one of orne corporations call options is 35 and the price of the underlying stock is
In the media piece for this unit anthonys orchard director : in the media piece for this unit anthonys orchard director of operations allison sinclair expressed concern over the
Prepare an essay on corporateit governance and internal : prepare an essay on corporateit governance and internal control. essay should describe the following.corporate
Portfolio optimization 1 you have decided to invest in a : portfolio optimization 1. you have decided to invest in a portfolio that includes all companies in the dow jones
The project is to design and write a c11fltk game program : the project is to design and write a c11fltk game program with a graphical user interface. the game is based on
A generator voltages egi 165ang0deg : a. generator voltages egi 16.5ang0deg kvnbspnbspnbspnbspnbspnbspnbspnbspnbspnbspnbspnbspnbspnbspnbspnbspnbsp eg2
Part i assignment requirements - based on the following : part i assignment requirements - based on the following grand wines case studyas the project manager you are required
Spatial and temporal analysis of travel patterns of no-car : spatial and temporal analysis of travel patterns of no-car householdsperth west australia is a low population density
Explain how the ebit chart works inputs determining the : explain how the ebit chart works inputs determining the outputs-the two lines on the chartand the indifference point in

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Difference between a constant pointer

Explain the difference between a constant pointer to non-constant data and a non-constant pointer to constant data. Show the syntax to declare them.

  How do you generate arrays, random numbers

How do you generate arrays, random numbers and multiply and add rows, columns and diagonals in C

  Describe floyd''s algorithm finds the shortest paths

A shortest path between vertex a and b is a path with the minimum sum of weights of the edges on the path. Floyd's algorithm finds the shortest paths of all vertex pairs of a graph.

  String converter

String Converter: Implement a program that asks the user to input up to 20 strings (stopping when the user inputs 0). Store these strings in a 2-dimensional array. Replace all the characters that are upper-cased to their lower-case equivalent.

  Create a structure that has one variable called value

"Create a structure that has one variable called value and one pointer to the list (making it a linked list). Prompt for 5 values from the keyboard as input and store them in the linked list. Print out the current contents of the list.

  Windows application that function like a banking account

Create a Windows application that function like a banking account register. Separate the business logic from the presentation layer. The graphical user interface should allow user to input the account name, number, and balance.

  Given the following test scores and grade equivalents

Given the following test scores and grade equivalents, write a function which is passed a score, and returns a letter grade based on the score entered. A number less than 0 or greater than 100 is invalid.

  Use the getint and getintwithinrange methods

Use the getInt and getIntWithinRange methods to validate that each score ranges from 1 through 100 and add code that discards any extra entries at the prompt that asks if you want to enter another score to the application below.

  Write program to input series of hourly temperatures

Create and write a c++ program which inputs series of 24 hourly temperatures from file, and outputs bar chart (using stars) of temperatures for the day.

  Implement a class to represent a matrix

Implement a class to represent a matrix. While doing this exercise, you are allowed only to use C++ primitive types and arrays. You may not use STL in your Matrix definition. You must use dynamic memory.

  Using the following program as a guide

Using the following program as a guide, write a program reads in 2 scores in the main function.. Calls a function that will triple each number. In the function and the print the result in the main function.

  Program that asks the user to enter up to 100 integer score

Write a C program that asks the user to enter up to 100 integer scores, which are to be stored in an array. (You should allow the user to terminate input prior to entering all 100 scores.) The program should then display all the scores, ten per line,..

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