Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

General instructions: This project aims at giving you the opportunity to practice all the skills you have been shown throughout the programming chapters. It will

General instructions: This project aims at giving you the opportunity to practice all the skills you have been shown throughout the programming chapters. It will involve teamwork (groups of 3 maximum) and useful code documentation through the use of comments. 1 Objective: What you need to develop is a game of a variant of the game of Rock Paper Scissors: The game involves one player playing against the computer. Each round the program will randomly choose one of the three gestures, then the player needs to enter his/her choice as well. The program then determines if the player won, lost, or if there is a draw. In case there is a draw, this variant of the game makes the program randomly choose one of the four following directions: up, down, left, right. The player also needs to make a choice. If the two choices are the same, the program wins, otherwise the program loses. A win corresponds to a gain of 10 points, while a loss is a reduction of 5 points. Negative scores are possible. At the end of all rounds, the scores of both the program and the player are displayed and the winner is announced. The game offers a hard mode where, in case of a draw, only two directions are proposed: left and right, so the chance to win for the player gets reduced. The program, when used, should start by asking how many rounds you want to play. The program will expect the user to enter a positive integer and keep asking for a new value until it is the case. Then the game starts the rounds and plays as described above. 2 Details: The following rules count towards the projects completion: 1. The code must contain helpful documentation in the form of comments. Important operations should have their own short description as to how they have been implemented. 2. The program should only accept the valid choices when playing. If users enter an invalid choice, the program should inform them of their mistake and ask for a new input. 3. The program should have a helpful interaction with the user. Inputs and outputs should be clear and meaningful. Team Regulations: - You are allowed to work in teams of 3 for this project. The 3 team members must contribute equally to the project. - Only the ID of the three team members must appear in the comment at the header of the program (DO NOT INCLUDE YOUR NAME). - The project file must be named (IDSTUD1_IDSTUD_2_IDSTUD_3_Project.py) - The project submission needs to be done on Canvas in the corresponding assignment. - There needs to be only one submission per team. If more than 1 member in the team submits a file, the earliest submission will be used for grading. - At the top of your code you need to provide the following data: team member IDs, date of last update, repartition of work (ex: member 1 worked on such functionality)

NB: using python

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions