Value: 100 points
This assignment falls under the standard cmsc201 academic integrity policy. This means you should not discuss/show/copy/distribute your solutions, your code or your main ideas for the solutions to any other student. Also, you should not post these problems on any forum, internet solutions website, etc.
“””
File: FILENAME.py
Author: YOUR NAME
Date: THE DATE
Section: YOUR DISCUSSION SECTION NUMBER
E-mail: YOUR_EMAIL@umbc.edu
Description:
DESCRIPTION OF WHAT THE PROGRAM DOES
“””
In this project you will write a game called Pyopoly, which is a very simplified version of Monopoly.
In this game, you’ll create two players, and have them traverse around a board until one of them goes “insolvent,” i.e. has no money left. Then the other player will win.
You are going to be locked into a game of financial-mortal-combat for the dominance of UMBC’s campus.
def display_board(the_board):
Has been written for your convenience. It will take any board which has a multiple of four size, so that it can be a square.
It expects a parameter which is a list of strings.
“Place”: “Terrace Apartments”,
“Abbrev”: “TerAp”,
“Position”: 1,
“Price”: 60,
“Rent”: 2,
“BuildingRent”: 100,
“Building Cost”: 50
There can be other keys in the dictionaries, but they can be ignored.
You should get the file on the GL server:
/afs/umbc.edu/users/e/r/eric8/pub/cs201/fall20/board_methods.py
Use the copy command:
cp /afs/umbc.edu/users/e/r/eric8/pub/cs201/fall20/board_methods.py .
Remember to get the period, otherwise it won’t have a destination.
You can then import the proper methods by using:
# put your header here
from sys import argv
from random import randint, seed
from board_methods import load_map, display_board
# possibly a lot more code here.
# this code can be anywhere from right under the imports to right # above if __name__ == ‘__main__’:
if len(argv) >= 2:
seed(argv[1])
If/when pycharm underlines your board_methods import in red, then you should add the directory as source:
Submit the files under the following titles:
(These are case sensitive as usual. )
submit cmsc201 PROJECT1 pyopoly.py
You don’t need to submit board_methods.py, since you should never modify it.
Coding standards can be found here.
if my_string == EXIT_STRING:
my_array[USERNAME_INDEX]
This is not a complete listing, but it includes:
Your project should include at least the functions:
def play_game(starting_money, pass_go_money, board_file):
We understand that the first big project can be overwhelming, which is why we’ve provided you with a detailed description of the more important functions.
This is the order of development that I would suggest to ensure success:
Since this project will probably run for a long time, you can test out all the different sample output for all of the different cases if you copy the pyc file:
/afs/umbc.edu/users/e/r/eric8/pub/cs201/fall20/pyopoly.pyc
First, navigate to your project 1 directory, which could potentially be home/cmsc201/proj1/ for instance.
cp /afs/umbc.edu/users/e/r/eric8/pub/cs201/fall20/pyopoly.pyc .
You can then run it like this:
python3 pyopoly.pyc 12345 proj1_board1.csv
python3 pyopoly.pyc abcde proj1_board2.csv
The general format is:
python3 pyopoly.pyc <seed string> <board csv file>
The 12345 represents the seed value that you have to enter at the command line. You can use any seed value as long as it’s a string without spaces.
There are currently two sample boards:
/afs/umbc.edu/users/e/r/eric8/pub/cs201/fall20/proj1_board1.csv
/afs/umbc.edu/users/e/r/eric8/pub/cs201/fall20/proj1_board2.csv
Copy them using the commands:
cp /afs/umbc.edu/users/e/r/eric8/pub/cs201/fall20/proj1_board1.csv .
cp /afs/umbc.edu/users/e/r/eric8/pub/cs201/fall20/proj1_board2.csv .
When you run the project, it should appear like this:
linux3[139]% python3 pyopoly.pyc 12345 proj1_board1.csv First player, what is your name? Eric First player, what symbol do you want your character to use? E Second player, what is your name? Jimmy Second player, what symbol do you want your character to use? J ******************************************************* *FrPrk*Bio *MathP*Sond *HTRd *FA *Meyer*Com *Sherm* * * * * * * * * * * ******************************************************* *RAC * *Study* * * * * ******* ******* *Phys * *Engin* * * * * ******* ******* *PubPo* *ITE * * * * * ******* ******* *AdDr * *PerfA* * * * * ******* ******* *PatH * *WlkAv* * * * * ******* ******* *SusH * *AlumH* *E * * * ******* ******* *UniC * *Walkr* * * * * ******************************************************* *PotH *LB *EH *HH *ChesH*PopAv*HillA*TerAp*GO-HC* * * * * * * * * *J * ******************************************************* Eric you have rolled 10 Eric you landed on Susquehanna Hall 1) Buy Property 2) Get Property Info 3) Get Player Info 4) Build a Building 5) End Turn … |
Requirement | Points (appx) |
Setting up players so that they can play the game, have the starting money, etc. | 5 |
Getting property abbreviations to output on the board | 5 |
Getting the players positions to output correctly, players move correctly on the board | 15 |
Getting Player Info | 10 |
Getting Property Info | 15 |
Buying Property | 15 |
Charging correct rents | 15 |
Building the Buildings | 10 |
Coding Standards, Documentation, Comments, Overall Correctness | 10 |
We pride ourselves in meeting the deadlines of our customers. We take your order, assign a writer but allow some more time for ourselves to edit the paper before delivering to you. You are guaranteed a flawless paper on a timely manner...
Our team at Research Paper 101 is committed to handling your paper according to the specfications and are available 24*7 for communication. Whenever you need a quick help, you can talk to our writers via the system messaging or contact support via live chat and we will deliver your message instantly.
Online Experts from Research Paper 101 are qualified both academically and in their experiences. Many are Masters and Phd holders and therefore, are qualified to handle complex assignments that require critical thinking and analyses...
We offer dissertation papers as per students’ wishes. We also help craft out the best topics and design concept papers. By ordering with us, you are guaranteed of defending and making through those hard faced professors in the defense panel!
We at Research Paper 101 take plagiarism as a serious offence. From the start, we train our writers to write all their papers from scratch. We also check if the papers have been cited appropriately. Our website also has a tool designed to check for plagiarism that has been made erroniusly. In essense, the paper you get will be 100% legit...
We understand that being a student is very challenging, some students balance between work and studies in order to survive. We therefore offer pocket friendly rates that are very competitive in the market.
Try it now!
How it works?
Follow these simple steps to get your paper done
Place your order
Fill in the order form and provide all details of your assignment.
Proceed with the payment
Choose the payment system that suits you most.
Receive the final file
Once your paper is ready, we will email it to you.
Our Services
No need to work on your paper at night. Sleep tight, we will cover your back. We offer all kinds of writing services.
Essays
No matter what kind of academic paper you need and how urgent you need it, you are welcome to choose your academic level and the type of your paper at an affordable price. We take care of all your paper needs and give a 24/7 customer care support system.
Admissions
Admission Essays & Business Writing Help
An admission essay is an essay or other written statement by a candidate, often a potential student enrolling in a college, university, or graduate school. You can be rest assurred that through our service we will write the best admission essay for you.
Reviews
Editing Support
Our academic writers and editors make the necessary changes to your paper so that it is polished. We also format your document by correctly quoting the sources and creating reference lists in the formats APA, Harvard, MLA, Chicago / Turabian.
Reviews
Revision Support
If you think your paper could be improved, you can request a review. In this case, your paper will be checked by the writer or assigned to an editor. You can use this option as many times as you see fit. This is free because we want you to be completely satisfied with the service offered.