let dirsb = %11111111
Main:
let w0 = pinsc
pause 1
if w0 = 8 then
sertxd ("One person trapped")
elseif w0 = 16 then
sertxd ("One person trapped")
elseif w0 = 32 then
sertxd ("One person trapped")
elseif w0 = 64 then
sertxd ("One person trapped")
elseif w0 = 128 then
sertxd ("One person trapped")
elseif w0 = 9 then
sertxd ("One person trapped, Car on LHS")
elseif w0 = 17 then
sertxd ("One person trapped, Car on LHS")
elseif w0 = 33 then
sertxd ("One person trapped, Car on LHS")
elseif w0 = 65 then
sertxd ("One person trapped, Car on LHS")
elseif w0 = 129 then
sertxd ("One person trapped, Car on LHS")
elseif w0 = 10 then
sertxd ("One person trapped, Car on RHS")
elseif w0 = 18 then
sertxd ("One person trapped, Car on RHS")
elseif w0 = 34 then
sertxd ("One person trapped, Car on RHS")
elseif w0 = 66 then
sertxd ("One person trapped, Car on RHS")
elseif w0 = 130 then
sertxd ("One person trapped, Car on RHS")
elseif w0 = 12 then
sertxd ("One person trapped, Car on USD")
elseif w0 = 20 then
sertxd ("One person trapped, Car on USD")
elseif w0 = 36 then
sertxd ("One person trapped, Car on USD")
elseif w0 = 68 then
sertxd ("One person trapped, Car on USD")
elseif w0 = 132 then
sertxd ("One person trapped, Car on USD")
elseif w0 = 24 then
sertxd ("Two people trapped")
elseif w0 = 40 then
sertxd ("Two people trapped")
elseif w0 = 48 then
sertxd ("Two people trapped")
elseif w0 = 72 then
sertxd ("Two people trapped")
elseif w0 = 80 then
sertxd ("Two people trapped")
elseif w0 = 96 then
sertxd ("Two people trapped")
elseif w0 = 136 then
sertxd ("Two people trapped")
elseif w0 = 144 then
sertxd ("Two people trapped")
elseif w0 = 160 then
sertxd ("Two people trapped")
elseif w0 = 192 then
sertxd ("Two people trapped")
elseif w0 = 25 then
sertxd ("Two people trapped, Car on LHS")
elseif w0 = 41 then
sertxd ("Two people trapped, Car on LHS")
elseif w0 = 49 then
sertxd ("Two people trapped, Car on LHS")
elseif w0 = 73 then
sertxd ("Two people trapped, Car on LHS")
elseif w0 = 81 then
sertxd ("Two people trapped, Car on LHS")
elseif w0 = 97 then
sertxd ("Two people trapped, Car on LHS")
elseif w0 = 137 then
sertxd ("Two people trapped, Car on LHS")
elseif w0 = 145 then
sertxd ("Two people trapped, Car on LHS")
elseif w0 = 161 then
sertxd ("Two people trapped, Car on LHS")
elseif w0 = 193 then
sertxd ("Two people trapped, Car on LHS")
elseif w0 = 26 then
sertxd ("Two people trapped, Car on RHS")
elseif w0 = 42 then
sertxd ("Two people trapped, Car on RHS")
elseif w0 = 50 then
sertxd ("Two people trapped, Car on RHS")
elseif w0 = 74 then
sertxd ("Two people trapped, Car on RHS")
elseif w0 = 82 then
sertxd ("Two people trapped, Car on RHS")
elseif w0 = 98 then
sertxd ("Two people trapped, Car on RHS")
elseif w0 = 138 then
sertxd ("Two people trapped, Car on RHS")
elseif w0 = 146 then
sertxd ("Two people trapped, Car on RHS")
elseif w0 = 162 then
sertxd ("Two people trapped, Car on RHS")
elseif w0 = 194 then
sertxd ("Two people trapped, Car on RHS")
elseif w0 = 28 then
sertxd ("Two people trapped, Car on USD")
elseif w0 = 44 then
sertxd ("Two people trapped, Car on USD")
elseif w0 = 52 then
sertxd ("Two people trapped, Car on USD")
elseif w0 = 76 then
sertxd ("Two people trapped, Car on USD")
elseif w0 = 84 then
sertxd ("Two people trapped, Car on USD")
elseif w0 = 100 then
sertxd ("Two people trapped, Car on USD")
elseif w0 = 140 then
sertxd ("Two people trapped, Car on USD")
elseif w0 = 148 then
sertxd ("Two people trapped, Car on USD")
elseif w0 = 164 then
sertxd ("Two people trapped, Car on USD")
elseif w0 = 196 then
sertxd ("Two people trapped, Car on USD")
elseif w0 = 56 then
sertxd ("Three people trapped")
elseif w0 = 88 then
sertxd ("Three people trapped")
elseif w0 = 104 then
sertxd ("Three people trapped")
elseif w0 = 112 then
sertxd ("Three people trapped")
elseif w0 = 152 then
sertxd ("Three people trapped")
elseif w0 = 168 then
sertxd ("Three people trapped")
elseif w0 = 176 then
sertxd ("Three people trapped")
elseif w0 = 200 then
sertxd ("Three people trapped")
elseif w0 = 57 then
sertxd ("Three people trapped, Car on LHS")
elseif w0 = 89 then
sertxd ("Three people trapped, Car on LHS")
elseif w0 = 105 then
sertxd ("Three people trapped, Car on LHS")
elseif w0 = 113 then
sertxd ("Three people trapped, Car on LHS")
elseif w0 = 153 then
sertxd ("Three people trapped, Car on LHS")
elseif w0 = 169 then
sertxd ("Three people trapped, Car on LHS")
elseif w0 = 177 then
sertxd ("Three people trapped, Car on LHS")
elseif w0 = 201 then
sertxd ("Three people trapped, Car on LHS")
elseif w0 = 58 then
sertxd ("Three people trapped, Car on RHS")
elseif w0 = 90 then
sertxd ("Three people trapped, Car on RHS")
elseif w0 = 106 then
sertxd ("Three people trapped, Car on RHS")
elseif w0 = 114 then
sertxd ("Three people trapped, Car on RHS")
elseif w0 = 154 then
sertxd ("Three people trapped, Car on RHS")
elseif w0 = 170 then
sertxd ("Three people trapped, Car on RHS")
elseif w0 = 178 then
sertxd ("Three people trapped, Car on RHS")
elseif w0 = 202 then
sertxd ("Three people trapped, Car on RHS")
elseif w0 = 60 then
sertxd ("Three people trapped, Car on USD")
elseif w0 = 92 then
sertxd ("Three people trapped, Car on USD")
elseif w0 = 108 then
sertxd ("Three people trapped, Car on USD")
elseif w0 = 116 then
sertxd ("Three people trapped, Car on USD")
elseif w0 = 156 then
sertxd ("Three people trapped, Car on USD")
elseif w0 = 172 then
sertxd ("Three people trapped, Car on USD")
elseif w0 = 180 then
sertxd ("Three people trapped, Car on USD")
elseif w0 = 204 then
sertxd ("Three people trapped, Car on USD")
elseif w0 = 120 then
sertxd ("Four people trapped")
elseif w0 = 184 then
sertxd ("Four people trapped")
elseif w0 = 216 then
sertxd ("Four people trapped")
elseif w0 = 232 then
sertxd ("Four people trapped")
elseif w0 = 240 then
sertxd ("Four people trapped")
elseif w0 = 121 then
sertxd ("Four people trapped, Car on LHS")
elseif w0 = 185 then
sertxd ("Four people trapped, Car on LHS")
elseif w0 = 217 then
sertxd ("Four people trapped, Car on LHS")
elseif w0 = 233 then
sertxd ("Four people trapped, Car on LHS")
elseif w0 = 241 then
sertxd ("Four people trapped, Car on LHS")
elseif w0 = 122 then
sertxd ("Four people trapped, Car on RHS")
elseif w0 = 186 then
sertxd ("Four people trapped, Car on RHS")
elseif w0 = 218 then
sertxd ("Four people trapped, Car on RHS")
elseif w0 = 234 then
sertxd ("Four people trapped, Car on RHS")
elseif w0 = 242 then
sertxd ("Four people trapped, Car on RHS")
elseif w0 = 124 then
sertxd ("Four people trapped, Car on USD")
elseif w0 = 188 then
sertxd ("Four people trapped, Car on USD")
elseif w0 = 220 then
sertxd ("Four people trapped, Car on USD")
elseif w0 = 236 then
sertxd ("Four people trapped, Car on USD")
elseif w0 = 244 then
sertxd ("Four people trapped, Car on USD")
elseif w0 = 248 then
sertxd ("Five people trapped")
elseif w0 = 249 then
sertxd ("Five people trapped, Car on LHS")
elseif w0 = 250 then
sertxd ("Five people trapped, Car on RHS")
else w0 = 252 then
sertxd ("Five people trapped, Car on USD")
Endif