GithubHelp home page GithubHelp logo

stilianb / muddytown Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 38.5 MB

CS 4050 Project 1. Created a graph to represent a town, where buildings are the nodes and streets are the edges. Included a python adaptation of Kruskal's for determining the optimal paving plan

Makefile 0.01% Python 97.59% Shell 0.02% PowerShell 0.03% JavaScript 0.12% HTML 0.02% CSS 0.03% Jupyter Notebook 0.06% Lua 0.01% Cython 0.29% C 1.41% C++ 0.31% Fortran 0.09% Forth 0.01% Roff 0.02%

muddytown's Introduction

***** MuddyTown Project *****

Joe Gunter, Juan Ruiz, David Soth-Kimmel, Stilian Balasopoulov

Executing the program

Setup

make setup

Running

`python3 processtown.py {flags_and_arguments}``

OR

make run ARGS="{flags_and_arguments}"

  • make run is just the aliased make command for python3 processtown.py

Flags

  • -a

    • show current town in alternate format
  • -an

    • show current town in alternate format conforming to spec requirements
  • -r

    • read town data from file identified by parameter
    • takes one parameter
      • arg[0] should be the location to a text file containing town data
    • is typically followed by a subsequent flag
  • -s

    • show current town in standard format
  • -sf

    • show current town in a prettier standard format
  • -v

    • print version and name
  • -w

    • write current town to file identified by parameter
    • should be proceeded by reading a town with the -r flag, otherwise will use the default town from "town.txt"
  • -c

    • creates town given number of buildings and streets
    • takes two arguments
      • arg[0] being number of buildings
      • arg[1] being number of streets
  • -p

    • create a paving plan and write to file identified by parameter
    • takes one parameter
      • arg[0] should be the location of a text file
  • -d

    • displays the paving plan stored in pavingplan.txt
    • determines total cost of given paving plan
  • -e

    • evaluate given paving plan for stored town
    • takes one parameter
      • arg[0] should be the location of a text file
  • -g

    • evaluate pseudorandom number generator
    • requires:
      • matplotlib.pyplot
  • -he

    • help function that lists flag options

Testing

./test.sh

OR

make test

muddytown's People

Contributors

stilianb 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.