Giter VIP home page Giter VIP logo

m08_project's Introduction

M08_Project

Sorry! board game project for school.

Assignment

  1. To play “Sorry”, you’ll need to create up to Four players. The game will prompt the user for the number of players (2-4).
  2. Create a structure for ‘players’. The structure consists of the player’s name and their position.
  3. Create an array that can contain up to four players.
  4. Create two die for the players to roll.
  5. The playing board has 60 spaces (with 60 being the winning space).
  6. The dice have special conditions:
  1. = Move two spaces
  2. = Move three spaces
  3. = Move back one space.
  4. = Move back three spaces.
  5. = Move six spaces.
  6. = Swap spots with the last player / or nothing if player is in last.
  7. = Move zero spaces (lose a turn).
  8. = Move nine spaces.
  9. = Move ten spaces.
  10. = Swap spots with the leading player / or do nothing if player is in the lead.
  11. = Start Over
  1. Create an array to track the number of times each dice value is rolled (number of times a two through twelve was rolled). At the end of the game list the number of times each value was rolled.
  2. A player must roll a double to start.
  3. If a player lands on the same space as another, the other player must return to the beginning. Example: If P1 lands on a space where P3 is, P3 would go back to the start.
  4. A player must roll an EXACT number to enter the winning space.
  5. Use a random generator to “roll” the dice, the user must press enter to roll.
  6. Indicate the value of each die, the total of the roll, and the resultant move after each dice roll.
  7. Depict the players’ positions on the screen after each round.
  8. Once a player finishes, create a winning message announcing the winner.
  9. Then ask the user if they would like to play again.
  10. You must use at least three functions. Some function examples could be: Roll dice, check for other player (when moving), display board.
  11. Display the status/location of the players between sets of rolls.
  12. Depict a Playing Board on the screen and display the Players’ position on the board. (Extra Credit) (maybe try using a method to create the board and screen each time a player moves)
  13. If a player rolls a double, they’ll get another roll (Extra Credit).
  14. If a player rolls two doubles in a row, they Start Over (Extra Credit).

m08_project's People

Contributors

unusualparticle avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.