josruice / pps-sock-exchange

COMS 4444 Programming and Problem Solving - The New York Sock Exchange (project 3)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PPS 2017 - The New York Socks exchange

Player code authors (group 2):

  • Frank Aloia
  • Catherine Zhao
  • Jose Vicente Ruiz Cepeda

Simulator author: Chengyu Lin.

Usage

You need a java environment installed. First compile the simulator:

$ javac exchange/sim/*.java

Then run simulator for fun! For example:

java exchange.sim.Simulator -p g0 g0 g0 --gui --fps 1
Parameters Meanings
-p/--players player0 player1 ... Specifying the players
-n [integer number] Specifying the number of pairs of socks
-t [integer number]/--turns [integer number] Specifying turns for exchanging
-g/--gui Enable GUI
--fps [float number] Set fps
-tl/--timelimit [integer number] Set the total timelimit for each player (in millisecond)
-v/--verbose Enable the detailed events log
-l/--log [file] Save the detailed events log to file

About

COMS 4444 Programming and Problem Solving - The New York Sock Exchange (project 3)


Languages

Language:Java 97.9%Language:JavaScript 1.4%Language:Python 0.6%Language:HTML 0.1%Language:Makefile 0.0%