Jump to content
Olympus Entertainment 2024 Price Match & Black Friday Sales & $1000 Giveaway! ×

Recommended Posts

{ if ((str _x) find "wired_fence" > -1) then { hideobject _x;}; 
} forEach nearestObjects [[0,0,0], [], 1000000];

@ Milo

  • Like 1
  • +1 1
  • Haha 1
  • Hmm 1
  • Downvote 1
Link to comment
  • Developer II

Your application has been accepted for interview. Please wait in the "Developer/Designer Applications [OPEN]" channel in TeamSpeak for an interview.

Link to comment

if=sov=mute

4 minutes ago, Community Director Sov said:

Your first job is to bugfix all of @ Milo 's code.   

 

  • +1 1
  • Haha 1
Link to comment

1. *Looping program with a counter *

2. If R[10]= 0 Then

3. Lbl [1] 

4. R[10] = R[10] + 1

5. If R[10] = 3 jump Lbl [2]

6. * Loop Prg until R[10] = 3 *

 7. Jump Lbl [1]

8. End If

9. Lbl [2]

10. * Zero R[10] *

11. R[10] = 0

End

Dumb program 

Link to comment
  • Senior Map Designer
8 hours ago, milos inflated dev2 ego said:

{ if ((str _x) find "wired_fence" > -1) then { hideobject _x;}; 
} forEach nearestObjects [[0,0,0], [], 1000000];

@ Milo

The real reason I joined map design team...

Link to comment

here is a really shitty way to request a zone program.

