returns the number of walls in the four cardinal directions that could hold up a web */
| 1241 | /* returns the number of walls in the four cardinal directions that could |
| 1242 | hold up a web */ |
| 1243 | staticfn int |
| 1244 | count_webbing_walls(coordxy x, coordxy y) |
| 1245 | { |
| 1246 | return (holds_up_web(x, y - 1) + holds_up_web(x + 1, y) |
| 1247 | + holds_up_web(x, y + 1) + holds_up_web(x - 1, y)); |
| 1248 | } |
| 1249 | |
| 1250 | /* reject webs which interfere with solving Sokoban */ |
| 1251 | staticfn boolean |
no test coverage detected