Skip to content

Commit d77f6b9

Browse files
committed
Testing more games
1 parent a96a473 commit d77f6b9

File tree

3 files changed

+31
-13
lines changed

3 files changed

+31
-13
lines changed

frotz/src/games/lurking.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,14 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
2525

2626
// The Lurking Horror: http://ifdb.tads.org/viewgame?id=jhbd0kja1t57uop
2727

28-
const zword lurking_special_ram_addrs[6] = {
28+
const zword lurking_special_ram_addrs[11] = {
29+
883, // Cut line with axe
30+
756, // knock on door
31+
859, // Read page, click on more
32+
813, // Throw axe at cord
33+
1047, // Lower ladder (alt. 1163, 1333)
2934
11251, // Microwave timer
35+
11235, // press up/down button
3036
961, // Microwave setting
3137
1145, // Cleaning up junk
3238
4889, // Drinking coke
@@ -40,7 +46,7 @@ const char *lurking_intro[] = { "sit on chair\n",
4046
"password uhlersoth\n" };
4147

4248
zword* lurking_ram_addrs(int *n) {
43-
*n = 6;
49+
*n = 11;
4450
return lurking_special_ram_addrs;
4551
}
4652

frotz/src/games/moonlit.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
Copyright (C) 2018 Microsoft Corporation
33
44
This program is free software; you can redistribute it and/or
@@ -103,11 +103,11 @@ int moonlit_ignore_attr_clr(zword obj_num, zword attr_idx) {
103103
}
104104

105105
void moonlit_clean_world_objs(zobject* objs) {
106-
int i;
107-
char mask;
108-
mask = ~(1 << 7) & ~1;
109-
// Clear attr 24 & 31
110-
for (i=1; i<=moonlit_get_num_world_objs(); ++i) {
111-
objs[i].attr[3] &= mask;
112-
}
106+
// int i;
107+
// char mask;
108+
// mask = ~(1 << 7) & ~1;
109+
// // Clear attr 24 & 31
110+
// for (i=1; i<=moonlit_get_num_world_objs(); ++i) {
111+
// objs[i].attr[3] &= mask;
112+
// }
113113
}

tools/test_games.py

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -373,8 +373,20 @@
373373
109: "take paper", # Not needed to complete the game.
374374
110: "take paper with pole", # Not needed to complete the game.
375375
},
376-
377-
376+
"ludicorp.z5": {
377+
7: "smell car", # Not needed to complete the game.
378+
50: "open door", # (it is locked) Not needed to complete the game.
379+
140: "shoot window", # (glass is bulletproof) Not needed to complete the game.
380+
239: "play arcade", # (you died) Not needed to complete the game.
381+
241: "play pool", # (no ball nor cues) Not needed to complete the game.
382+
255: "w", # (outer airlock door blocks your way) Not needed to complete the game.
383+
},
384+
"lurking.z3": {
385+
"noop": ["z"]
386+
},
387+
"moonlit.z5": {
388+
# "noop": ["z"]
389+
},
378390
}
379391

380392

@@ -533,7 +545,7 @@ def parse_args():
533545

534546
if not env._world_changed():
535547
# if last_hash == env.get_world_state_hash():
536-
if cmd.split(" ")[0] not in {"look", "x", "search", "examine", "i", "inventory"}:
548+
if cmd.split(" ")[0] not in {"look", "l", "x", "search", "examine", "i", "inventory"}:
537549

538550
print(colored(f'{i}. [{cmd}]: world hash hasn\'t changed.\n"""\n{obs}\n"""', 'red'))
539551

0 commit comments

Comments
 (0)