Skip to content

Commit eeabe29

Browse files
committed
Small changes to enable the generation of cooking worlds in a new folder
1 parent e63f0e4 commit eeabe29

File tree

2 files changed

+45
-37
lines changed

2 files changed

+45
-37
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ tmp/*
2424
*.ipynb_checkpoints
2525
/dist
2626
/wheelhouse
27+
tw_games/

human_study/make_games.sh

Lines changed: 44 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,63 @@
11
# Run the following command
22
# DEBUG="--debug" parallel < make_games.sh
33

4+
set -e
5+
46
DEBUG="--debug"
7+
PATH=$HOME/.local/bin:$PATH
8+
EXEC_DIR=$(pwd)
9+
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
10+
11+
cd $DIR
512

6-
#tw-make --third-party cooking.py tw-cooking --output tw_games/tutorial.z8 -f --cook --cut --open --go 1 --recipe 1 --take 1 --seed 20190410 --tutorial $DEBUG
7-
tw-make --third-party cooking.py tw-cooking --output tw_games/tutorial.z8 -f --cook --cut --open --go 2 --recipe 1 --take 1 --seed 20190410 --tutorial $DEBUG
13+
tw-make --third-party $DIR/cooking.py tw-cooking --output $EXEC_DIR/cooking_games/tutorial.z8 -f --cook --cut --open --go 2 --recipe 1 --take 1 --seed 20190410 $DEBUG
14+
tw-make --third-party $DIR/cooking.py tw-cooking --output $EXEC_DIR/cooking_games/tutorial.z8 -f --cook --cut --open --go 2 --recipe 1 --take 1 --seed 20190410 --tutorial $DEBUG
815

916
# No treatment (baseline)
10-
tw-make --third-party cooking.py tw-cooking --output tw_games/treatment0_1.z8 -f --cook --cut --open --go 1 --recipe 2 --take 1 --seed 201905107 $DEBUG
11-
tw-make --third-party cooking.py tw-cooking --output tw_games/treatment0_2.z8 -f --cook --cut --open --go 2 --recipe 2 --take 2 --seed 201905102 $DEBUG
12-
tw-make --third-party cooking.py tw-cooking --output tw_games/treatment0_3.z8 -f --cook --cut --open --go 5 --recipe 3 --take 3 --seed 201905108 $DEBUG
13-
tw-make --third-party cooking.py tw-cooking --output tw_games/treatment0_4.z8 -f --cook --cut --open --go 5 --recipe 3 --take 3 --seeds 2179 2019 06 13 $DEBUG
14-
tw-make --third-party cooking.py tw-cooking --output tw_games/treatment0_5.z8 -f --cook --cut --open --go 8 --recipe 3 --take 3 --seed 201905108 $DEBUG
17+
tw-make --third-party $DIR/cooking.py tw-cooking --output $EXEC_DIR/cooking_games/treatment0_1.z8 -f --cook --cut --open --go 1 --recipe 2 --take 1 --seed 201905107 $DEBUG
18+
tw-make --third-party $DIR/cooking.py tw-cooking --output $EXEC_DIR/cooking_games/treatment0_2.z8 -f --cook --cut --open --go 2 --recipe 2 --take 2 --seed 201905102 $DEBUG
19+
tw-make --third-party $DIR/cooking.py tw-cooking --output $EXEC_DIR/cooking_games/treatment0_3.z8 -f --cook --cut --open --go 5 --recipe 3 --take 3 --seed 201905108 $DEBUG
20+
tw-make --third-party $DIR/cooking.py tw-cooking --output $EXEC_DIR/cooking_games/treatment0_4.z8 -f --cook --cut --open --go 5 --recipe 3 --take 3 --seeds 2179 2019 06 13 $DEBUG
21+
tw-make --third-party $DIR/cooking.py tw-cooking --output $EXEC_DIR/cooking_games/treatment0_5.z8 -f --cook --cut --open --go 8 --recipe 3 --take 3 --seed 201905108 $DEBUG
1522

1623
# Highlighting entities
17-
tw-make --third-party cooking.py tw-cooking --output tw_games/treatment1_1.z8 -f --cook --cut --open --go 1 --recipe 2 --take 1 --seed 201905107 --highlight $DEBUG
18-
tw-make --third-party cooking.py tw-cooking --output tw_games/treatment1_2.z8 -f --cook --cut --open --go 2 --recipe 2 --take 2 --seed 201905102 --highlight $DEBUG
19-
tw-make --third-party cooking.py tw-cooking --output tw_games/treatment1_3.z8 -f --cook --cut --open --go 5 --recipe 3 --take 3 --seed 201905108 --highlight $DEBUG
20-
tw-make --third-party cooking.py tw-cooking --output tw_games/treatment1_4.z8 -f --cook --cut --open --go 5 --recipe 3 --take 3 --seeds 2179 2019 06 13 --highlight $DEBUG
21-
tw-make --third-party cooking.py tw-cooking --output tw_games/treatment1_5.z8 -f --cook --cut --open --go 8 --recipe 3 --take 3 --seed 201905108 --highlight $DEBUG
24+
tw-make --third-party $DIR/cooking.py tw-cooking --output $EXEC_DIR/cooking_games/treatment1_1.z8 -f --cook --cut --open --go 1 --recipe 2 --take 1 --seed 201905107 --highlight $DEBUG
25+
tw-make --third-party $DIR/cooking.py tw-cooking --output $EXEC_DIR/cooking_games/treatment1_2.z8 -f --cook --cut --open --go 2 --recipe 2 --take 2 --seed 201905102 --highlight $DEBUG
26+
tw-make --third-party $DIR/cooking.py tw-cooking --output $EXEC_DIR/cooking_games/treatment1_3.z8 -f --cook --cut --open --go 5 --recipe 3 --take 3 --seed 201905108 --highlight $DEBUG
27+
tw-make --third-party $DIR/cooking.py tw-cooking --output $EXEC_DIR/cooking_games/treatment1_4.z8 -f --cook --cut --open --go 5 --recipe 3 --take 3 --seeds 2179 2019 06 13 --highlight $DEBUG
28+
tw-make --third-party $DIR/cooking.py tw-cooking --output $EXEC_DIR/cooking_games/treatment1_5.z8 -f --cook --cut --open --go 8 --recipe 3 --take 3 --seed 201905108 --highlight $DEBUG
2229

2330
# Replacing all entity names with made-up words
24-
tw-make --third-party cooking.py tw-cooking --output tw_games/treatment2_1.z8 -f --cook --cut --open --go 1 --recipe 2 --take 1 --highlight --seed 201905107 --fake-food-entities $DEBUG
25-
tw-make --third-party cooking.py tw-cooking --output tw_games/treatment2_2.z8 -f --cook --cut --open --go 2 --recipe 2 --take 2 --highlight --seed 201905102 --fake-entities $DEBUG
26-
tw-make --third-party cooking.py tw-cooking --output tw_games/treatment2_3.z8 -f --cook --cut --open --go 5 --recipe 3 --take 3 --highlight --seed 201905108 --fake-entities $DEBUG
27-
tw-make --third-party cooking.py tw-cooking --output tw_games/treatment2_4.z8 -f --cook --cut --open --go 5 --recipe 3 --take 3 --highlight --seeds 2179 2019 06 13 --fake-entities $DEBUG
28-
tw-make --third-party cooking.py tw-cooking --output tw_games/treatment2_5.z8 -f --cook --cut --open --go 8 --recipe 3 --take 3 --highlight --seed 201905108 --fake-entities $DEBUG
31+
tw-make --third-party $DIR/cooking.py tw-cooking --output $EXEC_DIR/cooking_games/treatment2_1.z8 -f --cook --cut --open --go 1 --recipe 2 --take 1 --highlight --seed 201905107 --fake-food-entities $DEBUG
32+
tw-make --third-party $DIR/cooking.py tw-cooking --output $EXEC_DIR/cooking_games/treatment2_2.z8 -f --cook --cut --open --go 2 --recipe 2 --take 2 --highlight --seed 201905102 --fake-entities $DEBUG
33+
tw-make --third-party $DIR/cooking.py tw-cooking --output $EXEC_DIR/cooking_games/treatment2_3.z8 -f --cook --cut --open --go 5 --recipe 3 --take 3 --highlight --seed 201905108 --fake-entities $DEBUG
34+
tw-make --third-party $DIR/cooking.py tw-cooking --output $EXEC_DIR/cooking_games/treatment2_4.z8 -f --cook --cut --open --go 5 --recipe 3 --take 3 --highlight --seeds 2179 2019 06 13 --fake-entities $DEBUG
35+
tw-make --third-party $DIR/cooking.py tw-cooking --output $EXEC_DIR/cooking_games/treatment2_5.z8 -f --cook --cut --open --go 8 --recipe 3 --take 3 --highlight --seed 201905108 --fake-entities $DEBUG
2936

3037
# Replacing all command verbs with made-up words
31-
tw-make --third-party cooking.py tw-cooking --output tw_games/treatment3_1.z8 -f --cook --cut --open --go 1 --recipe 2 --take 1 --highlight --seed 201905107 --fake-food-commands $DEBUG
32-
tw-make --third-party cooking.py tw-cooking --output tw_games/treatment3_2.z8 -f --cook --cut --open --go 2 --recipe 2 --take 2 --highlight --seed 201905102 --fake-commands $DEBUG
33-
tw-make --third-party cooking.py tw-cooking --output tw_games/treatment3_3.z8 -f --cook --cut --open --go 5 --recipe 3 --take 3 --highlight --seed 201905108 --fake-commands $DEBUG
34-
tw-make --third-party cooking.py tw-cooking --output tw_games/treatment3_4.z8 -f --cook --cut --open --go 5 --recipe 3 --take 3 --highlight --seeds 2179 2019 06 13 --fake-commands $DEBUG
35-
tw-make --third-party cooking.py tw-cooking --output tw_games/treatment3_5.z8 -f --cook --cut --open --go 8 --recipe 3 --take 3 --highlight --seed 201905108 --fake-commands $DEBUG
38+
tw-make --third-party $DIR/cooking.py tw-cooking --output $EXEC_DIR/cooking_games/treatment3_1.z8 -f --cook --cut --open --go 1 --recipe 2 --take 1 --highlight --seed 201905107 --fake-food-commands $DEBUG
39+
tw-make --third-party $DIR/cooking.py tw-cooking --output $EXEC_DIR/cooking_games/treatment3_2.z8 -f --cook --cut --open --go 2 --recipe 2 --take 2 --highlight --seed 201905102 --fake-commands $DEBUG
40+
tw-make --third-party $DIR/cooking.py tw-cooking --output $EXEC_DIR/cooking_games/treatment3_3.z8 -f --cook --cut --open --go 5 --recipe 3 --take 3 --highlight --seed 201905108 --fake-commands $DEBUG
41+
tw-make --third-party $DIR/cooking.py tw-cooking --output $EXEC_DIR/cooking_games/treatment3_4.z8 -f --cook --cut --open --go 5 --recipe 3 --take 3 --highlight --seeds 2179 2019 06 13 --fake-commands $DEBUG
42+
tw-make --third-party $DIR/cooking.py tw-cooking --output $EXEC_DIR/cooking_games/treatment3_5.z8 -f --cook --cut --open --go 8 --recipe 3 --take 3 --highlight --seed 201905108 --fake-commands $DEBUG
3643

3744
# Swapping all command verbs with each other
38-
tw-make --third-party cooking.py tw-cooking --output tw_games/treatment4_1.z8 -f --cook --cut --open --go 1 --recipe 2 --take 1 --highlight --seed 201905107 --swap-commands $DEBUG
39-
tw-make --third-party cooking.py tw-cooking --output tw_games/treatment4_2.z8 -f --cook --cut --open --go 2 --recipe 2 --take 2 --highlight --seed 201905102 --swap-commands $DEBUG
40-
tw-make --third-party cooking.py tw-cooking --output tw_games/treatment4_3.z8 -f --cook --cut --open --go 5 --recipe 3 --take 3 --highlight --seed 201905108 --swap-commands $DEBUG
41-
tw-make --third-party cooking.py tw-cooking --output tw_games/treatment4_4.z8 -f --cook --cut --open --go 5 --recipe 3 --take 3 --highlight --seeds 2179 2019 06 13 --swap-commands $DEBUG
42-
tw-make --third-party cooking.py tw-cooking --output tw_games/treatment4_5.z8 -f --cook --cut --open --go 8 --recipe 3 --take 3 --highlight --seed 201905108 --swap-commands $DEBUG
45+
tw-make --third-party $DIR/cooking.py tw-cooking --output $EXEC_DIR/cooking_games/treatment4_1.z8 -f --cook --cut --open --go 1 --recipe 2 --take 1 --highlight --seed 201905107 --swap-commands $DEBUG
46+
tw-make --third-party $DIR/cooking.py tw-cooking --output $EXEC_DIR/cooking_games/treatment4_2.z8 -f --cook --cut --open --go 2 --recipe 2 --take 2 --highlight --seed 201905102 --swap-commands $DEBUG
47+
tw-make --third-party $DIR/cooking.py tw-cooking --output $EXEC_DIR/cooking_games/treatment4_3.z8 -f --cook --cut --open --go 5 --recipe 3 --take 3 --highlight --seed 201905108 --swap-commands $DEBUG
48+
tw-make --third-party $DIR/cooking.py tw-cooking --output $EXEC_DIR/cooking_games/treatment4_4.z8 -f --cook --cut --open --go 5 --recipe 3 --take 3 --highlight --seeds 2179 2019 06 13 --swap-commands $DEBUG
49+
tw-make --third-party $DIR/cooking.py tw-cooking --output $EXEC_DIR/cooking_games/treatment4_5.z8 -f --cook --cut --open --go 8 --recipe 3 --take 3 --highlight --seed 201905108 --swap-commands $DEBUG
4350

4451
# Removing context around entities
45-
tw-make --third-party cooking.py tw-cooking --output tw_games/treatment5_1.z8 -f --cook --cut --open --go 1 --recipe 2 --take 1 --seed 201905107 --entity-only $DEBUG
46-
tw-make --third-party cooking.py tw-cooking --output tw_games/treatment5_2.z8 -f --cook --cut --open --go 2 --recipe 2 --take 2 --seed 201905102 --entity-only $DEBUG
47-
tw-make --third-party cooking.py tw-cooking --output tw_games/treatment5_3.z8 -f --cook --cut --open --go 5 --recipe 3 --take 3 --seed 201905108 --entity-only $DEBUG
48-
tw-make --third-party cooking.py tw-cooking --output tw_games/treatment5_4.z8 -f --cook --cut --open --go 5 --recipe 3 --take 3 --seeds 2179 2019 06 13 --entity-only $DEBUG
49-
tw-make --third-party cooking.py tw-cooking --output tw_games/treatment5_5.z8 -f --cook --cut --open --go 8 --recipe 3 --take 3 --seed 201905108 --entity-only $DEBUG
52+
tw-make --third-party $DIR/cooking.py tw-cooking --output $EXEC_DIR/cooking_games/treatment5_1.z8 -f --cook --cut --open --go 1 --recipe 2 --take 1 --seed 201905107 --entity-only $DEBUG
53+
tw-make --third-party $DIR/cooking.py tw-cooking --output $EXEC_DIR/cooking_games/treatment5_2.z8 -f --cook --cut --open --go 2 --recipe 2 --take 2 --seed 201905102 --entity-only $DEBUG
54+
tw-make --third-party $DIR/cooking.py tw-cooking --output $EXEC_DIR/cooking_games/treatment5_3.z8 -f --cook --cut --open --go 5 --recipe 3 --take 3 --seed 201905108 --entity-only $DEBUG
55+
tw-make --third-party $DIR/cooking.py tw-cooking --output $EXEC_DIR/cooking_games/treatment5_4.z8 -f --cook --cut --open --go 5 --recipe 3 --take 3 --seeds 2179 2019 06 13 --entity-only $DEBUG
56+
tw-make --third-party $DIR/cooking.py tw-cooking --output $EXEC_DIR/cooking_games/treatment5_5.z8 -f --cook --cut --open --go 8 --recipe 3 --take 3 --seed 201905108 --entity-only $DEBUG
5057

5158
# Replacing all entity names and all command verbs with made-up words
52-
tw-make --third-party cooking.py tw-cooking --output tw_games/treatment6_1.z8 -f --cook --cut --open --go 1 --recipe 2 --take 1 --highlight --seed 201905107 --fake-food-entities --fake-food-commands $DEBUG
53-
tw-make --third-party cooking.py tw-cooking --output tw_games/treatment6_2.z8 -f --cook --cut --open --go 2 --recipe 2 --take 2 --highlight --seed 201905102 --fake-entities --fake-commands $DEBUG
54-
tw-make --third-party cooking.py tw-cooking --output tw_games/treatment6_3.z8 -f --cook --cut --open --go 5 --recipe 3 --take 3 --highlight --seed 201905108 --fake-entities --fake-commands $DEBUG
55-
tw-make --third-party cooking.py tw-cooking --output tw_games/treatment6_4.z8 -f --cook --cut --open --go 5 --recipe 3 --take 3 --highlight --seeds 2179 2019 06 13 --fake-entities --fake-commands $DEBUG
56-
tw-make --third-party cooking.py tw-cooking --output tw_games/treatment6_5.z8 -f --cook --cut --open --go 8 --recipe 3 --take 3 --highlight --seed 201905108 --fake-entities --fake-commands $DEBUG
59+
tw-make --third-party $DIR/cooking.py tw-cooking --output $EXEC_DIR/cooking_games/treatment6_1.z8 -f --cook --cut --open --go 1 --recipe 2 --take 1 --highlight --seed 201905107 --fake-food-entities --fake-food-commands $DEBUG
60+
tw-make --third-party $DIR/cooking.py tw-cooking --output $EXEC_DIR/cooking_games/treatment6_2.z8 -f --cook --cut --open --go 2 --recipe 2 --take 2 --highlight --seed 201905102 --fake-entities --fake-commands $DEBUG
61+
tw-make --third-party $DIR/cooking.py tw-cooking --output $EXEC_DIR/cooking_games/treatment6_3.z8 -f --cook --cut --open --go 5 --recipe 3 --take 3 --highlight --seed 201905108 --fake-entities --fake-commands $DEBUG
62+
tw-make --third-party $DIR/cooking.py tw-cooking --output $EXEC_DIR/cooking_games/treatment6_4.z8 -f --cook --cut --open --go 5 --recipe 3 --take 3 --highlight --seeds 2179 2019 06 13 --fake-entities --fake-commands $DEBUG
63+
tw-make --third-party $DIR/cooking.py tw-cooking --output $EXEC_DIR/cooking_games/treatment6_5.z8 -f --cook --cut --open --go 8 --recipe 3 --take 3 --highlight --seed 201905108 --fake-entities --fake-commands $DEBUG

0 commit comments

Comments
 (0)