Skip to content

Latest commit

 

History

History
80 lines (61 loc) · 2.92 KB

README.md

File metadata and controls

80 lines (61 loc) · 2.92 KB

Project 2: Ice Cream

Citation and License

This project belongs to Department of Computer Science, Columbia University. It may be used for educational purposes under Creative Commons with proper attribution and citation for the author TAs Naman Goyal (First Author), and the Instructor, Prof. Kenneth Ross.

Summary

Course: COMS 4444 Programming and Problem Solving (Fall 2021)
Problem Description: http://www.cs.columbia.edu/~kar/4444f21/node19.html
Course Website: http://www.cs.columbia.edu/~kar/4444f21
University: Columbia University
Instructor: Prof. Kenneth Ross
Project Language: Python

All course projects

Project 1: https://github.com/griff4692/chemotaxis
Project 2: https://github.com/thenamangoyal/icecream
Project 3: https://github.com/griff4692/coms4444_flowers/
Project 4: https://github.com/thenamangoyal/polygolf

Documentation

Installation

Requires python3.6 or higher

pip install -r requirements.txt

Demo

Icecream

Usage

python main.py

You can also specify the optional parameters below to disable GUI, disable browser launching, change port and address of server.

usage: main.py [-h] [--automatic] [--seed SEED]
               [--flavors {2,3,4,5,6,8,9,10,12,0}] [--port PORT]
               [--address ADDRESS] [--no_browser] [--no_gui]
               [--log_path LOG_PATH] [--disable_timeout] [--disable_logging]
               [--players PLAYERS [PLAYERS ...]]

optional arguments:
  -h, --help            show this help message and exit
  --automatic           Start playing automatically in GUI mode
  --seed SEED, -s SEED  Seed used by random number generator, specify 0 to use
                        no seed and have different random behavior on each
                        launch
  --flavors {2,3,4,5,6,8,9,10,12,0}, -f {2,3,4,5,6,8,9,10,12,0}
                        Number of flavors, specify 0 to use random number of
                        flavors
  --port PORT           Port to start
  --address ADDRESS, -a ADDRESS
                        Address
  --no_browser, -nb     Disable browser launching in GUI mode
  --no_gui, -ng         Disable GUI
  --log_path LOG_PATH   Directory path to dump log files, filepath if
                        disable_logging is false
  --disable_timeout, -time
                        Disable Timeout in non GUI mode
  --disable_logging     Disable Logging, log_path becomes path to file
  --players PLAYERS [PLAYERS ...], -p PLAYERS [PLAYERS ...]
                        List of players space separated

Debugging

The code generates a debug.log on every execution, detailing all the turns and steps in the game.

Reference

  1. https://remi.readthedocs.io/en/latest/remi.html
  2. https://github.com/dddomodossola/remi