1:  !******************************** ;
   2:  !ENTER ZONE ;
   3:  ! ;
   4:  ! NOTE: This program has NO ;
   5:  !       GP[1:robot] and ;
   6:  !       GP[2:servogun] motion ;
   7:  !******************************** ;
   8:   ;
   9:  !Save the argument that was ;
  10:  !  passed to the program into ;
  11:  !  register R[151] ;
  12:  !  i.e. Enter Zone(5) will set ;
  13:  !  R[151]=5 ;
  14:  R[151:ZonSelNumEntrExt]=AR[1]    ;
  15:   ;
  16:  !Depending on what the value of ;
  17:  !  R[151], jump to the different ;
  18:  !  subroutine ;
  19:  SELECT R[151:ZonSelNumEntrExt]=1,JMP LBL[10] ;
  20:         =2,JMP LBL[20] ;
  21:         =3,JMP LBL[30] ;
  22:         =4,JMP LBL[40] ;
  23:         =5,JMP LBL[50] ;
  24:         =6,JMP LBL[60] ;
  25:         =7,JMP LBL[70] ;
  26:         =8,JMP LBL[80] ;
  27:         =9,JMP LBL[90] ;
  28:         =10,JMP LBL[100] ;
  29:         =11,JMP LBL[110] ;
  30:         =12,JMP LBL[120] ;
  31:         =13,JMP LBL[130] ;
  32:         =14,JMP LBL[140] ;
  33:         ELSE,JMP LBL[220] ;
  34:   ;
  35:  !-------------------------------- ;
  36:  !ZONE 1! ;
  37:  !-------------------------------- ;
  38:  LBL[10] ;
  39:   ;
  40:  ! Turn ON Robot in LOOP ;
  41:  DO[24:OFF:RBT IN LOOP]=ON ;
  42:   ;
  43:  ! ClearZone1 = ON ;
  44:  DO[900:ON :CLROFZONE1]=ON ;
  45:   ;
  46:  ! Wait for Zone1C|ear = OFF ;
  47:  WAIT DI[25:OFF:ZONE 1 CLR]=OFF    ;
  48:   ;
  49:  ! ClearZone1 = OFF ;
  50:  DO[900:ON :CLROFZONE1]=OFF ;
  51:   ;
  52:  ! If Zone1Clear = ON, loop again ;
  53:  IF DI[25:OFF:ZONE 1 CLR]=ON,JMP LBL[10] ;
  54:   ;
  55:  ! Wait for Zone1Clear = ON ;
  56:  WAIT DI[25:OFF:ZONE 1 CLR]=ON    ;
  57:   ;
  58:  ! If Zone1Clear = OFF, loop again ;
  59:  IF DI[25:OFF:ZONE 1 CLR]=OFF,JMP LBL[10] ;
  60:   ;
  61:  ! Turn OFF Robot in LOOP ;
  62:  DO[24:OFF:RBT IN LOOP]=OFF ;
  63:   ;
  64:  ! Jump to the end of program ;
  65:  JMP LBL[200] ;
  66:   ;
  67:  !-------------------------------- ;
  68:  !ZONE 2 ;
  69:  !-------------------------------- ;
  70:  LBL[20] ;
  71:   ;
  72:  ! Turn ON Robot in LOOP ;
  73:  DO[24:OFF:RBT IN LOOP]=ON ;
  74:   ;
  75:  ! ClearZone2 = ON ;
  76:  DO[901:ON :CLROFZONE2]=ON ;
  77:   ;
  78:  ! Wait for Zone2Clear = OFF ;
  79:  WAIT DI[26:OFF:ZONE 2 CLR]=OFF    ;
  80:   ;
  81:  ! ClearZone2 = OFF ;
  82:  DO[901:ON :CLROFZONE2]=OFF ;
  83:   ;
  84:  ! If Zone2Clear = ON, loop again ;
  85:  IF DI[26:OFF:ZONE 2 CLR]=ON,JMP LBL[20] ;
  86:   ;
  87:  ! Wait for Zone2Clear = ON ;
  88:  WAIT DI[26:OFF:ZONE 2 CLR]=ON    ;
  89:   ;
  90:  ! If Zone2Clear = OFF, loop again ;
  91:  IF DI[26:OFF:ZONE 2 CLR]=OFF,JMP LBL[20] ;
  92:   ;
  93:  ! Turn OFF Robot in LOOP ;
  94:  DO[24:OFF:RBT IN LOOP]=OFF ;
  95:   ;
  96:  ! Jump to the end of program ;
  97:  JMP LBL[200] ;
  98:  !-------------------------------- ;
  99:  !ZONE 3 ;
 100:  !-------------------------------- ;
 101:  LBL[30] ;
 102:   ;
 103:  ! Turn ON Robot in LOOP ;
 104:  DO[24:OFF:RBT IN LOOP]=ON ;
 105:   ;
 106:  ! ClearZone3 = ON ;
 107:  DO[902:ON :CLROFZONE3]=ON ;
 108:   ;
 109:  ! Wait for Zone3Clear = OFF ;
 110:  WAIT DI[27:OFF:ZONE 3 CLR]=OFF    ;
 111:   ;
 112:  ! ClearZone3 = OFF ;
 113:  DO[902:ON :CLROFZONE3]=OFF ;
 114:   ;
 115:  ! If Zone3Clear = ON, loop again ;
 116:  IF DI[27:OFF:ZONE 3 CLR]=ON,JMP LBL[30] ;
 117:   ;
 118:  ! Wait for Zone3Clear = ON ;
 119:  WAIT DI[27:OFF:ZONE 3 CLR]=ON    ;
 120:   ;
 121:  ! If Zone3Clear = OFF, loop again ;
 122:  IF DI[27:OFF:ZONE 3 CLR]=OFF,JMP LBL[30] ;
 123:   ;
 124:  ! Turn OFF Robot in LOOP ;
 125:  DO[24:OFF:RBT IN LOOP]=OFF ;
 126:   ;
 127:  ! Jump to the end of program ;
 128:  JMP LBL[200] ;
 129:   ;
 130:  !-------------------------------- ;
 131:  !ZONE 4 ;
 132:  !-------------------------------- ;
 133:  LBL[40] ;
 134:   ;
 135:  ! Turn ON Robot in LOOP ;
 136:  DO[24:OFF:RBT IN LOOP]=ON ;
 137:   ;
 138:  ! ClearZone4 = ON ;
 139:  DO[903:ON :CLROFZONE4]=ON ;
 140:   ;
 141:  ! Wait for Zone4Clear = OFF ;
 142:  WAIT DI[28:OFF:ZONE 4 CLR]=OFF    ;
 143:   ;
 144:  ! ClearZone4 = OFF ;
 145:  DO[903:ON :CLROFZONE4]=OFF ;
 146:   ;
 147:  ! If Zone4Clear = ON, loop again ;
 148:  IF DI[28:OFF:ZONE 4 CLR]=ON,JMP LBL[40] ;
 149:   ;
 150:  ! Wait for Zone4Clear = ON ;
 151:  WAIT DI[28:OFF:ZONE 4 CLR]=ON    ;
 152:   ;
 153:  ! If Zone4Clear = OFF, loop again ;
 154:  IF DI[28:OFF:ZONE 4 CLR]=OFF,JMP LBL[40] ;
 155:   ;
 156:  ! Turn OFF Robot in LOOP ;
 157:  DO[24:OFF:RBT IN LOOP]=OFF ;
 158:   ;
 159:  ! Jump to the end of program ;
 160:  JMP LBL[200] ;
 161:  !-------------------------------- ;
 162:  !ZONE 5 ;
 163:  !-------------------------------- ;
 164:  LBL[50] ;
 165:   ;
 166:  ! Turn ON Robot in LOOP ;
 167:  DO[24:OFF:RBT IN LOOP]=ON ;
 168:   ;
 169:  ! ClearZone5 = ON ;
 170:  DO[904:ON :CLROFZONE5]=ON ;
 171:   ;
 172:  ! Wait for Zone5Clear = OFF ;
 173:  WAIT DI[29:OFF:ZONE 5 CLR]=OFF    ;
 174:   ;
 175:  ! ClearZone5 = OFF ;
 176:  DO[904:ON :CLROFZONE5]=OFF ;
 177:   ;
 178:  ! If Zone5Clear = ON, loop again ;
 179:  IF DI[29:OFF:ZONE 5 CLR]=ON,JMP LBL[50] ;
 180:   ;
 181:  ! Wait for Zone5Clear = ON ;
 182:  WAIT DI[29:OFF:ZONE 5 CLR]=ON    ;
 183:   ;
 184:  ! If Zone5Clear = OFF, loop again ;
 185:  IF DI[29:OFF:ZONE 5 CLR]=OFF,JMP LBL[50] ;
 186:   ;
 187:  ! Turn OFF Robot in LOOP ;
 188:  DO[24:OFF:RBT IN LOOP]=OFF ;
 189:   ;
 190:  ! Jump to the end of program ;
 191:  JMP LBL[200] ;
 192:  !-------------------------------- ;
 193:  !ZONE 6 ;
 194:  !-------------------------------- ;
 195:  LBL[60] ;
 196:   ;
 197:  ! Turn ON Robot in LOOP ;
 198:  DO[24:OFF:RBT IN LOOP]=ON ;
 199:   ;
 200:  ! ClearZone6 = ON ;
 201:  DO[905:ON :CLROFZONE6]=ON ;
 202:   ;
 203:  ! Wait for Zone6Clear = OFF ;
 204:  WAIT DI[30:OFF:ZONE 6 CLR]=OFF    ;
 205:   ;
 206:  ! ClearZone6 = OFF ;
 207:  DO[905:ON :CLROFZONE6]=OFF ;
 208:   ;
 209:  ! If Zone6Clear = ON, loop again ;
 210:  IF DI[30:OFF:ZONE 6 CLR]=ON,JMP LBL[60] ;
 211:   ;
 212:  ! Wait for Zone6Clear = ON ;
 213:  WAIT DI[30:OFF:ZONE 6 CLR]=ON    ;
 214:   ;
 215:  ! If Zone6Clear = OFF, loop again ;
 216:  IF DI[30:OFF:ZONE 6 CLR]=OFF,JMP LBL[60] ;
 217:   ;
 218:  ! Turn OFF Robot in LOOP ;
 219:  DO[24:OFF:RBT IN LOOP]=OFF ;
 220:   ;
 221:  ! Jump to the end of program ;
 222:  JMP LBL[200] ;
 223:  !-------------------------------- ;
 224:  !ZONE 7 ;
 225:  !-------------------------------- ;
 226:  LBL[70] ;
 227:   ;
 228:  ! Turn ON Robot in LOOP ;
 229:  DO[24:OFF:RBT IN LOOP]=ON ;
 230:   ;
 231:  ! ClearZone7 = ON ;
 232:  DO[906:ON :CLROFZONE7]=ON ;
 233:   ;
 234:  ! Wait for Zone7Clear = OFF ;
 235:  WAIT DI[31:OFF:ZONE 7 CLR]=OFF    ;
 236:   ;
 237:  ! ClearZone7 = OFF ;
 238:  DO[906:ON :CLROFZONE7]=OFF ;
 239:   ;
 240:  ! If Zone7Clear = ON, loop again ;
 241:  IF DI[31:OFF:ZONE 7 CLR]=ON,JMP LBL[70] ;
 242:   ;
 243:  ! Wait for Zone7Clear = ON ;
 244:  WAIT DI[31:OFF:ZONE 7 CLR]=ON    ;
 245:   ;
 246:  ! If Zone7Clear = OFF, loop again ;
 247:  IF DI[31:OFF:ZONE 7 CLR]=OFF,JMP LBL[70] ;
 248:   ;
 249:  ! Turn OFF Robot in LOOP ;
 250:  DO[24:OFF:RBT IN LOOP]=OFF ;
 251:   ;
 252:  ! Jump to the end of program ;
 253:  JMP LBL[200] ;
 254:  !-------------------------------- ;
 255:  !ZONE 8 ;
 256:  !-------------------------------- ;
 257:  LBL[80] ;
 258:   ;
 259:  ! Turn ON Robot in LOOP ;
 260:  DO[24:OFF:RBT IN LOOP]=ON ;
 261:   ;
 262:  ! ClearZone8 = ON ;
 263:  DO[907:ON :CLROFZONE8]=ON ;
 264:   ;
 265:  ! Wait for Zone8Clear = OFF ;
 266:  WAIT DI[32:OFF:ZONE 8 CLR]=OFF    ;
 267:   ;
 268:  ! ClearZone8 = OFF ;
 269:  DO[907:ON :CLROFZONE8]=OFF ;
 270:   ;
 271:  ! If Zone8Clear = ON, loop again ;
 272:  IF DI[32:OFF:ZONE 8 CLR]=ON,JMP LBL[80] ;
 273:   ;
 274:  ! Wait for Zone8Clear = ON ;
 275:  WAIT DI[32:OFF:ZONE 8 CLR]=ON    ;
 276:   ;
 277:  ! If Zone8Clear = OFF, loop again ;
 278:  IF DI[32:OFF:ZONE 8 CLR]=OFF,JMP LBL[80] ;
 279:   ;
 280:  ! Turn OFF Robot in LOOP ;
 281:  DO[24:OFF:RBT IN LOOP]=OFF ;
 282:   ;
 283:  ! Jump to the end of program ;
 284:  JMP LBL[200] ;
 285:  !-------------------------------- ;
 286:  !ZONE 9 ;
 287:  !-------------------------------- ;
 288:  LBL[90] ;
 289:   ;
 290:  ! Turn ON Robot in LOOP ;
 291:  DO[24:OFF:RBT IN LOOP]=ON ;
 292:   ;
 293:  ! ClearZone9 = ON ;
 294:  DO[908:ON :CLROFZONE9]=ON ;
 295:   ;
 296:  ! Wait for Zone9Clear = OFF ;
 297:  WAIT DI[33:OFF:ZONE 9 CLR]=OFF    ;
 298:   ;
 299:  ! ClearZone9 = OFF ;
 300:  DO[908:ON :CLROFZONE9]=OFF ;
 301:   ;
 302:  ! If Zone9Clear = ON, loop again ;
 303:  IF DI[33:OFF:ZONE 9 CLR]=ON,JMP LBL[90] ;
 304:   ;
 305:  ! Wait for Zone9Clear = ON ;
 306:  WAIT DI[33:OFF:ZONE 9 CLR]=ON    ;
 307:   ;
 308:  ! If Zone9Clear = OFF, loop again ;
 309:  IF DI[33:OFF:ZONE 9 CLR]=OFF,JMP LBL[90] ;
 310:   ;
 311:  ! Turn OFF Robot in LOOP ;
 312:  DO[24:OFF:RBT IN LOOP]=OFF ;
 313:   ;
 314:  ! Jump to the end of program ;
 315:  JMP LBL[200] ;
 316:  !-------------------------------- ;
 317:  !ZONE 10 ;
 318:  !-------------------------------- ;
 319:  LBL[100] ;
 320:   ;
 321:  ! Turn ON Robot in LOOP ;
 322:  DO[24:OFF:RBT IN LOOP]=ON ;
 323:   ;
 324:  ! ClearZone10 = ON ;
 325:  DO[909:ON :CLROFZONE10]=ON ;
 326:   ;
 327:  ! Wait for Zone10Clear = OFF ;
 328:  WAIT DI[34:OFF:ZONE 10 CLR]=OFF    ;
 329:   ;
 330:  ! ClearZone10 = OFF ;
 331:  DO[909:ON :CLROFZONE10]=OFF ;
 332:   ;
 333:  ! If Zone10Clear = ON, loop again ;
 334:  IF DI[34:OFF:ZONE 10 CLR]=ON,JMP LBL[100] ;
 335:   ;
 336:  ! Wait for Zone10Clear = ON ;
 337:  WAIT DI[34:OFF:ZONE 10 CLR]=ON    ;
 338:   ;
 339:  ! If Zone10Clear = OFF, loop agai ;
 340:  IF DI[34:OFF:ZONE 10 CLR]=OFF,JMP LBL[100] ;
 341:   ;
 342:  ! Turn OFF Robot in LOOP ;
 343:  DO[24:OFF:RBT IN LOOP]=OFF ;
 344:   ;
 345:  ! Jump to the end of program ;
 346:  JMP LBL[200] ;
 347:  !-------------------------------- ;
 348:  !ZONE 11 ;
 349:  !-------------------------------- ;
 350:  LBL[110] ;
 351:   ;
 352:  ! Turn ON Robot in LOOP ;
 353:  DO[24:OFF:RBT IN LOOP]=ON ;
 354:   ;
 355:  ! ClearZone11 = ON ;
 356:  DO[910:ON :CLROFZONE11]=ON ;
 357:   ;
 358:  ! Wait for Zone11Clear = OFF ;
 359:  WAIT DI[35:OFF:ZONE 11 CLR]=OFF    ;
 360:   ;
 361:  ! ClearZone11 = OFF ;
 362:  DO[910:ON :CLROFZONE11]=OFF ;
 363:   ;
 364:  ! If Zone11Clear = ON, loop again ;
 365:  IF DI[35:OFF:ZONE 11 CLR]=ON,JMP LBL[110] ;
 366:   ;
 367:  ! Wait for Zone11Clear = ON ;
 368:  WAIT DI[35:OFF:ZONE 11 CLR]=ON    ;
 369:   ;
 370:  ! If Zone11Clear = OFF, loop agai ;
 371:  IF DI[35:OFF:ZONE 11 CLR]=OFF,JMP LBL[110] ;
 372:   ;
 373:  ! Turn OFF Robot in LOOP ;
 374:  DO[24:OFF:RBT IN LOOP]=OFF ;
 375:   ;
 376:  ! Jump to the end of program ;
 377:  JMP LBL[200] ;
 378:  !-------------------------------- ;
 379:  !ZONE 12 ;
 380:  !-------------------------------- ;
 381:  LBL[120] ;
 382:   ;
 383:  ! Turn ON Robot in LOOP ;
 384:  DO[24:OFF:RBT IN LOOP]=ON ;
 385:   ;
 386:  ! ClearZone12 = ON ;
 387:  DO[911:ON :CLROFZONE12]=ON ;
 388:   ;
 389:  ! Wait for Zone12Clear = OFF ;
 390:  WAIT DI[36:OFF:ZONE 12 CLR]=OFF    ;
 391:   ;
 392:  ! ClearZone12 = OFF ;
 393:  DO[911:ON :CLROFZONE12]=OFF ;
 394:   ;
 395:  ! If Zone12Clear = ON, loop again ;
 396:  IF DI[36:OFF:ZONE 12 CLR]=ON,JMP LBL[120] ;
 397:   ;
 398:  ! Wait for Zone12Clear = ON ;
 399:  WAIT DI[36:OFF:ZONE 12 CLR]=ON    ;
 400:   ;
 401:  ! If Zone12Clear = OFF, loop agai ;
 402:  IF DI[36:OFF:ZONE 12 CLR]=OFF,JMP LBL[120] ;
 403:   ;
 404:  ! Turn OFF Robot in LOOP ;
 405:  DO[24:OFF:RBT IN LOOP]=OFF ;
 406:   ;
 407:  ! Jump to the end of program ;
 408:  JMP LBL[200] ;
 409:  !-------------------------------- ;
 410:  !ZONE 13 ;
 411:  !-------------------------------- ;
 412:  LBL[130] ;
 413:   ;
 414:  ! NOTE: If using Zone 13&14 ;
 415:  !   for Independent Zone for ;
 416:  !   Tip Dress Dump, remove ;
 417:  !   DO[24:RBT IN LOOP] ;
 418:  ! Turn ON Robot in LOOP ;
 419:  DO[24:OFF:RBT IN LOOP]=ON ;
 420:   ;
 421:  ! ClearZone13 = ON ;
 422:  DO[912:ON :CLROFZONE13]=ON ;
 423:   ;
 424:  ! Wait for Zone13Clear = OFF ;
 425:  WAIT DI[37:OFF:ZONE 13 CLR]=OFF    ;
 426:   ;
 427:  ! ClearZone13 = OFF ;
 428:  DO[912:ON :CLROFZONE13]=OFF ;
 429:   ;
 430:  ! If Zone13Clear = ON, loop again ;
 431:  IF DI[37:OFF:ZONE 13 CLR]=ON,JMP LBL[130] ;
 432:   ;
 433:  ! Wait for Zone13Clear = ON ;
 434:  WAIT DI[37:OFF:ZONE 13 CLR]=ON    ;
 435:   ;
 436:  ! If Zone13Clear = OFF, loop agai ;
 437:  IF DI[37:OFF:ZONE 13 CLR]=OFF,JMP LBL[130] ;
 438:   ;
 439:  ! NOTE: If using Zone 13&14 ;
 440:  !   for Independent Zone for ;
 441:  !   Tip Dress Dump, remove ;
 442:  !   DO[24:RBT IN LOOP] ;
 443:  ! Turn OFF Robot in LOOP ;
 444:  DO[24:OFF:RBT IN LOOP]=OFF ;
 445:   ;
 446:  ! Jump to the end of program ;
 447:  JMP LBL[200] ;
 448:  !-------------------------------- ;
 449:  !ZONE 14 ;
 450:  !-------------------------------- ;
 451:  LBL[140] ;
 452:   ;
 453:  ! NOTE: If using Zone 13&14 ;
 454:  !   for Independent Zone for ;
 455:  !   Tip Dress Dump, remove ;
 456:  !   DO[24:RBT IN LOOP] ;
 457:  ! Turn ON Robot in LOOP ;
 458:  DO[24:OFF:RBT IN LOOP]=ON ;
 459:   ;
 460:  ! ClearZone14 = ON ;
 461:  DO[933:ON :CLROFZONE14]=ON ;
 462:   ;
 463:  ! Wait for Zone14Clear = OFF ;
 464:  WAIT DI[38:OFF:ZONE 14 CLR]=OFF    ;
 465:   ;
 466:  ! ClearZone14 = OFF ;
 467:  DO[933:ON :CLROFZONE14]=OFF ;
 468:   ;
 469:  ! If Zone14Clear = ON, loop again ;
 470:  IF DI[38:OFF:ZONE 14 CLR]=ON,JMP LBL[140] ;
 471:   ;
 472:  ! Wait for Zone14Clear = ON ;
 473:  WAIT DI[38:OFF:ZONE 14 CLR]=ON    ;
 474:   ;
 475:  ! If Zone14Clear = OFF, loop agai ;
 476:  IF DI[38:OFF:ZONE 14 CLR]=OFF,JMP LBL[140] ;
 477:   ;
 478:  ! NOTE: If using Zone 13&14 ;
 479:  !   for Independent Zone for ;
 480:  !   Tip Dress Dump, remove ;
 481:  !   DO[24:RBT IN LOOP] ;
 482:  ! Turn OFF Robot in LOOP ;
 483:  DO[24:OFF:RBT IN LOOP]=OFF ;
 484:   ;
 485:  ! Jump to the end of program ;
 486:  JMP LBL[200] ;
 487:   ;
 488:  !-------------------------------- ;
 489:  !NO VALID ZONE ;
 490:  !-------------------------------- ;
 491:  LBL[220] ;
 492:  UALM[1] ;
 493:  PAUSE ;
 494:  JMP LBL[220] ;
 495:   ;
 496:  ! End of program ;
 497:  LBL[200] ;

