192 lines
14 KiB
Python
192 lines
14 KiB
Python
"""Mission commands that name a recipient or a sender (docs/17), third round.
|
|||
|
|
|
||
|
|
Same short notation as tests/test_steps.py (`short()` there), plus `give <Name>`: hand it over to that named person.
|
||
|
|
Names are kept as written (Korean particles such as 한테 / 에게 / 께 / 씨 taken off). The sender ("Anvar sends it",
|
||
|
|
"Anvar asks you") is not a step. "bring this / it" = already held (no pick); "take / bring the cup" = pick it here.
|
||
|
|
Places must be markers (home, PInit, Wp, a, b, dock2, exit, final, p1 … p10); anything else, an unknown object or a
|
||
|
|
named person with no place: "?" (Lumi asks, never guesses)."""
|
||
|
|
|
||
|
|
CASES = {
|
||
|
|
# ---- already holding it ----
|
||
|
|
"bring this cup to James, he is at p6": "go p6 | give James",
|
||
|
|
"bring it to James at p6": "go p6 | give James",
|
||
|
|
"Bring this to Mina at final.": "go final | give Mina",
|
||
|
|
"take this to Sara, she's at p3": "go p3 | give Sara",
|
||
|
|
"bring this bottle to Tom at p9": "go p9 | give Tom",
|
||
|
|
"carry it to David at exit": "go exit | give David",
|
||
|
|
"bring it to Anna at p2 please": "go p2 | give Anna",
|
||
|
|
"Lumi, bring this cup to John. He is at p4.": "go p4 | give John",
|
||
|
|
"James is at p6, bring this to him": "go p6 | give James",
|
||
|
|
"Mina is waiting at final, take it to her": "go final | give Mina",
|
||
|
|
"give this to Sara at p3": "go p3 | give Sara",
|
||
|
|
"hand this to Tom at p9": "go p9 | give Tom",
|
||
|
|
"um bring this to peter at p7": "go p7 | give peter",
|
||
|
|
"bring the cup you're holding to Lisa at p10": "go p10 | give Lisa",
|
||
|
|
"deliver this to Kim at dock2": "go dock2 | give Kim",
|
||
|
|
"bring this apple to Bob, he's at point five": "go p5 | give Bob",
|
||
|
|
"Bring it to Maria at P8.": "go p8 | give Maria",
|
||
|
|
"take it over to Alex at a": "go a | give Alex",
|
||
|
|
"bring it to Chris at b": "go b | give Chris",
|
||
|
|
"bring this to Mr. Park at p1": "go p1 | give Mr. Park",
|
||
|
|
"bring this to Dr. Lee at home": "go home | give Dr. Lee",
|
||
|
|
"bring this to Anvar at Wp": "go Wp | give Anvar",
|
||
|
|
"bring it to Jack at PInit": "go PInit | give Jack",
|
||
|
|
# ---- pick it here first ----
|
||
|
|
"take the cup and bring it to James at p6": "pick cup | go p6 | give James",
|
||
|
|
"take the cup and bring it to Sara at p3": "pick cup | go p3 | give Sara",
|
||
|
|
"pick up the bottle and give it to Mina at final": "pick bottle | go final | give Mina",
|
||
|
|
"grab the apple and take it to Tom at p9": "pick apple | go p9 | give Tom",
|
||
|
|
"take the banana to David at exit": "pick banana | go exit | give David",
|
||
|
|
"bring the cup to James at p6": "pick cup | go p6 | give James",
|
||
|
|
"bring the red cup to Anna at p2": "pick red cup | go p2 | give Anna",
|
||
|
|
"take the white mug to John at p4": "pick white cup | go p4 | give John",
|
||
|
|
"Lumi, take the green bottle to Lisa at p10.": "pick green bottle | go p10 | give Lisa",
|
||
|
|
"pick up the orange and bring it to Bob at p5": "pick orange | go p5 | give Bob",
|
||
|
|
"take the yellow banana and give it to Maria at p8": "pick yellow banana | go p8 | give Maria",
|
||
|
|
"grab the glass, bring it to Peter at p7": "pick cup | go p7 | give Peter",
|
||
|
|
"Okay Lumi, take the cup, go to p6 and give it to James.": "pick cup | go p6 | give James",
|
||
|
|
"take the cup, go to final and give it to Mina": "pick cup | go final | give Mina",
|
||
|
|
"take the bottle, drive to p3, hand it to Sara": "pick bottle | go p3 | give Sara",
|
||
|
|
# ---- with a sender ----
|
||
|
|
"Anvar asks you to bring the bottle to Mina at final": "pick bottle | go final | give Mina",
|
||
|
|
"Anvar sends this cup to Mina at p4": "go p4 | give Mina",
|
||
|
|
"bring the apple to Tom at p9, it's from Lisa": "pick apple | go p9 | give Tom",
|
||
|
|
"this is from Anvar, bring it to James at p6": "go p6 | give James",
|
||
|
|
"Lisa wants you to take the cup to Tom at p9": "pick cup | go p9 | give Tom",
|
||
|
|
"James asked me to send this to Sara at p3": "go p3 | give Sara",
|
||
|
|
"I'm Anvar, I'm at p1. Take the cup to James at p6": "pick cup | go p6 | give James",
|
||
|
|
"from Anna: bring the banana to Bob at p5": "pick banana | go p5 | give Bob",
|
||
|
|
"Kim sends the bottle, bring it to Lee at dock2": "pick bottle | go dock2 | give Lee",
|
||
|
|
"on behalf of David, take this to Maria at p8": "go p8 | give Maria",
|
||
|
|
"Anvar sends it, give it to Mina at final and say hello from Anvar":
|
||
|
|
"go final | give Mina | say hello from Anvar",
|
||
|
|
"take the cup to James at p6 and tell him Anvar says thank you":
|
||
|
|
"pick cup | go p6 | give James | say Anvar says thank you",
|
||
|
|
"bring this to Sara at p3 and say happy birthday": "go p3 | give Sara | say happy birthday",
|
||
|
|
"take the apple to Tom at p9, give it and say this is from Lisa":
|
||
|
|
"pick apple | go p9 | give Tom | say this is from Lisa",
|
||
|
|
# ---- longer missions ----
|
||
|
|
"take the bottle from p2 and bring it to Mina at p5": "go p2 | pick bottle | go p5 | give Mina",
|
||
|
|
"go to p2, pick up the cup and bring it to James at p6": "go p2 | pick cup | go p6 | give James",
|
||
|
|
"go to p9, get the cup from Anvar and bring it to Mina at p1": "go p9 | receive cup | go p1 | give Mina",
|
||
|
|
"go to p3, ask Sara for the bottle and bring it to Tom at p7": "go p3 | receive bottle | go p7 | give Tom",
|
||
|
|
"get the apple from Lisa at p4 and give it to Tom at p9": "go p4 | receive apple | go p9 | give Tom",
|
||
|
|
"take the cup to James at p6 and then come back here": "pick cup | go p6 | give James | go here",
|
||
|
|
"bring this to Mina at final and go home": "go final | give Mina | go home",
|
||
|
|
"take the cup to James at p6, then go to dock2": "pick cup | go p6 | give James | go dock2",
|
||
|
|
"bring this to James at p6 or Sara at p3": "?",
|
||
|
|
"bring it to James at p6, if he's not there put it on the table": "?",
|
||
|
|
"take the cup to James at p6 and put it on his desk": "pick cup | go p6 | place dining table",
|
||
|
|
"put this on Mina's table at final": "go final | place dining table",
|
||
|
|
"bring the cup to James at p6, he is sitting on the left": "?",
|
||
|
|
"go to p6, turn left and give it to James": "go p6 | turn 90 | give James",
|
||
|
|
"go to p6, move forward 1 meter and give it to James": "go p6 | move forward 1 | give James",
|
||
|
|
"take the cup, go to p6 and give it to James, then bring back the bottle from him to me":
|
||
|
|
"pick cup | go p6 | give James | receive bottle | go here | give",
|
||
|
|
"bring it to James here": "go here | give James",
|
||
|
|
"give this to Anna, she's right here": "go here | give Anna",
|
||
|
|
"take the cup and give it to Sara here": "pick cup | go here | give Sara",
|
||
|
|
# ---- must stay unread ----
|
||
|
|
"bring this cup to James": "?",
|
||
|
|
"take the cup to Mina": "?",
|
||
|
|
"bring it to James in the kitchen": "?",
|
||
|
|
"bring this to Sara at her desk": "?",
|
||
|
|
"bring it to Tom at p11": "?",
|
||
|
|
"take the cup to Lisa at room 3": "?",
|
||
|
|
"bring the water to James at p6": "?",
|
||
|
|
"bring the coffee to Mina at final": "?",
|
||
|
|
"take the laptop to David at exit": "?",
|
||
|
|
"bring it to the boss": "?",
|
||
|
|
"bring it to James at p6 and dance": "?",
|
||
|
|
"take the cup to James at the office": "?",
|
||
|
|
"bring this to someone at p12": "?",
|
||
|
|
"bring this to Mina at the reception": "?",
|
||
|
|
"give it to James": "?",
|
||
|
|
"take the cup and give it to Anna at the lab": "?",
|
||
|
|
"bring the cup to James at p6 and wave": "?",
|
||
|
|
"bring this to James at p6 and follow him": "?",
|
||
|
|
|
||
|
|
# ================= Korean =================
|
||
|
|
# ---- already holding it ----
|
||
|
|
"이 컵 p6에 있는 제임스한테 갖다줘": "go p6 | give 제임스",
|
||
|
|
"이거 final에 있는 미나한테 갖다줘": "go final | give 미나",
|
||
|
|
"이 컵 p3에 있는 민수 씨한테 갖다줘": "go p3 | give 민수",
|
||
|
|
"이거 p9에 있는 톰에게 전해줘": "go p9 | give 톰",
|
||
|
|
"이 병 exit에 있는 수진이한테 줘": "go exit | give 수진",
|
||
|
|
"이거 p2에 있는 안나한테 가져다줘": "go p2 | give 안나",
|
||
|
|
"루미야 이 컵 p4에 있는 지훈이한테 갖다줘": "go p4 | give 지훈",
|
||
|
|
"제임스가 p6에 있어 이거 갖다줘": "go p6 | give 제임스",
|
||
|
|
"미나가 final에서 기다려 이거 전해줘": "go final | give 미나",
|
||
|
|
"이거 p10에 계신 김 부장님께 갖다드려": "go p10 | give 김 부장님",
|
||
|
|
"이거 dock2에 있는 이 대리한테 줘": "go dock2 | give 이 대리",
|
||
|
|
"이 사과 p5에 있는 현우한테 갖다줘": "go p5 | give 현우",
|
||
|
|
"이거 p8에 있는 마리아한테 줘": "go p8 | give 마리아",
|
||
|
|
"이거 a에 있는 서연이한테 갖다줘": "go a | give 서연",
|
||
|
|
"이거 b에 있는 준호한테 갖다줘": "go b | give 준호",
|
||
|
|
"이거 home에 있는 박 선생님께 갖다드려": "go home | give 박 선생님",
|
||
|
|
"이거 p1에 있는 안바르한테 갖다줘": "go p1 | give 안바르",
|
||
|
|
"이거 피 칠에 있는 피터한테 갖다줘": "go p7 | give 피터",
|
||
|
|
# ---- pick it here first ----
|
||
|
|
"컵을 들고 p6에 있는 제임스한테 갖다줘": "pick cup | go p6 | give 제임스",
|
||
|
|
"컵 들고 p3에 있는 민수한테 가져다줘": "pick cup | go p3 | give 민수",
|
||
|
|
"병 집어서 final에 있는 미나한테 줘": "pick bottle | go final | give 미나",
|
||
|
|
"사과 집어서 p9에 있는 톰한테 갖다줘": "pick apple | go p9 | give 톰",
|
||
|
|
"바나나를 exit에 있는 수진이한테 갖다줘": "pick banana | go exit | give 수진",
|
||
|
|
"컵을 p6에 있는 제임스한테 갖다줘": "pick cup | go p6 | give 제임스",
|
||
|
|
"빨간 컵을 p2에 있는 안나한테 갖다줘": "pick red cup | go p2 | give 안나",
|
||
|
|
"흰 컵 들고 p4에 있는 지훈이한테 가져다줘": "pick white cup | go p4 | give 지훈",
|
||
|
|
"초록색 병을 p10에 있는 김 부장님께 갖다드려": "pick green bottle | go p10 | give 김 부장님",
|
||
|
|
"오렌지 집어서 p5에 있는 현우한테 줘": "pick orange | go p5 | give 현우",
|
||
|
|
"노란 바나나 들고 p8에 있는 마리아한테 줘": "pick yellow banana | go p8 | give 마리아",
|
||
|
|
"컵 잡고 p6으로 가서 제임스한테 줘": "pick cup | go p6 | give 제임스",
|
||
|
|
"컵 들고 final로 가서 미나 씨한테 드려": "pick cup | go final | give 미나",
|
||
|
|
"병 들고 p3 가서 민수한테 건네줘": "pick bottle | go p3 | give 민수",
|
||
|
|
# ---- with a sender ----
|
||
|
|
"안바르가 보내는 거야, 병 들고 final에 있는 미나한테 전해줘": "pick bottle | go final | give 미나",
|
||
|
|
"지은 씨가 보내는 사과를 p8에 있는 현우한테 갖다줘": "pick apple | go p8 | give 현우",
|
||
|
|
"나 p1에 있는 지은인데, 컵을 p5에 있는 현우한테 갖다줘": "pick cup | go p5 | give 현우",
|
||
|
|
"김 부장님이 보내신 거야 이거 p6에 있는 제임스한테 갖다줘": "go p6 | give 제임스",
|
||
|
|
"민수가 부탁한 건데 컵을 p3에 있는 수진이한테 갖다줘": "pick cup | go p3 | give 수진",
|
||
|
|
"안바르 씨 심부름이야 이거 p9에 있는 톰한테 줘": "go p9 | give 톰",
|
||
|
|
"이거 지은이가 준 건데 p2에 있는 안나한테 전해줘": "go p2 | give 안나",
|
||
|
|
"컵 들고 p6에 있는 제임스한테 주고 안바르가 고맙대 라고 말해":
|
||
|
|
"pick cup | go p6 | give 제임스 | say 안바르가 고맙대",
|
||
|
|
"이거 final에 있는 미나한테 주고 생일 축하해 라고 전해": "go final | give 미나 | say 생일 축하해",
|
||
|
|
"사과 들고 p8에 있는 현우한테 주고 지은이가 보낸 거라고 말해":
|
||
|
|
"pick apple | go p8 | give 현우 | say 지은이가 보낸 거",
|
||
|
|
# ---- longer missions ----
|
||
|
|
"p2에서 바나나 가져와서 exit에 있는 수진이한테 줘": "go p2 | pick banana | go exit | give 수진",
|
||
|
|
"p2로 가서 컵 집고 p6에 있는 제임스한테 갖다줘": "go p2 | pick cup | go p6 | give 제임스",
|
||
|
|
"p9로 가서 안바르한테 컵 받아서 p1에 있는 미나한테 갖다줘": "go p9 | receive cup | go p1 | give 미나",
|
||
|
|
"p4에 있는 지은이한테 사과 받아서 p8에 있는 현우한테 줘": "go p4 | receive apple | go p8 | give 현우",
|
||
|
|
"컵 들고 p6에 있는 제임스한테 주고 여기로 돌아와": "pick cup | go p6 | give 제임스 | go here",
|
||
|
|
"이거 final에 있는 미나한테 주고 집으로 가": "go final | give 미나 | go home",
|
||
|
|
"컵 들고 p6에 있는 제임스한테 주고 dock2로 가": "pick cup | go p6 | give 제임스 | go dock2",
|
||
|
|
"p6로 가서 왼쪽으로 돌고 제임스한테 줘": "go p6 | turn 90 | give 제임스",
|
||
|
|
"p6로 가서 앞으로 1미터 가고 제임스한테 줘": "go p6 | move forward 1 | give 제임스",
|
||
|
|
"컵 들고 p6에 있는 제임스 책상에 놔": "pick cup | go p6 | place dining table",
|
||
|
|
"이거 final에 있는 미나 테이블에 놔 줘": "go final | place dining table",
|
||
|
|
"이거 여기 있는 안나한테 줘": "go here | give 안나",
|
||
|
|
"컵 들고 여기 있는 수진이한테 줘": "pick cup | go here | give 수진",
|
||
|
|
"이거 p6에 있는 제임스나 p3에 있는 민수한테 줘": "?",
|
||
|
|
# ---- must stay unread ----
|
||
|
|
"이 컵 제임스한테 갖다줘": "?",
|
||
|
|
"컵을 미나한테 갖다줘": "?",
|
||
|
|
"이거 부엌에 있는 제임스한테 갖다줘": "?",
|
||
|
|
"이거 민수 자리에 갖다줘": "?",
|
||
|
|
"이거 p11에 있는 톰한테 줘": "?",
|
||
|
|
"컵을 3번 방에 있는 지은이한테 갖다줘": "?",
|
||
|
|
"물을 p6에 있는 제임스한테 갖다줘": "?",
|
||
|
|
"커피를 final에 있는 미나한테 갖다줘": "?",
|
||
|
|
"노트북을 exit에 있는 수진이한테 갖다줘": "?",
|
||
|
|
"이거 사장님한테 갖다줘": "?",
|
||
|
|
"이거 p6에 있는 제임스한테 주고 춤 춰": "?",
|
||
|
|
"이거 사무실에 있는 제임스한테 줘": "?",
|
||
|
|
"이거 p12에 있는 사람한테 줘": "?",
|
||
|
|
"이거 안내 데스크에 있는 미나한테 줘": "?",
|
||
|
|
"이거 제임스한테 줘": "?",
|
||
|
|
"컵 들고 연구실에 있는 안나한테 줘": "?",
|
||
|
|
"이거 p6에 있는 제임스한테 주고 따라가": "?",
|
||
|
|
"이거 탕비실에 있는 현우한테 갖다줘": "?",
|
||
|
|
}
|