Skip to content

Commit

Permalink
Ready added
Browse files Browse the repository at this point in the history
  • Loading branch information
bongotastic committed Mar 22, 2016
1 parent c01657e commit 0a20fb2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
9 changes: 9 additions & 0 deletions README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
To use these scripts, ou will need to open the scripts starting with the prefix app_*.
Each script has a number of parameters, most of the self explanatory. Change the parameters and
run the script (using IDLE for instance Module/Run, or F5 on Windows).

The files called lib_* shouldn't be touched unless you really know what you are doing.

Random tables are encoded as simple text files in the tables folder. Look for examples and replicate.

Systems are clunkily described at the moment. I'll get a fix for this soon enough.
5 changes: 4 additions & 1 deletion app_Speculative.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
# Name of the table
outfile_name = '500cargoes.txt'

# Number of cargoes
N = 500


## Script ( No need to edit below this) ########################################
##
Expand All @@ -37,7 +40,7 @@
import os.path

fout = open(os.path.join('outputs', '500cargoes.txt'), 'w')
for i in range(500):
for i in range(N):
stock = libS.GetOneCargo()
fout.write('Cargo %d -------------------------\n'%(i+1) + libS.PrettyPrint(stock) + '\n\n')
fout.close()

0 comments on commit 0a20fb2

Please sign in to comment.