The Cooking Game¶
This type of game was used for the competition First TextWorld Problems [1]. The overall objective of the game is to locate the kitchen, read the cookbook, fetch the recipe’s ingredients, process them accordingly, prepare the meal, and eat it. To control the game’s difficulty, one can specify the amount of skills that are involved to solve it (see skills section below).
References
Usage¶
usage: tw-make tw-cooking [-h] [--recipe INT] [--take INT] [--go {1,6,9,12}]
[--open] [--cook] [--cut] [--drop]
[--recipe-seed INT] [--split {train,valid,test}]
The Cooking Game settings¶
- --recipe
N u m b e r o f i n g r e d i e n t s i n t h e r e c i p e . D e f a u l t : 1 Number of ingredients in the recipe. Default: 1
D e f a u l t : ` ` 1 ` ` Default:
1- --take
N u m b e r o f i n g r e d i e n t s t o f i n d . I t m u s t b e l e s s o r e q u a l t o t h e v a l u e o f ` - - r e c i p e ` . D e f a u l t : 0 Number of ingredients to find. It must be less or equal to the value of
--recipe. Default: 0D e f a u l t : ` ` 0 ` ` Default:
0- --go
P o s s i b l e c h o i c e s : 1 , 6 , 9 , 1 2 Possible choices: 1, 6, 9, 12
N u m b e r o f l o c a t i o n s i n t h e g a m e ( 1 , 6 , 9 , o r 1 2 ) . D e f a u l t : 1 Number of locations in the game (1, 6, 9, or 12). Default: 1
D e f a u l t : ` ` 1 ` ` Default:
1- --open
W h e t h e r c o n t a i n e r s / d o o r s n e e d t o b e o p e n e d . Whether containers/doors need to be opened.
D e f a u l t : ` ` F a l s e ` ` Default:
False- --cook
W h e t h e r s o m e i n g r e d i e n t s n e e d t o b e c o o k e d . Whether some ingredients need to be cooked.
D e f a u l t : ` ` F a l s e ` ` Default:
False- --cut
W h e t h e r s o m e i n g r e d i e n t s n e e d t o b e c u t . Whether some ingredients need to be cut.
D e f a u l t : ` ` F a l s e ` ` Default:
False- --drop
W h e t h e r t h e p l a y e r ‘ s i n v e n t o r y h a s l i m i t e d c a p a c i t y . Whether the player’s inventory has limited capacity.
D e f a u l t : ` ` F a l s e ` ` Default:
False- --recipe-seed
R a n d o m s e e d u s e d f o r g e n e r a t i n g t h e r e c i p e . D e f a u l t : 0 Random seed used for generating the recipe. Default: 0
D e f a u l t : ` ` 0 ` ` Default:
0- --split
P o s s i b l e c h o i c e s : t r a i n , v a l i d , t e s t Possible choices: train, valid, test
S p e c i f y t h e g a m e d i s t r i b u t i o n t o u s e . F o o d i t e m s ( a d j - n o u n p a i r s ) a r e s p l i t i n t h r e e s u b s e t s . A l s o , t h e w a y t h e t r a i n i n g f o o d i t e m s c a n b e p r e p a r e d i s f u r t h e r d i v i d e d i n t h r e e s u b s e t s . Specify the game distribution to use. Food items (adj-noun pairs) are split in three subsets. Also, the way the training food items can be prepared is further divided in three subsets.
t r a i n : t r a i n i n g f o o d a n d t h e i r c o r r e s p o n d i n g t r a i n i n g p r e p a r a t i o n s train: training food and their corresponding training preparations
v a l i d : v a l i d f o o d + t r a i n i n g f o o d b u t w i t h u n s e e n v a l i d p r e p a r a t i o n s valid: valid food + training food but with unseen valid preparations
t e s t : t e s t f o o d + t r a i n i n g f o o d b u t w i t h u n s e e n t e s t p r e p a r a t i o n s test: test food + training food but with unseen test preparations
D e f a u l t : g a m e i s d r a w n f r o m t h e j o i n t d i s t r i b u t i o n o v e r t r a i n , v a l i d , a n d t e s t . Default: game is drawn from the joint distribution over train, valid, and test.