## control: unmutated copy (must pass) [OK] open space is a circle [OK] wall blocks [OK] shared endpoint: no leak at the vertex [OK] shared vertex: both arms required (mutation d1/d2) [OK] '<' apex: ray through the shared tip must not leak [OK] every segment endpoint is a polygon vertex (lower and upper end inclusive) [OK] rays nudged past a corner: area just beyond a wall end is visible [OK] shared endpoint: closed corner of box has no crack [OK] collinear walls act as one [OK] collinear walls with a gap let light through [OK] T-junction: no leak and correct shadow [OK] pillar mid-room casts a shadow, sides visible [OK] closed door blocks, open door passes [OK] token exactly at wall endpoint [OK] token at endpoint of free-standing wall sees along it [OK] long thin corridor [OK] wall endpoints behind the viewer: fan stays angularly ordered [OK] radius clips [OK] square polygon [OK] tiny polygon inside one cell [OK] polygon spanning a cell with no vertex in it [OK] big polygon includes fully covered interior cells [OK] degenerate input: fewer than 3 vertices [OK] touching a cell line: inclusive on the max side, not on the bbox minimum side [OK] concave polygon: a notch cell is not filled [OK] every token in seed sees itself and is not walled in [OK] visibilityPolygon and cellsTouched equal the prototype results [OK] random visibility polygons: identical cell lists [OK] random simple polygons (star-shaped, concave): identical cell lists [OK] grid-aligned integer polygons (edges on cell lines): identical cell lists [OK] prototype scene, all tokens, doors closed and opened [OK] random wall fields, cell 32 and 25 [OK] negative control: the oracle notices a missing and an invented cell [OK] crossing blocked, parallel ok [OK] grazing an endpoint is blocked [OK] no leak through shared vertex [OK] diagonal squeeze through corner vertex of L [OK] moving along a collinear wall is blocked [OK] doors [OK] zero-length move [OK] near pillar: circle overlapping blocked, clear ok (ported) [OK] closed door blocks near, open door passes (ported) [OK] 64px corridor and doorway passable on the centreline (ported) [OK] corner clipping: path passes the wall end closer than r though both ends are clear [OK] parallel pass: r clear, just under r blocked (touching at exactly r is clear) [OK] diagonal squeeze past an L corner with a gap narrower than 2r is blocked [OK] leg of the path inside r of a non-start wall blocks even if start and end are clear [OK] exactly on a wall: can step off perpendicular, either side, to a clear spot [OK] exactly on a wall: still refused when it would stay overlapped or run along/through [OK] r = 0: standing on a wall is not an escape case (touch blocks), as the prototype [OK] overlapping 10 px off: may leave away from the wall, not cross it, not stay overlapped [OK] escaping one wall does not excuse another [OK] escape from a closed door; an open door never needed an escape [OK] overlapping at a wall end: leave past the end without crossing [OK] owner check: not yours is mkError, no position [OK] GM-controlled token (no owner): players get mkError [OK] step cap = scene default without vision, token vision radius with it [OK] over-cap, blocked-by-wall, blocked-flag and out-of-bounds nacks are identical [OK] an accepted move applies and echoes the destination [OK] player move honours walls (capsule) via moveToken [OK] GM: ignores walls, step cap and blocked; bounds still apply [OK] wall added within r of the circle (centre not on it) sets blocked; exactly r does not [OK] GM-controlled tokens get the flag too; wall bbox does not matter, distance does [OK] open door added or opened never sets; closing a door on a token does [OK] blocked token: player moves refused, GM move allowed [OK] cleared by removing the wall; unrelated removals keep it [OK] cleared by opening the door; a second open is a no-op [OK] cleared by the GM; not re-set by itself [OK] wall update = remove then add [OK] GM placement and GM move onto a wall: blocked; player escape works only after a GM clear [OK] Q14: a door closed 10 px from a token: token blocked, player refused, GM moves it clear, opening frees it [OK] doorway: token in an open doorway, door closes -> blocked, door opens -> free [OK] KEEP: opening one door / removing one wall while another overlaps -> still blocked; last one frees [OK] KEEP: wall update away from one of two overlapping walls keeps blocked [OK] GM moves a stuck token clear -> free; to another wall-overlapping spot -> still blocked [OK] GM drops a token inside a wall -> blocked; a door counts only while closed [OK] GM manual clear inside a wall: player escapes sideways, cannot cross [OK] an unrelated wall change elsewhere does not re-block a GM-cleared token [OK] no escape hatch: a player cannot walk through any wall of a boxed room [OK] P1: probes longer than the cap get one fixed nack regardless of the scene [OK] P2: scenes differing only beyond the bound give identical replies over 3000 probes [OK] P3 negative control: a wall inside the disc IS visible through replies (the harness can fail) [OK] P4: probing cannot unflag or move a blocked token [OK] doors beyond the bound: opening or closing them changes no reply [OK] exactly n walls, deterministic per seed, seeds differ [OK] doors are every 10th wall, all closed; walls stay inside the world (+- jitter) [OK] walls are non-degenerate and axis-ish segments of room-edge length # test exit=0; expected tests failed: 0 control: exit=0 expected_failed=0 ok ## a: remove the +-RayEps rays # diff server/geometry.nim -> mutated copy: # 62,63d61 # < angles.add ang - RayEps # < angles.add ang + RayEps [OK] open space is a circle [OK] wall blocks [OK] shared endpoint: no leak at the vertex [OK] shared vertex: both arms required (mutation d1/d2) [OK] '<' apex: ray through the shared tip must not leak [OK] every segment endpoint is a polygon vertex (lower and upper end inclusive) [FAILED] rays nudged past a corner: area just beyond a wall end is visible [OK] shared endpoint: closed corner of box has no crack [OK] collinear walls act as one [OK] collinear walls with a gap let light through [OK] T-junction: no leak and correct shadow [OK] pillar mid-room casts a shadow, sides visible [OK] closed door blocks, open door passes [OK] token exactly at wall endpoint [OK] token at endpoint of free-standing wall sees along it [OK] long thin corridor [OK] wall endpoints behind the viewer: fan stays angularly ordered [OK] radius clips [OK] square polygon [OK] tiny polygon inside one cell [OK] polygon spanning a cell with no vertex in it [OK] big polygon includes fully covered interior cells [OK] degenerate input: fewer than 3 vertices [OK] touching a cell line: inclusive on the max side, not on the bbox minimum side [OK] concave polygon: a notch cell is not filled [OK] every token in seed sees itself and is not walled in [FAILED] visibilityPolygon and cellsTouched equal the prototype results [OK] random visibility polygons: identical cell lists [OK] random simple polygons (star-shaped, concave): identical cell lists [OK] grid-aligned integer polygons (edges on cell lines): identical cell lists [FAILED] prototype scene, all tokens, doors closed and opened [FAILED] random wall fields, cell 32 and 25 [OK] negative control: the oracle notices a missing and an invented cell Error: execution of an external program failed: '/tmp/tmp.l2QZ72lVaE/w/tests/tgeometry' [OK] crossing blocked, parallel ok [OK] grazing an endpoint is blocked [OK] no leak through shared vertex [OK] diagonal squeeze through corner vertex of L [OK] moving along a collinear wall is blocked [OK] doors [OK] zero-length move [OK] near pillar: circle overlapping blocked, clear ok (ported) [OK] closed door blocks near, open door passes (ported) [OK] 64px corridor and doorway passable on the centreline (ported) [OK] corner clipping: path passes the wall end closer than r though both ends are clear [OK] parallel pass: r clear, just under r blocked (touching at exactly r is clear) [OK] diagonal squeeze past an L corner with a gap narrower than 2r is blocked [OK] leg of the path inside r of a non-start wall blocks even if start and end are clear [OK] exactly on a wall: can step off perpendicular, either side, to a clear spot [OK] exactly on a wall: still refused when it would stay overlapped or run along/through [OK] r = 0: standing on a wall is not an escape case (touch blocks), as the prototype [OK] overlapping 10 px off: may leave away from the wall, not cross it, not stay overlapped [OK] escaping one wall does not excuse another [OK] escape from a closed door; an open door never needed an escape [OK] overlapping at a wall end: leave past the end without crossing [OK] owner check: not yours is mkError, no position [OK] GM-controlled token (no owner): players get mkError [OK] step cap = scene default without vision, token vision radius with it [OK] over-cap, blocked-by-wall, blocked-flag and out-of-bounds nacks are identical [OK] an accepted move applies and echoes the destination [OK] player move honours walls (capsule) via moveToken [OK] GM: ignores walls, step cap and blocked; bounds still apply [OK] wall added within r of the circle (centre not on it) sets blocked; exactly r does not [OK] GM-controlled tokens get the flag too; wall bbox does not matter, distance does [OK] open door added or opened never sets; closing a door on a token does [OK] blocked token: player moves refused, GM move allowed [OK] cleared by removing the wall; unrelated removals keep it [OK] cleared by opening the door; a second open is a no-op [OK] cleared by the GM; not re-set by itself [OK] wall update = remove then add [OK] GM placement and GM move onto a wall: blocked; player escape works only after a GM clear [OK] Q14: a door closed 10 px from a token: token blocked, player refused, GM moves it clear, opening frees it [OK] doorway: token in an open doorway, door closes -> blocked, door opens -> free [OK] KEEP: opening one door / removing one wall while another overlaps -> still blocked; last one frees [OK] KEEP: wall update away from one of two overlapping walls keeps blocked [OK] GM moves a stuck token clear -> free; to another wall-overlapping spot -> still blocked [OK] GM drops a token inside a wall -> blocked; a door counts only while closed [OK] GM manual clear inside a wall: player escapes sideways, cannot cross [OK] an unrelated wall change elsewhere does not re-block a GM-cleared token [OK] no escape hatch: a player cannot walk through any wall of a boxed room [OK] P1: probes longer than the cap get one fixed nack regardless of the scene [OK] P2: scenes differing only beyond the bound give identical replies over 3000 probes [OK] P3 negative control: a wall inside the disc IS visible through replies (the harness can fail) [OK] P4: probing cannot unflag or move a blocked token [OK] doors beyond the bound: opening or closing them changes no reply [OK] exactly n walls, deterministic per seed, seeds differ [OK] doors are every 10th wall, all closed; walls stay inside the world (+- jitter) [OK] walls are non-degenerate and axis-ish segments of room-edge length # test exit=1; expected tests failed: 1 [FAILED] rays nudged past a corner: area just beyond a wall end is visible a: exit=1 expected_failed=1 ok ## b: upper segment end exclusive # diff server/geometry.nim -> mutated copy: # 39c39 # < if t > Eps and u >= -Eps and u <= 1 + Eps: t else: Inf # --- # > if t > Eps and u >= -Eps and u < 1 - Eps: t else: Inf [OK] open space is a circle [OK] wall blocks [OK] shared endpoint: no leak at the vertex [OK] shared vertex: both arms required (mutation d1/d2) [FAILED] '<' apex: ray through the shared tip must not leak [FAILED] every segment endpoint is a polygon vertex (lower and upper end inclusive) [OK] rays nudged past a corner: area just beyond a wall end is visible [OK] shared endpoint: closed corner of box has no crack [OK] collinear walls act as one [OK] collinear walls with a gap let light through [OK] T-junction: no leak and correct shadow [OK] pillar mid-room casts a shadow, sides visible [OK] closed door blocks, open door passes [OK] token exactly at wall endpoint [OK] token at endpoint of free-standing wall sees along it [OK] long thin corridor [OK] wall endpoints behind the viewer: fan stays angularly ordered [OK] radius clips [OK] square polygon [OK] tiny polygon inside one cell [OK] polygon spanning a cell with no vertex in it [OK] big polygon includes fully covered interior cells [OK] degenerate input: fewer than 3 vertices [OK] touching a cell line: inclusive on the max side, not on the bbox minimum side [OK] concave polygon: a notch cell is not filled [OK] every token in seed sees itself and is not walled in [FAILED] visibilityPolygon and cellsTouched equal the prototype results [OK] random visibility polygons: identical cell lists [OK] random simple polygons (star-shaped, concave): identical cell lists [OK] grid-aligned integer polygons (edges on cell lines): identical cell lists [FAILED] prototype scene, all tokens, doors closed and opened [OK] random wall fields, cell 32 and 25 [OK] negative control: the oracle notices a missing and an invented cell Error: execution of an external program failed: '/tmp/tmp.l2QZ72lVaE/w/tests/tgeometry' [OK] crossing blocked, parallel ok [OK] grazing an endpoint is blocked [OK] no leak through shared vertex [OK] diagonal squeeze through corner vertex of L [OK] moving along a collinear wall is blocked [OK] doors [OK] zero-length move [OK] near pillar: circle overlapping blocked, clear ok (ported) [OK] closed door blocks near, open door passes (ported) [OK] 64px corridor and doorway passable on the centreline (ported) [OK] corner clipping: path passes the wall end closer than r though both ends are clear [OK] parallel pass: r clear, just under r blocked (touching at exactly r is clear) [OK] diagonal squeeze past an L corner with a gap narrower than 2r is blocked [OK] leg of the path inside r of a non-start wall blocks even if start and end are clear [OK] exactly on a wall: can step off perpendicular, either side, to a clear spot [OK] exactly on a wall: still refused when it would stay overlapped or run along/through [OK] r = 0: standing on a wall is not an escape case (touch blocks), as the prototype [OK] overlapping 10 px off: may leave away from the wall, not cross it, not stay overlapped [OK] escaping one wall does not excuse another [OK] escape from a closed door; an open door never needed an escape [OK] overlapping at a wall end: leave past the end without crossing [OK] owner check: not yours is mkError, no position [OK] GM-controlled token (no owner): players get mkError [OK] step cap = scene default without vision, token vision radius with it [OK] over-cap, blocked-by-wall, blocked-flag and out-of-bounds nacks are identical [OK] an accepted move applies and echoes the destination [OK] player move honours walls (capsule) via moveToken [OK] GM: ignores walls, step cap and blocked; bounds still apply [OK] wall added within r of the circle (centre not on it) sets blocked; exactly r does not [OK] GM-controlled tokens get the flag too; wall bbox does not matter, distance does [OK] open door added or opened never sets; closing a door on a token does [OK] blocked token: player moves refused, GM move allowed [OK] cleared by removing the wall; unrelated removals keep it [OK] cleared by opening the door; a second open is a no-op [OK] cleared by the GM; not re-set by itself [OK] wall update = remove then add [OK] GM placement and GM move onto a wall: blocked; player escape works only after a GM clear [OK] Q14: a door closed 10 px from a token: token blocked, player refused, GM moves it clear, opening frees it [OK] doorway: token in an open doorway, door closes -> blocked, door opens -> free [OK] KEEP: opening one door / removing one wall while another overlaps -> still blocked; last one frees [OK] KEEP: wall update away from one of two overlapping walls keeps blocked [OK] GM moves a stuck token clear -> free; to another wall-overlapping spot -> still blocked [OK] GM drops a token inside a wall -> blocked; a door counts only while closed [OK] GM manual clear inside a wall: player escapes sideways, cannot cross [OK] an unrelated wall change elsewhere does not re-block a GM-cleared token [OK] no escape hatch: a player cannot walk through any wall of a boxed room [OK] P1: probes longer than the cap get one fixed nack regardless of the scene [OK] P2: scenes differing only beyond the bound give identical replies over 3000 probes [OK] P3 negative control: a wall inside the disc IS visible through replies (the harness can fail) [OK] P4: probing cannot unflag or move a blocked token [OK] doors beyond the bound: opening or closing them changes no reply [OK] exactly n walls, deterministic per seed, seeds differ [OK] doors are every 10th wall, all closed; walls stay inside the world (+- jitter) [OK] walls are non-degenerate and axis-ish segments of room-edge length # test exit=1; expected tests failed: 2 [FAILED] '<' apex: ray through the shared tip must not leak [FAILED] every segment endpoint is a polygon vertex (lower and upper end inclusive) b: exit=1 expected_failed=2 ok ## c: lower segment end exclusive # diff server/geometry.nim -> mutated copy: # 39c39 # < if t > Eps and u >= -Eps and u <= 1 + Eps: t else: Inf # --- # > if t > Eps and u > Eps and u <= 1 + Eps: t else: Inf [OK] open space is a circle [OK] wall blocks [OK] shared endpoint: no leak at the vertex [OK] shared vertex: both arms required (mutation d1/d2) [FAILED] '<' apex: ray through the shared tip must not leak [FAILED] every segment endpoint is a polygon vertex (lower and upper end inclusive) [OK] rays nudged past a corner: area just beyond a wall end is visible [OK] shared endpoint: closed corner of box has no crack [OK] collinear walls act as one [OK] collinear walls with a gap let light through [OK] T-junction: no leak and correct shadow [OK] pillar mid-room casts a shadow, sides visible [OK] closed door blocks, open door passes [OK] token exactly at wall endpoint [OK] token at endpoint of free-standing wall sees along it [OK] long thin corridor [OK] wall endpoints behind the viewer: fan stays angularly ordered [OK] radius clips [OK] square polygon [OK] tiny polygon inside one cell [OK] polygon spanning a cell with no vertex in it [OK] big polygon includes fully covered interior cells [OK] degenerate input: fewer than 3 vertices [OK] touching a cell line: inclusive on the max side, not on the bbox minimum side [OK] concave polygon: a notch cell is not filled [OK] every token in seed sees itself and is not walled in [FAILED] visibilityPolygon and cellsTouched equal the prototype results [OK] random visibility polygons: identical cell lists [OK] random simple polygons (star-shaped, concave): identical cell lists [OK] grid-aligned integer polygons (edges on cell lines): identical cell lists [FAILED] prototype scene, all tokens, doors closed and opened [OK] random wall fields, cell 32 and 25 [OK] negative control: the oracle notices a missing and an invented cell Error: execution of an external program failed: '/tmp/tmp.l2QZ72lVaE/w/tests/tgeometry' [OK] crossing blocked, parallel ok [OK] grazing an endpoint is blocked [OK] no leak through shared vertex [OK] diagonal squeeze through corner vertex of L [OK] moving along a collinear wall is blocked [OK] doors [OK] zero-length move [OK] near pillar: circle overlapping blocked, clear ok (ported) [OK] closed door blocks near, open door passes (ported) [OK] 64px corridor and doorway passable on the centreline (ported) [OK] corner clipping: path passes the wall end closer than r though both ends are clear [OK] parallel pass: r clear, just under r blocked (touching at exactly r is clear) [OK] diagonal squeeze past an L corner with a gap narrower than 2r is blocked [OK] leg of the path inside r of a non-start wall blocks even if start and end are clear [OK] exactly on a wall: can step off perpendicular, either side, to a clear spot [OK] exactly on a wall: still refused when it would stay overlapped or run along/through [OK] r = 0: standing on a wall is not an escape case (touch blocks), as the prototype [OK] overlapping 10 px off: may leave away from the wall, not cross it, not stay overlapped [OK] escaping one wall does not excuse another [OK] escape from a closed door; an open door never needed an escape [OK] overlapping at a wall end: leave past the end without crossing [OK] owner check: not yours is mkError, no position [OK] GM-controlled token (no owner): players get mkError [OK] step cap = scene default without vision, token vision radius with it [OK] over-cap, blocked-by-wall, blocked-flag and out-of-bounds nacks are identical [OK] an accepted move applies and echoes the destination [OK] player move honours walls (capsule) via moveToken [OK] GM: ignores walls, step cap and blocked; bounds still apply [OK] wall added within r of the circle (centre not on it) sets blocked; exactly r does not [OK] GM-controlled tokens get the flag too; wall bbox does not matter, distance does [OK] open door added or opened never sets; closing a door on a token does [OK] blocked token: player moves refused, GM move allowed [OK] cleared by removing the wall; unrelated removals keep it [OK] cleared by opening the door; a second open is a no-op [OK] cleared by the GM; not re-set by itself [OK] wall update = remove then add [OK] GM placement and GM move onto a wall: blocked; player escape works only after a GM clear [OK] Q14: a door closed 10 px from a token: token blocked, player refused, GM moves it clear, opening frees it [OK] doorway: token in an open doorway, door closes -> blocked, door opens -> free [OK] KEEP: opening one door / removing one wall while another overlaps -> still blocked; last one frees [OK] KEEP: wall update away from one of two overlapping walls keeps blocked [OK] GM moves a stuck token clear -> free; to another wall-overlapping spot -> still blocked [OK] GM drops a token inside a wall -> blocked; a door counts only while closed [OK] GM manual clear inside a wall: player escapes sideways, cannot cross [OK] an unrelated wall change elsewhere does not re-block a GM-cleared token [OK] no escape hatch: a player cannot walk through any wall of a boxed room [OK] P1: probes longer than the cap get one fixed nack regardless of the scene [OK] P2: scenes differing only beyond the bound give identical replies over 3000 probes [OK] P3 negative control: a wall inside the disc IS visible through replies (the harness can fail) [OK] P4: probing cannot unflag or move a blocked token [OK] doors beyond the bound: opening or closing them changes no reply [OK] exactly n walls, deterministic per seed, seeds differ [OK] doors are every 10th wall, all closed; walls stay inside the world (+- jitter) [OK] walls are non-degenerate and axis-ish segments of room-edge length # test exit=1; expected tests failed: 2 [FAILED] '<' apex: ray through the shared tip must not leak [FAILED] every segment endpoint is a polygon vertex (lower and upper end inclusive) c: exit=1 expected_failed=2 ok ## d1: shared-vertex fixture without arm 1 # diff tests/tgeometry.nim -> mutated copy: # 42c42 # < let w = @[arm1, arm2] # SHARED-VERTEX # --- # > let w = @[arm2] [OK] open space is a circle [OK] wall blocks [OK] shared endpoint: no leak at the vertex [FAILED] shared vertex: both arms required (mutation d1/d2) [OK] '<' apex: ray through the shared tip must not leak [OK] every segment endpoint is a polygon vertex (lower and upper end inclusive) [OK] rays nudged past a corner: area just beyond a wall end is visible [OK] shared endpoint: closed corner of box has no crack [OK] collinear walls act as one [OK] collinear walls with a gap let light through [OK] T-junction: no leak and correct shadow [OK] pillar mid-room casts a shadow, sides visible [OK] closed door blocks, open door passes [OK] token exactly at wall endpoint [OK] token at endpoint of free-standing wall sees along it [OK] long thin corridor [OK] wall endpoints behind the viewer: fan stays angularly ordered [OK] radius clips [OK] square polygon [OK] tiny polygon inside one cell [OK] polygon spanning a cell with no vertex in it [OK] big polygon includes fully covered interior cells [OK] degenerate input: fewer than 3 vertices [OK] touching a cell line: inclusive on the max side, not on the bbox minimum side [OK] concave polygon: a notch cell is not filled [OK] every token in seed sees itself and is not walled in [OK] visibilityPolygon and cellsTouched equal the prototype results [OK] random visibility polygons: identical cell lists [OK] random simple polygons (star-shaped, concave): identical cell lists [OK] grid-aligned integer polygons (edges on cell lines): identical cell lists [OK] prototype scene, all tokens, doors closed and opened [OK] random wall fields, cell 32 and 25 [OK] negative control: the oracle notices a missing and an invented cell Error: execution of an external program failed: '/tmp/tmp.l2QZ72lVaE/w/tests/tgeometry' [OK] crossing blocked, parallel ok [OK] grazing an endpoint is blocked [OK] no leak through shared vertex [OK] diagonal squeeze through corner vertex of L [OK] moving along a collinear wall is blocked [OK] doors [OK] zero-length move [OK] near pillar: circle overlapping blocked, clear ok (ported) [OK] closed door blocks near, open door passes (ported) [OK] 64px corridor and doorway passable on the centreline (ported) [OK] corner clipping: path passes the wall end closer than r though both ends are clear [OK] parallel pass: r clear, just under r blocked (touching at exactly r is clear) [OK] diagonal squeeze past an L corner with a gap narrower than 2r is blocked [OK] leg of the path inside r of a non-start wall blocks even if start and end are clear [OK] exactly on a wall: can step off perpendicular, either side, to a clear spot [OK] exactly on a wall: still refused when it would stay overlapped or run along/through [OK] r = 0: standing on a wall is not an escape case (touch blocks), as the prototype [OK] overlapping 10 px off: may leave away from the wall, not cross it, not stay overlapped [OK] escaping one wall does not excuse another [OK] escape from a closed door; an open door never needed an escape [OK] overlapping at a wall end: leave past the end without crossing [OK] owner check: not yours is mkError, no position [OK] GM-controlled token (no owner): players get mkError [OK] step cap = scene default without vision, token vision radius with it [OK] over-cap, blocked-by-wall, blocked-flag and out-of-bounds nacks are identical [OK] an accepted move applies and echoes the destination [OK] player move honours walls (capsule) via moveToken [OK] GM: ignores walls, step cap and blocked; bounds still apply [OK] wall added within r of the circle (centre not on it) sets blocked; exactly r does not [OK] GM-controlled tokens get the flag too; wall bbox does not matter, distance does [OK] open door added or opened never sets; closing a door on a token does [OK] blocked token: player moves refused, GM move allowed [OK] cleared by removing the wall; unrelated removals keep it [OK] cleared by opening the door; a second open is a no-op [OK] cleared by the GM; not re-set by itself [OK] wall update = remove then add [OK] GM placement and GM move onto a wall: blocked; player escape works only after a GM clear [OK] Q14: a door closed 10 px from a token: token blocked, player refused, GM moves it clear, opening frees it [OK] doorway: token in an open doorway, door closes -> blocked, door opens -> free [OK] KEEP: opening one door / removing one wall while another overlaps -> still blocked; last one frees [OK] KEEP: wall update away from one of two overlapping walls keeps blocked [OK] GM moves a stuck token clear -> free; to another wall-overlapping spot -> still blocked [OK] GM drops a token inside a wall -> blocked; a door counts only while closed [OK] GM manual clear inside a wall: player escapes sideways, cannot cross [OK] an unrelated wall change elsewhere does not re-block a GM-cleared token [OK] no escape hatch: a player cannot walk through any wall of a boxed room [OK] P1: probes longer than the cap get one fixed nack regardless of the scene [OK] P2: scenes differing only beyond the bound give identical replies over 3000 probes [OK] P3 negative control: a wall inside the disc IS visible through replies (the harness can fail) [OK] P4: probing cannot unflag or move a blocked token [OK] doors beyond the bound: opening or closing them changes no reply [OK] exactly n walls, deterministic per seed, seeds differ [OK] doors are every 10th wall, all closed; walls stay inside the world (+- jitter) [OK] walls are non-degenerate and axis-ish segments of room-edge length # test exit=1; expected tests failed: 1 [FAILED] shared vertex: both arms required (mutation d1/d2) d1: exit=1 expected_failed=1 ok ## d2: shared-vertex fixture without arm 2 # diff tests/tgeometry.nim -> mutated copy: # 42c42 # < let w = @[arm1, arm2] # SHARED-VERTEX # --- # > let w = @[arm1] [OK] open space is a circle [OK] wall blocks [OK] shared endpoint: no leak at the vertex [FAILED] shared vertex: both arms required (mutation d1/d2) [OK] '<' apex: ray through the shared tip must not leak [OK] every segment endpoint is a polygon vertex (lower and upper end inclusive) [OK] rays nudged past a corner: area just beyond a wall end is visible [OK] shared endpoint: closed corner of box has no crack [OK] collinear walls act as one [OK] collinear walls with a gap let light through [OK] T-junction: no leak and correct shadow [OK] pillar mid-room casts a shadow, sides visible [OK] closed door blocks, open door passes [OK] token exactly at wall endpoint [OK] token at endpoint of free-standing wall sees along it [OK] long thin corridor [OK] wall endpoints behind the viewer: fan stays angularly ordered [OK] radius clips [OK] square polygon [OK] tiny polygon inside one cell [OK] polygon spanning a cell with no vertex in it [OK] big polygon includes fully covered interior cells [OK] degenerate input: fewer than 3 vertices [OK] touching a cell line: inclusive on the max side, not on the bbox minimum side [OK] concave polygon: a notch cell is not filled [OK] every token in seed sees itself and is not walled in [OK] visibilityPolygon and cellsTouched equal the prototype results [OK] random visibility polygons: identical cell lists [OK] random simple polygons (star-shaped, concave): identical cell lists [OK] grid-aligned integer polygons (edges on cell lines): identical cell lists [OK] prototype scene, all tokens, doors closed and opened [OK] random wall fields, cell 32 and 25 [OK] negative control: the oracle notices a missing and an invented cell Error: execution of an external program failed: '/tmp/tmp.l2QZ72lVaE/w/tests/tgeometry' [OK] crossing blocked, parallel ok [OK] grazing an endpoint is blocked [OK] no leak through shared vertex [OK] diagonal squeeze through corner vertex of L [OK] moving along a collinear wall is blocked [OK] doors [OK] zero-length move [OK] near pillar: circle overlapping blocked, clear ok (ported) [OK] closed door blocks near, open door passes (ported) [OK] 64px corridor and doorway passable on the centreline (ported) [OK] corner clipping: path passes the wall end closer than r though both ends are clear [OK] parallel pass: r clear, just under r blocked (touching at exactly r is clear) [OK] diagonal squeeze past an L corner with a gap narrower than 2r is blocked [OK] leg of the path inside r of a non-start wall blocks even if start and end are clear [OK] exactly on a wall: can step off perpendicular, either side, to a clear spot [OK] exactly on a wall: still refused when it would stay overlapped or run along/through [OK] r = 0: standing on a wall is not an escape case (touch blocks), as the prototype [OK] overlapping 10 px off: may leave away from the wall, not cross it, not stay overlapped [OK] escaping one wall does not excuse another [OK] escape from a closed door; an open door never needed an escape [OK] overlapping at a wall end: leave past the end without crossing [OK] owner check: not yours is mkError, no position [OK] GM-controlled token (no owner): players get mkError [OK] step cap = scene default without vision, token vision radius with it [OK] over-cap, blocked-by-wall, blocked-flag and out-of-bounds nacks are identical [OK] an accepted move applies and echoes the destination [OK] player move honours walls (capsule) via moveToken [OK] GM: ignores walls, step cap and blocked; bounds still apply [OK] wall added within r of the circle (centre not on it) sets blocked; exactly r does not [OK] GM-controlled tokens get the flag too; wall bbox does not matter, distance does [OK] open door added or opened never sets; closing a door on a token does [OK] blocked token: player moves refused, GM move allowed [OK] cleared by removing the wall; unrelated removals keep it [OK] cleared by opening the door; a second open is a no-op [OK] cleared by the GM; not re-set by itself [OK] wall update = remove then add [OK] GM placement and GM move onto a wall: blocked; player escape works only after a GM clear [OK] Q14: a door closed 10 px from a token: token blocked, player refused, GM moves it clear, opening frees it [OK] doorway: token in an open doorway, door closes -> blocked, door opens -> free [OK] KEEP: opening one door / removing one wall while another overlaps -> still blocked; last one frees [OK] KEEP: wall update away from one of two overlapping walls keeps blocked [OK] GM moves a stuck token clear -> free; to another wall-overlapping spot -> still blocked [OK] GM drops a token inside a wall -> blocked; a door counts only while closed [OK] GM manual clear inside a wall: player escapes sideways, cannot cross [OK] an unrelated wall change elsewhere does not re-block a GM-cleared token [OK] no escape hatch: a player cannot walk through any wall of a boxed room [OK] P1: probes longer than the cap get one fixed nack regardless of the scene [OK] P2: scenes differing only beyond the bound give identical replies over 3000 probes [OK] P3 negative control: a wall inside the disc IS visible through replies (the harness can fail) [OK] P4: probing cannot unflag or move a blocked token [OK] doors beyond the bound: opening or closing them changes no reply [OK] exactly n walls, deterministic per seed, seeds differ [OK] doors are every 10th wall, all closed; walls stay inside the world (+- jitter) [OK] walls are non-degenerate and axis-ish segments of room-edge length # test exit=1; expected tests failed: 1 [FAILED] shared vertex: both arms required (mutation d1/d2) d2: exit=1 expected_failed=1 ok ## e: cellsTouched without fill spans # diff server/geometry.nim -> mutated copy: # 138d137 # < for k in countup(0, xs[row].len - 2, 2): mark(row, xs[row][k], xs[row][k + 1]) [OK] open space is a circle [OK] wall blocks [OK] shared endpoint: no leak at the vertex [OK] shared vertex: both arms required (mutation d1/d2) [OK] '<' apex: ray through the shared tip must not leak [OK] every segment endpoint is a polygon vertex (lower and upper end inclusive) [OK] rays nudged past a corner: area just beyond a wall end is visible [OK] shared endpoint: closed corner of box has no crack [OK] collinear walls act as one [OK] collinear walls with a gap let light through [OK] T-junction: no leak and correct shadow [OK] pillar mid-room casts a shadow, sides visible [OK] closed door blocks, open door passes [OK] token exactly at wall endpoint [OK] token at endpoint of free-standing wall sees along it [OK] long thin corridor [OK] wall endpoints behind the viewer: fan stays angularly ordered [OK] radius clips [OK] square polygon [OK] tiny polygon inside one cell [OK] polygon spanning a cell with no vertex in it [FAILED] big polygon includes fully covered interior cells [OK] degenerate input: fewer than 3 vertices [OK] touching a cell line: inclusive on the max side, not on the bbox minimum side [OK] concave polygon: a notch cell is not filled [OK] every token in seed sees itself and is not walled in [FAILED] visibilityPolygon and cellsTouched equal the prototype results [FAILED] random visibility polygons: identical cell lists [FAILED] random simple polygons (star-shaped, concave): identical cell lists [FAILED] grid-aligned integer polygons (edges on cell lines): identical cell lists [FAILED] prototype scene, all tokens, doors closed and opened [FAILED] random wall fields, cell 32 and 25 [FAILED] negative control: the oracle notices a missing and an invented cell Error: execution of an external program failed: '/tmp/tmp.l2QZ72lVaE/w/tests/tgeometry' [OK] crossing blocked, parallel ok [OK] grazing an endpoint is blocked [OK] no leak through shared vertex [OK] diagonal squeeze through corner vertex of L [OK] moving along a collinear wall is blocked [OK] doors [OK] zero-length move [OK] near pillar: circle overlapping blocked, clear ok (ported) [OK] closed door blocks near, open door passes (ported) [OK] 64px corridor and doorway passable on the centreline (ported) [OK] corner clipping: path passes the wall end closer than r though both ends are clear [OK] parallel pass: r clear, just under r blocked (touching at exactly r is clear) [OK] diagonal squeeze past an L corner with a gap narrower than 2r is blocked [OK] leg of the path inside r of a non-start wall blocks even if start and end are clear [OK] exactly on a wall: can step off perpendicular, either side, to a clear spot [OK] exactly on a wall: still refused when it would stay overlapped or run along/through [OK] r = 0: standing on a wall is not an escape case (touch blocks), as the prototype [OK] overlapping 10 px off: may leave away from the wall, not cross it, not stay overlapped [OK] escaping one wall does not excuse another [OK] escape from a closed door; an open door never needed an escape [OK] overlapping at a wall end: leave past the end without crossing [OK] owner check: not yours is mkError, no position [OK] GM-controlled token (no owner): players get mkError [OK] step cap = scene default without vision, token vision radius with it [OK] over-cap, blocked-by-wall, blocked-flag and out-of-bounds nacks are identical [OK] an accepted move applies and echoes the destination [OK] player move honours walls (capsule) via moveToken [OK] GM: ignores walls, step cap and blocked; bounds still apply [OK] wall added within r of the circle (centre not on it) sets blocked; exactly r does not [OK] GM-controlled tokens get the flag too; wall bbox does not matter, distance does [OK] open door added or opened never sets; closing a door on a token does [OK] blocked token: player moves refused, GM move allowed [OK] cleared by removing the wall; unrelated removals keep it [OK] cleared by opening the door; a second open is a no-op [OK] cleared by the GM; not re-set by itself [OK] wall update = remove then add [OK] GM placement and GM move onto a wall: blocked; player escape works only after a GM clear [OK] Q14: a door closed 10 px from a token: token blocked, player refused, GM moves it clear, opening frees it [OK] doorway: token in an open doorway, door closes -> blocked, door opens -> free [OK] KEEP: opening one door / removing one wall while another overlaps -> still blocked; last one frees [OK] KEEP: wall update away from one of two overlapping walls keeps blocked [OK] GM moves a stuck token clear -> free; to another wall-overlapping spot -> still blocked [OK] GM drops a token inside a wall -> blocked; a door counts only while closed [OK] GM manual clear inside a wall: player escapes sideways, cannot cross [OK] an unrelated wall change elsewhere does not re-block a GM-cleared token [OK] no escape hatch: a player cannot walk through any wall of a boxed room [OK] P1: probes longer than the cap get one fixed nack regardless of the scene [OK] P2: scenes differing only beyond the bound give identical replies over 3000 probes [OK] P3 negative control: a wall inside the disc IS visible through replies (the harness can fail) [OK] P4: probing cannot unflag or move a blocked token [OK] doors beyond the bound: opening or closing them changes no reply [OK] exactly n walls, deterministic per seed, seeds differ [OK] doors are every 10th wall, all closed; walls stay inside the world (+- jitter) [OK] walls are non-degenerate and axis-ish segments of room-edge length # test exit=1; expected tests failed: 4 [FAILED] random visibility polygons: identical cell lists [FAILED] random simple polygons (star-shaped, concave): identical cell lists [FAILED] prototype scene, all tokens, doors closed and opened [FAILED] random wall fields, cell 32 and 25 e: exit=1 expected_failed=4 ok ## f: escape rule without the crossing check # diff server/moverules.nim -> mutated copy: # 90c90 # < if pathCrosses(s, d, w.a, w.b) or segDist(d, w.a, w.b) < r: return false # --- # > if segDist(d, w.a, w.b) < r: return false [OK] open space is a circle [OK] wall blocks [OK] shared endpoint: no leak at the vertex [OK] shared vertex: both arms required (mutation d1/d2) [OK] '<' apex: ray through the shared tip must not leak [OK] every segment endpoint is a polygon vertex (lower and upper end inclusive) [OK] rays nudged past a corner: area just beyond a wall end is visible [OK] shared endpoint: closed corner of box has no crack [OK] collinear walls act as one [OK] collinear walls with a gap let light through [OK] T-junction: no leak and correct shadow [OK] pillar mid-room casts a shadow, sides visible [OK] closed door blocks, open door passes [OK] token exactly at wall endpoint [OK] token at endpoint of free-standing wall sees along it [OK] long thin corridor [OK] wall endpoints behind the viewer: fan stays angularly ordered [OK] radius clips [OK] square polygon [OK] tiny polygon inside one cell [OK] polygon spanning a cell with no vertex in it [OK] big polygon includes fully covered interior cells [OK] degenerate input: fewer than 3 vertices [OK] touching a cell line: inclusive on the max side, not on the bbox minimum side [OK] concave polygon: a notch cell is not filled [OK] every token in seed sees itself and is not walled in [OK] visibilityPolygon and cellsTouched equal the prototype results [OK] random visibility polygons: identical cell lists [OK] random simple polygons (star-shaped, concave): identical cell lists [OK] grid-aligned integer polygons (edges on cell lines): identical cell lists [OK] prototype scene, all tokens, doors closed and opened [OK] random wall fields, cell 32 and 25 [OK] negative control: the oracle notices a missing and an invented cell [OK] crossing blocked, parallel ok [OK] grazing an endpoint is blocked [OK] no leak through shared vertex [OK] diagonal squeeze through corner vertex of L [OK] moving along a collinear wall is blocked [OK] doors [OK] zero-length move [OK] near pillar: circle overlapping blocked, clear ok (ported) [OK] closed door blocks near, open door passes (ported) [OK] 64px corridor and doorway passable on the centreline (ported) [OK] corner clipping: path passes the wall end closer than r though both ends are clear [OK] parallel pass: r clear, just under r blocked (touching at exactly r is clear) [OK] diagonal squeeze past an L corner with a gap narrower than 2r is blocked [OK] leg of the path inside r of a non-start wall blocks even if start and end are clear [OK] exactly on a wall: can step off perpendicular, either side, to a clear spot [FAILED] exactly on a wall: still refused when it would stay overlapped or run along/through [OK] r = 0: standing on a wall is not an escape case (touch blocks), as the prototype [FAILED] overlapping 10 px off: may leave away from the wall, not cross it, not stay overlapped [OK] escaping one wall does not excuse another [OK] escape from a closed door; an open door never needed an escape [OK] overlapping at a wall end: leave past the end without crossing [OK] owner check: not yours is mkError, no position [OK] GM-controlled token (no owner): players get mkError [OK] step cap = scene default without vision, token vision radius with it [OK] over-cap, blocked-by-wall, blocked-flag and out-of-bounds nacks are identical [OK] an accepted move applies and echoes the destination [OK] player move honours walls (capsule) via moveToken [OK] GM: ignores walls, step cap and blocked; bounds still apply [OK] wall added within r of the circle (centre not on it) sets blocked; exactly r does not [OK] GM-controlled tokens get the flag too; wall bbox does not matter, distance does [OK] open door added or opened never sets; closing a door on a token does [OK] blocked token: player moves refused, GM move allowed [OK] cleared by removing the wall; unrelated removals keep it [OK] cleared by opening the door; a second open is a no-op [OK] cleared by the GM; not re-set by itself [OK] wall update = remove then add [OK] GM placement and GM move onto a wall: blocked; player escape works only after a GM clear [OK] Q14: a door closed 10 px from a token: token blocked, player refused, GM moves it clear, opening frees it [OK] doorway: token in an open doorway, door closes -> blocked, door opens -> free [OK] KEEP: opening one door / removing one wall while another overlaps -> still blocked; last one frees [OK] KEEP: wall update away from one of two overlapping walls keeps blocked [OK] GM moves a stuck token clear -> free; to another wall-overlapping spot -> still blocked [OK] GM drops a token inside a wall -> blocked; a door counts only while closed [FAILED] GM manual clear inside a wall: player escapes sideways, cannot cross [OK] an unrelated wall change elsewhere does not re-block a GM-cleared token [OK] no escape hatch: a player cannot walk through any wall of a boxed room Error: execution of an external program failed: '/tmp/tmp.l2QZ72lVaE/w/tests/tmoverules' [OK] P1: probes longer than the cap get one fixed nack regardless of the scene [OK] P2: scenes differing only beyond the bound give identical replies over 3000 probes [OK] P3 negative control: a wall inside the disc IS visible through replies (the harness can fail) [OK] P4: probing cannot unflag or move a blocked token [OK] doors beyond the bound: opening or closing them changes no reply [OK] exactly n walls, deterministic per seed, seeds differ [OK] doors are every 10th wall, all closed; walls stay inside the world (+- jitter) [OK] walls are non-degenerate and axis-ish segments of room-edge length # test exit=1; expected tests failed: 1 [FAILED] overlapping 10 px off: may leave away from the wall, not cross it, not stay overlapped f: exit=1 expected_failed=1 ok ## g: GM moves checked against walls # diff server/moverules.nim -> mutated copy: # 114c114 # < if not inBounds(sc, d): return nack(s) # --- # > if not inBounds(sc, d) or not pathClear(sc.walls, s, d, sc.tokenRadius): return nack(s) [OK] open space is a circle [OK] wall blocks [OK] shared endpoint: no leak at the vertex [OK] shared vertex: both arms required (mutation d1/d2) [OK] '<' apex: ray through the shared tip must not leak [OK] every segment endpoint is a polygon vertex (lower and upper end inclusive) [OK] rays nudged past a corner: area just beyond a wall end is visible [OK] shared endpoint: closed corner of box has no crack [OK] collinear walls act as one [OK] collinear walls with a gap let light through [OK] T-junction: no leak and correct shadow [OK] pillar mid-room casts a shadow, sides visible [OK] closed door blocks, open door passes [OK] token exactly at wall endpoint [OK] token at endpoint of free-standing wall sees along it [OK] long thin corridor [OK] wall endpoints behind the viewer: fan stays angularly ordered [OK] radius clips [OK] square polygon [OK] tiny polygon inside one cell [OK] polygon spanning a cell with no vertex in it [OK] big polygon includes fully covered interior cells [OK] degenerate input: fewer than 3 vertices [OK] touching a cell line: inclusive on the max side, not on the bbox minimum side [OK] concave polygon: a notch cell is not filled [OK] every token in seed sees itself and is not walled in [OK] visibilityPolygon and cellsTouched equal the prototype results [OK] random visibility polygons: identical cell lists [OK] random simple polygons (star-shaped, concave): identical cell lists [OK] grid-aligned integer polygons (edges on cell lines): identical cell lists [OK] prototype scene, all tokens, doors closed and opened [OK] random wall fields, cell 32 and 25 [OK] negative control: the oracle notices a missing and an invented cell [OK] crossing blocked, parallel ok [OK] grazing an endpoint is blocked [OK] no leak through shared vertex [OK] diagonal squeeze through corner vertex of L [OK] moving along a collinear wall is blocked [OK] doors [OK] zero-length move [OK] near pillar: circle overlapping blocked, clear ok (ported) [OK] closed door blocks near, open door passes (ported) [OK] 64px corridor and doorway passable on the centreline (ported) [OK] corner clipping: path passes the wall end closer than r though both ends are clear [OK] parallel pass: r clear, just under r blocked (touching at exactly r is clear) [OK] diagonal squeeze past an L corner with a gap narrower than 2r is blocked [OK] leg of the path inside r of a non-start wall blocks even if start and end are clear [OK] exactly on a wall: can step off perpendicular, either side, to a clear spot [OK] exactly on a wall: still refused when it would stay overlapped or run along/through [OK] r = 0: standing on a wall is not an escape case (touch blocks), as the prototype [OK] overlapping 10 px off: may leave away from the wall, not cross it, not stay overlapped [OK] escaping one wall does not excuse another [OK] escape from a closed door; an open door never needed an escape [OK] overlapping at a wall end: leave past the end without crossing [OK] owner check: not yours is mkError, no position [OK] GM-controlled token (no owner): players get mkError [OK] step cap = scene default without vision, token vision radius with it [OK] over-cap, blocked-by-wall, blocked-flag and out-of-bounds nacks are identical [OK] an accepted move applies and echoes the destination [OK] player move honours walls (capsule) via moveToken [FAILED] GM: ignores walls, step cap and blocked; bounds still apply [OK] wall added within r of the circle (centre not on it) sets blocked; exactly r does not [OK] GM-controlled tokens get the flag too; wall bbox does not matter, distance does [OK] open door added or opened never sets; closing a door on a token does [OK] blocked token: player moves refused, GM move allowed [OK] cleared by removing the wall; unrelated removals keep it [OK] cleared by opening the door; a second open is a no-op [OK] cleared by the GM; not re-set by itself [OK] wall update = remove then add [FAILED] GM placement and GM move onto a wall: blocked; player escape works only after a GM clear [FAILED] Q14: a door closed 10 px from a token: token blocked, player refused, GM moves it clear, opening frees it [OK] doorway: token in an open doorway, door closes -> blocked, door opens -> free [OK] KEEP: opening one door / removing one wall while another overlaps -> still blocked; last one frees [OK] KEEP: wall update away from one of two overlapping walls keeps blocked [FAILED] GM moves a stuck token clear -> free; to another wall-overlapping spot -> still blocked [FAILED] GM drops a token inside a wall -> blocked; a door counts only while closed [FAILED] GM manual clear inside a wall: player escapes sideways, cannot cross [OK] an unrelated wall change elsewhere does not re-block a GM-cleared token [OK] no escape hatch: a player cannot walk through any wall of a boxed room Error: execution of an external program failed: '/tmp/tmp.l2QZ72lVaE/w/tests/tmoverules' [OK] P1: probes longer than the cap get one fixed nack regardless of the scene [OK] P2: scenes differing only beyond the bound give identical replies over 3000 probes [OK] P3 negative control: a wall inside the disc IS visible through replies (the harness can fail) [OK] P4: probing cannot unflag or move a blocked token [OK] doors beyond the bound: opening or closing them changes no reply [OK] exactly n walls, deterministic per seed, seeds differ [OK] doors are every 10th wall, all closed; walls stay inside the world (+- jitter) [OK] walls are non-degenerate and axis-ish segments of room-edge length # test exit=1; expected tests failed: 1 [FAILED] GM: ignores walls, step cap and blocked; bounds still apply g: exit=1 expected_failed=1 ok ## h: capsule = centre path + destination circle (prototype) # diff server/moverules.nim -> mutated copy: # 91c91 # < elif segsCross(s, d, w.a, w.b) or segSegDist(s, d, w.a, w.b) < r: return false # --- # > elif segsCross(s, d, w.a, w.b) or segDist(d, w.a, w.b) < r: return false [OK] open space is a circle [OK] wall blocks [OK] shared endpoint: no leak at the vertex [OK] shared vertex: both arms required (mutation d1/d2) [OK] '<' apex: ray through the shared tip must not leak [OK] every segment endpoint is a polygon vertex (lower and upper end inclusive) [OK] rays nudged past a corner: area just beyond a wall end is visible [OK] shared endpoint: closed corner of box has no crack [OK] collinear walls act as one [OK] collinear walls with a gap let light through [OK] T-junction: no leak and correct shadow [OK] pillar mid-room casts a shadow, sides visible [OK] closed door blocks, open door passes [OK] token exactly at wall endpoint [OK] token at endpoint of free-standing wall sees along it [OK] long thin corridor [OK] wall endpoints behind the viewer: fan stays angularly ordered [OK] radius clips [OK] square polygon [OK] tiny polygon inside one cell [OK] polygon spanning a cell with no vertex in it [OK] big polygon includes fully covered interior cells [OK] degenerate input: fewer than 3 vertices [OK] touching a cell line: inclusive on the max side, not on the bbox minimum side [OK] concave polygon: a notch cell is not filled [OK] every token in seed sees itself and is not walled in [OK] visibilityPolygon and cellsTouched equal the prototype results [OK] random visibility polygons: identical cell lists [OK] random simple polygons (star-shaped, concave): identical cell lists [OK] grid-aligned integer polygons (edges on cell lines): identical cell lists [OK] prototype scene, all tokens, doors closed and opened [OK] random wall fields, cell 32 and 25 [OK] negative control: the oracle notices a missing and an invented cell [OK] crossing blocked, parallel ok [OK] grazing an endpoint is blocked [OK] no leak through shared vertex [OK] diagonal squeeze through corner vertex of L [OK] moving along a collinear wall is blocked [OK] doors [OK] zero-length move [OK] near pillar: circle overlapping blocked, clear ok (ported) [OK] closed door blocks near, open door passes (ported) [OK] 64px corridor and doorway passable on the centreline (ported) [FAILED] corner clipping: path passes the wall end closer than r though both ends are clear [OK] parallel pass: r clear, just under r blocked (touching at exactly r is clear) [OK] diagonal squeeze past an L corner with a gap narrower than 2r is blocked [FAILED] leg of the path inside r of a non-start wall blocks even if start and end are clear [OK] exactly on a wall: can step off perpendicular, either side, to a clear spot [OK] exactly on a wall: still refused when it would stay overlapped or run along/through [OK] r = 0: standing on a wall is not an escape case (touch blocks), as the prototype [OK] overlapping 10 px off: may leave away from the wall, not cross it, not stay overlapped [OK] escaping one wall does not excuse another [OK] escape from a closed door; an open door never needed an escape [OK] overlapping at a wall end: leave past the end without crossing [OK] owner check: not yours is mkError, no position [OK] GM-controlled token (no owner): players get mkError [OK] step cap = scene default without vision, token vision radius with it [OK] over-cap, blocked-by-wall, blocked-flag and out-of-bounds nacks are identical [OK] an accepted move applies and echoes the destination [OK] player move honours walls (capsule) via moveToken [OK] GM: ignores walls, step cap and blocked; bounds still apply [OK] wall added within r of the circle (centre not on it) sets blocked; exactly r does not [OK] GM-controlled tokens get the flag too; wall bbox does not matter, distance does [OK] open door added or opened never sets; closing a door on a token does [OK] blocked token: player moves refused, GM move allowed [OK] cleared by removing the wall; unrelated removals keep it [OK] cleared by opening the door; a second open is a no-op [OK] cleared by the GM; not re-set by itself [OK] wall update = remove then add [OK] GM placement and GM move onto a wall: blocked; player escape works only after a GM clear [OK] Q14: a door closed 10 px from a token: token blocked, player refused, GM moves it clear, opening frees it [OK] doorway: token in an open doorway, door closes -> blocked, door opens -> free [OK] KEEP: opening one door / removing one wall while another overlaps -> still blocked; last one frees [OK] KEEP: wall update away from one of two overlapping walls keeps blocked [OK] GM moves a stuck token clear -> free; to another wall-overlapping spot -> still blocked [OK] GM drops a token inside a wall -> blocked; a door counts only while closed [OK] GM manual clear inside a wall: player escapes sideways, cannot cross [OK] an unrelated wall change elsewhere does not re-block a GM-cleared token [OK] no escape hatch: a player cannot walk through any wall of a boxed room Error: execution of an external program failed: '/tmp/tmp.l2QZ72lVaE/w/tests/tmoverules' [OK] P1: probes longer than the cap get one fixed nack regardless of the scene [OK] P2: scenes differing only beyond the bound give identical replies over 3000 probes [OK] P3 negative control: a wall inside the disc IS visible through replies (the harness can fail) [OK] P4: probing cannot unflag or move a blocked token [OK] doors beyond the bound: opening or closing them changes no reply [OK] exactly n walls, deterministic per seed, seeds differ [OK] doors are every 10th wall, all closed; walls stay inside the world (+- jitter) [OK] walls are non-degenerate and axis-ish segments of room-edge length # test exit=1; expected tests failed: 2 [FAILED] corner clipping: path passes the wall end closer than r though both ends are clear [FAILED] leg of the path inside r of a non-start wall blocks even if start and end are clear h: exit=1 expected_failed=2 ok ## i: no step cap # diff server/moverules.nim -> mutated copy: # 119d118 # < if hypot(dd.x, dd.y) > stepCap(sc, sc.tokens[ti]): return nack(s) [OK] open space is a circle [OK] wall blocks [OK] shared endpoint: no leak at the vertex [OK] shared vertex: both arms required (mutation d1/d2) [OK] '<' apex: ray through the shared tip must not leak [OK] every segment endpoint is a polygon vertex (lower and upper end inclusive) [OK] rays nudged past a corner: area just beyond a wall end is visible [OK] shared endpoint: closed corner of box has no crack [OK] collinear walls act as one [OK] collinear walls with a gap let light through [OK] T-junction: no leak and correct shadow [OK] pillar mid-room casts a shadow, sides visible [OK] closed door blocks, open door passes [OK] token exactly at wall endpoint [OK] token at endpoint of free-standing wall sees along it [OK] long thin corridor [OK] wall endpoints behind the viewer: fan stays angularly ordered [OK] radius clips [OK] square polygon [OK] tiny polygon inside one cell [OK] polygon spanning a cell with no vertex in it [OK] big polygon includes fully covered interior cells [OK] degenerate input: fewer than 3 vertices [OK] touching a cell line: inclusive on the max side, not on the bbox minimum side [OK] concave polygon: a notch cell is not filled [OK] every token in seed sees itself and is not walled in [OK] visibilityPolygon and cellsTouched equal the prototype results [OK] random visibility polygons: identical cell lists [OK] random simple polygons (star-shaped, concave): identical cell lists [OK] grid-aligned integer polygons (edges on cell lines): identical cell lists [OK] prototype scene, all tokens, doors closed and opened [OK] random wall fields, cell 32 and 25 [OK] negative control: the oracle notices a missing and an invented cell [OK] crossing blocked, parallel ok [OK] grazing an endpoint is blocked [OK] no leak through shared vertex [OK] diagonal squeeze through corner vertex of L [OK] moving along a collinear wall is blocked [OK] doors [OK] zero-length move [OK] near pillar: circle overlapping blocked, clear ok (ported) [OK] closed door blocks near, open door passes (ported) [OK] 64px corridor and doorway passable on the centreline (ported) [OK] corner clipping: path passes the wall end closer than r though both ends are clear [OK] parallel pass: r clear, just under r blocked (touching at exactly r is clear) [OK] diagonal squeeze past an L corner with a gap narrower than 2r is blocked [OK] leg of the path inside r of a non-start wall blocks even if start and end are clear [OK] exactly on a wall: can step off perpendicular, either side, to a clear spot [OK] exactly on a wall: still refused when it would stay overlapped or run along/through [OK] r = 0: standing on a wall is not an escape case (touch blocks), as the prototype [OK] overlapping 10 px off: may leave away from the wall, not cross it, not stay overlapped [OK] escaping one wall does not excuse another [OK] escape from a closed door; an open door never needed an escape [OK] overlapping at a wall end: leave past the end without crossing [OK] owner check: not yours is mkError, no position [OK] GM-controlled token (no owner): players get mkError [FAILED] step cap = scene default without vision, token vision radius with it [OK] over-cap, blocked-by-wall, blocked-flag and out-of-bounds nacks are identical [OK] an accepted move applies and echoes the destination [OK] player move honours walls (capsule) via moveToken [OK] GM: ignores walls, step cap and blocked; bounds still apply [OK] wall added within r of the circle (centre not on it) sets blocked; exactly r does not [OK] GM-controlled tokens get the flag too; wall bbox does not matter, distance does [OK] open door added or opened never sets; closing a door on a token does [OK] blocked token: player moves refused, GM move allowed [OK] cleared by removing the wall; unrelated removals keep it [OK] cleared by opening the door; a second open is a no-op [OK] cleared by the GM; not re-set by itself [OK] wall update = remove then add [OK] GM placement and GM move onto a wall: blocked; player escape works only after a GM clear [OK] Q14: a door closed 10 px from a token: token blocked, player refused, GM moves it clear, opening frees it [OK] doorway: token in an open doorway, door closes -> blocked, door opens -> free [OK] KEEP: opening one door / removing one wall while another overlaps -> still blocked; last one frees [OK] KEEP: wall update away from one of two overlapping walls keeps blocked [OK] GM moves a stuck token clear -> free; to another wall-overlapping spot -> still blocked [OK] GM drops a token inside a wall -> blocked; a door counts only while closed [OK] GM manual clear inside a wall: player escapes sideways, cannot cross [OK] an unrelated wall change elsewhere does not re-block a GM-cleared token [OK] no escape hatch: a player cannot walk through any wall of a boxed room Error: execution of an external program failed: '/tmp/tmp.l2QZ72lVaE/w/tests/tmoverules' [FAILED] P1: probes longer than the cap get one fixed nack regardless of the scene [OK] P2: scenes differing only beyond the bound give identical replies over 3000 probes [OK] P3 negative control: a wall inside the disc IS visible through replies (the harness can fail) [OK] P4: probing cannot unflag or move a blocked token [OK] doors beyond the bound: opening or closing them changes no reply Error: execution of an external program failed: '/tmp/tmp.l2QZ72lVaE/w/tests/tprobing' [OK] exactly n walls, deterministic per seed, seeds differ [OK] doors are every 10th wall, all closed; walls stay inside the world (+- jitter) [OK] walls are non-degenerate and axis-ish segments of room-edge length # test exit=1; expected tests failed: 2 [FAILED] step cap = scene default without vision, token vision radius with it [FAILED] P1: probes longer than the cap get one fixed nack regardless of the scene i: exit=1 expected_failed=2 ok ## j: blocked trigger needs the centre on the wall # diff server/moverules.nim -> mutated copy: # 100c100 # < proc overlaps(sc: Scene, t: Token, w: Wall): bool = segDist(t.pos, w.a, w.b) < sc.tokenRadius # --- # > proc overlaps(sc: Scene, t: Token, w: Wall): bool = segDist(t.pos, w.a, w.b) < 1e-9 [OK] open space is a circle [OK] wall blocks [OK] shared endpoint: no leak at the vertex [OK] shared vertex: both arms required (mutation d1/d2) [OK] '<' apex: ray through the shared tip must not leak [OK] every segment endpoint is a polygon vertex (lower and upper end inclusive) [OK] rays nudged past a corner: area just beyond a wall end is visible [OK] shared endpoint: closed corner of box has no crack [OK] collinear walls act as one [OK] collinear walls with a gap let light through [OK] T-junction: no leak and correct shadow [OK] pillar mid-room casts a shadow, sides visible [OK] closed door blocks, open door passes [OK] token exactly at wall endpoint [OK] token at endpoint of free-standing wall sees along it [OK] long thin corridor [OK] wall endpoints behind the viewer: fan stays angularly ordered [OK] radius clips [OK] square polygon [OK] tiny polygon inside one cell [OK] polygon spanning a cell with no vertex in it [OK] big polygon includes fully covered interior cells [OK] degenerate input: fewer than 3 vertices [OK] touching a cell line: inclusive on the max side, not on the bbox minimum side [OK] concave polygon: a notch cell is not filled [OK] every token in seed sees itself and is not walled in [OK] visibilityPolygon and cellsTouched equal the prototype results [OK] random visibility polygons: identical cell lists [OK] random simple polygons (star-shaped, concave): identical cell lists [OK] grid-aligned integer polygons (edges on cell lines): identical cell lists [OK] prototype scene, all tokens, doors closed and opened [OK] random wall fields, cell 32 and 25 [OK] negative control: the oracle notices a missing and an invented cell [OK] crossing blocked, parallel ok [OK] grazing an endpoint is blocked [OK] no leak through shared vertex [OK] diagonal squeeze through corner vertex of L [OK] moving along a collinear wall is blocked [OK] doors [OK] zero-length move [OK] near pillar: circle overlapping blocked, clear ok (ported) [OK] closed door blocks near, open door passes (ported) [OK] 64px corridor and doorway passable on the centreline (ported) [OK] corner clipping: path passes the wall end closer than r though both ends are clear [OK] parallel pass: r clear, just under r blocked (touching at exactly r is clear) [OK] diagonal squeeze past an L corner with a gap narrower than 2r is blocked [OK] leg of the path inside r of a non-start wall blocks even if start and end are clear [OK] exactly on a wall: can step off perpendicular, either side, to a clear spot [OK] exactly on a wall: still refused when it would stay overlapped or run along/through [OK] r = 0: standing on a wall is not an escape case (touch blocks), as the prototype [OK] overlapping 10 px off: may leave away from the wall, not cross it, not stay overlapped [OK] escaping one wall does not excuse another [OK] escape from a closed door; an open door never needed an escape [OK] overlapping at a wall end: leave past the end without crossing [OK] owner check: not yours is mkError, no position [OK] GM-controlled token (no owner): players get mkError [OK] step cap = scene default without vision, token vision radius with it [OK] over-cap, blocked-by-wall, blocked-flag and out-of-bounds nacks are identical [OK] an accepted move applies and echoes the destination [OK] player move honours walls (capsule) via moveToken [OK] GM: ignores walls, step cap and blocked; bounds still apply [FAILED] wall added within r of the circle (centre not on it) sets blocked; exactly r does not [FAILED] GM-controlled tokens get the flag too; wall bbox does not matter, distance does [OK] open door added or opened never sets; closing a door on a token does [FAILED] blocked token: player moves refused, GM move allowed [FAILED] cleared by removing the wall; unrelated removals keep it [FAILED] cleared by opening the door; a second open is a no-op [OK] cleared by the GM; not re-set by itself [FAILED] wall update = remove then add [FAILED] GM placement and GM move onto a wall: blocked; player escape works only after a GM clear [FAILED] Q14: a door closed 10 px from a token: token blocked, player refused, GM moves it clear, opening frees it [OK] doorway: token in an open doorway, door closes -> blocked, door opens -> free [FAILED] KEEP: opening one door / removing one wall while another overlaps -> still blocked; last one frees [FAILED] KEEP: wall update away from one of two overlapping walls keeps blocked [FAILED] GM moves a stuck token clear -> free; to another wall-overlapping spot -> still blocked [FAILED] GM drops a token inside a wall -> blocked; a door counts only while closed [FAILED] GM manual clear inside a wall: player escapes sideways, cannot cross [OK] an unrelated wall change elsewhere does not re-block a GM-cleared token [OK] no escape hatch: a player cannot walk through any wall of a boxed room Error: execution of an external program failed: '/tmp/tmp.l2QZ72lVaE/w/tests/tmoverules' [OK] P1: probes longer than the cap get one fixed nack regardless of the scene [OK] P2: scenes differing only beyond the bound give identical replies over 3000 probes [OK] P3 negative control: a wall inside the disc IS visible through replies (the harness can fail) [OK] P4: probing cannot unflag or move a blocked token [OK] doors beyond the bound: opening or closing them changes no reply [OK] exactly n walls, deterministic per seed, seeds differ [OK] doors are every 10th wall, all closed; walls stay inside the world (+- jitter) [OK] walls are non-degenerate and axis-ish segments of room-edge length # test exit=1; expected tests failed: 2 [FAILED] wall added within r of the circle (centre not on it) sets blocked; exactly r does not [FAILED] Q14: a door closed 10 px from a token: token blocked, player refused, GM moves it clear, opening frees it j: exit=1 expected_failed=2 ok ## k: removal/open clears blocked unconditionally (no KEEP) # diff server/moverules.nim -> mutated copy: # 144c144 # < if overlaps(sc, sc.tokens[i], w): sc.tokens[i].blocked = overlapsAny(sc, sc.tokens[i]) # --- # > if overlaps(sc, sc.tokens[i], w): sc.tokens[i].blocked = false [OK] open space is a circle [OK] wall blocks [OK] shared endpoint: no leak at the vertex [OK] shared vertex: both arms required (mutation d1/d2) [OK] '<' apex: ray through the shared tip must not leak [OK] every segment endpoint is a polygon vertex (lower and upper end inclusive) [OK] rays nudged past a corner: area just beyond a wall end is visible [OK] shared endpoint: closed corner of box has no crack [OK] collinear walls act as one [OK] collinear walls with a gap let light through [OK] T-junction: no leak and correct shadow [OK] pillar mid-room casts a shadow, sides visible [OK] closed door blocks, open door passes [OK] token exactly at wall endpoint [OK] token at endpoint of free-standing wall sees along it [OK] long thin corridor [OK] wall endpoints behind the viewer: fan stays angularly ordered [OK] radius clips [OK] square polygon [OK] tiny polygon inside one cell [OK] polygon spanning a cell with no vertex in it [OK] big polygon includes fully covered interior cells [OK] degenerate input: fewer than 3 vertices [OK] touching a cell line: inclusive on the max side, not on the bbox minimum side [OK] concave polygon: a notch cell is not filled [OK] every token in seed sees itself and is not walled in [OK] visibilityPolygon and cellsTouched equal the prototype results [OK] random visibility polygons: identical cell lists [OK] random simple polygons (star-shaped, concave): identical cell lists [OK] grid-aligned integer polygons (edges on cell lines): identical cell lists [OK] prototype scene, all tokens, doors closed and opened [OK] random wall fields, cell 32 and 25 [OK] negative control: the oracle notices a missing and an invented cell [OK] crossing blocked, parallel ok [OK] grazing an endpoint is blocked [OK] no leak through shared vertex [OK] diagonal squeeze through corner vertex of L [OK] moving along a collinear wall is blocked [OK] doors [OK] zero-length move [OK] near pillar: circle overlapping blocked, clear ok (ported) [OK] closed door blocks near, open door passes (ported) [OK] 64px corridor and doorway passable on the centreline (ported) [OK] corner clipping: path passes the wall end closer than r though both ends are clear [OK] parallel pass: r clear, just under r blocked (touching at exactly r is clear) [OK] diagonal squeeze past an L corner with a gap narrower than 2r is blocked [OK] leg of the path inside r of a non-start wall blocks even if start and end are clear [OK] exactly on a wall: can step off perpendicular, either side, to a clear spot [OK] exactly on a wall: still refused when it would stay overlapped or run along/through [OK] r = 0: standing on a wall is not an escape case (touch blocks), as the prototype [OK] overlapping 10 px off: may leave away from the wall, not cross it, not stay overlapped [OK] escaping one wall does not excuse another [OK] escape from a closed door; an open door never needed an escape [OK] overlapping at a wall end: leave past the end without crossing [OK] owner check: not yours is mkError, no position [OK] GM-controlled token (no owner): players get mkError [OK] step cap = scene default without vision, token vision radius with it [OK] over-cap, blocked-by-wall, blocked-flag and out-of-bounds nacks are identical [OK] an accepted move applies and echoes the destination [OK] player move honours walls (capsule) via moveToken [OK] GM: ignores walls, step cap and blocked; bounds still apply [OK] wall added within r of the circle (centre not on it) sets blocked; exactly r does not [OK] GM-controlled tokens get the flag too; wall bbox does not matter, distance does [OK] open door added or opened never sets; closing a door on a token does [OK] blocked token: player moves refused, GM move allowed [OK] cleared by removing the wall; unrelated removals keep it [OK] cleared by opening the door; a second open is a no-op [OK] cleared by the GM; not re-set by itself [OK] wall update = remove then add [OK] GM placement and GM move onto a wall: blocked; player escape works only after a GM clear [OK] Q14: a door closed 10 px from a token: token blocked, player refused, GM moves it clear, opening frees it [OK] doorway: token in an open doorway, door closes -> blocked, door opens -> free [FAILED] KEEP: opening one door / removing one wall while another overlaps -> still blocked; last one frees [FAILED] KEEP: wall update away from one of two overlapping walls keeps blocked [OK] GM moves a stuck token clear -> free; to another wall-overlapping spot -> still blocked [OK] GM drops a token inside a wall -> blocked; a door counts only while closed [OK] GM manual clear inside a wall: player escapes sideways, cannot cross [OK] an unrelated wall change elsewhere does not re-block a GM-cleared token [OK] no escape hatch: a player cannot walk through any wall of a boxed room Error: execution of an external program failed: '/tmp/tmp.l2QZ72lVaE/w/tests/tmoverules' [OK] P1: probes longer than the cap get one fixed nack regardless of the scene [OK] P2: scenes differing only beyond the bound give identical replies over 3000 probes [OK] P3 negative control: a wall inside the disc IS visible through replies (the harness can fail) [OK] P4: probing cannot unflag or move a blocked token [OK] doors beyond the bound: opening or closing them changes no reply [OK] exactly n walls, deterministic per seed, seeds differ [OK] doors are every 10th wall, all closed; walls stay inside the world (+- jitter) [OK] walls are non-degenerate and axis-ish segments of room-edge length # test exit=1; expected tests failed: 2 [FAILED] KEEP: opening one door / removing one wall while another overlaps -> still blocked; last one frees [FAILED] KEEP: wall update away from one of two overlapping walls keeps blocked k: exit=1 expected_failed=2 ok ## l: GM moves never set or clear blocked # diff server/moverules.nim -> mutated copy: # 122d121 # < if who.role == roleGM: sc.tokens[ti].blocked = overlapsAny(sc, sc.tokens[ti]) [OK] open space is a circle [OK] wall blocks [OK] shared endpoint: no leak at the vertex [OK] shared vertex: both arms required (mutation d1/d2) [OK] '<' apex: ray through the shared tip must not leak [OK] every segment endpoint is a polygon vertex (lower and upper end inclusive) [OK] rays nudged past a corner: area just beyond a wall end is visible [OK] shared endpoint: closed corner of box has no crack [OK] collinear walls act as one [OK] collinear walls with a gap let light through [OK] T-junction: no leak and correct shadow [OK] pillar mid-room casts a shadow, sides visible [OK] closed door blocks, open door passes [OK] token exactly at wall endpoint [OK] token at endpoint of free-standing wall sees along it [OK] long thin corridor [OK] wall endpoints behind the viewer: fan stays angularly ordered [OK] radius clips [OK] square polygon [OK] tiny polygon inside one cell [OK] polygon spanning a cell with no vertex in it [OK] big polygon includes fully covered interior cells [OK] degenerate input: fewer than 3 vertices [OK] touching a cell line: inclusive on the max side, not on the bbox minimum side [OK] concave polygon: a notch cell is not filled [OK] every token in seed sees itself and is not walled in [OK] visibilityPolygon and cellsTouched equal the prototype results [OK] random visibility polygons: identical cell lists [OK] random simple polygons (star-shaped, concave): identical cell lists [OK] grid-aligned integer polygons (edges on cell lines): identical cell lists [OK] prototype scene, all tokens, doors closed and opened [OK] random wall fields, cell 32 and 25 [OK] negative control: the oracle notices a missing and an invented cell [OK] crossing blocked, parallel ok [OK] grazing an endpoint is blocked [OK] no leak through shared vertex [OK] diagonal squeeze through corner vertex of L [OK] moving along a collinear wall is blocked [OK] doors [OK] zero-length move [OK] near pillar: circle overlapping blocked, clear ok (ported) [OK] closed door blocks near, open door passes (ported) [OK] 64px corridor and doorway passable on the centreline (ported) [OK] corner clipping: path passes the wall end closer than r though both ends are clear [OK] parallel pass: r clear, just under r blocked (touching at exactly r is clear) [OK] diagonal squeeze past an L corner with a gap narrower than 2r is blocked [OK] leg of the path inside r of a non-start wall blocks even if start and end are clear [OK] exactly on a wall: can step off perpendicular, either side, to a clear spot [OK] exactly on a wall: still refused when it would stay overlapped or run along/through [OK] r = 0: standing on a wall is not an escape case (touch blocks), as the prototype [OK] overlapping 10 px off: may leave away from the wall, not cross it, not stay overlapped [OK] escaping one wall does not excuse another [OK] escape from a closed door; an open door never needed an escape [OK] overlapping at a wall end: leave past the end without crossing [OK] owner check: not yours is mkError, no position [OK] GM-controlled token (no owner): players get mkError [OK] step cap = scene default without vision, token vision radius with it [OK] over-cap, blocked-by-wall, blocked-flag and out-of-bounds nacks are identical [OK] an accepted move applies and echoes the destination [OK] player move honours walls (capsule) via moveToken [OK] GM: ignores walls, step cap and blocked; bounds still apply [OK] wall added within r of the circle (centre not on it) sets blocked; exactly r does not [OK] GM-controlled tokens get the flag too; wall bbox does not matter, distance does [OK] open door added or opened never sets; closing a door on a token does [FAILED] blocked token: player moves refused, GM move allowed [OK] cleared by removing the wall; unrelated removals keep it [OK] cleared by opening the door; a second open is a no-op [OK] cleared by the GM; not re-set by itself [OK] wall update = remove then add [FAILED] GM placement and GM move onto a wall: blocked; player escape works only after a GM clear [FAILED] Q14: a door closed 10 px from a token: token blocked, player refused, GM moves it clear, opening frees it [OK] doorway: token in an open doorway, door closes -> blocked, door opens -> free [OK] KEEP: opening one door / removing one wall while another overlaps -> still blocked; last one frees [OK] KEEP: wall update away from one of two overlapping walls keeps blocked [FAILED] GM moves a stuck token clear -> free; to another wall-overlapping spot -> still blocked [FAILED] GM drops a token inside a wall -> blocked; a door counts only while closed [FAILED] GM manual clear inside a wall: player escapes sideways, cannot cross [OK] an unrelated wall change elsewhere does not re-block a GM-cleared token [OK] no escape hatch: a player cannot walk through any wall of a boxed room Error: execution of an external program failed: '/tmp/tmp.l2QZ72lVaE/w/tests/tmoverules' [OK] P1: probes longer than the cap get one fixed nack regardless of the scene [OK] P2: scenes differing only beyond the bound give identical replies over 3000 probes [OK] P3 negative control: a wall inside the disc IS visible through replies (the harness can fail) [OK] P4: probing cannot unflag or move a blocked token [OK] doors beyond the bound: opening or closing them changes no reply [OK] exactly n walls, deterministic per seed, seeds differ [OK] doors are every 10th wall, all closed; walls stay inside the world (+- jitter) [OK] walls are non-degenerate and axis-ish segments of room-edge length # test exit=1; expected tests failed: 3 [FAILED] GM moves a stuck token clear -> free; to another wall-overlapping spot -> still blocked [FAILED] GM drops a token inside a wall -> blocked; a door counts only while closed [FAILED] GM manual clear inside a wall: player escapes sideways, cannot cross l: exit=1 expected_failed=3 ok exit=0