Link to comment

 

function isEven(number) {
    if (number == 1) {
      return false;
    }else if (number == 2) {
      return true;
    }else if (number == 3) {
      return false;
    }else if (number == 4) {
      return true;
    }else if (number == 5) {
      return false;
    }else if (number == 6) {
      return true;
    }else if (number == 7) {
      return false;
    }else if (number == 8) {
      return true;
    }else if (number == 9) {
      return false;
    }else if (number == 10) {
      return true;
    }else if (number == 11) {
      return false;
    }else if (number == 12) {
      return true;
    }else if (number == 13) {
      return false;
    }else if (number == 14) {
      return true;
    }else if (number == 15) {
      return false;
    }else if (number == 16) {
      return true;
    }else if (number == 17) {
      return false;
    }else if (number == 18) {
      return true;
    }else if (number == 19) {
      return false;
    }else if (number == 20) {
      return true;
    }else {
      return isEven(number - 20) {
      }

 

Link to comment

def isNum1 (int x) -> {

if x == 2{

}

29 minutes ago, Leafy777 said:

 

function isEven(number) {
    if (number == 1) {
      return false;
    }else if (number == 2) {
      return true;
    }else if (number == 3) {
      return false;
    }else if (number == 4) {
      return true;
    }else if (number == 5) {
      return false;
    }else if (number == 6) {
      return true;
    }else if (number == 7) {
      return false;
    }else if (number == 8) {
      return true;
    }else if (number == 9) {
      return false;
    }else if (number == 10) {
      return true;
    }else if (number == 11) {
      return false;
    }else if (number == 12) {
      return true;
    }else if (number == 13) {
      return false;
    }else if (number == 14) {
      return true;
    }else if (number == 15) {
      return false;
    }else if (number == 16) {
      return true;
    }else if (number == 17) {
      return false;
    }else if (number == 18) {
      return true;
    }else if (number == 19) {
      return false;
    }else if (number == 20) {
      return true;
    }else {
      return isEven(number - 20) {
      }

 

hah

heres some c 

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/un.h>
#include <sys/select.h>
#include <sys/socket.h>
#include <sys/select.h>
#include <sys/time.h>
#include <termios.h>
#include <unistd.h>
#include <fcntl.h>

int a,b,c,d,e,f,h,i,j,k,l,m,n;fd_set p[1],q;struct{int A,B,C,D,E,   F
,G,H,I,J,L,K;}w  ,x;r(int r){return b=r,FD_ISSET(r,p);}enum{u=V*( 11 *W
+5)+16};t( int    t){FD_SET(t,&q);}struct sockaddr_un A,  B,*D,C={       .
sun_family=1};    char v[u];unsigned int E=sizeof(B),F=   sizeof(          x
);char*I="\e"     "[0m\e[2J\e[0;0H",*K,*L=&C.sun_path,    *M,*J           =
"\e[0;30;40"      "m \0\e[0m\n\0#!/bin/cat\n\e[1A",N;     O(){          n=
0;while(++n<      9)*(n+L)=rand()%13+65;t(b=socket(1      ,2           ,0
));n=bind(b,      b==4?&B:&C,E);}struct timeval y,z      ;H           (
){recvfrom(b      ,&w,F,0,&A,&E),a=w.A;}Q(){close       (           4)
;fopen(K,"r" )    &&(read(4,v,u),close(4),unlink      (K           )
),O();b=3;}P (    int P){strcat(v,J+P);}G(int G      ){          x.
A=G;D=G<5?0: G    ^8?&B:&A;return sendto(b,G^3      ?           &
x:&w,F,0,D,! !    D*E);}struct termios o;main      (          int
F,char**D){n =    0;for(P(18);n++<V;P(12))//     !           b+12
for(b=0;b++< W    ;)P(0);if(F==2)for(K=D[1     ],           t(0),
srand(getpid (    )),strcpy(L,K),B=C,*L=s     ,           x.J=44,
O(),Q(),G(6);F    ++-4;)for(tcsetattr(1,    0,           (//IOCCC
tcgetattr(1,&o    ),o.c_lflag^=g,&o));F    -4          ;) {//2019
gettimeofday(&    y,0);n=y.tv_usec;m||    (           m   =(3<<19
)+n);z.tv_usec    =(m-n)%999999;b=3;    *p          =q    ;select
(5,p,0,0,&z)||    (x.E^=1,G(9),m=0)    ;           r(     0)&&(b=
3,read(0,&N,1)    ,N%=65,34^N||(x.   D=           x.      D%6+1),
N^47&&N^43||(x    .J=N==x.J?x.E=0   ,           G(10      ),44:N)
,N<4&&(x.E=0,G    (9),x.F+=N==2&  (x           .F-=N      ==3&&x.
F)!=W-3,x.G+=N    ==1&(x.G-=! N  &&          x.G)!=V      -3,x.E=
1),x.J^43&&(x.    H=x.F,x.I=x   .           G),G(9),      48^N||(
x.E=0,G(9),G(7    )));if(r(4  ))          if(H(),a^6      )if(a^5
)while(++b<=c)    G(3);else  x           .K=v[w.L],b      =w.B,G(
4);else/*O()*/    connect( (O           (),x.C=b),&A      ,E),b>c
&&(c=b),G(1) ;    if(r(3) )           if(H(),a^2){ a      ||G(6),
a^1||(x.B=w.C,    x.D||(x.           D=x.B%6+1),x. L      ||G(5))
,a^4||(v[x.L++]  =w.K, x.          L<u?G(5):printf (      "%s%.*"
"s\r \e[97mmod"  "e:" ,           I,u-6,v));if(a==7)      if(x.B^
5||close(w.B),w.B==x.B          ){if(x.B==5)for(/**/      unlink(
K),write(creat(K,511           ),v,u),b=5;++b<=c;)if      (G(2)+1
)for(H();++b<=c;)G(           0);printf(I);break;}if      (a>8)//
for(d=w.F,e=w.G,f           =w.H,h=w.I,a=w.E,i=d<f?1      :-1,j=(
f-d)*i,k=e<h?1:-           1,l=(h-e)*k,n=(j>l?j:-l)/      2;M=34+
(v+(e+1)*(5+W *          11                               )+d*11)
,47^w.J&&43^w           .                                 J|w.A ^
10||(*M=w.D+          48                                  ),*(M-3
)=w.D*(w.D           +48!=*M)+48,*(M-6)=w.E*7+48,*(M+2)=a?42:32 ,
printf(""           "\e[%d;%dH%.11s\e[%d;%dH\e[0;4%dm%c%s%s",e+2,
d+2,M-8           ,V,8,x.D,x.J+65,I+8,J),f^d|e^h;)(b=n)>-j&&(n-=l
,d+=i)           ,b<l&&(n+=j,e+=k),a=0;fflush(stdout);}else//d+=i
   0+          Q(
  )           ,
 G          (6
   ),      G(
      8)  ;
        }}
Link to comment


⠀⠀⠀⠀⢀⣴⠶⠿⠟⠛⠻⠛⠳⠶⣄⡀⠀⠀⠀⠀⠀⠀
⠀⠀⣠⣶⣿⣿⣿⣶⣖⠶⢶⣤⡀⠀⠈⢿⣆⠀⠀⠀⠀⠀
⢀⣴⣿⠋⠉⠉⠀⠀⠈⠉⠛⠿⢿⣷⡀⠀⠈⢷⡀⠀⠀⠀
⡾⠉⡏⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠙⢦⡀⠘⣷⡀⠀⠀
⣷⢰⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⢳⡀⢸⡇⠀⠀
⢻⡜⡤⠀⢀⣀⣤⣶⣶⡄⣴⣾⣿⣛⣓⠀⠀⣧⢸⣇⠀⠀
⢈⣧⣧⠀⢩⠞⠿⠿⠻⠀⠘⠙⠃⠛⠛⠓⠀⣿⣻⠿⣷⠀
⢸⡵⣿⠀⠀⠀⠀⠀⠀⠀⠀⠠⡀⠀⠀⠀⠀⠀⢻⣇⡟⠀
⠘⢧⣿⡀⠀⠀⠀⠀⢧⣤⣤⣶⣗⠀⠀⠀⠀⠀⠜⣽⠁⠀
⠀⠈⢿⣧⠀⠀⠀⠀⣿⣿⣿⣿⣿⣀⠀⠀⠀⢠⡟⠁⠀⠀
⠀⠀⠀⠘⣇⠀⠀⠰⠋⠉⠙⠂⠀⠉⠀⠀⠀⣼⡅⠀⠀⠀
⠀⠀⠀⠀⠹⣦⡀⠀⠀⠀⠉⠉⠁⠀⠀⠀⣠⠏⢻⣤⡀⠀
⠀⠀⠀⠀⠀⢹⡷⢦⣄⣀⣀⣀⣀⣤⣴⡾⠃⠀⠘⡿⠙⢶
⠀⠀⠀⠀⠀⢨⡷⣤⡀⠈⠉⠉⢁⡴⠋⠀⠀⠀⣸⠃⠀⠀
 

  • Like 1
  • Jew 1
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and our Privacy Policy.