首页 > 其他分享 >ICS3U – Summative A

ICS3U – Summative A

时间:2024-06-11 09:21:59浏览次数:14  
标签:Sloth they Summative should game grid ICS3U Sugar

ICS3U – Summative Assignment

METHODS AND ARRAYS Searching for Sugar:

Sugar the Sloth is lost in the Jungle (or you could think of it as a grid with rows and columns) and you willneed help him escape – while avoiding the roaming predators that are after him - in as few moves aspossible. He starts in a random location and can move randomly 1 space each turn. You need to find himand return him to the starting spot without getting caught by the predators.Your game should have a full description of what the game will actually do.-Be sure to explain the directional controls for the game

o How will they enter their guesses :

▪ entering co-ordinates (ie B2)

▪ enter directions (left / right / straight / north / south )

▪ using mouse clicks

o Sugar the Slothcan only move to adjacent cells - one square at a time each turn (up / down /left / right) – no diagonal movesYou need to explain the rules and point scheme for the game (along with how to win or lose).The user should input their name and it should be used during game play.

There should be a counter displaying the number of guesses they have taken so far and a grid showing wherethey currently are and where they have searched already.There should be a win and lose message with the players name in it with their total points.There should be messages to tell the player if they are getting close-You figure out how best to inform them

o Ie. Within 4 spots – getting warmer

o Ie. Within 2 spots – very hotThere should be a display of where the player has alreadyguessed so farThere are multiple levels of challenge to this single taskThere should be a labeled grid separating each cellSee image to the right

A “Give up” option/button to allow player to forfeit game

A “Cheat” option/button should display Sugar the Sloth’s current location in the grid

A “Win” option/button should display a winning message

Sugar the Sloth’s starting location should be random within the gridICS3U – Summative Assignment

4

METHODS AND ARRAYS

Mandatory Requirements :

  1. You game must use methods to solve / code your solution
  2. You must use arrays in a meaningful way
  3. Ie. Think of the playing board as an array
  4. This would allow you pass information to and from locations
  5. Try / Catch must be used in the solution
  6. At a minimum the grid should be 10 x 10
  7. You can make a larger play area if it helps with other extensions

Random Game Additions / Extensions

  1. Sugar the Sloth can’t cross the path that they have already walked (additional challenge – have theunwalkable path decay so after 10 turns – the path is now walkable again.
  1. Sugar the Sloth randomly walks around the maze and can move between 0-3 spots at a time
  2. Add random (invisible) walls that will obstruct the progress of the search (be sure these would give amessage that the path is impassible)
  1. Add random pitfalls that will cause the player to restart their search and reset Sugar the Sloth’sposition.
  1. Add randomly moving NPC’s that will attempt to stop your search (players need to avoid them)
  2. Keep track of the path that Sugar the Sloth moved during the entire play of the game
  3. Have an opening screen that displays an “animation” of the game being played
  4. This could have drawings of Sugar the Sloth, the player, the maze, etc.
  5. Expand your search area to a 3 Dimensional space (make grid 3D or even 4D)
  6. Draw your player and Sugar the Sloth in the Grid during game play
  7. A timer that is used displays how long they have been playing this game
  8. They could then modify the high scorers list to include fastest finds
  9. Add a battle phase, when player finds Sugar the Sloth– they can have some kind of battle to see if

Sugar the Sloth gets caught or escapes into Grid to hide again (think of Pokemon battles).

  1. Allow diagonal moves for Sugar the Sloth
  2. Enlarge the grid – so its 15x15 or 20x20
  3. Play music and / or sounds during game play
  4. Play different musical scores based on proximity to finding Sugar the Sloth
  5. Have a hint button the user can click to give a tip on where to find Sugar the Sloth
  6. They would lose some points each time they use this button
  7. Ie. Sugar the Sloth is 3 spaces away, or down and right, or in row, or columns, etc.
  8. Can you replay all of the moves that took place during the game play – store each move and let it bedisplayed turn by turn.

CHALLENGES (to Level 4 and beyond).

In addition to the above, the following features must be included to obtain a FULL level 4+.

  1. i) Keep track of the 5 most efficient searches of all time using files
  2. ii) Sort the scores list using a bubble sort from highest to lowest

    iii) Read the high scorers list from a file and update it if someone reaches the listOptional challengesi) Use an applet

Deadline – must be submitted by Tuesday June 14th by 1:40 pm

标签:Sloth,they,Summative,should,game,grid,ICS3U,Sugar
From: https://www.cnblogs.com/qq99515681/p/18240952

相关文章