Advertisement
marcopolo1613

Untitled

Nov 10th, 2012
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.70 KB | None | 0 0
  1. Project Specification
  2. Due: 11:59 P.M. Thursday, November 29, 2012
  3.  
  4. "Johnny Football Versus The S.E.C."
  5.  
  6. The project is to write a C++/FLTK GUI program which simulates a football
  7. game pitting the Fightin' Texas Aggie quarterback "Johnny Football" against the
  8. defensive line of an S.E.C. opponent.
  9.  
  10. The game board is an 8 by 8 checkerboard, and the game is based on "Fox and
  11. Hounds," as described on Wikipedia. The fox is the TAMU quarterback making a
  12. "quarterback keeper" play, and the hounds are an S.E.C. defensive line. The
  13. human player chooses one side and the program plays the other side.
  14.  
  15. The checkerboard consists of alternating light and dark squares in colors of
  16. your choice, but the checkers should be either Aggie maroon or the appropriate
  17. S.E.C. opponent's color. The game is played on the 32 dark squares.
  18.  
  19. The program should start by giving instructions on how to play the game and
  20. asking the player's name, the S.E.C. team, and whether the player wants to play
  21. quarterback or defense. At the end of the game, update a disk file of the
  22. top five scores and player names, and display those. (The list starts out
  23. blank.)
  24.  
  25. If the human player chooses to be the quarterback, he/she may choose
  26. any of the bottom four dark squares as the starting square by clicking on it.
  27. The quarterback moves first, by clicking on the square he wants to move to,
  28. then the program moves one defensive lineman, and so on.
  29.  
  30. If the human player chooses to be the S.E.C. defensive line, the program picks
  31. a quarterback starting square and the first quarterback move. Then after each
  32. quarterback move the human player moves one defensive lineman.
  33.  
  34. The game ends when the quarterback reaches the top goal line (TAMU wins), or
  35. when the player whose turn it is cannot move. If the defense cannot move TAMU
  36. wins, and if the quarterback cannot move the S.E.C. wins. The quarterback's
  37. score is as follows:
  38.  
  39. Quarterback cannot move 2 * number of quarterback moves
  40. Defensive line cannot move 3 * number of quarterback moves
  41. Quarterback reaches goal line 100
  42.  
  43. The defensive line's score is 100 minus the quarterback's score.
  44.  
  45. Your program does not have to win the game to get full credit, it just has to
  46. make legal moves. For example, pick a defensive lineman and move one square
  47. down diagonally, or pick a legal quarterback move diagonally forward
  48. or backward one square; no piece can move to a square occupied by another
  49. piece.
  50.  
  51. If you want to pick a piece or a move at random, std_lib_facilities3.h has a
  52. function randint(n) which returns a random int in the range [0,n).
  53.  
  54. You must use classes and buttons and you cannot have more than 24 statements in
  55. a function, including main().
  56.  
  57. This is a team project, with three students on a team. The instructor will
  58. assign the teams. (Note: If there are any problems with your team assignment,
  59. please talk to your TA or Dr. Daugherity promptly.) You may choose either
  60. the Visual C++ environment in the lab or linux-new.cse.tamu.edu with X windows.
  61. Every member of the team must do some of the coding, some of the testing, and
  62. write some of the report.
  63.  
  64. Your program must be written with a GUI in C++ using FLTK and be submitted both
  65. to CSNET and also on a CD. The project report (described
  66. below) should be submitted on paper to your TA, along with your CD. You only
  67. need to submit one report and CD and CSNET file per team. All team members
  68. will receive the same project grade, unless some team member does not do
  69. his/her part (see report outline below).
  70.  
  71. Extra credit (up to 10 points) will be given for additional features such as
  72. images (maybe pictures on the checkers?), animation, sound effects (e.g., use
  73. Audiere or the Microsoft Windows API to play a .wav file of the football fight
  74. songs), a clock showing how many seconds have elapsed, etc.
  75.  
  76. The TA's will vote on the best projects, which (with your permission) will be
  77. posted on the course web site for everyone to play!
  78.  
  79. REPORT OUTLINE
  80.  
  81. The project report must be printed on a laser printer. The report should
  82. include the following sections:
  83.  
  84. 1. Team information (team name, members' names, who did what, did each member
  85. do a fair share of the work)
  86. 2. Statement of the problem, significance, etc.
  87. 3. Restrictions and limitations
  88. 4. Explanation of your approach, including a HIPO chart (analysis to choose a
  89. strategy for programming the project, how you coded it, etc.)
  90. 5. Sample run (screen shots)
  91. 6. Results and analysis
  92. 7. Conclusions - What did you show? What did you learn?
  93. 8. Future research (how your program could be improved or extended)
  94. 9. Instructions on how to run your program
  95. 10. Listing of the COMMENTED program
  96. 11. Bibliography - references used, if any
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement