diff --git a/app.js b/app.js index 703ccef..7babad0 100644 --- a/app.js +++ b/app.js @@ -2,214 +2,213 @@ var framePtr = null; var excHandler = 0; var lastJSError = null; -var NTI520098238 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI520098228 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI520098554 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI520093830 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI520095611 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI1224736778 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI520093867 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI1560281120 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI520097539 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI520093799 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI1442840978 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI503316801 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI721420574 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI520093741 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI520093740 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI520093739 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI520095757 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI520095807 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI1224737583 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI838861206 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI1325400069 = {size: 0, kind: 14, base: null, node: null, finalizer: null}; -var NTI838861173 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI1442841347 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI1442841384 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI1442841292 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI1442840845 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI1442840583 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI1493174178 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI1442841458 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI1442841453 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI1442840934 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI1442840998 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI1442840976 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI520093728 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI520093719 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI1006632986 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI520093715 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI520093714 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI1224737002 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI520093710 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI520093829 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI1442841214 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI1224736806 = {size: 0,kind: 31,base: null,node: null,finalizer: null}; -var NTI1224736804 = {size: 0, kind: 20, base: null, node: null, finalizer: null}; -var NTI1224736802 = {size: 0,kind: 31,base: null,node: null,finalizer: null}; -var NTI1224736798 = {size: 0, kind: 20, base: null, node: null, finalizer: null}; -var NTI1224736795 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI1275068424 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI1224736793 = {size: 0, kind: 16, base: null, node: null, finalizer: null}; -var NTI1224737005 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI1224737006 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI1224736787 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI1224736889 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI1224736859 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI1224736860 = {size: 0, kind: 16, base: null, node: null, finalizer: null}; -var NTI1224736857 = {size: 0, kind: 16, base: null, node: null, finalizer: null}; -var NTI1224736797 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI1224736855 = {size: 0, kind: 16, base: null, node: null, finalizer: null}; -var NTI1224736796 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI687865865 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI771751972 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI771751973 = {size: 0, kind: 22, base: null, node: null, finalizer: null}; -var NTI721420398 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI721420397 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI721420296 = {size: 0, kind: 14, base: null, node: null, finalizer: null}; -var NTI721420387 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI721420383 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI721420390 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI721420389 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI721420291 = {size: 0, kind: 14, base: null, node: null, finalizer: null}; -var NTI721420388 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; -var NTI721420385 = {size: 0, kind: 22, base: null, node: null, finalizer: null}; -var NTI805306461 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI805306460 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI805306459 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI805306458 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI805306457 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI805306456 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI805306455 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI805306454 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI805306453 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI805306452 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI805306451 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI805306450 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI805306449 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI805306448 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI805306447 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI805306446 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI805306445 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI805306444 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI805306443 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI805306442 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI805306441 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI805306440 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI805306439 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI805306438 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI805306437 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; -var NTI805306398 = {size: 0, kind: 22, base: null, node: null, finalizer: null}; -var NTI805306557 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI805306554 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI805306553 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI805306433 = {size: 0, kind: 22, base: null, node: null, finalizer: null}; -var NTI805306556 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI805306434 = {size: 0, kind: 22, base: null, node: null, finalizer: null}; -var NTI805306503 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; -var NTI805306392 = {size: 0, kind: 22, base: null, node: null, finalizer: null}; -var NTI805306492 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI805306504 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; -var NTI805306393 = {size: 0, kind: 22, base: null, node: null, finalizer: null}; -var NTI805306491 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI805306490 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI805306509 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; -var NTI805306397 = {size: 0, kind: 22, base: null, node: null, finalizer: null}; -var NTI805306489 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI805306488 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI805306505 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; -var NTI805306394 = {size: 0, kind: 22, base: null, node: null, finalizer: null}; -var NTI805306487 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI805306495 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI805306506 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; -var NTI805306395 = {size: 0, kind: 22, base: null, node: null, finalizer: null}; -var NTI805306494 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI805306508 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI805306507 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; -var NTI805306396 = {size: 0, kind: 22, base: null, node: null, finalizer: null}; -var NTI805306479 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; -var NTI805306382 = {size: 0, kind: 22, base: null, node: null, finalizer: null}; -var NTI805306493 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; -var NTI805306386 = {size: 0, kind: 22, base: null, node: null, finalizer: null}; -var NTI805306486 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; -var NTI805306385 = {size: 0, kind: 22, base: null, node: null, finalizer: null}; -var NTI805306383 = {size: 0, kind: 14, base: null, node: null, finalizer: null}; -var NTI805306485 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI805306484 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI805306483 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI805306482 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; -var NTI805306384 = {size: 0, kind: 22, base: null, node: null, finalizer: null}; -var NTI687865863 = {size: 0, kind: 14, base: null, node: null, finalizer: null}; -var NTI687865864 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI805306510 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; -var NTI1442841684 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI553652670 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI553652660 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI553652986 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI553648262 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI553650043 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI1476395018 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI553648299 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI1946157088 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI553651971 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI553648231 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; +var NTI1728053650 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI536871233 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI754975006 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI553648173 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; +var NTI553648172 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; +var NTI553648171 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; +var NTI553650189 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI553650239 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI1476395823 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI889192854 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI1577058309 = {size: 0, kind: 14, base: null, node: null, finalizer: null}; +var NTI889192821 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI1728054019 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI1728054056 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI1728053964 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI1728053517 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI1728053255 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; +var NTI1845495714 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; +var NTI1728054130 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI1728054125 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI1728053606 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI1728053670 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI1728053648 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI553648160 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI553648151 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI1090519066 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI553648147 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; +var NTI553648146 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; +var NTI1476395242 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; +var NTI553648142 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; +var NTI553648261 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI1728053886 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI1476395046 = {size: 0,kind: 31,base: null,node: null,finalizer: null}; +var NTI1476395044 = {size: 0, kind: 20, base: null, node: null, finalizer: null}; +var NTI1476395042 = {size: 0,kind: 31,base: null,node: null,finalizer: null}; +var NTI1476395038 = {size: 0, kind: 20, base: null, node: null, finalizer: null}; +var NTI1476395035 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; +var NTI1526726664 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; +var NTI1476395033 = {size: 0, kind: 16, base: null, node: null, finalizer: null}; +var NTI1476395245 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; +var NTI1476395246 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; +var NTI1476395027 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; +var NTI1476395129 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI1476395099 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI1476395100 = {size: 0, kind: 16, base: null, node: null, finalizer: null}; +var NTI1476395097 = {size: 0, kind: 16, base: null, node: null, finalizer: null}; +var NTI1476395037 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; +var NTI1476395095 = {size: 0, kind: 16, base: null, node: null, finalizer: null}; +var NTI1476395036 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; +var NTI721420297 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; +var NTI805306404 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; +var NTI805306405 = {size: 0, kind: 22, base: null, node: null, finalizer: null}; +var NTI754974830 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; +var NTI754974829 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; +var NTI754974728 = {size: 0, kind: 14, base: null, node: null, finalizer: null}; +var NTI754974819 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; +var NTI754974815 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI754974822 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI754974821 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI754974723 = {size: 0, kind: 14, base: null, node: null, finalizer: null}; +var NTI754974820 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; +var NTI754974817 = {size: 0, kind: 22, base: null, node: null, finalizer: null}; +var NTI838860893 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; +var NTI838860892 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; +var NTI838860891 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; +var NTI838860890 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; +var NTI838860889 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; +var NTI838860888 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; +var NTI838860887 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; +var NTI838860886 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; +var NTI838860885 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; +var NTI838860884 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; +var NTI838860883 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; +var NTI838860882 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; +var NTI838860881 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; +var NTI838860880 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; +var NTI838860879 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; +var NTI838860878 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; +var NTI838860877 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; +var NTI838860876 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; +var NTI838860875 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; +var NTI838860874 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; +var NTI838860873 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; +var NTI838860872 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; +var NTI838860871 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; +var NTI838860870 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; +var NTI838860869 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; +var NTI838860830 = {size: 0, kind: 22, base: null, node: null, finalizer: null}; +var NTI838860989 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; +var NTI838860986 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; +var NTI838860985 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; +var NTI838860865 = {size: 0, kind: 22, base: null, node: null, finalizer: null}; +var NTI838860988 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; +var NTI838860866 = {size: 0, kind: 22, base: null, node: null, finalizer: null}; +var NTI838860935 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; +var NTI838860824 = {size: 0, kind: 22, base: null, node: null, finalizer: null}; +var NTI838860924 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI838860936 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; +var NTI838860825 = {size: 0, kind: 22, base: null, node: null, finalizer: null}; +var NTI838860923 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI838860922 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI838860941 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; +var NTI838860829 = {size: 0, kind: 22, base: null, node: null, finalizer: null}; +var NTI838860921 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI838860920 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI838860937 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; +var NTI838860826 = {size: 0, kind: 22, base: null, node: null, finalizer: null}; +var NTI838860919 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI838860927 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI838860938 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; +var NTI838860827 = {size: 0, kind: 22, base: null, node: null, finalizer: null}; +var NTI838860926 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI838860940 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI838860939 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; +var NTI838860828 = {size: 0, kind: 22, base: null, node: null, finalizer: null}; +var NTI838860911 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; +var NTI838860814 = {size: 0, kind: 22, base: null, node: null, finalizer: null}; +var NTI838860925 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; +var NTI838860818 = {size: 0, kind: 22, base: null, node: null, finalizer: null}; +var NTI838860918 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; +var NTI838860817 = {size: 0, kind: 22, base: null, node: null, finalizer: null}; +var NTI838860815 = {size: 0, kind: 14, base: null, node: null, finalizer: null}; +var NTI838860917 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI838860916 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI838860915 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI838860914 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; +var NTI838860816 = {size: 0, kind: 22, base: null, node: null, finalizer: null}; +var NTI721420295 = {size: 0, kind: 14, base: null, node: null, finalizer: null}; +var NTI721420296 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; +var NTI838860942 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; +var NTI1728054356 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; var NTI33555179 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; var NTI134217746 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; var NTI134217747 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; -var NTI1442840869 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI520093737 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI1493173955 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI1493177350 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI1006633039 = {size: 0,kind: 31,base: null,node: null,finalizer: null}; -var NTI1006633045 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI1493177323 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI1493177050 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI1442840588 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI1442840587 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI1442840582 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI1224736839 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI1224736772 = {size: 0, kind: 16, base: null, node: null, finalizer: null}; -var NTI1224736773 = {size: 0, kind: 16, base: null, node: null, finalizer: null}; -var NTI1291845837 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI1224737009 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI1224736792 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI1224736866 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI1493172238 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI889192517 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI1392508931 = {size: 0,kind: 43,base: null,node: null,finalizer: null}; -var NTI1392508932 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI1493173219 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI1275068441 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI1728053541 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI553648169 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; +var NTI1845495491 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI1845498886 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI1090519119 = {size: 0,kind: 31,base: null,node: null,finalizer: null}; +var NTI1090519125 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; +var NTI1845498859 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI1845498586 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI1728053260 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI1728053259 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI1728053254 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; +var NTI1476395079 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; +var NTI1476395012 = {size: 0, kind: 16, base: null, node: null, finalizer: null}; +var NTI1476395013 = {size: 0, kind: 16, base: null, node: null, finalizer: null}; +var NTI1543504077 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI1476395249 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; +var NTI1476395032 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; +var NTI1476395106 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; +var NTI1845493774 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI939524165 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; +var NTI1644167171 = {size: 0,kind: 43,base: null,node: null,finalizer: null}; +var NTI1644167172 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; +var NTI1845494755 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI1526726681 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; var NTI134217742 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; -var NTI1493173477 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI1224737401 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI1493173092 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI1224737454 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI1224737453 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI1224737449 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI1224737448 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI1224737447 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI1224737446 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI1493172386 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI1493172377 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI1493172368 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI1493172359 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI1291846007 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI1224737341 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI1291845874 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI1275068457 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI1275068532 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI1845495013 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; +var NTI1476395641 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; +var NTI1845494628 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; +var NTI1476395694 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; +var NTI1476395693 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI1476395689 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; +var NTI1476395688 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI1476395687 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI1476395686 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI1845493922 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI1845493913 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI1845493904 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI1845493895 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI1543504247 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI1476395581 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI1543504114 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI1526726697 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI1526726772 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; var NTI134217745 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; -var NTI1241514007 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; -var NTI1224736789 = {size: 0, kind: 14, base: null, node: null, finalizer: null}; -var NTI1224736788 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI1224736853 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI1224736852 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI1224736998 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI1224736851 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI1224736992 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI1224736988 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI1224736850 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI1224736986 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; -var NTI1224736849 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI1224736771 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI1224736777 = {size: 0, kind: 14, base: null, node: null, finalizer: null}; -var NTI1224736776 = {size: 0, kind: 14, base: null, node: null, finalizer: null}; -var NTI1224736794 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI1308622955 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; +var NTI1493172247 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; +var NTI1476395029 = {size: 0, kind: 14, base: null, node: null, finalizer: null}; +var NTI1476395028 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; +var NTI1476395093 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI1476395092 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI1476395238 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; +var NTI1476395091 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI1476395232 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; +var NTI1476395228 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; +var NTI1476395090 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI1476395226 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; +var NTI1476395089 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI1476395011 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; +var NTI1476395017 = {size: 0, kind: 14, base: null, node: null, finalizer: null}; +var NTI1476395016 = {size: 0, kind: 14, base: null, node: null, finalizer: null}; +var NTI1476395034 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; +var NTI1560281195 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; var NTI134217749 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; var NTI134217751 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; -var NTI33555838 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; var NTI33555173 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; var NTI33555181 = {size: 0, kind: 22, base: null, node: null, finalizer: null}; var NTI33554450 = {size: 0,kind: 29,base: null,node: null,finalizer: null}; @@ -218,30 +217,30 @@ var NTI33555177 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; var NTI33555178 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; var NTI134217741 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; var NTI134217743 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; -var NTI1442840589 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; +var NTI1728053261 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; var NTI33554435 = {size: 0,kind: 31,base: null,node: null,finalizer: null}; -var NTI1442840579 = {size: 0, kind: 14, base: null, node: null, finalizer: null}; +var NTI1728053251 = {size: 0, kind: 14, base: null, node: null, finalizer: null}; var NTI33554466 = {size: 0,kind: 1,base: null,node: null,finalizer: null}; var NTI33554449 = {size: 0,kind: 28,base: null,node: null,finalizer: null}; -var NTI1442840581 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NNI1442840579 = {kind: 2, offset: 0, typ: null, name: null, len: 4, sons: {"0": {kind: 1, offset: 0, typ: NTI1442840579, name: "Common", len: 0, sons: null}, -"1": {kind: 1, offset: 1, typ: NTI1442840579, name: "Uncommon", len: 0, sons: null}, -"2": {kind: 1, offset: 2, typ: NTI1442840579, name: "Rare", len: 0, sons: null}, -"3": {kind: 1, offset: 3, typ: NTI1442840579, name: "UltraRare", len: 0, sons: null}}}; -NTI1442840579.node = NNI1442840579; -var NNI1442840581 = {kind: 2, len: 12, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "name", len: 0, typ: NTI33554449, name: "name", sons: null}, +var NTI1728053253 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; +var NNI1728053251 = {kind: 2, offset: 0, typ: null, name: null, len: 4, sons: {"0": {kind: 1, offset: 0, typ: NTI1728053251, name: "Common", len: 0, sons: null}, +"1": {kind: 1, offset: 1, typ: NTI1728053251, name: "Uncommon", len: 0, sons: null}, +"2": {kind: 1, offset: 2, typ: NTI1728053251, name: "Rare", len: 0, sons: null}, +"3": {kind: 1, offset: 3, typ: NTI1728053251, name: "UltraRare", len: 0, sons: null}}}; +NTI1728053251.node = NNI1728053251; +var NNI1728053253 = {kind: 2, len: 12, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "name", len: 0, typ: NTI33554449, name: "name", sons: null}, {kind: 1, offset: "technicalName", len: 0, typ: NTI33554449, name: "technicalName", sons: null}, {kind: 1, offset: "synergy", len: 0, typ: NTI33554466, name: "synergy", sons: null}, -{kind: 1, offset: "tier", len: 0, typ: NTI1442840579, name: "tier", sons: null}, +{kind: 1, offset: "tier", len: 0, typ: NTI1728053251, name: "tier", sons: null}, {kind: 1, offset: "rarity", len: 0, typ: NTI33554435, name: "rarity", sons: null}, {kind: 1, offset: "description", len: 0, typ: NTI33554449, name: "description", sons: null}, {kind: 1, offset: "icon", len: 0, typ: NTI33554449, name: "icon", sons: null}, {kind: 1, offset: "rotatable", len: 0, typ: NTI33554466, name: "rotatable", sons: null}, {kind: 1, offset: "noColor", len: 0, typ: NTI33554466, name: "noColor", sons: null}, -{kind: 1, offset: "onStart", len: 0, typ: NTI1442840589, name: "onStart", sons: null}, +{kind: 1, offset: "onStart", len: 0, typ: NTI1728053261, name: "onStart", sons: null}, {kind: 1, offset: "index", len: 0, typ: NTI33554435, name: "index", sons: null}, {kind: 1, offset: "priority", len: 0, typ: NTI33554435, name: "priority", sons: null}]}; -NTI1442840581.node = NNI1442840581; +NTI1728053253.node = NNI1728053253; var NNI134217743 = {kind: 2, len: 0, offset: 0, typ: null, name: null, sons: []}; NTI134217743.node = NNI134217743; var NNI134217741 = {kind: 2, len: 0, offset: 0, typ: null, name: null, sons: []}; @@ -262,140 +261,136 @@ NTI33555177.base = NTI33555173; NTI33555178.base = NTI33555177; NTI134217741.base = NTI33555178; NTI134217743.base = NTI134217741; -var NNI33555838 = {kind: 2, len: 3, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "Field0", len: 0, typ: NTI33554450, name: "Field0", sons: null}, -{kind: 1, offset: "Field1", len: 0, typ: NTI33554435, name: "Field1", sons: null}, -{kind: 1, offset: "Field2", len: 0, typ: NTI33554450, name: "Field2", sons: null}]}; -NTI33555838.node = NNI33555838; var NNI134217751 = {kind: 2, len: 0, offset: 0, typ: null, name: null, sons: []}; NTI134217751.node = NNI134217751; NTI134217751.base = NTI33555178; var NNI134217749 = {kind: 2, len: 0, offset: 0, typ: null, name: null, sons: []}; NTI134217749.node = NNI134217749; NTI134217749.base = NTI33555178; -var NNI1224736776 = {kind: 2, offset: 0, typ: null, name: null, len: 8, sons: {"0": {kind: 1, offset: 0, typ: NTI1224736776, name: "King", len: 0, sons: null}, -"1": {kind: 1, offset: 1, typ: NTI1224736776, name: "Queen", len: 0, sons: null}, -"2": {kind: 1, offset: 2, typ: NTI1224736776, name: "Bishop", len: 0, sons: null}, -"3": {kind: 1, offset: 3, typ: NTI1224736776, name: "Pawn", len: 0, sons: null}, -"4": {kind: 1, offset: 4, typ: NTI1224736776, name: "Rook", len: 0, sons: null}, -"5": {kind: 1, offset: 5, typ: NTI1224736776, name: "Knight", len: 0, sons: null}, -"6": {kind: 1, offset: 6, typ: NTI1224736776, name: "None", len: 0, sons: null}, -"7": {kind: 1, offset: 7, typ: NTI1224736776, name: "Fairy", len: 0, sons: null}}}; -NTI1224736776.node = NNI1224736776; -var NNI1224736777 = {kind: 2, offset: 0, typ: null, name: null, len: 2, sons: {"0": {kind: 1, offset: 0, typ: NTI1224736777, name: "black", len: 0, sons: null}, -"1": {kind: 1, offset: 1, typ: NTI1224736777, name: "white", len: 0, sons: null}}}; -NTI1224736777.node = NNI1224736777; -var NNI1224736771 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "Field0", len: 0, typ: NTI33554435, name: "Field0", sons: null}, +var NNI1476395016 = {kind: 2, offset: 0, typ: null, name: null, len: 8, sons: {"0": {kind: 1, offset: 0, typ: NTI1476395016, name: "King", len: 0, sons: null}, +"1": {kind: 1, offset: 1, typ: NTI1476395016, name: "Queen", len: 0, sons: null}, +"2": {kind: 1, offset: 2, typ: NTI1476395016, name: "Bishop", len: 0, sons: null}, +"3": {kind: 1, offset: 3, typ: NTI1476395016, name: "Pawn", len: 0, sons: null}, +"4": {kind: 1, offset: 4, typ: NTI1476395016, name: "Rook", len: 0, sons: null}, +"5": {kind: 1, offset: 5, typ: NTI1476395016, name: "Knight", len: 0, sons: null}, +"6": {kind: 1, offset: 6, typ: NTI1476395016, name: "None", len: 0, sons: null}, +"7": {kind: 1, offset: 7, typ: NTI1476395016, name: "Fairy", len: 0, sons: null}}}; +NTI1476395016.node = NNI1476395016; +var NNI1476395017 = {kind: 2, offset: 0, typ: null, name: null, len: 2, sons: {"0": {kind: 1, offset: 0, typ: NTI1476395017, name: "black", len: 0, sons: null}, +"1": {kind: 1, offset: 1, typ: NTI1476395017, name: "white", len: 0, sons: null}}}; +NTI1476395017.node = NNI1476395017; +var NNI1476395011 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "Field0", len: 0, typ: NTI33554435, name: "Field0", sons: null}, {kind: 1, offset: "Field1", len: 0, typ: NTI33554435, name: "Field1", sons: null}]}; -NTI1224736771.node = NNI1224736771; -NTI1224736849.base = NTI1224736986; -NTI1224736850.base = NTI1224736986; -NTI1224736851.base = NTI1224736998; -NTI1224736852.base = NTI1224736998; -var NNI1224736789 = {kind: 2, offset: 0, typ: null, name: null, len: 5, sons: {"0": {kind: 1, offset: 0, typ: NTI1224736789, name: "Sky", len: 0, sons: null}, -"1": {kind: 1, offset: 1, typ: NTI1224736789, name: "Zero", len: 0, sons: null}, -"2": {kind: 1, offset: 2, typ: NTI1224736789, name: "Steel", len: 0, sons: null}, -"3": {kind: 1, offset: 3, typ: NTI1224736789, name: "Reverie", len: 0, sons: null}, -"4": {kind: 1, offset: 4, typ: NTI1224736789, name: "Daybreak", len: 0, sons: null}}}; -NTI1224736789.node = NNI1224736789; -var NNI1224736788 = {kind: 2, len: 3, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "Field0", len: 0, typ: NTI1224736771, name: "Field0", sons: null}, +NTI1476395011.node = NNI1476395011; +NTI1476395089.base = NTI1476395226; +NTI1476395090.base = NTI1476395226; +NTI1476395091.base = NTI1476395238; +NTI1476395092.base = NTI1476395238; +var NNI1476395029 = {kind: 2, offset: 0, typ: null, name: null, len: 5, sons: {"0": {kind: 1, offset: 0, typ: NTI1476395029, name: "Sky", len: 0, sons: null}, +"1": {kind: 1, offset: 1, typ: NTI1476395029, name: "Zero", len: 0, sons: null}, +"2": {kind: 1, offset: 2, typ: NTI1476395029, name: "Steel", len: 0, sons: null}, +"3": {kind: 1, offset: 3, typ: NTI1476395029, name: "Reverie", len: 0, sons: null}, +"4": {kind: 1, offset: 4, typ: NTI1476395029, name: "Daybreak", len: 0, sons: null}}}; +NTI1476395029.node = NNI1476395029; +var NNI1476395028 = {kind: 2, len: 3, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "Field0", len: 0, typ: NTI1476395011, name: "Field0", sons: null}, {kind: 1, offset: "Field1", len: 0, typ: NTI33554435, name: "Field1", sons: null}, -{kind: 1, offset: "Field2", len: 0, typ: NTI1224736789, name: "Field2", sons: null}]}; -NTI1224736788.node = NNI1224736788; -NTI1224736853.base = NTI1224736788; -var NNI1224736794 = {kind: 2, len: 19, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "item", len: 0, typ: NTI1224736776, name: "item", sons: null}, -{kind: 1, offset: "color", len: 0, typ: NTI1224736777, name: "color", sons: null}, +{kind: 1, offset: "Field2", len: 0, typ: NTI1476395029, name: "Field2", sons: null}]}; +NTI1476395028.node = NNI1476395028; +NTI1476395093.base = NTI1476395028; +var NNI1476395034 = {kind: 2, len: 19, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "item", len: 0, typ: NTI1476395016, name: "item", sons: null}, +{kind: 1, offset: "color", len: 0, typ: NTI1476395017, name: "color", sons: null}, {kind: 1, offset: "index", len: 0, typ: NTI33554435, name: "index", sons: null}, {kind: 1, offset: "timesMoved", len: 0, typ: NTI33554435, name: "timesMoved", sons: null}, {kind: 1, offset: "piecesTaken", len: 0, typ: NTI33554435, name: "piecesTaken", sons: null}, -{kind: 1, offset: "tile", len: 0, typ: NTI1224736771, name: "tile", sons: null}, -{kind: 1, offset: "moves", len: 0, typ: NTI1224736849, name: "moves", sons: null}, -{kind: 1, offset: "takes", len: 0, typ: NTI1224736850, name: "takes", sons: null}, -{kind: 1, offset: "onMove", len: 0, typ: NTI1224736988, name: "onMove", sons: null}, -{kind: 1, offset: "onTake", len: 0, typ: NTI1224736988, name: "onTake", sons: null}, -{kind: 1, offset: "whenTaken", len: 0, typ: NTI1224736992, name: "whenTaken", sons: null}, -{kind: 1, offset: "onEndTurn", len: 0, typ: NTI1224736851, name: "onEndTurn", sons: null}, -{kind: 1, offset: "onPromote", len: 0, typ: NTI1224736852, name: "onPromote", sons: null}, +{kind: 1, offset: "tile", len: 0, typ: NTI1476395011, name: "tile", sons: null}, +{kind: 1, offset: "moves", len: 0, typ: NTI1476395089, name: "moves", sons: null}, +{kind: 1, offset: "takes", len: 0, typ: NTI1476395090, name: "takes", sons: null}, +{kind: 1, offset: "onMove", len: 0, typ: NTI1476395228, name: "onMove", sons: null}, +{kind: 1, offset: "onTake", len: 0, typ: NTI1476395228, name: "onTake", sons: null}, +{kind: 1, offset: "whenTaken", len: 0, typ: NTI1476395232, name: "whenTaken", sons: null}, +{kind: 1, offset: "onEndTurn", len: 0, typ: NTI1476395091, name: "onEndTurn", sons: null}, +{kind: 1, offset: "onPromote", len: 0, typ: NTI1476395092, name: "onPromote", sons: null}, {kind: 1, offset: "promoted", len: 0, typ: NTI33554466, name: "promoted", sons: null}, {kind: 1, offset: "filePath", len: 0, typ: NTI33554449, name: "filePath", sons: null}, {kind: 1, offset: "colorable", len: 0, typ: NTI33554466, name: "colorable", sons: null}, {kind: 1, offset: "rotate", len: 0, typ: NTI33554466, name: "rotate", sons: null}, {kind: 1, offset: "drunk", len: 0, typ: NTI33554466, name: "drunk", sons: null}, -{kind: 1, offset: "casts", len: 0, typ: NTI1224736853, name: "casts", sons: null}]}; -NTI1224736794.node = NNI1224736794; -var NNI1308622955 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "val", len: 0, typ: NTI1224736794, name: "val", sons: null}, +{kind: 1, offset: "casts", len: 0, typ: NTI1476395093, name: "casts", sons: null}]}; +NTI1476395034.node = NNI1476395034; +var NNI1560281195 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "val", len: 0, typ: NTI1476395034, name: "val", sons: null}, {kind: 1, offset: "has", len: 0, typ: NTI33554466, name: "has", sons: null}]}; -NTI1308622955.node = NNI1308622955; -var NNI1241514007 = {kind: 2, len: 0, offset: 0, typ: null, name: null, sons: []}; -NTI1241514007.node = NNI1241514007; -NTI1241514007.base = NTI33555178; +NTI1560281195.node = NNI1560281195; +var NNI1493172247 = {kind: 2, len: 0, offset: 0, typ: null, name: null, sons: []}; +NTI1493172247.node = NNI1493172247; +NTI1493172247.base = NTI33555178; var NNI134217745 = {kind: 2, len: 0, offset: 0, typ: null, name: null, sons: []}; NTI134217745.node = NNI134217745; NTI134217745.base = NTI33555178; -NTI1275068532.base = NTI1224736986; -NTI1275068457.base = NTI1224736998; -NTI1291845874.base = NTI1224736986; -NTI1224737341.base = NTI1224736771; -NTI1291846007.base = NTI1224736986; -NTI1493172359.base = NTI1224736986; -NTI1493172368.base = NTI1224736986; -NTI1493172377.base = NTI1224736998; -NTI1493172386.base = NTI1224736998; -NTI1224737446.base = NTI1224736986; -NTI1224737447.base = NTI1224736986; -NTI1224737448.base = NTI1224737449; -NTI1224737453.base = NTI1224737454; -var NNI1493173092 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "Field0", len: 0, typ: NTI1224736771, name: "Field0", sons: null}, +NTI1526726772.base = NTI1476395226; +NTI1526726697.base = NTI1476395238; +NTI1543504114.base = NTI1476395226; +NTI1476395581.base = NTI1476395011; +NTI1543504247.base = NTI1476395226; +NTI1845493895.base = NTI1476395226; +NTI1845493904.base = NTI1476395226; +NTI1845493913.base = NTI1476395238; +NTI1845493922.base = NTI1476395238; +NTI1476395686.base = NTI1476395226; +NTI1476395687.base = NTI1476395226; +NTI1476395688.base = NTI1476395689; +NTI1476395693.base = NTI1476395694; +var NNI1845494628 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "Field0", len: 0, typ: NTI1476395011, name: "Field0", sons: null}, {kind: 1, offset: "Field1", len: 0, typ: NTI33554466, name: "Field1", sons: null}]}; -NTI1493173092.node = NNI1493173092; -var NNI1224737401 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "Field0", len: 0, typ: NTI1224736771, name: "Field0", sons: null}, +NTI1845494628.node = NNI1845494628; +var NNI1476395641 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "Field0", len: 0, typ: NTI1476395011, name: "Field0", sons: null}, {kind: 1, offset: "Field1", len: 0, typ: NTI33554466, name: "Field1", sons: null}]}; -NTI1224737401.node = NNI1224737401; -var NNI1493173477 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "Field0", len: 0, typ: NTI1224736771, name: "Field0", sons: null}, +NTI1476395641.node = NNI1476395641; +var NNI1845495013 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "Field0", len: 0, typ: NTI1476395011, name: "Field0", sons: null}, {kind: 1, offset: "Field1", len: 0, typ: NTI33554466, name: "Field1", sons: null}]}; -NTI1493173477.node = NNI1493173477; +NTI1845495013.node = NNI1845495013; var NNI134217742 = {kind: 2, len: 0, offset: 0, typ: null, name: null, sons: []}; NTI134217742.node = NNI134217742; NTI134217742.base = NTI134217741; -NTI1275068441.base = NTI1224736986; -NTI1493173219.base = NTI1224736986; -var NNI1392508932 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "a0", len: 0, typ: NTI1392508931, name: "a0", sons: null}, -{kind: 1, offset: "a1", len: 0, typ: NTI1392508931, name: "a1", sons: null}]}; -NTI1392508932.node = NNI1392508932; -var NNI889192517 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "a", len: 0, typ: NTI33554435, name: "a", sons: null}, +NTI1526726681.base = NTI1476395226; +NTI1845494755.base = NTI1476395226; +var NNI1644167172 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "a0", len: 0, typ: NTI1644167171, name: "a0", sons: null}, +{kind: 1, offset: "a1", len: 0, typ: NTI1644167171, name: "a1", sons: null}]}; +NTI1644167172.node = NNI1644167172; +var NNI939524165 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "a", len: 0, typ: NTI33554435, name: "a", sons: null}, {kind: 1, offset: "b", len: 0, typ: NTI33554435, name: "b", sons: null}]}; -NTI889192517.node = NNI889192517; -NTI1493172238.base = NTI1224736986; -var NNI1224736866 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "val", len: 0, typ: NTI33554435, name: "val", sons: null}, +NTI939524165.node = NNI939524165; +NTI1845493774.base = NTI1476395226; +var NNI1476395106 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "val", len: 0, typ: NTI33554435, name: "val", sons: null}, {kind: 1, offset: "has", len: 0, typ: NTI33554466, name: "has", sons: null}]}; -NTI1224736866.node = NNI1224736866; -var NNI1224736792 = {kind: 2, len: 3, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "Field0", len: 0, typ: NTI33554435, name: "Field0", sons: null}, -{kind: 1, offset: "Field1", len: 0, typ: NTI1224736988, name: "Field1", sons: null}, -{kind: 1, offset: "Field2", len: 0, typ: NTI1224737009, name: "Field2", sons: null}]}; -NTI1224736792.node = NNI1224736792; -NTI1291845837.base = NTI1224736771; -NTI1224736772.base = NTI1224736794; -NTI1224736773.base = NTI1224736772; -var NNI1224736839 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "val", len: 0, typ: NTI1224736792, name: "val", sons: null}, +NTI1476395106.node = NNI1476395106; +var NNI1476395032 = {kind: 2, len: 3, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "Field0", len: 0, typ: NTI33554435, name: "Field0", sons: null}, +{kind: 1, offset: "Field1", len: 0, typ: NTI1476395228, name: "Field1", sons: null}, +{kind: 1, offset: "Field2", len: 0, typ: NTI1476395249, name: "Field2", sons: null}]}; +NTI1476395032.node = NNI1476395032; +NTI1543504077.base = NTI1476395011; +NTI1476395012.base = NTI1476395034; +NTI1476395013.base = NTI1476395012; +var NNI1476395079 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "val", len: 0, typ: NTI1476395032, name: "val", sons: null}, {kind: 1, offset: "has", len: 0, typ: NTI33554466, name: "has", sons: null}]}; -NTI1224736839.node = NNI1224736839; -NTI1442840587.base = NTI33554449; -NTI1442840588.base = NTI33554449; -var NNI1442840582 = {kind: 2, len: 4, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "Field0", len: 0, typ: NTI1442840581, name: "Field0", sons: null}, +NTI1476395079.node = NNI1476395079; +NTI1728053259.base = NTI33554449; +NTI1728053260.base = NTI33554449; +var NNI1728053254 = {kind: 2, len: 4, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "Field0", len: 0, typ: NTI1728053253, name: "Field0", sons: null}, {kind: 1, offset: "Field1", len: 0, typ: NTI33554435, name: "Field1", sons: null}, -{kind: 1, offset: "Field2", len: 0, typ: NTI1442840587, name: "Field2", sons: null}, -{kind: 1, offset: "Field3", len: 0, typ: NTI1442840588, name: "Field3", sons: null}]}; -NTI1442840582.node = NNI1442840582; -NTI1493177050.base = NTI1224736771; -NTI1493177323.base = NTI1224736986; -var NNI1006633045 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "a", len: 0, typ: NTI1006633039, name: "a", sons: null}, +{kind: 1, offset: "Field2", len: 0, typ: NTI1728053259, name: "Field2", sons: null}, +{kind: 1, offset: "Field3", len: 0, typ: NTI1728053260, name: "Field3", sons: null}]}; +NTI1728053254.node = NNI1728053254; +NTI1845498586.base = NTI1476395011; +NTI1845498859.base = NTI1476395226; +var NNI1090519125 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "a", len: 0, typ: NTI1090519119, name: "a", sons: null}, {kind: 1, offset: "b", len: 0, typ: NTI33554435, name: "b", sons: null}]}; -NTI1006633045.node = NNI1006633045; -NTI1493177350.base = NTI1224736986; -NTI1493173955.base = NTI1224736998; -var NNI520093737 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "Field0", len: 0, typ: NTI33554466, name: "Field0", sons: null}, +NTI1090519125.node = NNI1090519125; +NTI1845498886.base = NTI1476395226; +NTI1845495491.base = NTI1476395238; +var NNI553648169 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "Field0", len: 0, typ: NTI33554466, name: "Field0", sons: null}, {kind: 1, offset: "Field1", len: 0, typ: NTI33554450, name: "Field1", sons: null}]}; -NTI520093737.node = NNI520093737; -NTI1442840869.base = NTI1442840581; +NTI553648169.node = NNI553648169; +NTI1728053541.base = NTI1728053253; var NNI134217747 = {kind: 2, len: 0, offset: 0, typ: null, name: null, sons: []}; NTI134217747.node = NNI134217747; var NNI134217746 = {kind: 2, len: 0, offset: 0, typ: null, name: null, sons: []}; @@ -405,8 +400,8 @@ NTI33555179.node = NNI33555179; NTI33555179.base = NTI33555177; NTI134217746.base = NTI33555179; NTI134217747.base = NTI134217746; -NTI1442841684.base = NTI1442840581; -var NNI805306510 = {kind: 2, len: 368, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "alignContent", len: 0, typ: NTI33554450, name: "alignContent", sons: null}, +NTI1728054356.base = NTI1728053253; +var NNI838860942 = {kind: 2, len: 368, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "alignContent", len: 0, typ: NTI33554450, name: "alignContent", sons: null}, {kind: 1, offset: "alignItems", len: 0, typ: NTI33554450, name: "alignItems", sons: null}, {kind: 1, offset: "alignSelf", len: 0, typ: NTI33554450, name: "alignSelf", sons: null}, {kind: 1, offset: "all", len: 0, typ: NTI33554450, name: "all", sons: null}, @@ -774,70 +769,70 @@ var NNI805306510 = {kind: 2, len: 368, offset: 0, typ: null, name: null, sons: [ {kind: 1, offset: "wordSpacing", len: 0, typ: NTI33554450, name: "wordSpacing", sons: null}, {kind: 1, offset: "writingMode", len: 0, typ: NTI33554450, name: "writingMode", sons: null}, {kind: 1, offset: "zIndex", len: 0, typ: NTI33554450, name: "zIndex", sons: null}]}; -NTI805306510.node = NNI805306510; -NTI805306510.base = NTI33555173; -var NNI687865863 = {kind: 2, offset: 0, typ: null, name: null, len: 6, sons: {"0": {kind: 1, offset: 0, typ: NTI687865863, name: "pkReplace", len: 0, sons: null}, -"1": {kind: 1, offset: 1, typ: NTI687865863, name: "pkRemove", len: 0, sons: null}, -"2": {kind: 1, offset: 2, typ: NTI687865863, name: "pkAppend", len: 0, sons: null}, -"3": {kind: 1, offset: 3, typ: NTI687865863, name: "pkInsertBefore", len: 0, sons: null}, -"4": {kind: 1, offset: 4, typ: NTI687865863, name: "pkDetach", len: 0, sons: null}, -"5": {kind: 1, offset: 5, typ: NTI687865863, name: "pkSame", len: 0, sons: null}}}; -NTI687865863.node = NNI687865863; -NTI805306483.base = NTI805306384; -NTI805306484.base = NTI805306384; -NTI805306485.base = NTI805306384; -var NNI805306383 = {kind: 2, offset: 0, typ: null, name: null, len: 12, sons: {"1": {kind: 1, offset: 1, typ: NTI805306383, name: "ElementNode", len: 0, sons: null}, -"2": {kind: 1, offset: 2, typ: NTI805306383, name: "AttributeNode", len: 0, sons: null}, -"3": {kind: 1, offset: 3, typ: NTI805306383, name: "TextNode", len: 0, sons: null}, -"4": {kind: 1, offset: 4, typ: NTI805306383, name: "CDATANode", len: 0, sons: null}, -"5": {kind: 1, offset: 5, typ: NTI805306383, name: "EntityRefNode", len: 0, sons: null}, -"6": {kind: 1, offset: 6, typ: NTI805306383, name: "EntityNode", len: 0, sons: null}, -"7": {kind: 1, offset: 7, typ: NTI805306383, name: "ProcessingInstructionNode", len: 0, sons: null}, -"8": {kind: 1, offset: 8, typ: NTI805306383, name: "CommentNode", len: 0, sons: null}, -"9": {kind: 1, offset: 9, typ: NTI805306383, name: "DocumentNode", len: 0, sons: null}, -"10": {kind: 1, offset: 10, typ: NTI805306383, name: "DocumentTypeNode", len: 0, sons: null}, -"11": {kind: 1, offset: 11, typ: NTI805306383, name: "DocumentFragmentNode", len: 0, sons: null}, -"12": {kind: 1, offset: 12, typ: NTI805306383, name: "NotationNode", len: 0, sons: null}}}; -NTI805306383.node = NNI805306383; -var NNI805306479 = {kind: 2, len: 0, offset: 0, typ: null, name: null, sons: []}; -NTI805306479.node = NNI805306479; -NTI805306479.base = NTI33555173; -NTI805306382.base = NTI805306479; -NTI805306508.base = NTI805306386; -var NNI805306507 = {kind: 2, len: 10, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "acceptCharset", len: 0, typ: NTI33554450, name: "acceptCharset", sons: null}, +NTI838860942.node = NNI838860942; +NTI838860942.base = NTI33555173; +var NNI721420295 = {kind: 2, offset: 0, typ: null, name: null, len: 6, sons: {"0": {kind: 1, offset: 0, typ: NTI721420295, name: "pkReplace", len: 0, sons: null}, +"1": {kind: 1, offset: 1, typ: NTI721420295, name: "pkRemove", len: 0, sons: null}, +"2": {kind: 1, offset: 2, typ: NTI721420295, name: "pkAppend", len: 0, sons: null}, +"3": {kind: 1, offset: 3, typ: NTI721420295, name: "pkInsertBefore", len: 0, sons: null}, +"4": {kind: 1, offset: 4, typ: NTI721420295, name: "pkDetach", len: 0, sons: null}, +"5": {kind: 1, offset: 5, typ: NTI721420295, name: "pkSame", len: 0, sons: null}}}; +NTI721420295.node = NNI721420295; +NTI838860915.base = NTI838860816; +NTI838860916.base = NTI838860816; +NTI838860917.base = NTI838860816; +var NNI838860815 = {kind: 2, offset: 0, typ: null, name: null, len: 12, sons: {"1": {kind: 1, offset: 1, typ: NTI838860815, name: "ElementNode", len: 0, sons: null}, +"2": {kind: 1, offset: 2, typ: NTI838860815, name: "AttributeNode", len: 0, sons: null}, +"3": {kind: 1, offset: 3, typ: NTI838860815, name: "TextNode", len: 0, sons: null}, +"4": {kind: 1, offset: 4, typ: NTI838860815, name: "CDATANode", len: 0, sons: null}, +"5": {kind: 1, offset: 5, typ: NTI838860815, name: "EntityRefNode", len: 0, sons: null}, +"6": {kind: 1, offset: 6, typ: NTI838860815, name: "EntityNode", len: 0, sons: null}, +"7": {kind: 1, offset: 7, typ: NTI838860815, name: "ProcessingInstructionNode", len: 0, sons: null}, +"8": {kind: 1, offset: 8, typ: NTI838860815, name: "CommentNode", len: 0, sons: null}, +"9": {kind: 1, offset: 9, typ: NTI838860815, name: "DocumentNode", len: 0, sons: null}, +"10": {kind: 1, offset: 10, typ: NTI838860815, name: "DocumentTypeNode", len: 0, sons: null}, +"11": {kind: 1, offset: 11, typ: NTI838860815, name: "DocumentFragmentNode", len: 0, sons: null}, +"12": {kind: 1, offset: 12, typ: NTI838860815, name: "NotationNode", len: 0, sons: null}}}; +NTI838860815.node = NNI838860815; +var NNI838860911 = {kind: 2, len: 0, offset: 0, typ: null, name: null, sons: []}; +NTI838860911.node = NNI838860911; +NTI838860911.base = NTI33555173; +NTI838860814.base = NTI838860911; +NTI838860940.base = NTI838860818; +var NNI838860939 = {kind: 2, len: 10, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "acceptCharset", len: 0, typ: NTI33554450, name: "acceptCharset", sons: null}, {kind: 1, offset: "action", len: 0, typ: NTI33554450, name: "action", sons: null}, {kind: 1, offset: "autocomplete", len: 0, typ: NTI33554450, name: "autocomplete", sons: null}, -{kind: 1, offset: "elements", len: 0, typ: NTI805306508, name: "elements", sons: null}, +{kind: 1, offset: "elements", len: 0, typ: NTI838860940, name: "elements", sons: null}, {kind: 1, offset: "encoding", len: 0, typ: NTI33554450, name: "encoding", sons: null}, {kind: 1, offset: "enctype", len: 0, typ: NTI33554450, name: "enctype", sons: null}, {kind: 1, offset: "length", len: 0, typ: NTI33554435, name: "length", sons: null}, {kind: 1, offset: "method", len: 0, typ: NTI33554450, name: "method", sons: null}, {kind: 1, offset: "noValidate", len: 0, typ: NTI33554466, name: "noValidate", sons: null}, {kind: 1, offset: "target", len: 0, typ: NTI33554450, name: "target", sons: null}]}; -NTI805306507.node = NNI805306507; -NTI805306507.base = NTI805306493; -NTI805306396.base = NTI805306507; -var NNI805306506 = {kind: 2, len: 5, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "defaultSelected", len: 0, typ: NTI33554466, name: "defaultSelected", sons: null}, +NTI838860939.node = NNI838860939; +NTI838860939.base = NTI838860925; +NTI838860828.base = NTI838860939; +var NNI838860938 = {kind: 2, len: 5, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "defaultSelected", len: 0, typ: NTI33554466, name: "defaultSelected", sons: null}, {kind: 1, offset: "selected", len: 0, typ: NTI33554466, name: "selected", sons: null}, {kind: 1, offset: "selectedIndex", len: 0, typ: NTI33554435, name: "selectedIndex", sons: null}, {kind: 1, offset: "text", len: 0, typ: NTI33554450, name: "text", sons: null}, {kind: 1, offset: "value", len: 0, typ: NTI33554450, name: "value", sons: null}]}; -NTI805306506.node = NNI805306506; -NTI805306506.base = NTI805306493; -NTI805306395.base = NTI805306506; -NTI805306494.base = NTI805306395; -NTI805306495.base = NTI805306395; -var NNI805306493 = {kind: 2, len: 20, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "className", len: 0, typ: NTI33554450, name: "className", sons: null}, -{kind: 1, offset: "classList", len: 0, typ: NTI805306382, name: "classList", sons: null}, +NTI838860938.node = NNI838860938; +NTI838860938.base = NTI838860925; +NTI838860827.base = NTI838860938; +NTI838860926.base = NTI838860827; +NTI838860927.base = NTI838860827; +var NNI838860925 = {kind: 2, len: 20, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "className", len: 0, typ: NTI33554450, name: "className", sons: null}, +{kind: 1, offset: "classList", len: 0, typ: NTI838860814, name: "classList", sons: null}, {kind: 1, offset: "checked", len: 0, typ: NTI33554466, name: "checked", sons: null}, {kind: 1, offset: "defaultChecked", len: 0, typ: NTI33554466, name: "defaultChecked", sons: null}, {kind: 1, offset: "defaultValue", len: 0, typ: NTI33554450, name: "defaultValue", sons: null}, {kind: 1, offset: "disabled", len: 0, typ: NTI33554466, name: "disabled", sons: null}, -{kind: 1, offset: "form", len: 0, typ: NTI805306396, name: "form", sons: null}, +{kind: 1, offset: "form", len: 0, typ: NTI838860828, name: "form", sons: null}, {kind: 1, offset: "name", len: 0, typ: NTI33554450, name: "name", sons: null}, {kind: 1, offset: "readOnly", len: 0, typ: NTI33554466, name: "readOnly", sons: null}, -{kind: 1, offset: "options", len: 0, typ: NTI805306494, name: "options", sons: null}, -{kind: 1, offset: "selectedOptions", len: 0, typ: NTI805306495, name: "selectedOptions", sons: null}, +{kind: 1, offset: "options", len: 0, typ: NTI838860926, name: "options", sons: null}, +{kind: 1, offset: "selectedOptions", len: 0, typ: NTI838860927, name: "selectedOptions", sons: null}, {kind: 1, offset: "clientWidth", len: 0, typ: NTI33554435, name: "clientWidth", sons: null}, {kind: 1, offset: "clientHeight", len: 0, typ: NTI33554435, name: "clientHeight", sons: null}, {kind: 1, offset: "contentEditable", len: 0, typ: NTI33554450, name: "contentEditable", sons: null}, @@ -847,18 +842,18 @@ var NNI805306493 = {kind: 2, len: 20, offset: 0, typ: null, name: null, sons: [{ {kind: 1, offset: "offsetWidth", len: 0, typ: NTI33554435, name: "offsetWidth", sons: null}, {kind: 1, offset: "offsetLeft", len: 0, typ: NTI33554435, name: "offsetLeft", sons: null}, {kind: 1, offset: "offsetTop", len: 0, typ: NTI33554435, name: "offsetTop", sons: null}]}; -NTI805306493.node = NNI805306493; -NTI805306493.base = NTI805306482; -NTI805306386.base = NTI805306493; -var NNI805306505 = {kind: 2, len: 3, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "text", len: 0, typ: NTI33554450, name: "text", sons: null}, +NTI838860925.node = NNI838860925; +NTI838860925.base = NTI838860914; +NTI838860818.base = NTI838860925; +var NNI838860937 = {kind: 2, len: 3, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "text", len: 0, typ: NTI33554450, name: "text", sons: null}, {kind: 1, offset: "x", len: 0, typ: NTI33554435, name: "x", sons: null}, {kind: 1, offset: "y", len: 0, typ: NTI33554435, name: "y", sons: null}]}; -NTI805306505.node = NNI805306505; -NTI805306505.base = NTI805306493; -NTI805306394.base = NTI805306505; -NTI805306487.base = NTI805306394; -NTI805306488.base = NTI805306396; -var NNI805306509 = {kind: 2, len: 8, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "border", len: 0, typ: NTI33554435, name: "border", sons: null}, +NTI838860937.node = NNI838860937; +NTI838860937.base = NTI838860925; +NTI838860826.base = NTI838860937; +NTI838860919.base = NTI838860826; +NTI838860920.base = NTI838860828; +var NNI838860941 = {kind: 2, len: 8, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "border", len: 0, typ: NTI33554435, name: "border", sons: null}, {kind: 1, offset: "complete", len: 0, typ: NTI33554466, name: "complete", sons: null}, {kind: 1, offset: "height", len: 0, typ: NTI33554435, name: "height", sons: null}, {kind: 1, offset: "hspace", len: 0, typ: NTI33554435, name: "hspace", sons: null}, @@ -866,46 +861,46 @@ var NNI805306509 = {kind: 2, len: 8, offset: 0, typ: null, name: null, sons: [{k {kind: 1, offset: "src", len: 0, typ: NTI33554450, name: "src", sons: null}, {kind: 1, offset: "vspace", len: 0, typ: NTI33554435, name: "vspace", sons: null}, {kind: 1, offset: "width", len: 0, typ: NTI33554435, name: "width", sons: null}]}; -NTI805306509.node = NNI805306509; -NTI805306509.base = NTI805306493; -NTI805306397.base = NTI805306509; -NTI805306489.base = NTI805306397; -NTI805306490.base = NTI805306386; -var NNI805306504 = {kind: 2, len: 6, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "height", len: 0, typ: NTI33554435, name: "height", sons: null}, +NTI838860941.node = NNI838860941; +NTI838860941.base = NTI838860925; +NTI838860829.base = NTI838860941; +NTI838860921.base = NTI838860829; +NTI838860922.base = NTI838860818; +var NNI838860936 = {kind: 2, len: 6, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "height", len: 0, typ: NTI33554435, name: "height", sons: null}, {kind: 1, offset: "hspace", len: 0, typ: NTI33554435, name: "hspace", sons: null}, {kind: 1, offset: "src", len: 0, typ: NTI33554450, name: "src", sons: null}, {kind: 1, offset: "width", len: 0, typ: NTI33554435, name: "width", sons: null}, {kind: 1, offset: "type", len: 0, typ: NTI33554450, name: "type", sons: null}, {kind: 1, offset: "vspace", len: 0, typ: NTI33554435, name: "vspace", sons: null}]}; -NTI805306504.node = NNI805306504; -NTI805306504.base = NTI805306493; -NTI805306393.base = NTI805306504; -NTI805306491.base = NTI805306393; -var NNI805306503 = {kind: 2, len: 4, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "target", len: 0, typ: NTI33554450, name: "target", sons: null}, +NTI838860936.node = NNI838860936; +NTI838860936.base = NTI838860925; +NTI838860825.base = NTI838860936; +NTI838860923.base = NTI838860825; +var NNI838860935 = {kind: 2, len: 4, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "target", len: 0, typ: NTI33554450, name: "target", sons: null}, {kind: 1, offset: "text", len: 0, typ: NTI33554450, name: "text", sons: null}, {kind: 1, offset: "x", len: 0, typ: NTI33554435, name: "x", sons: null}, {kind: 1, offset: "y", len: 0, typ: NTI33554435, name: "y", sons: null}]}; -NTI805306503.node = NNI805306503; -NTI805306503.base = NTI805306493; -NTI805306392.base = NTI805306503; -NTI805306492.base = NTI805306392; -var NNI805306553 = {kind: 1, offset: "then", len: 0, typ: NTI805306554, name: "then", sons: null}; -NTI805306553.node = NNI805306553; -NTI805306433.base = NTI805306553; -var NNI805306556 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "ready", len: 0, typ: NTI805306433, name: "ready", sons: null}, -{kind: 1, offset: "onloadingdone", len: 0, typ: NTI805306557, name: "onloadingdone", sons: null}]}; -NTI805306556.node = NNI805306556; -NTI805306434.base = NTI805306556; -var NNI805306486 = {kind: 2, len: 25, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "activeElement", len: 0, typ: NTI805306386, name: "activeElement", sons: null}, -{kind: 1, offset: "documentElement", len: 0, typ: NTI805306386, name: "documentElement", sons: null}, +NTI838860935.node = NNI838860935; +NTI838860935.base = NTI838860925; +NTI838860824.base = NTI838860935; +NTI838860924.base = NTI838860824; +var NNI838860985 = {kind: 1, offset: "then", len: 0, typ: NTI838860986, name: "then", sons: null}; +NTI838860985.node = NNI838860985; +NTI838860865.base = NTI838860985; +var NNI838860988 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "ready", len: 0, typ: NTI838860865, name: "ready", sons: null}, +{kind: 1, offset: "onloadingdone", len: 0, typ: NTI838860989, name: "onloadingdone", sons: null}]}; +NTI838860988.node = NNI838860988; +NTI838860866.base = NTI838860988; +var NNI838860918 = {kind: 2, len: 25, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "activeElement", len: 0, typ: NTI838860818, name: "activeElement", sons: null}, +{kind: 1, offset: "documentElement", len: 0, typ: NTI838860818, name: "documentElement", sons: null}, {kind: 1, offset: "alinkColor", len: 0, typ: NTI33554450, name: "alinkColor", sons: null}, {kind: 1, offset: "bgColor", len: 0, typ: NTI33554450, name: "bgColor", sons: null}, -{kind: 1, offset: "body", len: 0, typ: NTI805306386, name: "body", sons: null}, +{kind: 1, offset: "body", len: 0, typ: NTI838860818, name: "body", sons: null}, {kind: 1, offset: "charset", len: 0, typ: NTI33554450, name: "charset", sons: null}, {kind: 1, offset: "cookie", len: 0, typ: NTI33554450, name: "cookie", sons: null}, {kind: 1, offset: "defaultCharset", len: 0, typ: NTI33554450, name: "defaultCharset", sons: null}, {kind: 1, offset: "fgColor", len: 0, typ: NTI33554450, name: "fgColor", sons: null}, -{kind: 1, offset: "head", len: 0, typ: NTI805306386, name: "head", sons: null}, +{kind: 1, offset: "head", len: 0, typ: NTI838860818, name: "head", sons: null}, {kind: 1, offset: "hidden", len: 0, typ: NTI33554466, name: "hidden", sons: null}, {kind: 1, offset: "lastModified", len: 0, typ: NTI33554450, name: "lastModified", sons: null}, {kind: 1, offset: "linkColor", len: 0, typ: NTI33554450, name: "linkColor", sons: null}, @@ -914,450 +909,450 @@ var NNI805306486 = {kind: 2, len: 25, offset: 0, typ: null, name: null, sons: [{ {kind: 1, offset: "URL", len: 0, typ: NTI33554450, name: "URL", sons: null}, {kind: 1, offset: "visibilityState", len: 0, typ: NTI33554450, name: "visibilityState", sons: null}, {kind: 1, offset: "vlinkColor", len: 0, typ: NTI33554450, name: "vlinkColor", sons: null}, -{kind: 1, offset: "anchors", len: 0, typ: NTI805306487, name: "anchors", sons: null}, -{kind: 1, offset: "forms", len: 0, typ: NTI805306488, name: "forms", sons: null}, -{kind: 1, offset: "images", len: 0, typ: NTI805306489, name: "images", sons: null}, -{kind: 1, offset: "applets", len: 0, typ: NTI805306490, name: "applets", sons: null}, -{kind: 1, offset: "embeds", len: 0, typ: NTI805306491, name: "embeds", sons: null}, -{kind: 1, offset: "links", len: 0, typ: NTI805306492, name: "links", sons: null}, -{kind: 1, offset: "fonts", len: 0, typ: NTI805306434, name: "fonts", sons: null}]}; -NTI805306486.node = NNI805306486; -NTI805306486.base = NTI805306482; -NTI805306385.base = NTI805306486; -NTI805306398.base = NTI805306510; -var NNI805306482 = {kind: 2, len: 22, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "attributes", len: 0, typ: NTI805306483, name: "attributes", sons: null}, -{kind: 1, offset: "childNodes", len: 0, typ: NTI805306484, name: "childNodes", sons: null}, -{kind: 1, offset: "children", len: 0, typ: NTI805306485, name: "children", sons: null}, +{kind: 1, offset: "anchors", len: 0, typ: NTI838860919, name: "anchors", sons: null}, +{kind: 1, offset: "forms", len: 0, typ: NTI838860920, name: "forms", sons: null}, +{kind: 1, offset: "images", len: 0, typ: NTI838860921, name: "images", sons: null}, +{kind: 1, offset: "applets", len: 0, typ: NTI838860922, name: "applets", sons: null}, +{kind: 1, offset: "embeds", len: 0, typ: NTI838860923, name: "embeds", sons: null}, +{kind: 1, offset: "links", len: 0, typ: NTI838860924, name: "links", sons: null}, +{kind: 1, offset: "fonts", len: 0, typ: NTI838860866, name: "fonts", sons: null}]}; +NTI838860918.node = NNI838860918; +NTI838860918.base = NTI838860914; +NTI838860817.base = NTI838860918; +NTI838860830.base = NTI838860942; +var NNI838860914 = {kind: 2, len: 22, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "attributes", len: 0, typ: NTI838860915, name: "attributes", sons: null}, +{kind: 1, offset: "childNodes", len: 0, typ: NTI838860916, name: "childNodes", sons: null}, +{kind: 1, offset: "children", len: 0, typ: NTI838860917, name: "children", sons: null}, {kind: 1, offset: "data", len: 0, typ: NTI33554450, name: "data", sons: null}, -{kind: 1, offset: "firstChild", len: 0, typ: NTI805306384, name: "firstChild", sons: null}, -{kind: 1, offset: "lastChild", len: 0, typ: NTI805306384, name: "lastChild", sons: null}, -{kind: 1, offset: "nextSibling", len: 0, typ: NTI805306384, name: "nextSibling", sons: null}, +{kind: 1, offset: "firstChild", len: 0, typ: NTI838860816, name: "firstChild", sons: null}, +{kind: 1, offset: "lastChild", len: 0, typ: NTI838860816, name: "lastChild", sons: null}, +{kind: 1, offset: "nextSibling", len: 0, typ: NTI838860816, name: "nextSibling", sons: null}, {kind: 1, offset: "nodeName", len: 0, typ: NTI33554450, name: "nodeName", sons: null}, -{kind: 1, offset: "nodeType", len: 0, typ: NTI805306383, name: "nodeType", sons: null}, +{kind: 1, offset: "nodeType", len: 0, typ: NTI838860815, name: "nodeType", sons: null}, {kind: 1, offset: "nodeValue", len: 0, typ: NTI33554450, name: "nodeValue", sons: null}, -{kind: 1, offset: "parentNode", len: 0, typ: NTI805306384, name: "parentNode", sons: null}, -{kind: 1, offset: "content", len: 0, typ: NTI805306384, name: "content", sons: null}, -{kind: 1, offset: "previousSibling", len: 0, typ: NTI805306384, name: "previousSibling", sons: null}, -{kind: 1, offset: "ownerDocument", len: 0, typ: NTI805306385, name: "ownerDocument", sons: null}, +{kind: 1, offset: "parentNode", len: 0, typ: NTI838860816, name: "parentNode", sons: null}, +{kind: 1, offset: "content", len: 0, typ: NTI838860816, name: "content", sons: null}, +{kind: 1, offset: "previousSibling", len: 0, typ: NTI838860816, name: "previousSibling", sons: null}, +{kind: 1, offset: "ownerDocument", len: 0, typ: NTI838860817, name: "ownerDocument", sons: null}, {kind: 1, offset: "innerHTML", len: 0, typ: NTI33554450, name: "innerHTML", sons: null}, {kind: 1, offset: "outerHTML", len: 0, typ: NTI33554450, name: "outerHTML", sons: null}, {kind: 1, offset: "innerText", len: 0, typ: NTI33554450, name: "innerText", sons: null}, {kind: 1, offset: "textContent", len: 0, typ: NTI33554450, name: "textContent", sons: null}, -{kind: 1, offset: "style", len: 0, typ: NTI805306398, name: "style", sons: null}, +{kind: 1, offset: "style", len: 0, typ: NTI838860830, name: "style", sons: null}, {kind: 1, offset: "baseURI", len: 0, typ: NTI33554450, name: "baseURI", sons: null}, -{kind: 1, offset: "parentElement", len: 0, typ: NTI805306386, name: "parentElement", sons: null}, +{kind: 1, offset: "parentElement", len: 0, typ: NTI838860818, name: "parentElement", sons: null}, {kind: 1, offset: "isConnected", len: 0, typ: NTI33554466, name: "isConnected", sons: null}]}; -NTI805306482.node = NNI805306482; -var NNI805306437 = {kind: 2, len: 24, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "onabort", len: 0, typ: NTI805306438, name: "onabort", sons: null}, -{kind: 1, offset: "onblur", len: 0, typ: NTI805306439, name: "onblur", sons: null}, -{kind: 1, offset: "onchange", len: 0, typ: NTI805306440, name: "onchange", sons: null}, -{kind: 1, offset: "onclick", len: 0, typ: NTI805306441, name: "onclick", sons: null}, -{kind: 1, offset: "ondblclick", len: 0, typ: NTI805306442, name: "ondblclick", sons: null}, -{kind: 1, offset: "onerror", len: 0, typ: NTI805306443, name: "onerror", sons: null}, -{kind: 1, offset: "onfocus", len: 0, typ: NTI805306444, name: "onfocus", sons: null}, -{kind: 1, offset: "onkeydown", len: 0, typ: NTI805306445, name: "onkeydown", sons: null}, -{kind: 1, offset: "onkeypress", len: 0, typ: NTI805306446, name: "onkeypress", sons: null}, -{kind: 1, offset: "onkeyup", len: 0, typ: NTI805306447, name: "onkeyup", sons: null}, -{kind: 1, offset: "onload", len: 0, typ: NTI805306448, name: "onload", sons: null}, -{kind: 1, offset: "onmousedown", len: 0, typ: NTI805306449, name: "onmousedown", sons: null}, -{kind: 1, offset: "onmousemove", len: 0, typ: NTI805306450, name: "onmousemove", sons: null}, -{kind: 1, offset: "onmouseout", len: 0, typ: NTI805306451, name: "onmouseout", sons: null}, -{kind: 1, offset: "onmouseover", len: 0, typ: NTI805306452, name: "onmouseover", sons: null}, -{kind: 1, offset: "onmouseup", len: 0, typ: NTI805306453, name: "onmouseup", sons: null}, -{kind: 1, offset: "onreset", len: 0, typ: NTI805306454, name: "onreset", sons: null}, -{kind: 1, offset: "onselect", len: 0, typ: NTI805306455, name: "onselect", sons: null}, -{kind: 1, offset: "onstorage", len: 0, typ: NTI805306456, name: "onstorage", sons: null}, -{kind: 1, offset: "onsubmit", len: 0, typ: NTI805306457, name: "onsubmit", sons: null}, -{kind: 1, offset: "onunload", len: 0, typ: NTI805306458, name: "onunload", sons: null}, -{kind: 1, offset: "onloadstart", len: 0, typ: NTI805306459, name: "onloadstart", sons: null}, -{kind: 1, offset: "onprogress", len: 0, typ: NTI805306460, name: "onprogress", sons: null}, -{kind: 1, offset: "onloadend", len: 0, typ: NTI805306461, name: "onloadend", sons: null}]}; -NTI805306437.node = NNI805306437; -NTI805306437.base = NTI33555173; -NTI805306482.base = NTI805306437; -NTI805306384.base = NTI805306482; -var NNI721420291 = {kind: 2, offset: 0, typ: null, name: null, len: 213, sons: {"0": {kind: 1, offset: 0, typ: NTI721420291, name: "#text", len: 0, sons: null}, -"1": {kind: 1, offset: 1, typ: NTI721420291, name: "#int", len: 0, sons: null}, -"2": {kind: 1, offset: 2, typ: NTI721420291, name: "#bool", len: 0, sons: null}, -"3": {kind: 1, offset: 3, typ: NTI721420291, name: "#vthunk", len: 0, sons: null}, -"4": {kind: 1, offset: 4, typ: NTI721420291, name: "#dthunk", len: 0, sons: null}, -"5": {kind: 1, offset: 5, typ: NTI721420291, name: "#component", len: 0, sons: null}, -"6": {kind: 1, offset: 6, typ: NTI721420291, name: "#verbatim", len: 0, sons: null}, -"7": {kind: 1, offset: 7, typ: NTI721420291, name: "html", len: 0, sons: null}, -"8": {kind: 1, offset: 8, typ: NTI721420291, name: "head", len: 0, sons: null}, -"9": {kind: 1, offset: 9, typ: NTI721420291, name: "title", len: 0, sons: null}, -"10": {kind: 1, offset: 10, typ: NTI721420291, name: "base", len: 0, sons: null}, -"11": {kind: 1, offset: 11, typ: NTI721420291, name: "link", len: 0, sons: null}, -"12": {kind: 1, offset: 12, typ: NTI721420291, name: "meta", len: 0, sons: null}, -"13": {kind: 1, offset: 13, typ: NTI721420291, name: "style", len: 0, sons: null}, -"14": {kind: 1, offset: 14, typ: NTI721420291, name: "script", len: 0, sons: null}, -"15": {kind: 1, offset: 15, typ: NTI721420291, name: "noscript", len: 0, sons: null}, -"16": {kind: 1, offset: 16, typ: NTI721420291, name: "body", len: 0, sons: null}, -"17": {kind: 1, offset: 17, typ: NTI721420291, name: "section", len: 0, sons: null}, -"18": {kind: 1, offset: 18, typ: NTI721420291, name: "nav", len: 0, sons: null}, -"19": {kind: 1, offset: 19, typ: NTI721420291, name: "article", len: 0, sons: null}, -"20": {kind: 1, offset: 20, typ: NTI721420291, name: "aside", len: 0, sons: null}, -"21": {kind: 1, offset: 21, typ: NTI721420291, name: "h1", len: 0, sons: null}, -"22": {kind: 1, offset: 22, typ: NTI721420291, name: "h2", len: 0, sons: null}, -"23": {kind: 1, offset: 23, typ: NTI721420291, name: "h3", len: 0, sons: null}, -"24": {kind: 1, offset: 24, typ: NTI721420291, name: "h4", len: 0, sons: null}, -"25": {kind: 1, offset: 25, typ: NTI721420291, name: "h5", len: 0, sons: null}, -"26": {kind: 1, offset: 26, typ: NTI721420291, name: "h6", len: 0, sons: null}, -"27": {kind: 1, offset: 27, typ: NTI721420291, name: "hgroup", len: 0, sons: null}, -"28": {kind: 1, offset: 28, typ: NTI721420291, name: "header", len: 0, sons: null}, -"29": {kind: 1, offset: 29, typ: NTI721420291, name: "footer", len: 0, sons: null}, -"30": {kind: 1, offset: 30, typ: NTI721420291, name: "address", len: 0, sons: null}, -"31": {kind: 1, offset: 31, typ: NTI721420291, name: "main", len: 0, sons: null}, -"32": {kind: 1, offset: 32, typ: NTI721420291, name: "p", len: 0, sons: null}, -"33": {kind: 1, offset: 33, typ: NTI721420291, name: "hr", len: 0, sons: null}, -"34": {kind: 1, offset: 34, typ: NTI721420291, name: "pre", len: 0, sons: null}, -"35": {kind: 1, offset: 35, typ: NTI721420291, name: "blockquote", len: 0, sons: null}, -"36": {kind: 1, offset: 36, typ: NTI721420291, name: "ol", len: 0, sons: null}, -"37": {kind: 1, offset: 37, typ: NTI721420291, name: "ul", len: 0, sons: null}, -"38": {kind: 1, offset: 38, typ: NTI721420291, name: "li", len: 0, sons: null}, -"39": {kind: 1, offset: 39, typ: NTI721420291, name: "dl", len: 0, sons: null}, -"40": {kind: 1, offset: 40, typ: NTI721420291, name: "dt", len: 0, sons: null}, -"41": {kind: 1, offset: 41, typ: NTI721420291, name: "dd", len: 0, sons: null}, -"42": {kind: 1, offset: 42, typ: NTI721420291, name: "figure", len: 0, sons: null}, -"43": {kind: 1, offset: 43, typ: NTI721420291, name: "figcaption", len: 0, sons: null}, -"44": {kind: 1, offset: 44, typ: NTI721420291, name: "div", len: 0, sons: null}, -"45": {kind: 1, offset: 45, typ: NTI721420291, name: "a", len: 0, sons: null}, -"46": {kind: 1, offset: 46, typ: NTI721420291, name: "em", len: 0, sons: null}, -"47": {kind: 1, offset: 47, typ: NTI721420291, name: "strong", len: 0, sons: null}, -"48": {kind: 1, offset: 48, typ: NTI721420291, name: "small", len: 0, sons: null}, -"49": {kind: 1, offset: 49, typ: NTI721420291, name: "s", len: 0, sons: null}, -"50": {kind: 1, offset: 50, typ: NTI721420291, name: "cite", len: 0, sons: null}, -"51": {kind: 1, offset: 51, typ: NTI721420291, name: "quote", len: 0, sons: null}, -"52": {kind: 1, offset: 52, typ: NTI721420291, name: "dfn", len: 0, sons: null}, -"53": {kind: 1, offset: 53, typ: NTI721420291, name: "abbr", len: 0, sons: null}, -"54": {kind: 1, offset: 54, typ: NTI721420291, name: "data", len: 0, sons: null}, -"55": {kind: 1, offset: 55, typ: NTI721420291, name: "time", len: 0, sons: null}, -"56": {kind: 1, offset: 56, typ: NTI721420291, name: "code", len: 0, sons: null}, -"57": {kind: 1, offset: 57, typ: NTI721420291, name: "var", len: 0, sons: null}, -"58": {kind: 1, offset: 58, typ: NTI721420291, name: "samp", len: 0, sons: null}, -"59": {kind: 1, offset: 59, typ: NTI721420291, name: "kbd", len: 0, sons: null}, -"60": {kind: 1, offset: 60, typ: NTI721420291, name: "sub", len: 0, sons: null}, -"61": {kind: 1, offset: 61, typ: NTI721420291, name: "sup", len: 0, sons: null}, -"62": {kind: 1, offset: 62, typ: NTI721420291, name: "i", len: 0, sons: null}, -"63": {kind: 1, offset: 63, typ: NTI721420291, name: "b", len: 0, sons: null}, -"64": {kind: 1, offset: 64, typ: NTI721420291, name: "u", len: 0, sons: null}, -"65": {kind: 1, offset: 65, typ: NTI721420291, name: "mark", len: 0, sons: null}, -"66": {kind: 1, offset: 66, typ: NTI721420291, name: "ruby", len: 0, sons: null}, -"67": {kind: 1, offset: 67, typ: NTI721420291, name: "rt", len: 0, sons: null}, -"68": {kind: 1, offset: 68, typ: NTI721420291, name: "rp", len: 0, sons: null}, -"69": {kind: 1, offset: 69, typ: NTI721420291, name: "bdi", len: 0, sons: null}, -"70": {kind: 1, offset: 70, typ: NTI721420291, name: "dbo", len: 0, sons: null}, -"71": {kind: 1, offset: 71, typ: NTI721420291, name: "span", len: 0, sons: null}, -"72": {kind: 1, offset: 72, typ: NTI721420291, name: "br", len: 0, sons: null}, -"73": {kind: 1, offset: 73, typ: NTI721420291, name: "wbr", len: 0, sons: null}, -"74": {kind: 1, offset: 74, typ: NTI721420291, name: "ins", len: 0, sons: null}, -"75": {kind: 1, offset: 75, typ: NTI721420291, name: "del", len: 0, sons: null}, -"76": {kind: 1, offset: 76, typ: NTI721420291, name: "img", len: 0, sons: null}, -"77": {kind: 1, offset: 77, typ: NTI721420291, name: "iframe", len: 0, sons: null}, -"78": {kind: 1, offset: 78, typ: NTI721420291, name: "embed", len: 0, sons: null}, -"79": {kind: 1, offset: 79, typ: NTI721420291, name: "object", len: 0, sons: null}, -"80": {kind: 1, offset: 80, typ: NTI721420291, name: "param", len: 0, sons: null}, -"81": {kind: 1, offset: 81, typ: NTI721420291, name: "video", len: 0, sons: null}, -"82": {kind: 1, offset: 82, typ: NTI721420291, name: "audio", len: 0, sons: null}, -"83": {kind: 1, offset: 83, typ: NTI721420291, name: "source", len: 0, sons: null}, -"84": {kind: 1, offset: 84, typ: NTI721420291, name: "track", len: 0, sons: null}, -"85": {kind: 1, offset: 85, typ: NTI721420291, name: "canvas", len: 0, sons: null}, -"86": {kind: 1, offset: 86, typ: NTI721420291, name: "map", len: 0, sons: null}, -"87": {kind: 1, offset: 87, typ: NTI721420291, name: "area", len: 0, sons: null}, -"88": {kind: 1, offset: 88, typ: NTI721420291, name: "animate", len: 0, sons: null}, -"89": {kind: 1, offset: 89, typ: NTI721420291, name: "animateMotion", len: 0, sons: null}, -"90": {kind: 1, offset: 90, typ: NTI721420291, name: "animateTransform", len: 0, sons: null}, -"91": {kind: 1, offset: 91, typ: NTI721420291, name: "circle", len: 0, sons: null}, -"92": {kind: 1, offset: 92, typ: NTI721420291, name: "clipPath", len: 0, sons: null}, -"93": {kind: 1, offset: 93, typ: NTI721420291, name: "defs", len: 0, sons: null}, -"94": {kind: 1, offset: 94, typ: NTI721420291, name: "desc", len: 0, sons: null}, -"95": {kind: 1, offset: 95, typ: NTI721420291, name: "discard", len: 0, sons: null}, -"96": {kind: 1, offset: 96, typ: NTI721420291, name: "ellipse", len: 0, sons: null}, -"97": {kind: 1, offset: 97, typ: NTI721420291, name: "feBlend", len: 0, sons: null}, -"98": {kind: 1, offset: 98, typ: NTI721420291, name: "feColorMatrix", len: 0, sons: null}, -"99": {kind: 1, offset: 99, typ: NTI721420291, name: "feComponentTransfer", len: 0, sons: null}, -"100": {kind: 1, offset: 100, typ: NTI721420291, name: "feComposite", len: 0, sons: null}, -"101": {kind: 1, offset: 101, typ: NTI721420291, name: "feConvolveMatrix", len: 0, sons: null}, -"102": {kind: 1, offset: 102, typ: NTI721420291, name: "feDiffuseLighting", len: 0, sons: null}, -"103": {kind: 1, offset: 103, typ: NTI721420291, name: "feDisplacementMap", len: 0, sons: null}, -"104": {kind: 1, offset: 104, typ: NTI721420291, name: "feDistantLight", len: 0, sons: null}, -"105": {kind: 1, offset: 105, typ: NTI721420291, name: "feDropShadow", len: 0, sons: null}, -"106": {kind: 1, offset: 106, typ: NTI721420291, name: "feFlood", len: 0, sons: null}, -"107": {kind: 1, offset: 107, typ: NTI721420291, name: "feFuncA", len: 0, sons: null}, -"108": {kind: 1, offset: 108, typ: NTI721420291, name: "feFuncB", len: 0, sons: null}, -"109": {kind: 1, offset: 109, typ: NTI721420291, name: "feFuncG", len: 0, sons: null}, -"110": {kind: 1, offset: 110, typ: NTI721420291, name: "feFuncR", len: 0, sons: null}, -"111": {kind: 1, offset: 111, typ: NTI721420291, name: "feGaussianBlur", len: 0, sons: null}, -"112": {kind: 1, offset: 112, typ: NTI721420291, name: "feImage", len: 0, sons: null}, -"113": {kind: 1, offset: 113, typ: NTI721420291, name: "feMerge", len: 0, sons: null}, -"114": {kind: 1, offset: 114, typ: NTI721420291, name: "feMergeNode", len: 0, sons: null}, -"115": {kind: 1, offset: 115, typ: NTI721420291, name: "feMorphology", len: 0, sons: null}, -"116": {kind: 1, offset: 116, typ: NTI721420291, name: "feOffset", len: 0, sons: null}, -"117": {kind: 1, offset: 117, typ: NTI721420291, name: "fePointLight", len: 0, sons: null}, -"118": {kind: 1, offset: 118, typ: NTI721420291, name: "feSpecularLighting", len: 0, sons: null}, -"119": {kind: 1, offset: 119, typ: NTI721420291, name: "feSpotLight", len: 0, sons: null}, -"120": {kind: 1, offset: 120, typ: NTI721420291, name: "feTile", len: 0, sons: null}, -"121": {kind: 1, offset: 121, typ: NTI721420291, name: "feTurbulence", len: 0, sons: null}, -"122": {kind: 1, offset: 122, typ: NTI721420291, name: "filter", len: 0, sons: null}, -"123": {kind: 1, offset: 123, typ: NTI721420291, name: "foreignObject", len: 0, sons: null}, -"124": {kind: 1, offset: 124, typ: NTI721420291, name: "g", len: 0, sons: null}, -"125": {kind: 1, offset: 125, typ: NTI721420291, name: "image", len: 0, sons: null}, -"126": {kind: 1, offset: 126, typ: NTI721420291, name: "line", len: 0, sons: null}, -"127": {kind: 1, offset: 127, typ: NTI721420291, name: "linearGradient", len: 0, sons: null}, -"128": {kind: 1, offset: 128, typ: NTI721420291, name: "marker", len: 0, sons: null}, -"129": {kind: 1, offset: 129, typ: NTI721420291, name: "mask", len: 0, sons: null}, -"130": {kind: 1, offset: 130, typ: NTI721420291, name: "metadata", len: 0, sons: null}, -"131": {kind: 1, offset: 131, typ: NTI721420291, name: "mpath", len: 0, sons: null}, -"132": {kind: 1, offset: 132, typ: NTI721420291, name: "path", len: 0, sons: null}, -"133": {kind: 1, offset: 133, typ: NTI721420291, name: "pattern", len: 0, sons: null}, -"134": {kind: 1, offset: 134, typ: NTI721420291, name: "polygon", len: 0, sons: null}, -"135": {kind: 1, offset: 135, typ: NTI721420291, name: "polyline", len: 0, sons: null}, -"136": {kind: 1, offset: 136, typ: NTI721420291, name: "radialGradient", len: 0, sons: null}, -"137": {kind: 1, offset: 137, typ: NTI721420291, name: "rect", len: 0, sons: null}, -"138": {kind: 1, offset: 138, typ: NTI721420291, name: "set", len: 0, sons: null}, -"139": {kind: 1, offset: 139, typ: NTI721420291, name: "stop", len: 0, sons: null}, -"140": {kind: 1, offset: 140, typ: NTI721420291, name: "svg", len: 0, sons: null}, -"141": {kind: 1, offset: 141, typ: NTI721420291, name: "switch", len: 0, sons: null}, -"142": {kind: 1, offset: 142, typ: NTI721420291, name: "symbol", len: 0, sons: null}, -"143": {kind: 1, offset: 143, typ: NTI721420291, name: "text", len: 0, sons: null}, -"144": {kind: 1, offset: 144, typ: NTI721420291, name: "textPath", len: 0, sons: null}, -"145": {kind: 1, offset: 145, typ: NTI721420291, name: "tspan", len: 0, sons: null}, -"146": {kind: 1, offset: 146, typ: NTI721420291, name: "unknown", len: 0, sons: null}, -"147": {kind: 1, offset: 147, typ: NTI721420291, name: "use", len: 0, sons: null}, -"148": {kind: 1, offset: 148, typ: NTI721420291, name: "view", len: 0, sons: null}, -"149": {kind: 1, offset: 149, typ: NTI721420291, name: "maction", len: 0, sons: null}, -"150": {kind: 1, offset: 150, typ: NTI721420291, name: "math", len: 0, sons: null}, -"151": {kind: 1, offset: 151, typ: NTI721420291, name: "menclose", len: 0, sons: null}, -"152": {kind: 1, offset: 152, typ: NTI721420291, name: "merror", len: 0, sons: null}, -"153": {kind: 1, offset: 153, typ: NTI721420291, name: "mfenced", len: 0, sons: null}, -"154": {kind: 1, offset: 154, typ: NTI721420291, name: "mfrac", len: 0, sons: null}, -"155": {kind: 1, offset: 155, typ: NTI721420291, name: "mglyph", len: 0, sons: null}, -"156": {kind: 1, offset: 156, typ: NTI721420291, name: "mi", len: 0, sons: null}, -"157": {kind: 1, offset: 157, typ: NTI721420291, name: "mlabeledtr", len: 0, sons: null}, -"158": {kind: 1, offset: 158, typ: NTI721420291, name: "mmultiscripts", len: 0, sons: null}, -"159": {kind: 1, offset: 159, typ: NTI721420291, name: "mn", len: 0, sons: null}, -"160": {kind: 1, offset: 160, typ: NTI721420291, name: "mo", len: 0, sons: null}, -"161": {kind: 1, offset: 161, typ: NTI721420291, name: "mover", len: 0, sons: null}, -"162": {kind: 1, offset: 162, typ: NTI721420291, name: "mpadded", len: 0, sons: null}, -"163": {kind: 1, offset: 163, typ: NTI721420291, name: "mphantom", len: 0, sons: null}, -"164": {kind: 1, offset: 164, typ: NTI721420291, name: "mroot", len: 0, sons: null}, -"165": {kind: 1, offset: 165, typ: NTI721420291, name: "mrow", len: 0, sons: null}, -"166": {kind: 1, offset: 166, typ: NTI721420291, name: "ms", len: 0, sons: null}, -"167": {kind: 1, offset: 167, typ: NTI721420291, name: "mspace", len: 0, sons: null}, -"168": {kind: 1, offset: 168, typ: NTI721420291, name: "msqrt", len: 0, sons: null}, -"169": {kind: 1, offset: 169, typ: NTI721420291, name: "mstyle", len: 0, sons: null}, -"170": {kind: 1, offset: 170, typ: NTI721420291, name: "msub", len: 0, sons: null}, -"171": {kind: 1, offset: 171, typ: NTI721420291, name: "msubsup", len: 0, sons: null}, -"172": {kind: 1, offset: 172, typ: NTI721420291, name: "msup", len: 0, sons: null}, -"173": {kind: 1, offset: 173, typ: NTI721420291, name: "mtable", len: 0, sons: null}, -"174": {kind: 1, offset: 174, typ: NTI721420291, name: "mtd", len: 0, sons: null}, -"175": {kind: 1, offset: 175, typ: NTI721420291, name: "mtext", len: 0, sons: null}, -"176": {kind: 1, offset: 176, typ: NTI721420291, name: "mtr", len: 0, sons: null}, -"177": {kind: 1, offset: 177, typ: NTI721420291, name: "munder", len: 0, sons: null}, -"178": {kind: 1, offset: 178, typ: NTI721420291, name: "munderover", len: 0, sons: null}, -"179": {kind: 1, offset: 179, typ: NTI721420291, name: "semantics", len: 0, sons: null}, -"180": {kind: 1, offset: 180, typ: NTI721420291, name: "table", len: 0, sons: null}, -"181": {kind: 1, offset: 181, typ: NTI721420291, name: "caption", len: 0, sons: null}, -"182": {kind: 1, offset: 182, typ: NTI721420291, name: "colgroup", len: 0, sons: null}, -"183": {kind: 1, offset: 183, typ: NTI721420291, name: "col", len: 0, sons: null}, -"184": {kind: 1, offset: 184, typ: NTI721420291, name: "tbody", len: 0, sons: null}, -"185": {kind: 1, offset: 185, typ: NTI721420291, name: "thead", len: 0, sons: null}, -"186": {kind: 1, offset: 186, typ: NTI721420291, name: "tfoot", len: 0, sons: null}, -"187": {kind: 1, offset: 187, typ: NTI721420291, name: "tr", len: 0, sons: null}, -"188": {kind: 1, offset: 188, typ: NTI721420291, name: "td", len: 0, sons: null}, -"189": {kind: 1, offset: 189, typ: NTI721420291, name: "th", len: 0, sons: null}, -"190": {kind: 1, offset: 190, typ: NTI721420291, name: "form", len: 0, sons: null}, -"191": {kind: 1, offset: 191, typ: NTI721420291, name: "fieldset", len: 0, sons: null}, -"192": {kind: 1, offset: 192, typ: NTI721420291, name: "legend", len: 0, sons: null}, -"193": {kind: 1, offset: 193, typ: NTI721420291, name: "label", len: 0, sons: null}, -"194": {kind: 1, offset: 194, typ: NTI721420291, name: "input", len: 0, sons: null}, -"195": {kind: 1, offset: 195, typ: NTI721420291, name: "button", len: 0, sons: null}, -"196": {kind: 1, offset: 196, typ: NTI721420291, name: "select", len: 0, sons: null}, -"197": {kind: 1, offset: 197, typ: NTI721420291, name: "datalist", len: 0, sons: null}, -"198": {kind: 1, offset: 198, typ: NTI721420291, name: "optgroup", len: 0, sons: null}, -"199": {kind: 1, offset: 199, typ: NTI721420291, name: "option", len: 0, sons: null}, -"200": {kind: 1, offset: 200, typ: NTI721420291, name: "textarea", len: 0, sons: null}, -"201": {kind: 1, offset: 201, typ: NTI721420291, name: "keygen", len: 0, sons: null}, -"202": {kind: 1, offset: 202, typ: NTI721420291, name: "output", len: 0, sons: null}, -"203": {kind: 1, offset: 203, typ: NTI721420291, name: "progress", len: 0, sons: null}, -"204": {kind: 1, offset: 204, typ: NTI721420291, name: "meter", len: 0, sons: null}, -"205": {kind: 1, offset: 205, typ: NTI721420291, name: "details", len: 0, sons: null}, -"206": {kind: 1, offset: 206, typ: NTI721420291, name: "summary", len: 0, sons: null}, -"207": {kind: 1, offset: 207, typ: NTI721420291, name: "command", len: 0, sons: null}, -"208": {kind: 1, offset: 208, typ: NTI721420291, name: "menu", len: 0, sons: null}, -"209": {kind: 1, offset: 209, typ: NTI721420291, name: "bdo", len: 0, sons: null}, -"210": {kind: 1, offset: 210, typ: NTI721420291, name: "dialog", len: 0, sons: null}, -"211": {kind: 1, offset: 211, typ: NTI721420291, name: "slot", len: 0, sons: null}, -"212": {kind: 1, offset: 212, typ: NTI721420291, name: "template", len: 0, sons: null}}}; -NTI721420291.node = NNI721420291; -NTI721420389.base = NTI721420385; -NTI721420390.base = NTI33554450; -var NNI721420296 = {kind: 2, offset: 0, typ: null, name: null, len: 37, sons: {"0": {kind: 1, offset: 0, typ: NTI721420296, name: "onclick", len: 0, sons: null}, -"1": {kind: 1, offset: 1, typ: NTI721420296, name: "oncontextmenu", len: 0, sons: null}, -"2": {kind: 1, offset: 2, typ: NTI721420296, name: "ondblclick", len: 0, sons: null}, -"3": {kind: 1, offset: 3, typ: NTI721420296, name: "onkeyup", len: 0, sons: null}, -"4": {kind: 1, offset: 4, typ: NTI721420296, name: "onkeydown", len: 0, sons: null}, -"5": {kind: 1, offset: 5, typ: NTI721420296, name: "onkeypressed", len: 0, sons: null}, -"6": {kind: 1, offset: 6, typ: NTI721420296, name: "onfocus", len: 0, sons: null}, -"7": {kind: 1, offset: 7, typ: NTI721420296, name: "onblur", len: 0, sons: null}, -"8": {kind: 1, offset: 8, typ: NTI721420296, name: "onchange", len: 0, sons: null}, -"9": {kind: 1, offset: 9, typ: NTI721420296, name: "onscroll", len: 0, sons: null}, -"10": {kind: 1, offset: 10, typ: NTI721420296, name: "onmousedown", len: 0, sons: null}, -"11": {kind: 1, offset: 11, typ: NTI721420296, name: "onmouseenter", len: 0, sons: null}, -"12": {kind: 1, offset: 12, typ: NTI721420296, name: "onmouseleave", len: 0, sons: null}, -"13": {kind: 1, offset: 13, typ: NTI721420296, name: "onmousemove", len: 0, sons: null}, -"14": {kind: 1, offset: 14, typ: NTI721420296, name: "onmouseout", len: 0, sons: null}, -"15": {kind: 1, offset: 15, typ: NTI721420296, name: "onmouseover", len: 0, sons: null}, -"16": {kind: 1, offset: 16, typ: NTI721420296, name: "onmouseup", len: 0, sons: null}, -"17": {kind: 1, offset: 17, typ: NTI721420296, name: "ondrag", len: 0, sons: null}, -"18": {kind: 1, offset: 18, typ: NTI721420296, name: "ondragend", len: 0, sons: null}, -"19": {kind: 1, offset: 19, typ: NTI721420296, name: "ondragenter", len: 0, sons: null}, -"20": {kind: 1, offset: 20, typ: NTI721420296, name: "ondragleave", len: 0, sons: null}, -"21": {kind: 1, offset: 21, typ: NTI721420296, name: "ondragover", len: 0, sons: null}, -"22": {kind: 1, offset: 22, typ: NTI721420296, name: "ondragstart", len: 0, sons: null}, -"23": {kind: 1, offset: 23, typ: NTI721420296, name: "ondrop", len: 0, sons: null}, -"24": {kind: 1, offset: 24, typ: NTI721420296, name: "onsubmit", len: 0, sons: null}, -"25": {kind: 1, offset: 25, typ: NTI721420296, name: "oninput", len: 0, sons: null}, -"26": {kind: 1, offset: 26, typ: NTI721420296, name: "onanimationstart", len: 0, sons: null}, -"27": {kind: 1, offset: 27, typ: NTI721420296, name: "onanimationend", len: 0, sons: null}, -"28": {kind: 1, offset: 28, typ: NTI721420296, name: "onanimationiteration", len: 0, sons: null}, -"29": {kind: 1, offset: 29, typ: NTI721420296, name: "onkeyupenter", len: 0, sons: null}, -"30": {kind: 1, offset: 30, typ: NTI721420296, name: "onkeyuplater", len: 0, sons: null}, -"31": {kind: 1, offset: 31, typ: NTI721420296, name: "onload", len: 0, sons: null}, -"32": {kind: 1, offset: 32, typ: NTI721420296, name: "ontransitioncancel", len: 0, sons: null}, -"33": {kind: 1, offset: 33, typ: NTI721420296, name: "ontransitionend", len: 0, sons: null}, -"34": {kind: 1, offset: 34, typ: NTI721420296, name: "ontransitionrun", len: 0, sons: null}, -"35": {kind: 1, offset: 35, typ: NTI721420296, name: "ontransitionstart", len: 0, sons: null}, -"36": {kind: 1, offset: 36, typ: NTI721420296, name: "onwheel", len: 0, sons: null}}}; -NTI721420296.node = NNI721420296; -var NNI721420387 = {kind: 2, len: 3, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "Field0", len: 0, typ: NTI721420296, name: "Field0", sons: null}, -{kind: 1, offset: "Field1", len: 0, typ: NTI721420397, name: "Field1", sons: null}, -{kind: 1, offset: "Field2", len: 0, typ: NTI721420398, name: "Field2", sons: null}]}; -NTI721420387.node = NNI721420387; -NTI721420383.base = NTI721420387; -var NNI771751972 = {kind: 2, len: 0, offset: 0, typ: null, name: null, sons: []}; -NTI771751972.node = NNI771751972; -NTI771751973.base = NTI771751972; -var NNI721420388 = {kind: 2, len: 11, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "kind", len: 0, typ: NTI721420291, name: "kind", sons: null}, +NTI838860914.node = NNI838860914; +var NNI838860869 = {kind: 2, len: 24, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "onabort", len: 0, typ: NTI838860870, name: "onabort", sons: null}, +{kind: 1, offset: "onblur", len: 0, typ: NTI838860871, name: "onblur", sons: null}, +{kind: 1, offset: "onchange", len: 0, typ: NTI838860872, name: "onchange", sons: null}, +{kind: 1, offset: "onclick", len: 0, typ: NTI838860873, name: "onclick", sons: null}, +{kind: 1, offset: "ondblclick", len: 0, typ: NTI838860874, name: "ondblclick", sons: null}, +{kind: 1, offset: "onerror", len: 0, typ: NTI838860875, name: "onerror", sons: null}, +{kind: 1, offset: "onfocus", len: 0, typ: NTI838860876, name: "onfocus", sons: null}, +{kind: 1, offset: "onkeydown", len: 0, typ: NTI838860877, name: "onkeydown", sons: null}, +{kind: 1, offset: "onkeypress", len: 0, typ: NTI838860878, name: "onkeypress", sons: null}, +{kind: 1, offset: "onkeyup", len: 0, typ: NTI838860879, name: "onkeyup", sons: null}, +{kind: 1, offset: "onload", len: 0, typ: NTI838860880, name: "onload", sons: null}, +{kind: 1, offset: "onmousedown", len: 0, typ: NTI838860881, name: "onmousedown", sons: null}, +{kind: 1, offset: "onmousemove", len: 0, typ: NTI838860882, name: "onmousemove", sons: null}, +{kind: 1, offset: "onmouseout", len: 0, typ: NTI838860883, name: "onmouseout", sons: null}, +{kind: 1, offset: "onmouseover", len: 0, typ: NTI838860884, name: "onmouseover", sons: null}, +{kind: 1, offset: "onmouseup", len: 0, typ: NTI838860885, name: "onmouseup", sons: null}, +{kind: 1, offset: "onreset", len: 0, typ: NTI838860886, name: "onreset", sons: null}, +{kind: 1, offset: "onselect", len: 0, typ: NTI838860887, name: "onselect", sons: null}, +{kind: 1, offset: "onstorage", len: 0, typ: NTI838860888, name: "onstorage", sons: null}, +{kind: 1, offset: "onsubmit", len: 0, typ: NTI838860889, name: "onsubmit", sons: null}, +{kind: 1, offset: "onunload", len: 0, typ: NTI838860890, name: "onunload", sons: null}, +{kind: 1, offset: "onloadstart", len: 0, typ: NTI838860891, name: "onloadstart", sons: null}, +{kind: 1, offset: "onprogress", len: 0, typ: NTI838860892, name: "onprogress", sons: null}, +{kind: 1, offset: "onloadend", len: 0, typ: NTI838860893, name: "onloadend", sons: null}]}; +NTI838860869.node = NNI838860869; +NTI838860869.base = NTI33555173; +NTI838860914.base = NTI838860869; +NTI838860816.base = NTI838860914; +var NNI754974723 = {kind: 2, offset: 0, typ: null, name: null, len: 213, sons: {"0": {kind: 1, offset: 0, typ: NTI754974723, name: "#text", len: 0, sons: null}, +"1": {kind: 1, offset: 1, typ: NTI754974723, name: "#int", len: 0, sons: null}, +"2": {kind: 1, offset: 2, typ: NTI754974723, name: "#bool", len: 0, sons: null}, +"3": {kind: 1, offset: 3, typ: NTI754974723, name: "#vthunk", len: 0, sons: null}, +"4": {kind: 1, offset: 4, typ: NTI754974723, name: "#dthunk", len: 0, sons: null}, +"5": {kind: 1, offset: 5, typ: NTI754974723, name: "#component", len: 0, sons: null}, +"6": {kind: 1, offset: 6, typ: NTI754974723, name: "#verbatim", len: 0, sons: null}, +"7": {kind: 1, offset: 7, typ: NTI754974723, name: "html", len: 0, sons: null}, +"8": {kind: 1, offset: 8, typ: NTI754974723, name: "head", len: 0, sons: null}, +"9": {kind: 1, offset: 9, typ: NTI754974723, name: "title", len: 0, sons: null}, +"10": {kind: 1, offset: 10, typ: NTI754974723, name: "base", len: 0, sons: null}, +"11": {kind: 1, offset: 11, typ: NTI754974723, name: "link", len: 0, sons: null}, +"12": {kind: 1, offset: 12, typ: NTI754974723, name: "meta", len: 0, sons: null}, +"13": {kind: 1, offset: 13, typ: NTI754974723, name: "style", len: 0, sons: null}, +"14": {kind: 1, offset: 14, typ: NTI754974723, name: "script", len: 0, sons: null}, +"15": {kind: 1, offset: 15, typ: NTI754974723, name: "noscript", len: 0, sons: null}, +"16": {kind: 1, offset: 16, typ: NTI754974723, name: "body", len: 0, sons: null}, +"17": {kind: 1, offset: 17, typ: NTI754974723, name: "section", len: 0, sons: null}, +"18": {kind: 1, offset: 18, typ: NTI754974723, name: "nav", len: 0, sons: null}, +"19": {kind: 1, offset: 19, typ: NTI754974723, name: "article", len: 0, sons: null}, +"20": {kind: 1, offset: 20, typ: NTI754974723, name: "aside", len: 0, sons: null}, +"21": {kind: 1, offset: 21, typ: NTI754974723, name: "h1", len: 0, sons: null}, +"22": {kind: 1, offset: 22, typ: NTI754974723, name: "h2", len: 0, sons: null}, +"23": {kind: 1, offset: 23, typ: NTI754974723, name: "h3", len: 0, sons: null}, +"24": {kind: 1, offset: 24, typ: NTI754974723, name: "h4", len: 0, sons: null}, +"25": {kind: 1, offset: 25, typ: NTI754974723, name: "h5", len: 0, sons: null}, +"26": {kind: 1, offset: 26, typ: NTI754974723, name: "h6", len: 0, sons: null}, +"27": {kind: 1, offset: 27, typ: NTI754974723, name: "hgroup", len: 0, sons: null}, +"28": {kind: 1, offset: 28, typ: NTI754974723, name: "header", len: 0, sons: null}, +"29": {kind: 1, offset: 29, typ: NTI754974723, name: "footer", len: 0, sons: null}, +"30": {kind: 1, offset: 30, typ: NTI754974723, name: "address", len: 0, sons: null}, +"31": {kind: 1, offset: 31, typ: NTI754974723, name: "main", len: 0, sons: null}, +"32": {kind: 1, offset: 32, typ: NTI754974723, name: "p", len: 0, sons: null}, +"33": {kind: 1, offset: 33, typ: NTI754974723, name: "hr", len: 0, sons: null}, +"34": {kind: 1, offset: 34, typ: NTI754974723, name: "pre", len: 0, sons: null}, +"35": {kind: 1, offset: 35, typ: NTI754974723, name: "blockquote", len: 0, sons: null}, +"36": {kind: 1, offset: 36, typ: NTI754974723, name: "ol", len: 0, sons: null}, +"37": {kind: 1, offset: 37, typ: NTI754974723, name: "ul", len: 0, sons: null}, +"38": {kind: 1, offset: 38, typ: NTI754974723, name: "li", len: 0, sons: null}, +"39": {kind: 1, offset: 39, typ: NTI754974723, name: "dl", len: 0, sons: null}, +"40": {kind: 1, offset: 40, typ: NTI754974723, name: "dt", len: 0, sons: null}, +"41": {kind: 1, offset: 41, typ: NTI754974723, name: "dd", len: 0, sons: null}, +"42": {kind: 1, offset: 42, typ: NTI754974723, name: "figure", len: 0, sons: null}, +"43": {kind: 1, offset: 43, typ: NTI754974723, name: "figcaption", len: 0, sons: null}, +"44": {kind: 1, offset: 44, typ: NTI754974723, name: "div", len: 0, sons: null}, +"45": {kind: 1, offset: 45, typ: NTI754974723, name: "a", len: 0, sons: null}, +"46": {kind: 1, offset: 46, typ: NTI754974723, name: "em", len: 0, sons: null}, +"47": {kind: 1, offset: 47, typ: NTI754974723, name: "strong", len: 0, sons: null}, +"48": {kind: 1, offset: 48, typ: NTI754974723, name: "small", len: 0, sons: null}, +"49": {kind: 1, offset: 49, typ: NTI754974723, name: "s", len: 0, sons: null}, +"50": {kind: 1, offset: 50, typ: NTI754974723, name: "cite", len: 0, sons: null}, +"51": {kind: 1, offset: 51, typ: NTI754974723, name: "quote", len: 0, sons: null}, +"52": {kind: 1, offset: 52, typ: NTI754974723, name: "dfn", len: 0, sons: null}, +"53": {kind: 1, offset: 53, typ: NTI754974723, name: "abbr", len: 0, sons: null}, +"54": {kind: 1, offset: 54, typ: NTI754974723, name: "data", len: 0, sons: null}, +"55": {kind: 1, offset: 55, typ: NTI754974723, name: "time", len: 0, sons: null}, +"56": {kind: 1, offset: 56, typ: NTI754974723, name: "code", len: 0, sons: null}, +"57": {kind: 1, offset: 57, typ: NTI754974723, name: "var", len: 0, sons: null}, +"58": {kind: 1, offset: 58, typ: NTI754974723, name: "samp", len: 0, sons: null}, +"59": {kind: 1, offset: 59, typ: NTI754974723, name: "kbd", len: 0, sons: null}, +"60": {kind: 1, offset: 60, typ: NTI754974723, name: "sub", len: 0, sons: null}, +"61": {kind: 1, offset: 61, typ: NTI754974723, name: "sup", len: 0, sons: null}, +"62": {kind: 1, offset: 62, typ: NTI754974723, name: "i", len: 0, sons: null}, +"63": {kind: 1, offset: 63, typ: NTI754974723, name: "b", len: 0, sons: null}, +"64": {kind: 1, offset: 64, typ: NTI754974723, name: "u", len: 0, sons: null}, +"65": {kind: 1, offset: 65, typ: NTI754974723, name: "mark", len: 0, sons: null}, +"66": {kind: 1, offset: 66, typ: NTI754974723, name: "ruby", len: 0, sons: null}, +"67": {kind: 1, offset: 67, typ: NTI754974723, name: "rt", len: 0, sons: null}, +"68": {kind: 1, offset: 68, typ: NTI754974723, name: "rp", len: 0, sons: null}, +"69": {kind: 1, offset: 69, typ: NTI754974723, name: "bdi", len: 0, sons: null}, +"70": {kind: 1, offset: 70, typ: NTI754974723, name: "dbo", len: 0, sons: null}, +"71": {kind: 1, offset: 71, typ: NTI754974723, name: "span", len: 0, sons: null}, +"72": {kind: 1, offset: 72, typ: NTI754974723, name: "br", len: 0, sons: null}, +"73": {kind: 1, offset: 73, typ: NTI754974723, name: "wbr", len: 0, sons: null}, +"74": {kind: 1, offset: 74, typ: NTI754974723, name: "ins", len: 0, sons: null}, +"75": {kind: 1, offset: 75, typ: NTI754974723, name: "del", len: 0, sons: null}, +"76": {kind: 1, offset: 76, typ: NTI754974723, name: "img", len: 0, sons: null}, +"77": {kind: 1, offset: 77, typ: NTI754974723, name: "iframe", len: 0, sons: null}, +"78": {kind: 1, offset: 78, typ: NTI754974723, name: "embed", len: 0, sons: null}, +"79": {kind: 1, offset: 79, typ: NTI754974723, name: "object", len: 0, sons: null}, +"80": {kind: 1, offset: 80, typ: NTI754974723, name: "param", len: 0, sons: null}, +"81": {kind: 1, offset: 81, typ: NTI754974723, name: "video", len: 0, sons: null}, +"82": {kind: 1, offset: 82, typ: NTI754974723, name: "audio", len: 0, sons: null}, +"83": {kind: 1, offset: 83, typ: NTI754974723, name: "source", len: 0, sons: null}, +"84": {kind: 1, offset: 84, typ: NTI754974723, name: "track", len: 0, sons: null}, +"85": {kind: 1, offset: 85, typ: NTI754974723, name: "canvas", len: 0, sons: null}, +"86": {kind: 1, offset: 86, typ: NTI754974723, name: "map", len: 0, sons: null}, +"87": {kind: 1, offset: 87, typ: NTI754974723, name: "area", len: 0, sons: null}, +"88": {kind: 1, offset: 88, typ: NTI754974723, name: "animate", len: 0, sons: null}, +"89": {kind: 1, offset: 89, typ: NTI754974723, name: "animateMotion", len: 0, sons: null}, +"90": {kind: 1, offset: 90, typ: NTI754974723, name: "animateTransform", len: 0, sons: null}, +"91": {kind: 1, offset: 91, typ: NTI754974723, name: "circle", len: 0, sons: null}, +"92": {kind: 1, offset: 92, typ: NTI754974723, name: "clipPath", len: 0, sons: null}, +"93": {kind: 1, offset: 93, typ: NTI754974723, name: "defs", len: 0, sons: null}, +"94": {kind: 1, offset: 94, typ: NTI754974723, name: "desc", len: 0, sons: null}, +"95": {kind: 1, offset: 95, typ: NTI754974723, name: "discard", len: 0, sons: null}, +"96": {kind: 1, offset: 96, typ: NTI754974723, name: "ellipse", len: 0, sons: null}, +"97": {kind: 1, offset: 97, typ: NTI754974723, name: "feBlend", len: 0, sons: null}, +"98": {kind: 1, offset: 98, typ: NTI754974723, name: "feColorMatrix", len: 0, sons: null}, +"99": {kind: 1, offset: 99, typ: NTI754974723, name: "feComponentTransfer", len: 0, sons: null}, +"100": {kind: 1, offset: 100, typ: NTI754974723, name: "feComposite", len: 0, sons: null}, +"101": {kind: 1, offset: 101, typ: NTI754974723, name: "feConvolveMatrix", len: 0, sons: null}, +"102": {kind: 1, offset: 102, typ: NTI754974723, name: "feDiffuseLighting", len: 0, sons: null}, +"103": {kind: 1, offset: 103, typ: NTI754974723, name: "feDisplacementMap", len: 0, sons: null}, +"104": {kind: 1, offset: 104, typ: NTI754974723, name: "feDistantLight", len: 0, sons: null}, +"105": {kind: 1, offset: 105, typ: NTI754974723, name: "feDropShadow", len: 0, sons: null}, +"106": {kind: 1, offset: 106, typ: NTI754974723, name: "feFlood", len: 0, sons: null}, +"107": {kind: 1, offset: 107, typ: NTI754974723, name: "feFuncA", len: 0, sons: null}, +"108": {kind: 1, offset: 108, typ: NTI754974723, name: "feFuncB", len: 0, sons: null}, +"109": {kind: 1, offset: 109, typ: NTI754974723, name: "feFuncG", len: 0, sons: null}, +"110": {kind: 1, offset: 110, typ: NTI754974723, name: "feFuncR", len: 0, sons: null}, +"111": {kind: 1, offset: 111, typ: NTI754974723, name: "feGaussianBlur", len: 0, sons: null}, +"112": {kind: 1, offset: 112, typ: NTI754974723, name: "feImage", len: 0, sons: null}, +"113": {kind: 1, offset: 113, typ: NTI754974723, name: "feMerge", len: 0, sons: null}, +"114": {kind: 1, offset: 114, typ: NTI754974723, name: "feMergeNode", len: 0, sons: null}, +"115": {kind: 1, offset: 115, typ: NTI754974723, name: "feMorphology", len: 0, sons: null}, +"116": {kind: 1, offset: 116, typ: NTI754974723, name: "feOffset", len: 0, sons: null}, +"117": {kind: 1, offset: 117, typ: NTI754974723, name: "fePointLight", len: 0, sons: null}, +"118": {kind: 1, offset: 118, typ: NTI754974723, name: "feSpecularLighting", len: 0, sons: null}, +"119": {kind: 1, offset: 119, typ: NTI754974723, name: "feSpotLight", len: 0, sons: null}, +"120": {kind: 1, offset: 120, typ: NTI754974723, name: "feTile", len: 0, sons: null}, +"121": {kind: 1, offset: 121, typ: NTI754974723, name: "feTurbulence", len: 0, sons: null}, +"122": {kind: 1, offset: 122, typ: NTI754974723, name: "filter", len: 0, sons: null}, +"123": {kind: 1, offset: 123, typ: NTI754974723, name: "foreignObject", len: 0, sons: null}, +"124": {kind: 1, offset: 124, typ: NTI754974723, name: "g", len: 0, sons: null}, +"125": {kind: 1, offset: 125, typ: NTI754974723, name: "image", len: 0, sons: null}, +"126": {kind: 1, offset: 126, typ: NTI754974723, name: "line", len: 0, sons: null}, +"127": {kind: 1, offset: 127, typ: NTI754974723, name: "linearGradient", len: 0, sons: null}, +"128": {kind: 1, offset: 128, typ: NTI754974723, name: "marker", len: 0, sons: null}, +"129": {kind: 1, offset: 129, typ: NTI754974723, name: "mask", len: 0, sons: null}, +"130": {kind: 1, offset: 130, typ: NTI754974723, name: "metadata", len: 0, sons: null}, +"131": {kind: 1, offset: 131, typ: NTI754974723, name: "mpath", len: 0, sons: null}, +"132": {kind: 1, offset: 132, typ: NTI754974723, name: "path", len: 0, sons: null}, +"133": {kind: 1, offset: 133, typ: NTI754974723, name: "pattern", len: 0, sons: null}, +"134": {kind: 1, offset: 134, typ: NTI754974723, name: "polygon", len: 0, sons: null}, +"135": {kind: 1, offset: 135, typ: NTI754974723, name: "polyline", len: 0, sons: null}, +"136": {kind: 1, offset: 136, typ: NTI754974723, name: "radialGradient", len: 0, sons: null}, +"137": {kind: 1, offset: 137, typ: NTI754974723, name: "rect", len: 0, sons: null}, +"138": {kind: 1, offset: 138, typ: NTI754974723, name: "set", len: 0, sons: null}, +"139": {kind: 1, offset: 139, typ: NTI754974723, name: "stop", len: 0, sons: null}, +"140": {kind: 1, offset: 140, typ: NTI754974723, name: "svg", len: 0, sons: null}, +"141": {kind: 1, offset: 141, typ: NTI754974723, name: "switch", len: 0, sons: null}, +"142": {kind: 1, offset: 142, typ: NTI754974723, name: "symbol", len: 0, sons: null}, +"143": {kind: 1, offset: 143, typ: NTI754974723, name: "text", len: 0, sons: null}, +"144": {kind: 1, offset: 144, typ: NTI754974723, name: "textPath", len: 0, sons: null}, +"145": {kind: 1, offset: 145, typ: NTI754974723, name: "tspan", len: 0, sons: null}, +"146": {kind: 1, offset: 146, typ: NTI754974723, name: "unknown", len: 0, sons: null}, +"147": {kind: 1, offset: 147, typ: NTI754974723, name: "use", len: 0, sons: null}, +"148": {kind: 1, offset: 148, typ: NTI754974723, name: "view", len: 0, sons: null}, +"149": {kind: 1, offset: 149, typ: NTI754974723, name: "maction", len: 0, sons: null}, +"150": {kind: 1, offset: 150, typ: NTI754974723, name: "math", len: 0, sons: null}, +"151": {kind: 1, offset: 151, typ: NTI754974723, name: "menclose", len: 0, sons: null}, +"152": {kind: 1, offset: 152, typ: NTI754974723, name: "merror", len: 0, sons: null}, +"153": {kind: 1, offset: 153, typ: NTI754974723, name: "mfenced", len: 0, sons: null}, +"154": {kind: 1, offset: 154, typ: NTI754974723, name: "mfrac", len: 0, sons: null}, +"155": {kind: 1, offset: 155, typ: NTI754974723, name: "mglyph", len: 0, sons: null}, +"156": {kind: 1, offset: 156, typ: NTI754974723, name: "mi", len: 0, sons: null}, +"157": {kind: 1, offset: 157, typ: NTI754974723, name: "mlabeledtr", len: 0, sons: null}, +"158": {kind: 1, offset: 158, typ: NTI754974723, name: "mmultiscripts", len: 0, sons: null}, +"159": {kind: 1, offset: 159, typ: NTI754974723, name: "mn", len: 0, sons: null}, +"160": {kind: 1, offset: 160, typ: NTI754974723, name: "mo", len: 0, sons: null}, +"161": {kind: 1, offset: 161, typ: NTI754974723, name: "mover", len: 0, sons: null}, +"162": {kind: 1, offset: 162, typ: NTI754974723, name: "mpadded", len: 0, sons: null}, +"163": {kind: 1, offset: 163, typ: NTI754974723, name: "mphantom", len: 0, sons: null}, +"164": {kind: 1, offset: 164, typ: NTI754974723, name: "mroot", len: 0, sons: null}, +"165": {kind: 1, offset: 165, typ: NTI754974723, name: "mrow", len: 0, sons: null}, +"166": {kind: 1, offset: 166, typ: NTI754974723, name: "ms", len: 0, sons: null}, +"167": {kind: 1, offset: 167, typ: NTI754974723, name: "mspace", len: 0, sons: null}, +"168": {kind: 1, offset: 168, typ: NTI754974723, name: "msqrt", len: 0, sons: null}, +"169": {kind: 1, offset: 169, typ: NTI754974723, name: "mstyle", len: 0, sons: null}, +"170": {kind: 1, offset: 170, typ: NTI754974723, name: "msub", len: 0, sons: null}, +"171": {kind: 1, offset: 171, typ: NTI754974723, name: "msubsup", len: 0, sons: null}, +"172": {kind: 1, offset: 172, typ: NTI754974723, name: "msup", len: 0, sons: null}, +"173": {kind: 1, offset: 173, typ: NTI754974723, name: "mtable", len: 0, sons: null}, +"174": {kind: 1, offset: 174, typ: NTI754974723, name: "mtd", len: 0, sons: null}, +"175": {kind: 1, offset: 175, typ: NTI754974723, name: "mtext", len: 0, sons: null}, +"176": {kind: 1, offset: 176, typ: NTI754974723, name: "mtr", len: 0, sons: null}, +"177": {kind: 1, offset: 177, typ: NTI754974723, name: "munder", len: 0, sons: null}, +"178": {kind: 1, offset: 178, typ: NTI754974723, name: "munderover", len: 0, sons: null}, +"179": {kind: 1, offset: 179, typ: NTI754974723, name: "semantics", len: 0, sons: null}, +"180": {kind: 1, offset: 180, typ: NTI754974723, name: "table", len: 0, sons: null}, +"181": {kind: 1, offset: 181, typ: NTI754974723, name: "caption", len: 0, sons: null}, +"182": {kind: 1, offset: 182, typ: NTI754974723, name: "colgroup", len: 0, sons: null}, +"183": {kind: 1, offset: 183, typ: NTI754974723, name: "col", len: 0, sons: null}, +"184": {kind: 1, offset: 184, typ: NTI754974723, name: "tbody", len: 0, sons: null}, +"185": {kind: 1, offset: 185, typ: NTI754974723, name: "thead", len: 0, sons: null}, +"186": {kind: 1, offset: 186, typ: NTI754974723, name: "tfoot", len: 0, sons: null}, +"187": {kind: 1, offset: 187, typ: NTI754974723, name: "tr", len: 0, sons: null}, +"188": {kind: 1, offset: 188, typ: NTI754974723, name: "td", len: 0, sons: null}, +"189": {kind: 1, offset: 189, typ: NTI754974723, name: "th", len: 0, sons: null}, +"190": {kind: 1, offset: 190, typ: NTI754974723, name: "form", len: 0, sons: null}, +"191": {kind: 1, offset: 191, typ: NTI754974723, name: "fieldset", len: 0, sons: null}, +"192": {kind: 1, offset: 192, typ: NTI754974723, name: "legend", len: 0, sons: null}, +"193": {kind: 1, offset: 193, typ: NTI754974723, name: "label", len: 0, sons: null}, +"194": {kind: 1, offset: 194, typ: NTI754974723, name: "input", len: 0, sons: null}, +"195": {kind: 1, offset: 195, typ: NTI754974723, name: "button", len: 0, sons: null}, +"196": {kind: 1, offset: 196, typ: NTI754974723, name: "select", len: 0, sons: null}, +"197": {kind: 1, offset: 197, typ: NTI754974723, name: "datalist", len: 0, sons: null}, +"198": {kind: 1, offset: 198, typ: NTI754974723, name: "optgroup", len: 0, sons: null}, +"199": {kind: 1, offset: 199, typ: NTI754974723, name: "option", len: 0, sons: null}, +"200": {kind: 1, offset: 200, typ: NTI754974723, name: "textarea", len: 0, sons: null}, +"201": {kind: 1, offset: 201, typ: NTI754974723, name: "keygen", len: 0, sons: null}, +"202": {kind: 1, offset: 202, typ: NTI754974723, name: "output", len: 0, sons: null}, +"203": {kind: 1, offset: 203, typ: NTI754974723, name: "progress", len: 0, sons: null}, +"204": {kind: 1, offset: 204, typ: NTI754974723, name: "meter", len: 0, sons: null}, +"205": {kind: 1, offset: 205, typ: NTI754974723, name: "details", len: 0, sons: null}, +"206": {kind: 1, offset: 206, typ: NTI754974723, name: "summary", len: 0, sons: null}, +"207": {kind: 1, offset: 207, typ: NTI754974723, name: "command", len: 0, sons: null}, +"208": {kind: 1, offset: 208, typ: NTI754974723, name: "menu", len: 0, sons: null}, +"209": {kind: 1, offset: 209, typ: NTI754974723, name: "bdo", len: 0, sons: null}, +"210": {kind: 1, offset: 210, typ: NTI754974723, name: "dialog", len: 0, sons: null}, +"211": {kind: 1, offset: 211, typ: NTI754974723, name: "slot", len: 0, sons: null}, +"212": {kind: 1, offset: 212, typ: NTI754974723, name: "template", len: 0, sons: null}}}; +NTI754974723.node = NNI754974723; +NTI754974821.base = NTI754974817; +NTI754974822.base = NTI33554450; +var NNI754974728 = {kind: 2, offset: 0, typ: null, name: null, len: 37, sons: {"0": {kind: 1, offset: 0, typ: NTI754974728, name: "onclick", len: 0, sons: null}, +"1": {kind: 1, offset: 1, typ: NTI754974728, name: "oncontextmenu", len: 0, sons: null}, +"2": {kind: 1, offset: 2, typ: NTI754974728, name: "ondblclick", len: 0, sons: null}, +"3": {kind: 1, offset: 3, typ: NTI754974728, name: "onkeyup", len: 0, sons: null}, +"4": {kind: 1, offset: 4, typ: NTI754974728, name: "onkeydown", len: 0, sons: null}, +"5": {kind: 1, offset: 5, typ: NTI754974728, name: "onkeypressed", len: 0, sons: null}, +"6": {kind: 1, offset: 6, typ: NTI754974728, name: "onfocus", len: 0, sons: null}, +"7": {kind: 1, offset: 7, typ: NTI754974728, name: "onblur", len: 0, sons: null}, +"8": {kind: 1, offset: 8, typ: NTI754974728, name: "onchange", len: 0, sons: null}, +"9": {kind: 1, offset: 9, typ: NTI754974728, name: "onscroll", len: 0, sons: null}, +"10": {kind: 1, offset: 10, typ: NTI754974728, name: "onmousedown", len: 0, sons: null}, +"11": {kind: 1, offset: 11, typ: NTI754974728, name: "onmouseenter", len: 0, sons: null}, +"12": {kind: 1, offset: 12, typ: NTI754974728, name: "onmouseleave", len: 0, sons: null}, +"13": {kind: 1, offset: 13, typ: NTI754974728, name: "onmousemove", len: 0, sons: null}, +"14": {kind: 1, offset: 14, typ: NTI754974728, name: "onmouseout", len: 0, sons: null}, +"15": {kind: 1, offset: 15, typ: NTI754974728, name: "onmouseover", len: 0, sons: null}, +"16": {kind: 1, offset: 16, typ: NTI754974728, name: "onmouseup", len: 0, sons: null}, +"17": {kind: 1, offset: 17, typ: NTI754974728, name: "ondrag", len: 0, sons: null}, +"18": {kind: 1, offset: 18, typ: NTI754974728, name: "ondragend", len: 0, sons: null}, +"19": {kind: 1, offset: 19, typ: NTI754974728, name: "ondragenter", len: 0, sons: null}, +"20": {kind: 1, offset: 20, typ: NTI754974728, name: "ondragleave", len: 0, sons: null}, +"21": {kind: 1, offset: 21, typ: NTI754974728, name: "ondragover", len: 0, sons: null}, +"22": {kind: 1, offset: 22, typ: NTI754974728, name: "ondragstart", len: 0, sons: null}, +"23": {kind: 1, offset: 23, typ: NTI754974728, name: "ondrop", len: 0, sons: null}, +"24": {kind: 1, offset: 24, typ: NTI754974728, name: "onsubmit", len: 0, sons: null}, +"25": {kind: 1, offset: 25, typ: NTI754974728, name: "oninput", len: 0, sons: null}, +"26": {kind: 1, offset: 26, typ: NTI754974728, name: "onanimationstart", len: 0, sons: null}, +"27": {kind: 1, offset: 27, typ: NTI754974728, name: "onanimationend", len: 0, sons: null}, +"28": {kind: 1, offset: 28, typ: NTI754974728, name: "onanimationiteration", len: 0, sons: null}, +"29": {kind: 1, offset: 29, typ: NTI754974728, name: "onkeyupenter", len: 0, sons: null}, +"30": {kind: 1, offset: 30, typ: NTI754974728, name: "onkeyuplater", len: 0, sons: null}, +"31": {kind: 1, offset: 31, typ: NTI754974728, name: "onload", len: 0, sons: null}, +"32": {kind: 1, offset: 32, typ: NTI754974728, name: "ontransitioncancel", len: 0, sons: null}, +"33": {kind: 1, offset: 33, typ: NTI754974728, name: "ontransitionend", len: 0, sons: null}, +"34": {kind: 1, offset: 34, typ: NTI754974728, name: "ontransitionrun", len: 0, sons: null}, +"35": {kind: 1, offset: 35, typ: NTI754974728, name: "ontransitionstart", len: 0, sons: null}, +"36": {kind: 1, offset: 36, typ: NTI754974728, name: "onwheel", len: 0, sons: null}}}; +NTI754974728.node = NNI754974728; +var NNI754974819 = {kind: 2, len: 3, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "Field0", len: 0, typ: NTI754974728, name: "Field0", sons: null}, +{kind: 1, offset: "Field1", len: 0, typ: NTI754974829, name: "Field1", sons: null}, +{kind: 1, offset: "Field2", len: 0, typ: NTI754974830, name: "Field2", sons: null}]}; +NTI754974819.node = NNI754974819; +NTI754974815.base = NTI754974819; +var NNI805306404 = {kind: 2, len: 0, offset: 0, typ: null, name: null, sons: []}; +NTI805306404.node = NNI805306404; +NTI805306405.base = NTI805306404; +var NNI754974820 = {kind: 2, len: 11, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "kind", len: 0, typ: NTI754974723, name: "kind", sons: null}, {kind: 1, offset: "index", len: 0, typ: NTI33554435, name: "index", sons: null}, {kind: 1, offset: "id", len: 0, typ: NTI33554450, name: "id", sons: null}, {kind: 1, offset: "class", len: 0, typ: NTI33554450, name: "class", sons: null}, {kind: 1, offset: "text", len: 0, typ: NTI33554450, name: "text", sons: null}, -{kind: 1, offset: "kids", len: 0, typ: NTI721420389, name: "kids", sons: null}, -{kind: 1, offset: "attrs", len: 0, typ: NTI721420390, name: "attrs", sons: null}, -{kind: 1, offset: "events", len: 0, typ: NTI721420383, name: "events", sons: null}, -{kind: 1, offset: "style", len: 0, typ: NTI771751973, name: "style", sons: null}, +{kind: 1, offset: "kids", len: 0, typ: NTI754974821, name: "kids", sons: null}, +{kind: 1, offset: "attrs", len: 0, typ: NTI754974822, name: "attrs", sons: null}, +{kind: 1, offset: "events", len: 0, typ: NTI754974815, name: "events", sons: null}, +{kind: 1, offset: "style", len: 0, typ: NTI805306405, name: "style", sons: null}, {kind: 1, offset: "styleVersion", len: 0, typ: NTI33554435, name: "styleVersion", sons: null}, -{kind: 1, offset: "dom", len: 0, typ: NTI805306384, name: "dom", sons: null}]}; -NTI721420388.node = NNI721420388; -NTI721420388.base = NTI33555173; -NTI721420385.base = NTI721420388; -var NNI687865864 = {kind: 2, len: 5, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "k", len: 0, typ: NTI687865863, name: "k", sons: null}, -{kind: 1, offset: "parent", len: 0, typ: NTI805306384, name: "parent", sons: null}, -{kind: 1, offset: "current", len: 0, typ: NTI805306384, name: "current", sons: null}, -{kind: 1, offset: "newNode", len: 0, typ: NTI721420385, name: "newNode", sons: null}, -{kind: 1, offset: "oldNode", len: 0, typ: NTI721420385, name: "oldNode", sons: null}]}; -NTI687865864.node = NNI687865864; -var NNI687865865 = {kind: 2, len: 3, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "parent", len: 0, typ: NTI721420385, name: "parent", sons: null}, -{kind: 1, offset: "newChild", len: 0, typ: NTI721420385, name: "newChild", sons: null}, +{kind: 1, offset: "dom", len: 0, typ: NTI838860816, name: "dom", sons: null}]}; +NTI754974820.node = NNI754974820; +NTI754974820.base = NTI33555173; +NTI754974817.base = NTI754974820; +var NNI721420296 = {kind: 2, len: 5, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "k", len: 0, typ: NTI721420295, name: "k", sons: null}, +{kind: 1, offset: "parent", len: 0, typ: NTI838860816, name: "parent", sons: null}, +{kind: 1, offset: "current", len: 0, typ: NTI838860816, name: "current", sons: null}, +{kind: 1, offset: "newNode", len: 0, typ: NTI754974817, name: "newNode", sons: null}, +{kind: 1, offset: "oldNode", len: 0, typ: NTI754974817, name: "oldNode", sons: null}]}; +NTI721420296.node = NNI721420296; +var NNI721420297 = {kind: 2, len: 3, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "parent", len: 0, typ: NTI754974817, name: "parent", sons: null}, +{kind: 1, offset: "newChild", len: 0, typ: NTI754974817, name: "newChild", sons: null}, {kind: 1, offset: "pos", len: 0, typ: NTI33554435, name: "pos", sons: null}]}; -NTI687865865.node = NNI687865865; -var NNI1224736796 = {kind: 2, len: 4, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "nextIndex", len: 0, typ: NTI33554435, name: "nextIndex", sons: null}, +NTI721420297.node = NNI721420297; +var NNI1476395036 = {kind: 2, len: 4, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "nextIndex", len: 0, typ: NTI33554435, name: "nextIndex", sons: null}, {kind: 1, offset: "nextGroup", len: 0, typ: NTI33554435, name: "nextGroup", sons: null}, {kind: 1, offset: "randSeed", len: 0, typ: NTI33554435, name: "randSeed", sons: null}, {kind: 1, offset: "turnNumber", len: 0, typ: NTI33554435, name: "turnNumber", sons: null}]}; -NTI1224736796.node = NNI1224736796; -NTI1224736857.base = NTI1224736794; -NTI1224736859.base = NTI1224736998; -NTI1224736860.base = NTI1224736859; -var NNI1224736787 = {kind: 2, len: 4, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "Field0", len: 0, typ: NTI33554449, name: "Field0", sons: null}, -{kind: 1, offset: "Field1", len: 0, typ: NTI1224737006, name: "Field1", sons: null}, -{kind: 1, offset: "Field2", len: 0, typ: NTI1224736998, name: "Field2", sons: null}, -{kind: 1, offset: "Field3", len: 0, typ: NTI1224737005, name: "Field3", sons: null}]}; -NTI1224736787.node = NNI1224736787; -NTI1224736889.base = NTI1224736787; -NTI1224736793.base = NTI1224736839; -var NNI1224736797 = {kind: 2, len: 9, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "abilityTakes", len: 0, typ: NTI33554435, name: "abilityTakes", sons: null}, +NTI1476395036.node = NNI1476395036; +NTI1476395097.base = NTI1476395034; +NTI1476395099.base = NTI1476395238; +NTI1476395100.base = NTI1476395099; +var NNI1476395027 = {kind: 2, len: 4, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "Field0", len: 0, typ: NTI33554449, name: "Field0", sons: null}, +{kind: 1, offset: "Field1", len: 0, typ: NTI1476395246, name: "Field1", sons: null}, +{kind: 1, offset: "Field2", len: 0, typ: NTI1476395238, name: "Field2", sons: null}, +{kind: 1, offset: "Field3", len: 0, typ: NTI1476395245, name: "Field3", sons: null}]}; +NTI1476395027.node = NNI1476395027; +NTI1476395129.base = NTI1476395027; +NTI1476395033.base = NTI1476395079; +var NNI1476395037 = {kind: 2, len: 9, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "abilityTakes", len: 0, typ: NTI33554435, name: "abilityTakes", sons: null}, {kind: 1, offset: "hasCastled", len: 0, typ: NTI33554466, name: "hasCastled", sons: null}, -{kind: 1, offset: "dna", len: 0, typ: NTI1224736857, name: "dna", sons: null}, -{kind: 1, offset: "transforms", len: 0, typ: NTI1224736860, name: "transforms", sons: null}, -{kind: 1, offset: "wallet", len: 0, typ: NTI1224736866, name: "wallet", sons: null}, -{kind: 1, offset: "buys", len: 0, typ: NTI1224736889, name: "buys", sons: null}, +{kind: 1, offset: "dna", len: 0, typ: NTI1476395097, name: "dna", sons: null}, +{kind: 1, offset: "transforms", len: 0, typ: NTI1476395100, name: "transforms", sons: null}, +{kind: 1, offset: "wallet", len: 0, typ: NTI1476395106, name: "wallet", sons: null}, +{kind: 1, offset: "buys", len: 0, typ: NTI1476395129, name: "buys", sons: null}, {kind: 1, offset: "piecesSold", len: 0, typ: NTI33554435, name: "piecesSold", sons: null}, {kind: 1, offset: "piecesSoldThisTurn", len: 0, typ: NTI33554435, name: "piecesSoldThisTurn", sons: null}, -{kind: 1, offset: "glass", len: 0, typ: NTI1224736793, name: "glass", sons: null}]}; -NTI1224736797.node = NNI1224736797; -NTI1224736855.base = NTI1224736797; -var NNI1275068424 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "Field0", len: 0, typ: NTI1224736771, name: "Field0", sons: null}, +{kind: 1, offset: "glass", len: 0, typ: NTI1476395033, name: "glass", sons: null}]}; +NTI1476395037.node = NNI1476395037; +NTI1476395095.base = NTI1476395037; +var NNI1526726664 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "Field0", len: 0, typ: NTI1476395011, name: "Field0", sons: null}, {kind: 1, offset: "Field1", len: 0, typ: NTI33554466, name: "Field1", sons: null}]}; -NTI1275068424.node = NNI1275068424; -var NNI1224736795 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "Field0", len: 0, typ: NTI1224736796, name: "Field0", sons: null}, -{kind: 1, offset: "Field1", len: 0, typ: NTI1224736855, name: "Field1", sons: null}]}; -NTI1224736795.node = NNI1224736795; -NTI1224736798.base = NTI1224736802; -NTI1224736804.base = NTI1224736806; -NTI1442841214.base = NTI1442840581; -var NNI520093710 = {kind: 2, len: 8, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "Field0", len: 0, typ: NTI33554449, name: "Field0", sons: null}, +NTI1526726664.node = NNI1526726664; +var NNI1476395035 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "Field0", len: 0, typ: NTI1476395036, name: "Field0", sons: null}, +{kind: 1, offset: "Field1", len: 0, typ: NTI1476395095, name: "Field1", sons: null}]}; +NTI1476395035.node = NNI1476395035; +NTI1476395038.base = NTI1476395042; +NTI1476395044.base = NTI1476395046; +NTI1728053886.base = NTI1728053253; +var NNI553648142 = {kind: 2, len: 8, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "Field0", len: 0, typ: NTI33554449, name: "Field0", sons: null}, {kind: 1, offset: "Field1", len: 0, typ: NTI33554435, name: "Field1", sons: null}, {kind: 1, offset: "Field2", len: 0, typ: NTI33554435, name: "Field2", sons: null}, -{kind: 1, offset: "Field3", len: 0, typ: NTI1224737002, name: "Field3", sons: null}, +{kind: 1, offset: "Field3", len: 0, typ: NTI1476395242, name: "Field3", sons: null}, {kind: 1, offset: "Field4", len: 0, typ: NTI33554466, name: "Field4", sons: null}, {kind: 1, offset: "Field5", len: 0, typ: NTI33554466, name: "Field5", sons: null}, -{kind: 1, offset: "Field6", len: 0, typ: NTI520093714, name: "Field6", sons: null}, -{kind: 1, offset: "Field7", len: 0, typ: NTI520093715, name: "Field7", sons: null}]}; -NTI520093710.node = NNI520093710; -NTI520093829.base = NTI520093710; -NTI1006632986.base = NTI33554449; -NTI520093719.base = NTI1442840581; -NTI520093728.base = NTI1442840581; -NTI1442840976.base = NTI1442840581; -NTI1442840998.base = NTI1442840582; -NTI1442840934.base = NTI1442840581; -NTI1442841453.base = NTI1442840581; -NTI1442841458.base = NTI1442840581; -var NNI1493174178 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "Field0", len: 0, typ: NTI1224736771, name: "Field0", sons: null}, +{kind: 1, offset: "Field6", len: 0, typ: NTI553648146, name: "Field6", sons: null}, +{kind: 1, offset: "Field7", len: 0, typ: NTI553648147, name: "Field7", sons: null}]}; +NTI553648142.node = NNI553648142; +NTI553648261.base = NTI553648142; +NTI1090519066.base = NTI33554449; +NTI553648151.base = NTI1728053253; +NTI553648160.base = NTI1728053253; +NTI1728053648.base = NTI1728053253; +NTI1728053670.base = NTI1728053254; +NTI1728053606.base = NTI1728053253; +NTI1728054125.base = NTI1728053253; +NTI1728054130.base = NTI1728053253; +var NNI1845495714 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "Field0", len: 0, typ: NTI1476395011, name: "Field0", sons: null}, {kind: 1, offset: "Field1", len: 0, typ: NTI33554466, name: "Field1", sons: null}]}; -NTI1493174178.node = NNI1493174178; -var NNI1442840583 = {kind: 2, len: 4, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "Field0", len: 0, typ: NTI33554435, name: "Field0", sons: null}, +NTI1845495714.node = NNI1845495714; +var NNI1728053255 = {kind: 2, len: 4, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "Field0", len: 0, typ: NTI33554435, name: "Field0", sons: null}, {kind: 1, offset: "Field1", len: 0, typ: NTI33554435, name: "Field1", sons: null}, {kind: 1, offset: "Field2", len: 0, typ: NTI33554435, name: "Field2", sons: null}, {kind: 1, offset: "Field3", len: 0, typ: NTI33554435, name: "Field3", sons: null}]}; -NTI1442840583.node = NNI1442840583; -NTI1442840845.base = NTI1442840581; -NTI1442841292.base = NTI33554435; -NTI1442841384.base = NTI1442840581; -NTI1442841347.base = NTI1442840581; -NTI838861173.base = NTI33554449; -var NNI1325400069 = {kind: 2, offset: 0, typ: null, name: null, len: 7, sons: {"0": {kind: 1, offset: 0, typ: NTI1325400069, name: "Id", len: 0, sons: null}, -"1": {kind: 1, offset: 1, typ: NTI1325400069, name: "Handshake", len: 0, sons: null}, -"2": {kind: 1, offset: 2, typ: NTI1325400069, name: "Options", len: 0, sons: null}, -"3": {kind: 1, offset: 3, typ: NTI1325400069, name: "Draft", len: 0, sons: null}, -"4": {kind: 1, offset: 4, typ: NTI1325400069, name: "End", len: 0, sons: null}, -"5": {kind: 1, offset: 5, typ: NTI1325400069, name: "Rematch", len: 0, sons: null}, -"6": {kind: 1, offset: 6, typ: NTI1325400069, name: "Action", len: 0, sons: null}}}; -NTI1325400069.node = NNI1325400069; -NTI838861206.base = NTI33554449; -NTI1224737583.base = NTI1224736771; -NTI520095807.base = NTI1224736771; -NTI520095757.base = NTI1224736788; -var NNI520093739 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "Field0", len: 0, typ: NTI520093740, name: "Field0", sons: null}, -{kind: 1, offset: "Field1", len: 0, typ: NTI520093741, name: "Field1", sons: null}]}; -NTI520093739.node = NNI520093739; -NTI721420574.base = NTI33554450; -NTI503316801.base = NTI33554449; -NTI1442840978.base = NTI1442840581; -var NNI520093799 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "val", len: 0, typ: NTI1224736789, name: "val", sons: null}, +NTI1728053255.node = NNI1728053255; +NTI1728053517.base = NTI1728053253; +NTI1728053964.base = NTI33554435; +NTI1728054056.base = NTI1728053253; +NTI1728054019.base = NTI1728053253; +NTI889192821.base = NTI33554449; +var NNI1577058309 = {kind: 2, offset: 0, typ: null, name: null, len: 7, sons: {"0": {kind: 1, offset: 0, typ: NTI1577058309, name: "Id", len: 0, sons: null}, +"1": {kind: 1, offset: 1, typ: NTI1577058309, name: "Handshake", len: 0, sons: null}, +"2": {kind: 1, offset: 2, typ: NTI1577058309, name: "Options", len: 0, sons: null}, +"3": {kind: 1, offset: 3, typ: NTI1577058309, name: "Draft", len: 0, sons: null}, +"4": {kind: 1, offset: 4, typ: NTI1577058309, name: "End", len: 0, sons: null}, +"5": {kind: 1, offset: 5, typ: NTI1577058309, name: "Rematch", len: 0, sons: null}, +"6": {kind: 1, offset: 6, typ: NTI1577058309, name: "Action", len: 0, sons: null}}}; +NTI1577058309.node = NNI1577058309; +NTI889192854.base = NTI33554449; +NTI1476395823.base = NTI1476395011; +NTI553650239.base = NTI1476395011; +NTI553650189.base = NTI1476395028; +var NNI553648171 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "Field0", len: 0, typ: NTI553648172, name: "Field0", sons: null}, +{kind: 1, offset: "Field1", len: 0, typ: NTI553648173, name: "Field1", sons: null}]}; +NTI553648171.node = NNI553648171; +NTI754975006.base = NTI33554450; +NTI536871233.base = NTI33554449; +NTI1728053650.base = NTI1728053253; +var NNI553648231 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "val", len: 0, typ: NTI1476395029, name: "val", sons: null}, {kind: 1, offset: "has", len: 0, typ: NTI33554466, name: "has", sons: null}]}; -NTI520093799.node = NNI520093799; -NTI520097539.base = NTI33554449; -NTI1560281120.base = NTI1224736771; -NTI520093867.base = NTI1224736771; -NTI1224736778.base = NTI1224736771; -NTI520095611.base = NTI33554466; -NTI520093830.base = NTI520093710; -NTI520098554.base = NTI1442841684; -NTI520098228.base = NTI33554449; -NTI520098238.base = NTI1442840581; +NTI553648231.node = NNI553648231; +NTI553651971.base = NTI33554449; +NTI1946157088.base = NTI1476395011; +NTI553648299.base = NTI1476395011; +NTI1476395018.base = NTI1476395011; +NTI553650043.base = NTI33554466; +NTI553648262.base = NTI553648142; +NTI553652986.base = NTI1728054356; +NTI553652660.base = NTI33554449; +NTI553652670.base = NTI1728053253; function setConstr() { var result = {}; @@ -1474,99 +1469,6 @@ function nimCopy(dest_33557268, src_33557269, ti_33557270) { return result_33557279; -} - -function arrayConstr(len_33557314, value_33557315, typ_33557316) { - var result = new Array(len_33557314); - for (var i = 0; i < len_33557314; ++i) result[i] = nimCopy(null, value_33557315, typ_33557316); - return result; - - - -} - -function mnewString(len_33557003) { - var result = new Array(len_33557003); - for (var i = 0; i < len_33557003; i++) {result[i] = 0;} - return result; - - - -} - -function chckRange(i_33557324, a_33557325, b_33557326) { - var result_33557327 = 0; - - BeforeRet: { - if (((a_33557325 <= i_33557324) && (i_33557324 <= b_33557326))) { - result_33557327 = i_33557324; - break BeforeRet; - } - else { - raiseRangeError(); - } - - }; - - return result_33557327; - -} - -function chckIndx(i_33557319, a_33557320, b_33557321) { - var result_33557322 = 0; - - BeforeRet: { - if (((a_33557320 <= i_33557319) && (i_33557319 <= b_33557321))) { - result_33557322 = i_33557319; - break BeforeRet; - } - else { - raiseIndexError(i_33557319, a_33557320, b_33557321); - } - - }; - - return result_33557322; - -} - -function cstrToNimstr(c_33556898) { - var ln = c_33556898.length; - var result = new Array(ln); - var r = 0; - for (var i = 0; i < ln; ++i) { - var ch = c_33556898.charCodeAt(i); - - if (ch < 128) { - result[r] = ch; - } - else { - if (ch < 2048) { - result[r] = (ch >> 6) | 192; - } - else { - if (ch < 55296 || ch >= 57344) { - result[r] = (ch >> 12) | 224; - } - else { - ++i; - ch = 65536 + (((ch & 1023) << 10) | (c_33556898.charCodeAt(i) & 1023)); - result[r] = (ch >> 18) | 240; - ++r; - result[r] = ((ch >> 12) & 63) | 128; - } - ++r; - result[r] = ((ch >> 6) & 63) | 128; - } - ++r; - result[r] = (ch & 63) | 128; - } - ++r; - } - return result; - - - } function toJSStr(s_33556901) { @@ -1636,7 +1538,6 @@ function raiseException(e_33556653, ename_33556654) { unhandledException(e_33556653); } - e_33556653.trace = nimCopy(null, rawWriteStackTrace_33556604(), NTI33554449); throw e_33556653; @@ -1658,6 +1559,51 @@ function subInt(a_33557054, b_33557055) { +} + +function mnewString(len_33557003) { + var result = new Array(len_33557003); + for (var i = 0; i < len_33557003; i++) {result[i] = 0;} + return result; + + + +} + +function chckRange(i_33557324, a_33557325, b_33557326) { + var result_33557327 = 0; + + BeforeRet: { + if (((a_33557325 <= i_33557324) && (i_33557324 <= b_33557326))) { + result_33557327 = i_33557324; + break BeforeRet; + } + else { + raiseRangeError(); + } + + }; + + return result_33557327; + +} + +function chckIndx(i_33557319, a_33557320, b_33557321) { + var result_33557322 = 0; + + BeforeRet: { + if (((a_33557320 <= i_33557319) && (i_33557319 <= b_33557321))) { + result_33557322 = i_33557319; + break BeforeRet; + } + else { + raiseIndexError(i_33557319, a_33557320, b_33557321); + } + + }; + + return result_33557322; + } function eqStrings(a_33557041, b_33557042) { @@ -1685,35 +1631,35 @@ function makeNimstrLit(c_33556895) { } -var holy_1442840644 = {name: [72,111,108,121], technicalName: [], synergy: false, tier: 0, rarity: 12, description: makeNimstrLit("You are favored slightly more by god. Your next powers are more likely to be uncommon, rare, and ultra rare"), icon: [99,114,111,115,115,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1442840639, index: (-1), priority: 20}; -var empress_1493172537 = {name: [69,109,112,114,101,115,115], technicalName: [], synergy: false, tier: 1, rarity: 8, description: [89,111,117,114,32,113,117,101,101,110,32,97,115,99,101,110,100,115,44,32,103,97,105,110,105,110,103,32,116,104,101,32,109,111,118,101,109,101,110,116,32,111,102,32,97,32,115,116,97,110,100,97,114,100,32,107,110,105,103,104,116,46,32], icon: [113,117,101,101,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1493172492, index: (-1), priority: 15}; -var altEmpress_1493172551 = {name: [69,109,112,114,101,115,115], technicalName: [65,108,116,101,114,110,97,116,101,32,69,109,112,114,101,115,115], synergy: false, tier: 1, rarity: 4, description: [89,111,117,114,32,113,117,101,101,110,32,97,115,99,101,110,100,115,44,32,103,97,105,110,105,110,103,32,116,104,101,32,109,111,118,101,109,101,110,116,32,111,102,32,97,32,103,105,114,97,102,102,101,46,32], icon: [113,117,101,101,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1493172538, index: (-1), priority: 15}; -var mysteriousSwordsmanLeft_1493172734 = {name: [77,121,115,116,101,114,105,111,117,115,32,83,119,111,114,100,115,109,97,110], technicalName: [77,121,115,116,101,114,105,111,117,115,32,83,119,111,114,100,115,109,97,110,32,76,101,102,116], synergy: false, tier: 0, rarity: 4, description: makeNimstrLit("A mysterious swordsman joins your rank. \x0A Your second pawn from the left is replaced with a silver general from Shogi."), icon: [115,105,108,118,101,114,103,101,110,101,114,97,108,46,115,118,103], rotatable: true, noColor: true, onStart: HEX3Aanonymous_1493172651, index: (-1), priority: 5}; -var mysteriousSwordsmanRight_1493172786 = {name: [77,121,115,116,101,114,105,111,117,115,32,83,119,111,114,100,115,109,97,110], technicalName: [77,121,115,116,101,114,105,111,117,115,32,83,119,111,114,100,115,109,97,110,32,82,105,103,104,116], synergy: false, tier: 0, rarity: 4, description: makeNimstrLit("A mysterious swordsman joins your rank. \x0A Your second pawn from the right is replaced with a silver general from Shogi."), icon: [115,105,108,118,101,114,103,101,110,101,114,97,108,46,115,118,103], rotatable: true, noColor: true, onStart: HEX3Aanonymous_1493172735, index: (-1), priority: 5}; -var developed_1493172796 = {name: [68,101,118,101,108,111,112,101,100], technicalName: [], synergy: false, tier: 0, rarity: 8, description: makeNimstrLit("Your board arrives a little developed. Your 2 center pawns start one tile forward. \x0A They can still move up 2 for their first move."), icon: [112,97,119,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1493172787, index: (-1), priority: 20}; -var stepOnMe_1493172822 = {name: [83,116,101,112,32,111,110,32,109,101], technicalName: [], synergy: false, tier: 0, rarity: 8, description: makeNimstrLit("Your Queen can take your own pieces. It\'s literally useless, but if that\'s your thing..."), icon: [113,117,101,101,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1493172797, index: (-1), priority: 15}; -var illegalFormationBL_1493172855 = {name: [73,108,108,101,103,97,108,32,70,111,114,109,97,116,105,111,110], technicalName: [73,108,108,101,103,97,108,32,70,111,114,109,97,116,105,111,110,32,76,101,102,116,32,66,105,115,104,111,112], synergy: false, tier: 0, rarity: 2, description: makeNimstrLit("ILLEGAL FORMATION: YOUR PAWN ABOVE YOUR LEFT BISHOP SWAPS PLACES WITH YOUR LEFT BISHOP"), icon: [98,105,115,104,111,112,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1493172845, index: (-1), priority: 20}; -var illegalFormationBR_1493172866 = {name: [73,108,108,101,103,97,108,32,70,111,114,109,97,116,105,111,110], technicalName: [73,108,108,101,103,97,108,32,70,111,114,109,97,116,105,111,110,32,82,105,103,104,116,32,66,105,115,104,111,112], synergy: false, tier: 0, rarity: 2, description: makeNimstrLit("ILLEGAL FORMATION: YOUR PAWN ABOVE YOUR RIGHT BISHOP SWAPS PLACES WITH YOUR RIGHT BISHOP"), icon: [98,105,115,104,111,112,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1493172856, index: (-1), priority: 20}; -var illegalFormationRL_1493172833 = {name: [73,108,108,101,103,97,108,32,70,111,114,109,97,116,105,111,110], technicalName: [73,108,108,101,103,97,108,32,70,111,114,109,97,116,105,111,110,32,76,101,102,116,32,82,111,111,107], synergy: false, tier: 0, rarity: 2, description: makeNimstrLit("ILLEGAL FORMATION: YOUR PAWN ABOVE YOUR LEFT ROOK SWAPS PLACES WITH YOUR LEFT ROOK"), icon: [114,111,111,107,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1493172823, index: (-1), priority: 20}; -var illegalFormationRR_1493172844 = {name: [73,108,108,101,103,97,108,32,70,111,114,109,97,116,105,111,110], technicalName: [73,108,108,101,103,97,108,32,70,111,114,109,97,116,105,111,110,32,82,105,103,104,116,32,82,111,111,107], synergy: false, tier: 0, rarity: 2, description: makeNimstrLit("ILLEGAL FORMATION: YOUR PAWN ABOVE YOUR RIGHT ROOK SWAPS PLACES WITH YOUR RIGHT ROOK"), icon: [114,111,111,107,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1493172834, index: (-1), priority: 20}; -var putInTheWork_1493172888 = {name: [80,117,116,32,105,110,32,116,104,101,32,119,111,114,107,33], technicalName: [], synergy: false, tier: 0, rarity: 8, description: makeNimstrLit("Get to work son. If any of your pawns take 3 pieces, they automatically promote."), icon: [112,97,119,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1493172879, index: (-1), priority: 10}; -var wanderingRoninLeft_1493172936 = {name: [87,97,110,100,101,114,105,110,103,32,82,111,110,105,110], technicalName: [87,97,110,100,101,114,105,110,103,32,82,111,110,105,110,32,76,101,102,116], synergy: false, tier: 1, rarity: 4, description: makeNimstrLit("A wandering Ronin joins your rank. \x0A Your third pawn from the left is replaced with a gold general from Shogi."), icon: [103,111,108,100,103,101,110,101,114,97,108,46,115,118,103], rotatable: true, noColor: true, onStart: HEX3Aanonymous_1493172889, index: (-1), priority: 5}; -var wanderingRoninRight_1493172984 = {name: [87,97,110,100,101,114,105,110,103,32,82,111,110,105,110], technicalName: [87,97,110,100,101,114,105,110,103,32,82,111,110,105,110,32,82,105,103,104,116], synergy: false, tier: 1, rarity: 4, description: makeNimstrLit("A wandering Ronin joins your rank. \x0A Your third pawn from the right is replaced with a gold general from Shogi."), icon: [103,111,108,100,103,101,110,101,114,97,108,46,115,118,103], rotatable: true, noColor: true, onStart: HEX3Aanonymous_1493172937, index: (-1), priority: 5}; -var archBishops_1493173040 = {name: [65,114,99,104,98,105,115,104,111,112,115], technicalName: [], synergy: false, tier: 2, rarity: 8, description: makeNimstrLit("Your bishops ascend to archbishops, gaining the movement of a knight."), icon: [98,105,115,104,111,112,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1493173027, index: (-1), priority: 15}; -var werewolves_1493173026 = {name: [87,101,114,101,119,111,108,118,101,115], technicalName: [], synergy: false, tier: 1, rarity: 8, description: makeNimstrLit("Your leftmost and rightmost pawns are secretly werewolves! When they take a piece, they eat it and gain the ability to jump like a knight and giraffe. They can still promote."), icon: [112,97,119,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1493173008, index: (-1), priority: 15}; -var giraffe_1493173054 = {name: [71,105,114,97,102,102,101], technicalName: [], synergy: false, tier: 1, rarity: 8, description: makeNimstrLit("Your knights try riding giraffes. It works surprisingly well. Their leap is improved, moving 3 across instead of 2 across."), icon: [103,105,114,97,102,102,101,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1493173041, index: (-1), priority: 5}; - var air_1275068591 = {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}; -var sacrifice_1493173170 = {name: [83,97,99,114,105,102,105,99,105,97,108,32,77,97,105,100,101,110], technicalName: [], synergy: false, tier: 3, rarity: 1, description: [83,65,67,82,73,70,73,67,69,32,84,72,89,32,77,65,73,68,69,78,83,32,84,79,32,84,72,69,32,66,76,79,79,68,32,71,79,68], icon: [113,117,101,101,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1493173161, index: (-1), priority: 25}; -var calvary_1493173069 = {name: [67,97,108,118,97,114,121], technicalName: [], synergy: false, tier: 1, rarity: 8, description: makeNimstrLit("Your knights learn to ride forward. They aren\'t very good at it, but they\'re trying their best. \x0A They can charge forward up to 2 tiles, but only to take a piece. They cannot jump for this move."), icon: [107,110,105,103,104,116,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1493173055, index: (-1), priority: 15}; -var backStep_1493173185 = {name: [66,97,99,107,115,116,101,112], technicalName: [], synergy: false, tier: 2, rarity: 8, description: makeNimstrLit("Your pawns receive some training. They can move one tile back. They cannot take this way."), icon: [112,97,119,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1493173171, index: (-1), priority: 15}; -var headStart_1493173200 = {name: [72,101,97,100,115,116,97,114,116], technicalName: [], synergy: false, tier: 1, rarity: 8, description: makeNimstrLit("Your pawns can always move 2 forward. They still take like normal. It\'s kind of boring, don\'t you think?"), icon: [112,97,119,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1493173186, index: (-1), priority: 15}; -var queenTrade_1493173212 = {name: [81,117,101,101,110,32,84,114,97,100,101], technicalName: [], synergy: false, tier: 2, rarity: 8, description: [84,104,101,32,112,97,116,114,105,97,114,99,104,121,32,99,111,110,116,105,110,117,101,115,46,32,66,111,116,104,32,113,117,101,101,110,115,32,109,121,115,116,101,114,105,111,117,115,108,121,32,100,105,101,46], icon: [113,117,101,101,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1493173201, index: (-1), priority: 20}; - var whiteQueen_1275068556 = {item: 1, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1291846030, HEX3Aanonymous_1291845988, HEX3Aanonymous_1291845865], takes: [HEX3Aanonymous_1291846051, HEX3Aanonymous_1291846009, HEX3Aanonymous_1291845880], onMove: HEX3Aanonymous_1224737631, onTake: HEX3Aanonymous_1224737642, whenTaken: HEX3Aanonymous_1224737604, onEndTurn: [HEX3Aanonymous_1224737210], onPromote: [HEX3Aanonymous_1224737210], promoted: false, filePath: [113,117,101,101,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}; -var lesbianPride_1493173262 = {name: [76,101,115,98,105,97,110,32,80,114,105,100,101], technicalName: [], synergy: false, tier: 3, rarity: 1, description: [240,159,167,161,240,159,164,141,240,159,169,183], icon: [108,101,115,98,105,97,110,112,114,105,100,101,102,108,97,103,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1493173247, index: (-1), priority: 1}; -var knightChargePower_1493173407 = {name: [75,110,105,103,104,116,39,115,32,67,104,97,114,103,101], technicalName: [], synergy: false, tier: 2, rarity: 4, description: [67,72,65,82,71,69,33,32,89,111,117,114,32,107,110,105,103,104,116,115,32,115,116,97,114,116,32,51,32,116,105,108,101,115,32,97,104,101,97,100,46], icon: [107,110,105,103,104,116,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1493173386, index: (-1), priority: 20}; -var nightRider_1493173518 = {name: [78,105,103,104,116,114,105,100,101,114], technicalName: [], synergy: false, tier: 3, rarity: 8, description: [78,105,103,104,116,114,105,100,101,114,46], icon: [110,105,103,104,116,114,105,100,101,114,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1493173499, index: (-1), priority: 3}; -var desegregation_1493173532 = {name: [68,101,115,101,103,114,101,103,97,116,105,111,110,32,97,110,100,32,73,110,116,101,103,114,97,116,105,111,110], technicalName: [], synergy: false, tier: 1, rarity: 8, description: makeNimstrLit("Your bishops learn to accept their differences. They can move left and right."), icon: [98,105,115,104,111,112,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1493173519, index: (-1), priority: 15}; -var concubine_1493173594 = {name: [67,111,110,99,117,98,105,110,101], technicalName: [], synergy: false, tier: 2, rarity: 8, description: [89,111,117,114,32,114,111,111,107,32,98,101,99,111,109,101,115,32,97,32,113,117,101,101,110,32,119,104,101,110,32,105,116,32,99,97,115,116,108,101,115,46,46,46,46,32,89,111,117,39,114,101,32,115,105,99,107,46], icon: [114,111,111,107,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1493173585, index: (-1), priority: 15}; +var holy_1728053316 = {name: [72,111,108,121], technicalName: [], synergy: false, tier: 0, rarity: 12, description: makeNimstrLit("You are favored slightly more by god. Your next powers are more likely to be uncommon, rare, and ultra rare"), icon: [99,114,111,115,115,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1728053311, index: (-1), priority: 20}; +var empress_1845494073 = {name: [69,109,112,114,101,115,115], technicalName: [], synergy: false, tier: 1, rarity: 8, description: [89,111,117,114,32,113,117,101,101,110,32,97,115,99,101,110,100,115,44,32,103,97,105,110,105,110,103,32,116,104,101,32,109,111,118,101,109,101,110,116,32,111,102,32,97,32,115,116,97,110,100,97,114,100,32,107,110,105,103,104,116,46,32], icon: [113,117,101,101,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845494028, index: (-1), priority: 15}; +var altEmpress_1845494087 = {name: [69,109,112,114,101,115,115], technicalName: [65,108,116,101,114,110,97,116,101,32,69,109,112,114,101,115,115], synergy: false, tier: 1, rarity: 4, description: [89,111,117,114,32,113,117,101,101,110,32,97,115,99,101,110,100,115,44,32,103,97,105,110,105,110,103,32,116,104,101,32,109,111,118,101,109,101,110,116,32,111,102,32,97,32,103,105,114,97,102,102,101,46,32], icon: [113,117,101,101,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845494074, index: (-1), priority: 15}; +var mysteriousSwordsmanLeft_1845494270 = {name: [77,121,115,116,101,114,105,111,117,115,32,83,119,111,114,100,115,109,97,110], technicalName: [77,121,115,116,101,114,105,111,117,115,32,83,119,111,114,100,115,109,97,110,32,76,101,102,116], synergy: false, tier: 0, rarity: 4, description: makeNimstrLit("A mysterious swordsman joins your rank. \x0A Your second pawn from the left is replaced with a silver general from Shogi."), icon: [115,105,108,118,101,114,103,101,110,101,114,97,108,46,115,118,103], rotatable: true, noColor: true, onStart: HEX3Aanonymous_1845494187, index: (-1), priority: 5}; +var mysteriousSwordsmanRight_1845494322 = {name: [77,121,115,116,101,114,105,111,117,115,32,83,119,111,114,100,115,109,97,110], technicalName: [77,121,115,116,101,114,105,111,117,115,32,83,119,111,114,100,115,109,97,110,32,82,105,103,104,116], synergy: false, tier: 0, rarity: 4, description: makeNimstrLit("A mysterious swordsman joins your rank. \x0A Your second pawn from the right is replaced with a silver general from Shogi."), icon: [115,105,108,118,101,114,103,101,110,101,114,97,108,46,115,118,103], rotatable: true, noColor: true, onStart: HEX3Aanonymous_1845494271, index: (-1), priority: 5}; +var developed_1845494332 = {name: [68,101,118,101,108,111,112,101,100], technicalName: [], synergy: false, tier: 0, rarity: 8, description: makeNimstrLit("Your board arrives a little developed. Your 2 center pawns start one tile forward. \x0A They can still move up 2 for their first move."), icon: [112,97,119,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845494323, index: (-1), priority: 20}; +var stepOnMe_1845494358 = {name: [83,116,101,112,32,111,110,32,109,101], technicalName: [], synergy: false, tier: 0, rarity: 8, description: makeNimstrLit("Your Queen can take your own pieces. It\'s literally useless, but if that\'s your thing..."), icon: [113,117,101,101,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845494333, index: (-1), priority: 15}; +var illegalFormationBL_1845494391 = {name: [73,108,108,101,103,97,108,32,70,111,114,109,97,116,105,111,110], technicalName: [73,108,108,101,103,97,108,32,70,111,114,109,97,116,105,111,110,32,76,101,102,116,32,66,105,115,104,111,112], synergy: false, tier: 0, rarity: 2, description: makeNimstrLit("ILLEGAL FORMATION: YOUR PAWN ABOVE YOUR LEFT BISHOP SWAPS PLACES WITH YOUR LEFT BISHOP"), icon: [98,105,115,104,111,112,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845494381, index: (-1), priority: 20}; +var illegalFormationBR_1845494402 = {name: [73,108,108,101,103,97,108,32,70,111,114,109,97,116,105,111,110], technicalName: [73,108,108,101,103,97,108,32,70,111,114,109,97,116,105,111,110,32,82,105,103,104,116,32,66,105,115,104,111,112], synergy: false, tier: 0, rarity: 2, description: makeNimstrLit("ILLEGAL FORMATION: YOUR PAWN ABOVE YOUR RIGHT BISHOP SWAPS PLACES WITH YOUR RIGHT BISHOP"), icon: [98,105,115,104,111,112,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845494392, index: (-1), priority: 20}; +var illegalFormationRL_1845494369 = {name: [73,108,108,101,103,97,108,32,70,111,114,109,97,116,105,111,110], technicalName: [73,108,108,101,103,97,108,32,70,111,114,109,97,116,105,111,110,32,76,101,102,116,32,82,111,111,107], synergy: false, tier: 0, rarity: 2, description: makeNimstrLit("ILLEGAL FORMATION: YOUR PAWN ABOVE YOUR LEFT ROOK SWAPS PLACES WITH YOUR LEFT ROOK"), icon: [114,111,111,107,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845494359, index: (-1), priority: 20}; +var illegalFormationRR_1845494380 = {name: [73,108,108,101,103,97,108,32,70,111,114,109,97,116,105,111,110], technicalName: [73,108,108,101,103,97,108,32,70,111,114,109,97,116,105,111,110,32,82,105,103,104,116,32,82,111,111,107], synergy: false, tier: 0, rarity: 2, description: makeNimstrLit("ILLEGAL FORMATION: YOUR PAWN ABOVE YOUR RIGHT ROOK SWAPS PLACES WITH YOUR RIGHT ROOK"), icon: [114,111,111,107,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845494370, index: (-1), priority: 20}; +var putInTheWork_1845494424 = {name: [80,117,116,32,105,110,32,116,104,101,32,119,111,114,107,33], technicalName: [], synergy: false, tier: 0, rarity: 8, description: makeNimstrLit("Get to work son. If any of your pawns take 3 pieces, they automatically promote."), icon: [112,97,119,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845494415, index: (-1), priority: 10}; +var wanderingRoninLeft_1845494472 = {name: [87,97,110,100,101,114,105,110,103,32,82,111,110,105,110], technicalName: [87,97,110,100,101,114,105,110,103,32,82,111,110,105,110,32,76,101,102,116], synergy: false, tier: 1, rarity: 4, description: makeNimstrLit("A wandering Ronin joins your rank. \x0A Your third pawn from the left is replaced with a gold general from Shogi."), icon: [103,111,108,100,103,101,110,101,114,97,108,46,115,118,103], rotatable: true, noColor: true, onStart: HEX3Aanonymous_1845494425, index: (-1), priority: 5}; +var wanderingRoninRight_1845494520 = {name: [87,97,110,100,101,114,105,110,103,32,82,111,110,105,110], technicalName: [87,97,110,100,101,114,105,110,103,32,82,111,110,105,110,32,82,105,103,104,116], synergy: false, tier: 1, rarity: 4, description: makeNimstrLit("A wandering Ronin joins your rank. \x0A Your third pawn from the right is replaced with a gold general from Shogi."), icon: [103,111,108,100,103,101,110,101,114,97,108,46,115,118,103], rotatable: true, noColor: true, onStart: HEX3Aanonymous_1845494473, index: (-1), priority: 5}; +var archBishops_1845494576 = {name: [65,114,99,104,98,105,115,104,111,112,115], technicalName: [], synergy: false, tier: 2, rarity: 8, description: makeNimstrLit("Your bishops ascend to archbishops, gaining the movement of a knight."), icon: [98,105,115,104,111,112,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845494563, index: (-1), priority: 15}; +var werewolves_1845494562 = {name: [87,101,114,101,119,111,108,118,101,115], technicalName: [], synergy: false, tier: 1, rarity: 8, description: makeNimstrLit("Your leftmost and rightmost pawns are secretly werewolves! When they take a piece, they eat it and gain the ability to jump like a knight and giraffe. They can still promote."), icon: [112,97,119,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845494544, index: (-1), priority: 15}; +var giraffe_1845494590 = {name: [71,105,114,97,102,102,101], technicalName: [], synergy: false, tier: 1, rarity: 8, description: makeNimstrLit("Your knights try riding giraffes. It works surprisingly well. Their leap is improved, moving 3 across instead of 2 across."), icon: [103,105,114,97,102,102,101,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845494577, index: (-1), priority: 5}; + var air_1526726831 = {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}; +var sacrifice_1845494706 = {name: [83,97,99,114,105,102,105,99,105,97,108,32,77,97,105,100,101,110], technicalName: [], synergy: false, tier: 3, rarity: 1, description: [83,65,67,82,73,70,73,67,69,32,84,72,89,32,77,65,73,68,69,78,83,32,84,79,32,84,72,69,32,66,76,79,79,68,32,71,79,68], icon: [113,117,101,101,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845494697, index: (-1), priority: 25}; +var calvary_1845494605 = {name: [67,97,108,118,97,114,121], technicalName: [], synergy: false, tier: 1, rarity: 8, description: makeNimstrLit("Your knights learn to ride forward. They aren\'t very good at it, but they\'re trying their best. \x0A They can charge forward up to 2 tiles, but only to take a piece. They cannot jump for this move."), icon: [107,110,105,103,104,116,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845494591, index: (-1), priority: 15}; +var backStep_1845494721 = {name: [66,97,99,107,115,116,101,112], technicalName: [], synergy: false, tier: 2, rarity: 8, description: makeNimstrLit("Your pawns receive some training. They can move one tile back. They cannot take this way."), icon: [112,97,119,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845494707, index: (-1), priority: 15}; +var headStart_1845494736 = {name: [72,101,97,100,115,116,97,114,116], technicalName: [], synergy: false, tier: 1, rarity: 8, description: makeNimstrLit("Your pawns can always move 2 forward. They still take like normal. It\'s kind of boring, don\'t you think?"), icon: [112,97,119,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845494722, index: (-1), priority: 15}; +var queenTrade_1845494748 = {name: [81,117,101,101,110,32,84,114,97,100,101], technicalName: [], synergy: false, tier: 2, rarity: 8, description: [84,104,101,32,112,97,116,114,105,97,114,99,104,121,32,99,111,110,116,105,110,117,101,115,46,32,66,111,116,104,32,113,117,101,101,110,115,32,109,121,115,116,101,114,105,111,117,115,108,121,32,100,105,101,46], icon: [113,117,101,101,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845494737, index: (-1), priority: 20}; + var whiteQueen_1526726796 = {item: 1, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504270, HEX3Aanonymous_1543504228, HEX3Aanonymous_1543504105], takes: [HEX3Aanonymous_1543504291, HEX3Aanonymous_1543504249, HEX3Aanonymous_1543504120], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1476395450], onPromote: [HEX3Aanonymous_1476395450], promoted: false, filePath: [113,117,101,101,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}; +var lesbianPride_1845494798 = {name: [76,101,115,98,105,97,110,32,80,114,105,100,101], technicalName: [], synergy: false, tier: 3, rarity: 1, description: [240,159,167,161,240,159,164,141,240,159,169,183], icon: [108,101,115,98,105,97,110,112,114,105,100,101,102,108,97,103,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845494783, index: (-1), priority: 1}; +var knightChargePower_1845494943 = {name: [75,110,105,103,104,116,39,115,32,67,104,97,114,103,101], technicalName: [], synergy: false, tier: 2, rarity: 4, description: [67,72,65,82,71,69,33,32,89,111,117,114,32,107,110,105,103,104,116,115,32,115,116,97,114,116,32,51,32,116,105,108,101,115,32,97,104,101,97,100,46], icon: [107,110,105,103,104,116,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845494922, index: (-1), priority: 20}; +var nightRider_1845495054 = {name: [78,105,103,104,116,114,105,100,101,114], technicalName: [], synergy: false, tier: 3, rarity: 8, description: [78,105,103,104,116,114,105,100,101,114,46], icon: [110,105,103,104,116,114,105,100,101,114,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845495035, index: (-1), priority: 3}; +var desegregation_1845495068 = {name: [68,101,115,101,103,114,101,103,97,116,105,111,110,32,97,110,100,32,73,110,116,101,103,114,97,116,105,111,110], technicalName: [], synergy: false, tier: 1, rarity: 8, description: makeNimstrLit("Your bishops learn to accept their differences. They can move left and right."), icon: [98,105,115,104,111,112,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845495055, index: (-1), priority: 15}; +var concubine_1845495130 = {name: [67,111,110,99,117,98,105,110,101], technicalName: [], synergy: false, tier: 2, rarity: 8, description: [89,111,117,114,32,114,111,111,107,32,98,101,99,111,109,101,115,32,97,32,113,117,101,101,110,32,119,104,101,110,32,105,116,32,99,97,115,116,108,101,115,46,46,46,46,32,89,111,117,39,114,101,32,115,105,99,107,46], icon: [114,111,111,107,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845495121, index: (-1), priority: 15}; function modInt(a_33557066, b_33557067) { if (b_33557067 == 0) raiseDivByZero(); @@ -1723,12 +1669,12 @@ function modInt(a_33557066, b_33557067) { } -var reinforcements_1493173619 = {name: [82,101,105,110,102,111,114,99,101,109,101,110,116,115], technicalName: [], synergy: false, tier: 1, rarity: 8, description: makeNimstrLit("Do you really need more than 8 pawns? Your rooks spawn a pawn for every 2 pieces they takes."), icon: [114,111,111,107,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1493173614, index: (-1), priority: 25}; -var shotgunKing_1493173647 = {name: [83,104,111,116,103,117,110,32,75,105,110,103], technicalName: [], synergy: false, tier: 0, rarity: 8, description: makeNimstrLit("Your king knows its 2nd ammendment rights. It can take pieces two ahead or two behind. \x0A If it does this take, it does not move from its initial tile."), icon: [107,105,110,103,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1493173638, index: (-1), priority: 5}; -var coward_1493173698 = {name: [67,111,119,97,114,100], technicalName: [], synergy: false, tier: 0, rarity: 8, description: [89,111,117,32,99,111,119,97,114,100,46,32,89,111,117,114,32,107,105,110,103,32,115,119,97,112,115,32,112,105,101,99,101,115,32,119,105,116,104,32,116,104,101,32,107,105,110,103,39,115,32,115,105,100,101,32,107,110,105,103,104,116,46], icon: [107,105,110,103,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1493173682, index: (-1), priority: 25}; -var lanceLeft_1493173840 = {name: [75,97,109,105,107,97,122,101], technicalName: [75,97,109,105,107,97,122,101,32,76,101,102,116], synergy: false, tier: 1, rarity: 4, description: makeNimstrLit("The divine wind is behind you. \x0A Your left pawn is replaced with a lance from Shogi."), icon: [108,97,110,99,101,46,115,118,103], rotatable: true, noColor: true, onStart: HEX3Aanonymous_1493173789, index: (-1), priority: 5}; -var lanceRight_1493173892 = {name: [75,97,109,105,107,97,122,101], technicalName: [75,97,109,105,107,97,122,101,32,82,105,103,104,116], synergy: false, tier: 1, rarity: 4, description: makeNimstrLit("The divine wind is behind you. \x0A Your right pawn is replaced with a lance from Shogi."), icon: [108,97,110,99,101,46,115,118,103], rotatable: true, noColor: true, onStart: HEX3Aanonymous_1493173841, index: (-1), priority: 5}; - var helper_1392508974 = new Uint32Array([3198944359, 3630892171]); +var reinforcements_1845495155 = {name: [82,101,105,110,102,111,114,99,101,109,101,110,116,115], technicalName: [], synergy: false, tier: 1, rarity: 8, description: makeNimstrLit("Do you really need more than 8 pawns? Your rooks spawn a pawn for every 2 pieces they takes."), icon: [114,111,111,107,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845495150, index: (-1), priority: 25}; +var shotgunKing_1845495183 = {name: [83,104,111,116,103,117,110,32,75,105,110,103], technicalName: [], synergy: false, tier: 0, rarity: 8, description: makeNimstrLit("Your king knows its 2nd ammendment rights. It can take pieces two ahead or two behind. \x0A If it does this take, it does not move from its initial tile."), icon: [107,105,110,103,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845495174, index: (-1), priority: 5}; +var coward_1845495234 = {name: [67,111,119,97,114,100], technicalName: [], synergy: false, tier: 0, rarity: 8, description: [89,111,117,32,99,111,119,97,114,100,46,32,89,111,117,114,32,107,105,110,103,32,115,119,97,112,115,32,112,105,101,99,101,115,32,119,105,116,104,32,116,104,101,32,107,105,110,103,39,115,32,115,105,100,101,32,107,110,105,103,104,116,46], icon: [107,105,110,103,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845495218, index: (-1), priority: 25}; +var lanceLeft_1845495376 = {name: [75,97,109,105,107,97,122,101], technicalName: [75,97,109,105,107,97,122,101,32,76,101,102,116], synergy: false, tier: 1, rarity: 4, description: makeNimstrLit("The divine wind is behind you. \x0A Your left pawn is replaced with a lance from Shogi."), icon: [108,97,110,99,101,46,115,118,103], rotatable: true, noColor: true, onStart: HEX3Aanonymous_1845495325, index: (-1), priority: 5}; +var lanceRight_1845495428 = {name: [75,97,109,105,107,97,122,101], technicalName: [75,97,109,105,107,97,122,101,32,82,105,103,104,116], synergy: false, tier: 1, rarity: 4, description: makeNimstrLit("The divine wind is behind you. \x0A Your right pawn is replaced with a lance from Shogi."), icon: [108,97,110,99,101,46,115,118,103], rotatable: true, noColor: true, onStart: HEX3Aanonymous_1845495377, index: (-1), priority: 5}; + var helper_1644167214 = new Uint32Array([3198944359, 3630892171]); function mulInt(a_33557058, b_33557059) { var result = a_33557058 * b_33557059; @@ -1749,16 +1695,16 @@ function rawEcho() { } -var drunkKnights_1493174022 = {name: [68,114,117,110,107,32,75,110,105,103,104,116,115], technicalName: [], synergy: false, tier: 2, rarity: 8, description: makeNimstrLit("Drunk riding is dangerous, your knights should be ashamed of themselves. \x0A After every other turn, they randomly move."), icon: [107,110,105,103,104,116,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1493174013, index: (-1), priority: 15}; -var alcoholism_1493174032 = {name: [65,108,99,111,104,111,108,105,115,109], technicalName: [], synergy: false, tier: 3, rarity: 4, description: [89,111,117,39,114,101,32,102,97,109,105,108,105,101,115,32,97,110,100,32,102,114,105,101,110,100,115,32,109,105,115,115,32,121,111,117,46,32,84,104,101,32,114,101,97,108,32,121,111,117,46], icon: [112,97,119,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1493174023, index: (-1), priority: 15}; -var slumdogMillionaire_1493174402 = {name: [83,108,117,109,100,111,103,32,77,105,108,108,105,111,110,97,105,114,101], technicalName: [], synergy: false, tier: 0, rarity: 8, description: makeNimstrLit("Have you seen the movie Slumdog Millionaire? It\'s kind of like that. \x0A Your pawns have a 1% chance of promoting whenever they move."), icon: [112,97,119,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1493174366, index: (-1), priority: 15}; -var stupidPower_1493174424 = {name: [83,116,117,112,105,100,32,80,111,119,101,114], technicalName: [], synergy: false, tier: 0, rarity: 8, description: makeNimstrLit("You have a 0.1% chance to automatically win each turn. Yeah, I\'m out of ideas. I\'m sorry."), icon: [107,105,110,103,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1493174415, index: (-1), priority: 15}; -var conversion_1493174453 = {name: [67,111,110,118,101,114,115,105,111,110], technicalName: [], synergy: false, tier: 1, rarity: 8, description: makeNimstrLit("When your bishop takes a piece, it has a 15% chance to convert it to your color. \x0A When this happens, your bishop swaps places with it instead of taking it."), icon: [98,105,115,104,111,112,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1493174448, index: (-1), priority: 15}; -var americanDream_1493174512 = {name: [65,109,101,114,105,99,97,110,32,68,114,101,97,109], technicalName: [], synergy: false, tier: 2, rarity: 8, description: makeNimstrLit("All pieces, you and your opponent, are killed when they promote. It\'s not real."), icon: [117,115,102,108,97,103,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1493174503, index: (-1), priority: 30}; -var sleeperAgent_1493174565 = {name: [83,108,101,101,112,101,114,32,65,103,101,110,116], technicalName: [], synergy: false, tier: 0, rarity: 8, description: makeNimstrLit("The silent river collapses in pieces. \x0A One of your pawns is a sleeper agent. They can take forward."), icon: [112,97,119,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1493174513, index: (-1), priority: 30}; -var capitalismPower_1493174693 = {name: [67,97,112,105,116,97,108,105,115,109], technicalName: [], synergy: false, tier: 1, rarity: 24, description: makeNimstrLit("The power of the free market is unmatched. \x0A All of your pieces get the ability to buy upgrades. \x0A You get 3 dollars for taking a piece.\x0A With 30 dollars, you can promote one piece. The promoted piece cannot move on the turn it is promoted."), icon: [117,115,102,108,97,103,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1493174664, index: (-1), priority: 30}; -var skyGlass_1493178056 = {name: [71,108,97,115,115,58,32,83,107,121], technicalName: [], synergy: false, tier: 1, rarity: 6, description: makeNimstrLit("On your turn, instead of moving, you can choose 2 pieces to each cast Sky on any \x0A open tile. These pieces teleport to their selected tile when the cast completes. \x0A Pieces cannot try to teleport to a tile where they would check the king. Glass powers take one turn to start casting, one turn waiting to draw glass power, and one turn when the cast completes."), icon: [115,107,121,103,108,97,115,115,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1493178043, index: (-1), priority: 15}; -var zeroGlass_1493178068 = {name: [71,108,97,115,115,58,32,90,101,114,111], technicalName: [], synergy: false, tier: 2, rarity: 6, description: makeNimstrLit("On your turn, instead of moving, you can choose 2 pieces to each cast Zero on \x0A any non-king tile. Any piece on these tiles will die if the cast completes. Zero cannot be cast turn one. Glass powers take one turn to start casting, one turn waiting to draw glass power, and one turn when the cast completes."), icon: [122,101,114,111,103,108,97,115,115,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1493178057, index: (-1), priority: 15}; +var drunkKnights_1845495558 = {name: [68,114,117,110,107,32,75,110,105,103,104,116,115], technicalName: [], synergy: false, tier: 2, rarity: 8, description: makeNimstrLit("Drunk riding is dangerous, your knights should be ashamed of themselves. \x0A After every other turn, they randomly move."), icon: [107,110,105,103,104,116,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845495549, index: (-1), priority: 15}; +var alcoholism_1845495568 = {name: [65,108,99,111,104,111,108,105,115,109], technicalName: [], synergy: false, tier: 3, rarity: 4, description: [89,111,117,39,114,101,32,102,97,109,105,108,105,101,115,32,97,110,100,32,102,114,105,101,110,100,115,32,109,105,115,115,32,121,111,117,46,32,84,104,101,32,114,101,97,108,32,121,111,117,46], icon: [112,97,119,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845495559, index: (-1), priority: 15}; +var slumdogMillionaire_1845495938 = {name: [83,108,117,109,100,111,103,32,77,105,108,108,105,111,110,97,105,114,101], technicalName: [], synergy: false, tier: 0, rarity: 8, description: makeNimstrLit("Have you seen the movie Slumdog Millionaire? It\'s kind of like that. \x0A Your pawns have a 1% chance of promoting whenever they move."), icon: [112,97,119,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845495902, index: (-1), priority: 15}; +var stupidPower_1845495960 = {name: [83,116,117,112,105,100,32,80,111,119,101,114], technicalName: [], synergy: false, tier: 0, rarity: 8, description: makeNimstrLit("You have a 0.1% chance to automatically win each turn. Yeah, I\'m out of ideas. I\'m sorry."), icon: [107,105,110,103,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845495951, index: (-1), priority: 15}; +var conversion_1845495996 = {name: [67,111,110,118,101,114,115,105,111,110], technicalName: [], synergy: false, tier: 1, rarity: 8, description: makeNimstrLit("When your bishop takes a piece, it has a 15% chance to convert it to your color. \x0A When this happens, your bishop swaps places with it instead of taking it."), icon: [98,105,115,104,111,112,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845495991, index: (-1), priority: 15}; +var americanDream_1845496032 = {name: [65,109,101,114,105,99,97,110,32,68,114,101,97,109], technicalName: [], synergy: false, tier: 2, rarity: 8, description: makeNimstrLit("All pieces, you and your opponent, are killed when they promote. It\'s not real."), icon: [117,115,102,108,97,103,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845496023, index: (-1), priority: 30}; +var sleeperAgent_1845496085 = {name: [83,108,101,101,112,101,114,32,65,103,101,110,116], technicalName: [], synergy: false, tier: 0, rarity: 8, description: makeNimstrLit("The silent river collapses in pieces. \x0A One of your pawns is a sleeper agent. They can take forward."), icon: [112,97,119,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845496033, index: (-1), priority: 30}; +var capitalismPower_1845496220 = {name: [67,97,112,105,116,97,108,105,115,109], technicalName: [], synergy: false, tier: 1, rarity: 24, description: makeNimstrLit("The power of the free market is unmatched. \x0A All of your pieces get the ability to buy upgrades. \x0A You get 3 dollars for taking a piece.\x0A With 30 dollars, you can promote one piece. The promoted piece cannot move on the turn it is promoted."), icon: [117,115,102,108,97,103,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845496191, index: (-1), priority: 30}; +var skyGlass_1845499615 = {name: [71,108,97,115,115,58,32,83,107,121], technicalName: [], synergy: false, tier: 1, rarity: 6, description: makeNimstrLit("On your turn, instead of moving, you can choose 2 pieces to each cast Sky on any \x0A open tile. These pieces teleport to their selected tile when the cast completes. \x0A Pieces cannot try to teleport to a tile where they would check the king. Glass powers take one turn to start casting, one turn waiting to draw glass power, and one turn when the cast completes."), icon: [115,107,121,103,108,97,115,115,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845499602, index: (-1), priority: 15}; +var zeroGlass_1845499627 = {name: [71,108,97,115,115,58,32,90,101,114,111], technicalName: [], synergy: false, tier: 2, rarity: 6, description: makeNimstrLit("On your turn, instead of moving, you can choose 2 pieces to each cast Zero on \x0A any non-king tile. Any piece on these tiles will die if the cast completes. Zero cannot be cast turn one. Glass powers take one turn to start casting, one turn waiting to draw glass power, and one turn when the cast completes."), icon: [122,101,114,111,103,108,97,115,115,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845499616, index: (-1), priority: 15}; function divInt(a_33557062, b_33557063) { if (b_33557063 == 0) raiseDivByZero(); @@ -1768,9 +1714,9 @@ function divInt(a_33557062, b_33557063) { } -var steelGlass_1493178080 = {name: [71,108,97,115,115,58,32,83,116,101,101,108], technicalName: [], synergy: false, tier: 0, rarity: 6, description: makeNimstrLit("On your turn, instead of moving, you can choose 5 pieces to each cast Steel. \x0A If there is an enemy one tile in front of them when the cast completes, they take forward. Glass powers take one turn to start casting, one turn waiting to draw glass power, and one turn when the cast completes."), icon: [115,116,101,101,108,103,108,97,115,115,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1493178069, index: (-1), priority: 15}; -var reverieGlass_1493178414 = {name: [71,108,97,115,115,58,32,82,101,118,101,114,105,101], technicalName: [], synergy: false, tier: 0, rarity: 6, description: makeNimstrLit("On your turn, instead of moving you can choose 3 pieces to each cast Reverie on \x0A an opponent tile. When the cast completes, \x0A they swap moves and takes with whatever piece is on that tile. If that piece \x0A is a king, the cast fails. Glass powers take one turn to start casting, one turn waiting to draw glass power, and one turn when the cast completes."), icon: [114,101,118,101,114,105,101,103,108,97,115,115,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1493178403, index: (-1), priority: 0}; -var daybreakGlass_1493178460 = {name: [71,108,97,115,115,58,32,68,97,121,98,114,101,97,107], technicalName: [], synergy: false, tier: 2, rarity: 6, description: makeNimstrLit("On your turn, instead of moving you can choose 1 pieces to cast Daybreak on \x0A any tile. When the cast completes, the piece on that tile promotes. Glass powers take one turn to start casting, one turn waiting to draw glass power, and one turn when the cast completes."), icon: [100,97,121,98,114,101,97,107,103,108,97,115,115,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1493178449, index: (-1), priority: 0}; +var steelGlass_1845499639 = {name: [71,108,97,115,115,58,32,83,116,101,101,108], technicalName: [], synergy: false, tier: 0, rarity: 6, description: makeNimstrLit("On your turn, instead of moving, you can choose 5 pieces to each cast Steel. \x0A If there is an enemy one tile in front of them when the cast completes, they take forward. Glass powers take one turn to start casting, one turn waiting to draw glass power, and one turn when the cast completes."), icon: [115,116,101,101,108,103,108,97,115,115,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845499628, index: (-1), priority: 15}; +var reverieGlass_1845499973 = {name: [71,108,97,115,115,58,32,82,101,118,101,114,105,101], technicalName: [], synergy: false, tier: 0, rarity: 6, description: makeNimstrLit("On your turn, instead of moving you can choose 3 pieces to each cast Reverie on \x0A an opponent tile. When the cast completes, \x0A they swap moves and takes with whatever piece is on that tile. If that piece \x0A is a king, the cast fails. Glass powers take one turn to start casting, one turn waiting to draw glass power, and one turn when the cast completes."), icon: [114,101,118,101,114,105,101,103,108,97,115,115,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845499962, index: (-1), priority: 0}; +var daybreakGlass_1845500019 = {name: [71,108,97,115,115,58,32,68,97,121,98,114,101,97,107], technicalName: [], synergy: false, tier: 2, rarity: 6, description: makeNimstrLit("On your turn, instead of moving you can choose 1 pieces to cast Daybreak on \x0A any tile. When the cast completes, the piece on that tile promotes. Glass powers take one turn to start casting, one turn waiting to draw glass power, and one turn when the cast completes."), icon: [100,97,121,98,114,101,97,107,103,108,97,115,115,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845500008, index: (-1), priority: 0}; function nimBoolToStr(x_33556438) { var result_33556439 = []; @@ -1790,25 +1736,16 @@ function nimBoolToStr(x_33556438) { function reprEnum(e_33557576, typ_33557577) { var result_33557578 = []; - var F = {procname: "system.reprEnum", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/reprjs.nim", line: 0}; - framePtr = F; - F.line = 30; - F.filename = "reprjs.nim"; var tmp_33557579 = false; - F.line = 31; var item_33557580 = typ_33557577.node.sons[e_33557576]; - F.line = 32; tmp_33557579 = item_33557580 !== undefined if (tmp_33557579) { - F.line = 34; result_33557578 = nimCopy(null, makeNimstrLit(item_33557580.name), NTI33554449); } else { - F.line = 36; - result_33557578 = nimCopy(null, (HEX24_369098760(e_33557576) || []).concat([32,40,105,110,118,97,108,105,100,32,100,97,116,97,33,41] || []), NTI33554449); + result_33557578 = nimCopy(null, (HEX24_385875976(e_33557576) || []).concat([32,40,105,110,118,97,108,105,100,32,100,97,116,97,33,41] || []), NTI33554449); } - framePtr = F.prev; return result_33557578; @@ -1829,10 +1766,10 @@ function negInt(a_33557092) { } var ConstSet2 = setConstr([88, 148]); - var toTag_721420612 = ["#text", "#int", "#bool", "#vthunk", "#dthunk", "#component", "#verbatim", "html", "head", "title", "base", "link", "meta", "style", "script", "noscript", "body", "section", "nav", "article", "aside", "h1", "h2", "h3", "h4", "h5", "h6", "hgroup", "header", "footer", "address", "main", "p", "hr", "pre", "blockquote", "ol", "ul", "li", "dl", "dt", "dd", "figure", "figcaption", "div", "a", "em", "strong", "small", "s", "cite", "quote", "dfn", "abbr", "data", "time", "code", "var", "samp", "kbd", "sub", "sup", "i", "b", "u", "mark", "ruby", "rt", "rp", "bdi", "dbo", "span", "br", "wbr", "ins", "del", "img", "iframe", "embed", "object", "param", "video", "audio", "source", "track", "canvas", "map", "area", "animate", "animateMotion", "animateTransform", "circle", "clipPath", "defs", "desc", "discard", "ellipse", "feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence", "filter", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "set", "stop", "svg", "switch", "symbol", "text", "textPath", "tspan", "unknown", "use", "view", "maction", "math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msubsup", "msup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "semantics", "table", "caption", "colgroup", "col", "tbody", "thead", "tfoot", "tr", "td", "th", "form", "fieldset", "legend", "label", "input", "button", "select", "datalist", "optgroup", "option", "textarea", "keygen", "output", "progress", "meter", "details", "summary", "command", "menu", "bdo", "dialog", "slot", "template"]; + var toTag_754975044 = ["#text", "#int", "#bool", "#vthunk", "#dthunk", "#component", "#verbatim", "html", "head", "title", "base", "link", "meta", "style", "script", "noscript", "body", "section", "nav", "article", "aside", "h1", "h2", "h3", "h4", "h5", "h6", "hgroup", "header", "footer", "address", "main", "p", "hr", "pre", "blockquote", "ol", "ul", "li", "dl", "dt", "dd", "figure", "figcaption", "div", "a", "em", "strong", "small", "s", "cite", "quote", "dfn", "abbr", "data", "time", "code", "var", "samp", "kbd", "sub", "sup", "i", "b", "u", "mark", "ruby", "rt", "rp", "bdi", "dbo", "span", "br", "wbr", "ins", "del", "img", "iframe", "embed", "object", "param", "video", "audio", "source", "track", "canvas", "map", "area", "animate", "animateMotion", "animateTransform", "circle", "clipPath", "defs", "desc", "discard", "ellipse", "feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence", "filter", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "set", "stop", "svg", "switch", "symbol", "text", "textPath", "tspan", "unknown", "use", "view", "maction", "math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msubsup", "msup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "semantics", "table", "caption", "colgroup", "col", "tbody", "thead", "tfoot", "tr", "td", "th", "form", "fieldset", "legend", "label", "input", "button", "select", "datalist", "optgroup", "option", "textarea", "keygen", "output", "progress", "meter", "details", "summary", "command", "menu", "bdo", "dialog", "slot", "template"]; var ConstSet3 = setConstr([149, 179]); var ConstSet4 = setConstr([88, 148]); - var toEventName_721420689 = ["click", "contextmenu", "dblclick", "keyup", "keydown", "keypressed", "focus", "blur", "change", "scroll", "mousedown", "mouseenter", "mouseleave", "mousemove", "mouseout", "mouseover", "mouseup", "drag", "dragend", "dragenter", "dragleave", "dragover", "dragstart", "drop", "submit", "input", "animationstart", "animationend", "animationiteration", "keyupenter", "keyuplater", "load", "transitioncancel", "transitionend", "transitionrun", "transitionstart", "wheel"]; + var toEventName_754975121 = ["click", "contextmenu", "dblclick", "keyup", "keydown", "keypressed", "focus", "blur", "change", "scroll", "mousedown", "mouseenter", "mouseleave", "mousemove", "mouseout", "mouseover", "mouseup", "drag", "dragend", "dragenter", "dragleave", "dragover", "dragstart", "drop", "submit", "input", "animationstart", "animationend", "animationiteration", "keyupenter", "keyuplater", "load", "transitioncancel", "transitionend", "transitionrun", "transitionstart", "wheel"]; var ConstSet5 = setConstr([88, 148]); function nimMin(a_33557104, b_33557105) { @@ -1855,7 +1792,7 @@ function nimMin(a_33557104, b_33557105) { return result_33557106; } - var myDebugPowers_520093792 = [{name: [71,108,97,115,115,58,32,90,101,114,111], technicalName: [], synergy: false, tier: 2, rarity: 6, description: makeNimstrLit("On your turn, instead of moving, you can choose 2 pieces to each cast Zero on \x0A any non-king tile. Any piece on these tiles will die if the cast completes. Zero cannot be cast turn one. Glass powers take one turn to start casting, one turn waiting to draw glass power, and one turn when the cast completes."), icon: [122,101,114,111,103,108,97,115,115,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1493178057, index: (-1), priority: 15}, {name: [67,97,112,105,116,97,108,105,115,109], technicalName: [], synergy: false, tier: 1, rarity: 24, description: makeNimstrLit("The power of the free market is unmatched. \x0A All of your pieces get the ability to buy upgrades. \x0A You get 3 dollars for taking a piece.\x0A With 30 dollars, you can promote one piece. The promoted piece cannot move on the turn it is promoted."), icon: [117,115,102,108,97,103,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1493174664, index: (-1), priority: 30}]; + var myDebugPowers_553648224 = [{name: [71,108,97,115,115,58,32,90,101,114,111], technicalName: [], synergy: false, tier: 2, rarity: 6, description: makeNimstrLit("On your turn, instead of moving, you can choose 2 pieces to each cast Zero on \x0A any non-king tile. Any piece on these tiles will die if the cast completes. Zero cannot be cast turn one. Glass powers take one turn to start casting, one turn waiting to draw glass power, and one turn when the cast completes."), icon: [122,101,114,111,103,108,97,115,115,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845499616, index: (-1), priority: 15}, {name: [67,97,112,105,116,97,108,105,115,109], technicalName: [], synergy: false, tier: 1, rarity: 24, description: makeNimstrLit("The power of the free market is unmatched. \x0A All of your pieces get the ability to buy upgrades. \x0A You get 3 dollars for taking a piece.\x0A With 30 dollars, you can promote one piece. The promoted piece cannot move on the turn it is promoted."), icon: [117,115,102,108,97,103,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845496191, index: (-1), priority: 30}]; function nimMax(a_33557108, b_33557109) { var Temporary1; @@ -1877,9 +1814,48 @@ function nimMax(a_33557108, b_33557109) { return result_33557110; } - var rngPowers_1493178726 = [{name: [65,108,99,111,104,111,108,105,115,109], technicalName: [], synergy: false, tier: 3, rarity: 4, description: [89,111,117,39,114,101,32,102,97,109,105,108,105,101,115,32,97,110,100,32,102,114,105,101,110,100,115,32,109,105,115,115,32,121,111,117,46,32,84,104,101,32,114,101,97,108,32,121,111,117,46], icon: [112,97,119,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1493174023, index: (-1), priority: 15}, {name: [68,114,117,110,107,32,75,110,105,103,104,116,115], technicalName: [], synergy: false, tier: 2, rarity: 8, description: makeNimstrLit("Drunk riding is dangerous, your knights should be ashamed of themselves. \x0A After every other turn, they randomly move."), icon: [107,110,105,103,104,116,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1493174013, index: (-1), priority: 15}, {name: [67,105,118,105,108,105,97,110,115], technicalName: [], synergy: false, tier: 1, rarity: 8, description: makeNimstrLit("Of course, a battle will have its civillians. And of course, the enemy won\'t kill them.\x0A 3 civillians spawn on the enemy side. They randomly move and cannot be taken."), icon: [99,105,118,105,108,105,97,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1493174240, index: (-1), priority: 30}, {name: [83,108,117,109,100,111,103,32,77,105,108,108,105,111,110,97,105,114,101], technicalName: [], synergy: false, tier: 0, rarity: 8, description: makeNimstrLit("Have you seen the movie Slumdog Millionaire? It\'s kind of like that. \x0A Your pawns have a 1% chance of promoting whenever they move."), icon: [112,97,119,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1493174366, index: (-1), priority: 15}, {name: [83,116,117,112,105,100,32,80,111,119,101,114], technicalName: [], synergy: false, tier: 0, rarity: 8, description: makeNimstrLit("You have a 0.1% chance to automatically win each turn. Yeah, I\'m out of ideas. I\'m sorry."), icon: [107,105,110,103,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1493174415, index: (-1), priority: 15}, {name: [83,108,101,101,112,101,114,32,65,103,101,110,116], technicalName: [], synergy: false, tier: 0, rarity: 8, description: makeNimstrLit("The silent river collapses in pieces. \x0A One of your pawns is a sleeper agent. They can take forward."), icon: [112,97,119,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1493174513, index: (-1), priority: 30}, {name: [67,111,110,118,101,114,115,105,111,110], technicalName: [], synergy: false, tier: 1, rarity: 8, description: makeNimstrLit("When your bishop takes a piece, it has a 15% chance to convert it to your color. \x0A When this happens, your bishop swaps places with it instead of taking it."), icon: [98,105,115,104,111,112,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1493174448, index: (-1), priority: 15}]; - var experimentalPowers_1493178731 = [{name: [71,108,97,115,115,58,32,83,107,121], technicalName: [], synergy: false, tier: 1, rarity: 6, description: makeNimstrLit("On your turn, instead of moving, you can choose 2 pieces to each cast Sky on any \x0A open tile. These pieces teleport to their selected tile when the cast completes. \x0A Pieces cannot try to teleport to a tile where they would check the king. Glass powers take one turn to start casting, one turn waiting to draw glass power, and one turn when the cast completes."), icon: [115,107,121,103,108,97,115,115,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1493178043, index: (-1), priority: 15}, {name: [71,108,97,115,115,58,32,90,101,114,111], technicalName: [], synergy: false, tier: 2, rarity: 6, description: makeNimstrLit("On your turn, instead of moving, you can choose 2 pieces to each cast Zero on \x0A any non-king tile. Any piece on these tiles will die if the cast completes. Zero cannot be cast turn one. Glass powers take one turn to start casting, one turn waiting to draw glass power, and one turn when the cast completes."), icon: [122,101,114,111,103,108,97,115,115,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1493178057, index: (-1), priority: 15}, {name: [71,108,97,115,115,58,32,83,116,101,101,108], technicalName: [], synergy: false, tier: 0, rarity: 6, description: makeNimstrLit("On your turn, instead of moving, you can choose 5 pieces to each cast Steel. \x0A If there is an enemy one tile in front of them when the cast completes, they take forward. Glass powers take one turn to start casting, one turn waiting to draw glass power, and one turn when the cast completes."), icon: [115,116,101,101,108,103,108,97,115,115,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1493178069, index: (-1), priority: 15}, {name: [71,108,97,115,115,58,32,82,101,118,101,114,105,101], technicalName: [], synergy: false, tier: 0, rarity: 6, description: makeNimstrLit("On your turn, instead of moving you can choose 3 pieces to each cast Reverie on \x0A an opponent tile. When the cast completes, \x0A they swap moves and takes with whatever piece is on that tile. If that piece \x0A is a king, the cast fails. Glass powers take one turn to start casting, one turn waiting to draw glass power, and one turn when the cast completes."), icon: [114,101,118,101,114,105,101,103,108,97,115,115,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1493178403, index: (-1), priority: 0}, {name: [71,108,97,115,115,58,32,68,97,121,98,114,101,97,107], technicalName: [], synergy: false, tier: 2, rarity: 6, description: makeNimstrLit("On your turn, instead of moving you can choose 1 pieces to cast Daybreak on \x0A any tile. When the cast completes, the piece on that tile promotes. Glass powers take one turn to start casting, one turn waiting to draw glass power, and one turn when the cast completes."), icon: [100,97,121,98,114,101,97,107,103,108,97,115,115,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1493178449, index: (-1), priority: 0}]; - var emptyPower_1442840638 = {name: [78,111,116,104,105,110,103,46,32,78,111,116,104,105,110,103,46,46,46], technicalName: [], synergy: false, tier: 0, rarity: 8, description: [84,104,105,115,32,100,111,101,115,32,110,111,116,104,105,110,103,46,32,85,110,108,117,99,107,121,33], icon: [], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1442840633, index: 0, priority: 10}; + var rngPowers_1845500285 = [{name: [65,108,99,111,104,111,108,105,115,109], technicalName: [], synergy: false, tier: 3, rarity: 4, description: [89,111,117,39,114,101,32,102,97,109,105,108,105,101,115,32,97,110,100,32,102,114,105,101,110,100,115,32,109,105,115,115,32,121,111,117,46,32,84,104,101,32,114,101,97,108,32,121,111,117,46], icon: [112,97,119,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845495559, index: (-1), priority: 15}, {name: [68,114,117,110,107,32,75,110,105,103,104,116,115], technicalName: [], synergy: false, tier: 2, rarity: 8, description: makeNimstrLit("Drunk riding is dangerous, your knights should be ashamed of themselves. \x0A After every other turn, they randomly move."), icon: [107,110,105,103,104,116,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845495549, index: (-1), priority: 15}, {name: [67,105,118,105,108,105,97,110,115], technicalName: [], synergy: false, tier: 1, rarity: 8, description: makeNimstrLit("Of course, a battle will have its civillians. And of course, the enemy won\'t kill them.\x0A 3 civillians spawn on the enemy side. They randomly move and cannot be taken."), icon: [99,105,118,105,108,105,97,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845495776, index: (-1), priority: 30}, {name: [83,108,117,109,100,111,103,32,77,105,108,108,105,111,110,97,105,114,101], technicalName: [], synergy: false, tier: 0, rarity: 8, description: makeNimstrLit("Have you seen the movie Slumdog Millionaire? It\'s kind of like that. \x0A Your pawns have a 1% chance of promoting whenever they move."), icon: [112,97,119,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845495902, index: (-1), priority: 15}, {name: [83,116,117,112,105,100,32,80,111,119,101,114], technicalName: [], synergy: false, tier: 0, rarity: 8, description: makeNimstrLit("You have a 0.1% chance to automatically win each turn. Yeah, I\'m out of ideas. I\'m sorry."), icon: [107,105,110,103,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845495951, index: (-1), priority: 15}, {name: [83,108,101,101,112,101,114,32,65,103,101,110,116], technicalName: [], synergy: false, tier: 0, rarity: 8, description: makeNimstrLit("The silent river collapses in pieces. \x0A One of your pawns is a sleeper agent. They can take forward."), icon: [112,97,119,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845496033, index: (-1), priority: 30}, {name: [67,111,110,118,101,114,115,105,111,110], technicalName: [], synergy: false, tier: 1, rarity: 8, description: makeNimstrLit("When your bishop takes a piece, it has a 15% chance to convert it to your color. \x0A When this happens, your bishop swaps places with it instead of taking it."), icon: [98,105,115,104,111,112,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845495991, index: (-1), priority: 15}]; + var experimentalPowers_1845500290 = [{name: [71,108,97,115,115,58,32,83,107,121], technicalName: [], synergy: false, tier: 1, rarity: 6, description: makeNimstrLit("On your turn, instead of moving, you can choose 2 pieces to each cast Sky on any \x0A open tile. These pieces teleport to their selected tile when the cast completes. \x0A Pieces cannot try to teleport to a tile where they would check the king. Glass powers take one turn to start casting, one turn waiting to draw glass power, and one turn when the cast completes."), icon: [115,107,121,103,108,97,115,115,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845499602, index: (-1), priority: 15}, {name: [71,108,97,115,115,58,32,90,101,114,111], technicalName: [], synergy: false, tier: 2, rarity: 6, description: makeNimstrLit("On your turn, instead of moving, you can choose 2 pieces to each cast Zero on \x0A any non-king tile. Any piece on these tiles will die if the cast completes. Zero cannot be cast turn one. Glass powers take one turn to start casting, one turn waiting to draw glass power, and one turn when the cast completes."), icon: [122,101,114,111,103,108,97,115,115,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845499616, index: (-1), priority: 15}, {name: [71,108,97,115,115,58,32,83,116,101,101,108], technicalName: [], synergy: false, tier: 0, rarity: 6, description: makeNimstrLit("On your turn, instead of moving, you can choose 5 pieces to each cast Steel. \x0A If there is an enemy one tile in front of them when the cast completes, they take forward. Glass powers take one turn to start casting, one turn waiting to draw glass power, and one turn when the cast completes."), icon: [115,116,101,101,108,103,108,97,115,115,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845499628, index: (-1), priority: 15}, {name: [71,108,97,115,115,58,32,82,101,118,101,114,105,101], technicalName: [], synergy: false, tier: 0, rarity: 6, description: makeNimstrLit("On your turn, instead of moving you can choose 3 pieces to each cast Reverie on \x0A an opponent tile. When the cast completes, \x0A they swap moves and takes with whatever piece is on that tile. If that piece \x0A is a king, the cast fails. Glass powers take one turn to start casting, one turn waiting to draw glass power, and one turn when the cast completes."), icon: [114,101,118,101,114,105,101,103,108,97,115,115,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845499962, index: (-1), priority: 0}, {name: [71,108,97,115,115,58,32,68,97,121,98,114,101,97,107], technicalName: [], synergy: false, tier: 2, rarity: 6, description: makeNimstrLit("On your turn, instead of moving you can choose 1 pieces to cast Daybreak on \x0A any tile. When the cast completes, the piece on that tile promotes. Glass powers take one turn to start casting, one turn waiting to draw glass power, and one turn when the cast completes."), icon: [100,97,121,98,114,101,97,107,103,108,97,115,115,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845500008, index: (-1), priority: 0}]; + var emptyPower_1728053310 = {name: [78,111,116,104,105,110,103,46,32,78,111,116,104,105,110,103,46,46,46], technicalName: [], synergy: false, tier: 0, rarity: 8, description: [84,104,105,115,32,100,111,101,115,32,110,111,116,104,105,110,103,46,32,85,110,108,117,99,107,121,33], icon: [], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1728053305, index: 0, priority: 10}; + +function cstrToNimstr(c_33556898) { + var ln = c_33556898.length; + var result = new Array(ln); + var r = 0; + for (var i = 0; i < ln; ++i) { + var ch = c_33556898.charCodeAt(i); + + if (ch < 128) { + result[r] = ch; + } + else { + if (ch < 2048) { + result[r] = (ch >> 6) | 192; + } + else { + if (ch < 55296 || ch >= 57344) { + result[r] = (ch >> 12) | 224; + } + else { + ++i; + ch = 65536 + (((ch & 1023) << 10) | (c_33556898.charCodeAt(i) & 1023)); + result[r] = (ch >> 18) | 240; + ++r; + result[r] = ((ch >> 12) & 63) | 128; + } + ++r; + result[r] = ((ch >> 6) & 63) | 128; + } + ++r; + result[r] = (ch & 63) | 128; + } + ++r; + } + return result; + + + +} var ConstSet6 = setConstr([48, 57]); var ConstSet7 = setConstr([48, 57]); @@ -1891,8 +1867,8 @@ function divInt64(a_33557084, b_33557085) { } - var toLowerRanges_1040188404 = new Int32Array([65, 90, 532, 192, 214, 532, 216, 222, 532, 393, 394, 705, 433, 434, 717, 904, 906, 537, 910, 911, 563, 913, 929, 532, 931, 939, 532, 1021, 1023, 370, 1024, 1039, 580, 1040, 1071, 532, 1329, 1366, 548, 4256, 4293, 7764, 5024, 5103, 39364, 5104, 5109, 508, 7312, 7354, (-2508), 7357, 7359, (-2508), 7944, 7951, 492, 7960, 7965, 492, 7976, 7983, 492, 7992, 7999, 492, 8008, 8013, 492, 8040, 8047, 492, 8072, 8079, 492, 8088, 8095, 492, 8104, 8111, 492, 8120, 8121, 492, 8122, 8123, 426, 8136, 8139, 414, 8152, 8153, 492, 8154, 8155, 400, 8168, 8169, 492, 8170, 8171, 388, 8184, 8185, 372, 8186, 8187, 374, 11264, 11310, 548, 11390, 11391, (-10315), 65313, 65338, 532, 66560, 66599, 540, 66736, 66771, 540, 68736, 68786, 564, 71840, 71871, 532, 93760, 93791, 532, 125184, 125217, 534]); - var toLowerSinglets_1040188405 = new Int32Array([256, 501, 258, 501, 260, 501, 262, 501, 264, 501, 266, 501, 268, 501, 270, 501, 272, 501, 274, 501, 276, 501, 278, 501, 280, 501, 282, 501, 284, 501, 286, 501, 288, 501, 290, 501, 292, 501, 294, 501, 296, 501, 298, 501, 300, 501, 302, 501, 304, 301, 306, 501, 308, 501, 310, 501, 313, 501, 315, 501, 317, 501, 319, 501, 321, 501, 323, 501, 325, 501, 327, 501, 330, 501, 332, 501, 334, 501, 336, 501, 338, 501, 340, 501, 342, 501, 344, 501, 346, 501, 348, 501, 350, 501, 352, 501, 354, 501, 356, 501, 358, 501, 360, 501, 362, 501, 364, 501, 366, 501, 368, 501, 370, 501, 372, 501, 374, 501, 376, 379, 377, 501, 379, 501, 381, 501, 385, 710, 386, 501, 388, 501, 390, 706, 391, 501, 395, 501, 398, 579, 399, 702, 400, 703, 401, 501, 403, 705, 404, 707, 406, 711, 407, 709, 408, 501, 412, 711, 413, 713, 415, 714, 416, 501, 418, 501, 420, 501, 422, 718, 423, 501, 425, 718, 428, 501, 430, 718, 431, 501, 435, 501, 437, 501, 439, 719, 440, 501, 444, 501, 452, 502, 453, 501, 455, 502, 456, 501, 458, 502, 459, 501, 461, 501, 463, 501, 465, 501, 467, 501, 469, 501, 471, 501, 473, 501, 475, 501, 478, 501, 480, 501, 482, 501, 484, 501, 486, 501, 488, 501, 490, 501, 492, 501, 494, 501, 497, 502, 498, 501, 500, 501, 502, 403, 503, 444, 504, 501, 506, 501, 508, 501, 510, 501, 512, 501, 514, 501, 516, 501, 518, 501, 520, 501, 522, 501, 524, 501, 526, 501, 528, 501, 530, 501, 532, 501, 534, 501, 536, 501, 538, 501, 540, 501, 542, 501, 544, 370, 546, 501, 548, 501, 550, 501, 552, 501, 554, 501, 556, 501, 558, 501, 560, 501, 562, 501, 570, 11295, 571, 501, 573, 337, 574, 11292, 577, 501, 579, 305, 580, 569, 581, 571, 582, 501, 584, 501, 586, 501, 588, 501, 590, 501, 880, 501, 882, 501, 886, 501, 895, 616, 902, 538, 908, 564, 975, 508, 984, 501, 986, 501, 988, 501, 990, 501, 992, 501, 994, 501, 996, 501, 998, 501, 1000, 501, 1002, 501, 1004, 501, 1006, 501, 1012, 440, 1015, 501, 1017, 493, 1018, 501, 1120, 501, 1122, 501, 1124, 501, 1126, 501, 1128, 501, 1130, 501, 1132, 501, 1134, 501, 1136, 501, 1138, 501, 1140, 501, 1142, 501, 1144, 501, 1146, 501, 1148, 501, 1150, 501, 1152, 501, 1162, 501, 1164, 501, 1166, 501, 1168, 501, 1170, 501, 1172, 501, 1174, 501, 1176, 501, 1178, 501, 1180, 501, 1182, 501, 1184, 501, 1186, 501, 1188, 501, 1190, 501, 1192, 501, 1194, 501, 1196, 501, 1198, 501, 1200, 501, 1202, 501, 1204, 501, 1206, 501, 1208, 501, 1210, 501, 1212, 501, 1214, 501, 1216, 515, 1217, 501, 1219, 501, 1221, 501, 1223, 501, 1225, 501, 1227, 501, 1229, 501, 1232, 501, 1234, 501, 1236, 501, 1238, 501, 1240, 501, 1242, 501, 1244, 501, 1246, 501, 1248, 501, 1250, 501, 1252, 501, 1254, 501, 1256, 501, 1258, 501, 1260, 501, 1262, 501, 1264, 501, 1266, 501, 1268, 501, 1270, 501, 1272, 501, 1274, 501, 1276, 501, 1278, 501, 1280, 501, 1282, 501, 1284, 501, 1286, 501, 1288, 501, 1290, 501, 1292, 501, 1294, 501, 1296, 501, 1298, 501, 1300, 501, 1302, 501, 1304, 501, 1306, 501, 1308, 501, 1310, 501, 1312, 501, 1314, 501, 1316, 501, 1318, 501, 1320, 501, 1322, 501, 1324, 501, 1326, 501, 4295, 7764, 4301, 7764, 7680, 501, 7682, 501, 7684, 501, 7686, 501, 7688, 501, 7690, 501, 7692, 501, 7694, 501, 7696, 501, 7698, 501, 7700, 501, 7702, 501, 7704, 501, 7706, 501, 7708, 501, 7710, 501, 7712, 501, 7714, 501, 7716, 501, 7718, 501, 7720, 501, 7722, 501, 7724, 501, 7726, 501, 7728, 501, 7730, 501, 7732, 501, 7734, 501, 7736, 501, 7738, 501, 7740, 501, 7742, 501, 7744, 501, 7746, 501, 7748, 501, 7750, 501, 7752, 501, 7754, 501, 7756, 501, 7758, 501, 7760, 501, 7762, 501, 7764, 501, 7766, 501, 7768, 501, 7770, 501, 7772, 501, 7774, 501, 7776, 501, 7778, 501, 7780, 501, 7782, 501, 7784, 501, 7786, 501, 7788, 501, 7790, 501, 7792, 501, 7794, 501, 7796, 501, 7798, 501, 7800, 501, 7802, 501, 7804, 501, 7806, 501, 7808, 501, 7810, 501, 7812, 501, 7814, 501, 7816, 501, 7818, 501, 7820, 501, 7822, 501, 7824, 501, 7826, 501, 7828, 501, 7838, (-7115), 7840, 501, 7842, 501, 7844, 501, 7846, 501, 7848, 501, 7850, 501, 7852, 501, 7854, 501, 7856, 501, 7858, 501, 7860, 501, 7862, 501, 7864, 501, 7866, 501, 7868, 501, 7870, 501, 7872, 501, 7874, 501, 7876, 501, 7878, 501, 7880, 501, 7882, 501, 7884, 501, 7886, 501, 7888, 501, 7890, 501, 7892, 501, 7894, 501, 7896, 501, 7898, 501, 7900, 501, 7902, 501, 7904, 501, 7906, 501, 7908, 501, 7910, 501, 7912, 501, 7914, 501, 7916, 501, 7918, 501, 7920, 501, 7922, 501, 7924, 501, 7926, 501, 7928, 501, 7930, 501, 7932, 501, 7934, 501, 8025, 492, 8027, 492, 8029, 492, 8031, 492, 8124, 491, 8140, 491, 8172, 493, 8188, 491, 8486, (-7017), 8490, (-7883), 8491, (-7762), 8498, 528, 8579, 501, 11360, 501, 11362, (-10243), 11363, (-3314), 11364, (-10227), 11367, 501, 11369, 501, 11371, 501, 11373, (-10280), 11374, (-10249), 11375, (-10283), 11376, (-10282), 11378, 501, 11381, 501, 11392, 501, 11394, 501, 11396, 501, 11398, 501, 11400, 501, 11402, 501, 11404, 501, 11406, 501, 11408, 501, 11410, 501, 11412, 501, 11414, 501, 11416, 501, 11418, 501, 11420, 501, 11422, 501, 11424, 501, 11426, 501, 11428, 501, 11430, 501, 11432, 501, 11434, 501, 11436, 501, 11438, 501, 11440, 501, 11442, 501, 11444, 501, 11446, 501, 11448, 501, 11450, 501, 11452, 501, 11454, 501, 11456, 501, 11458, 501, 11460, 501, 11462, 501, 11464, 501, 11466, 501, 11468, 501, 11470, 501, 11472, 501, 11474, 501, 11476, 501, 11478, 501, 11480, 501, 11482, 501, 11484, 501, 11486, 501, 11488, 501, 11490, 501, 11499, 501, 11501, 501, 11506, 501, 42560, 501, 42562, 501, 42564, 501, 42566, 501, 42568, 501, 42570, 501, 42572, 501, 42574, 501, 42576, 501, 42578, 501, 42580, 501, 42582, 501, 42584, 501, 42586, 501, 42588, 501, 42590, 501, 42592, 501, 42594, 501, 42596, 501, 42598, 501, 42600, 501, 42602, 501, 42604, 501, 42624, 501, 42626, 501, 42628, 501, 42630, 501, 42632, 501, 42634, 501, 42636, 501, 42638, 501, 42640, 501, 42642, 501, 42644, 501, 42646, 501, 42648, 501, 42650, 501, 42786, 501, 42788, 501, 42790, 501, 42792, 501, 42794, 501, 42796, 501, 42798, 501, 42802, 501, 42804, 501, 42806, 501, 42808, 501, 42810, 501, 42812, 501, 42814, 501, 42816, 501, 42818, 501, 42820, 501, 42822, 501, 42824, 501, 42826, 501, 42828, 501, 42830, 501, 42832, 501, 42834, 501, 42836, 501, 42838, 501, 42840, 501, 42842, 501, 42844, 501, 42846, 501, 42848, 501, 42850, 501, 42852, 501, 42854, 501, 42856, 501, 42858, 501, 42860, 501, 42862, 501, 42873, 501, 42875, 501, 42877, (-34832), 42878, 501, 42880, 501, 42882, 501, 42884, 501, 42886, 501, 42891, 501, 42893, (-41780), 42896, 501, 42898, 501, 42902, 501, 42904, 501, 42906, 501, 42908, 501, 42910, 501, 42912, 501, 42914, 501, 42916, 501, 42918, 501, 42920, 501, 42922, (-41808), 42923, (-41819), 42924, (-41815), 42925, (-41805), 42926, (-41808), 42928, (-41758), 42929, (-41782), 42930, (-41761), 42931, 1428, 42932, 501, 42934, 501, 42936, 501, 42938, 501, 42940, 501, 42942, 501, 42946, 501, 42948, 452, 42949, (-41807), 42950, (-34884)]); + var toLowerRanges_1157628916 = new Int32Array([65, 90, 532, 192, 214, 532, 216, 222, 532, 393, 394, 705, 433, 434, 717, 904, 906, 537, 910, 911, 563, 913, 929, 532, 931, 939, 532, 1021, 1023, 370, 1024, 1039, 580, 1040, 1071, 532, 1329, 1366, 548, 4256, 4293, 7764, 5024, 5103, 39364, 5104, 5109, 508, 7312, 7354, (-2508), 7357, 7359, (-2508), 7944, 7951, 492, 7960, 7965, 492, 7976, 7983, 492, 7992, 7999, 492, 8008, 8013, 492, 8040, 8047, 492, 8072, 8079, 492, 8088, 8095, 492, 8104, 8111, 492, 8120, 8121, 492, 8122, 8123, 426, 8136, 8139, 414, 8152, 8153, 492, 8154, 8155, 400, 8168, 8169, 492, 8170, 8171, 388, 8184, 8185, 372, 8186, 8187, 374, 11264, 11310, 548, 11390, 11391, (-10315), 65313, 65338, 532, 66560, 66599, 540, 66736, 66771, 540, 68736, 68786, 564, 71840, 71871, 532, 93760, 93791, 532, 125184, 125217, 534]); + var toLowerSinglets_1157628917 = new Int32Array([256, 501, 258, 501, 260, 501, 262, 501, 264, 501, 266, 501, 268, 501, 270, 501, 272, 501, 274, 501, 276, 501, 278, 501, 280, 501, 282, 501, 284, 501, 286, 501, 288, 501, 290, 501, 292, 501, 294, 501, 296, 501, 298, 501, 300, 501, 302, 501, 304, 301, 306, 501, 308, 501, 310, 501, 313, 501, 315, 501, 317, 501, 319, 501, 321, 501, 323, 501, 325, 501, 327, 501, 330, 501, 332, 501, 334, 501, 336, 501, 338, 501, 340, 501, 342, 501, 344, 501, 346, 501, 348, 501, 350, 501, 352, 501, 354, 501, 356, 501, 358, 501, 360, 501, 362, 501, 364, 501, 366, 501, 368, 501, 370, 501, 372, 501, 374, 501, 376, 379, 377, 501, 379, 501, 381, 501, 385, 710, 386, 501, 388, 501, 390, 706, 391, 501, 395, 501, 398, 579, 399, 702, 400, 703, 401, 501, 403, 705, 404, 707, 406, 711, 407, 709, 408, 501, 412, 711, 413, 713, 415, 714, 416, 501, 418, 501, 420, 501, 422, 718, 423, 501, 425, 718, 428, 501, 430, 718, 431, 501, 435, 501, 437, 501, 439, 719, 440, 501, 444, 501, 452, 502, 453, 501, 455, 502, 456, 501, 458, 502, 459, 501, 461, 501, 463, 501, 465, 501, 467, 501, 469, 501, 471, 501, 473, 501, 475, 501, 478, 501, 480, 501, 482, 501, 484, 501, 486, 501, 488, 501, 490, 501, 492, 501, 494, 501, 497, 502, 498, 501, 500, 501, 502, 403, 503, 444, 504, 501, 506, 501, 508, 501, 510, 501, 512, 501, 514, 501, 516, 501, 518, 501, 520, 501, 522, 501, 524, 501, 526, 501, 528, 501, 530, 501, 532, 501, 534, 501, 536, 501, 538, 501, 540, 501, 542, 501, 544, 370, 546, 501, 548, 501, 550, 501, 552, 501, 554, 501, 556, 501, 558, 501, 560, 501, 562, 501, 570, 11295, 571, 501, 573, 337, 574, 11292, 577, 501, 579, 305, 580, 569, 581, 571, 582, 501, 584, 501, 586, 501, 588, 501, 590, 501, 880, 501, 882, 501, 886, 501, 895, 616, 902, 538, 908, 564, 975, 508, 984, 501, 986, 501, 988, 501, 990, 501, 992, 501, 994, 501, 996, 501, 998, 501, 1000, 501, 1002, 501, 1004, 501, 1006, 501, 1012, 440, 1015, 501, 1017, 493, 1018, 501, 1120, 501, 1122, 501, 1124, 501, 1126, 501, 1128, 501, 1130, 501, 1132, 501, 1134, 501, 1136, 501, 1138, 501, 1140, 501, 1142, 501, 1144, 501, 1146, 501, 1148, 501, 1150, 501, 1152, 501, 1162, 501, 1164, 501, 1166, 501, 1168, 501, 1170, 501, 1172, 501, 1174, 501, 1176, 501, 1178, 501, 1180, 501, 1182, 501, 1184, 501, 1186, 501, 1188, 501, 1190, 501, 1192, 501, 1194, 501, 1196, 501, 1198, 501, 1200, 501, 1202, 501, 1204, 501, 1206, 501, 1208, 501, 1210, 501, 1212, 501, 1214, 501, 1216, 515, 1217, 501, 1219, 501, 1221, 501, 1223, 501, 1225, 501, 1227, 501, 1229, 501, 1232, 501, 1234, 501, 1236, 501, 1238, 501, 1240, 501, 1242, 501, 1244, 501, 1246, 501, 1248, 501, 1250, 501, 1252, 501, 1254, 501, 1256, 501, 1258, 501, 1260, 501, 1262, 501, 1264, 501, 1266, 501, 1268, 501, 1270, 501, 1272, 501, 1274, 501, 1276, 501, 1278, 501, 1280, 501, 1282, 501, 1284, 501, 1286, 501, 1288, 501, 1290, 501, 1292, 501, 1294, 501, 1296, 501, 1298, 501, 1300, 501, 1302, 501, 1304, 501, 1306, 501, 1308, 501, 1310, 501, 1312, 501, 1314, 501, 1316, 501, 1318, 501, 1320, 501, 1322, 501, 1324, 501, 1326, 501, 4295, 7764, 4301, 7764, 7680, 501, 7682, 501, 7684, 501, 7686, 501, 7688, 501, 7690, 501, 7692, 501, 7694, 501, 7696, 501, 7698, 501, 7700, 501, 7702, 501, 7704, 501, 7706, 501, 7708, 501, 7710, 501, 7712, 501, 7714, 501, 7716, 501, 7718, 501, 7720, 501, 7722, 501, 7724, 501, 7726, 501, 7728, 501, 7730, 501, 7732, 501, 7734, 501, 7736, 501, 7738, 501, 7740, 501, 7742, 501, 7744, 501, 7746, 501, 7748, 501, 7750, 501, 7752, 501, 7754, 501, 7756, 501, 7758, 501, 7760, 501, 7762, 501, 7764, 501, 7766, 501, 7768, 501, 7770, 501, 7772, 501, 7774, 501, 7776, 501, 7778, 501, 7780, 501, 7782, 501, 7784, 501, 7786, 501, 7788, 501, 7790, 501, 7792, 501, 7794, 501, 7796, 501, 7798, 501, 7800, 501, 7802, 501, 7804, 501, 7806, 501, 7808, 501, 7810, 501, 7812, 501, 7814, 501, 7816, 501, 7818, 501, 7820, 501, 7822, 501, 7824, 501, 7826, 501, 7828, 501, 7838, (-7115), 7840, 501, 7842, 501, 7844, 501, 7846, 501, 7848, 501, 7850, 501, 7852, 501, 7854, 501, 7856, 501, 7858, 501, 7860, 501, 7862, 501, 7864, 501, 7866, 501, 7868, 501, 7870, 501, 7872, 501, 7874, 501, 7876, 501, 7878, 501, 7880, 501, 7882, 501, 7884, 501, 7886, 501, 7888, 501, 7890, 501, 7892, 501, 7894, 501, 7896, 501, 7898, 501, 7900, 501, 7902, 501, 7904, 501, 7906, 501, 7908, 501, 7910, 501, 7912, 501, 7914, 501, 7916, 501, 7918, 501, 7920, 501, 7922, 501, 7924, 501, 7926, 501, 7928, 501, 7930, 501, 7932, 501, 7934, 501, 8025, 492, 8027, 492, 8029, 492, 8031, 492, 8124, 491, 8140, 491, 8172, 493, 8188, 491, 8486, (-7017), 8490, (-7883), 8491, (-7762), 8498, 528, 8579, 501, 11360, 501, 11362, (-10243), 11363, (-3314), 11364, (-10227), 11367, 501, 11369, 501, 11371, 501, 11373, (-10280), 11374, (-10249), 11375, (-10283), 11376, (-10282), 11378, 501, 11381, 501, 11392, 501, 11394, 501, 11396, 501, 11398, 501, 11400, 501, 11402, 501, 11404, 501, 11406, 501, 11408, 501, 11410, 501, 11412, 501, 11414, 501, 11416, 501, 11418, 501, 11420, 501, 11422, 501, 11424, 501, 11426, 501, 11428, 501, 11430, 501, 11432, 501, 11434, 501, 11436, 501, 11438, 501, 11440, 501, 11442, 501, 11444, 501, 11446, 501, 11448, 501, 11450, 501, 11452, 501, 11454, 501, 11456, 501, 11458, 501, 11460, 501, 11462, 501, 11464, 501, 11466, 501, 11468, 501, 11470, 501, 11472, 501, 11474, 501, 11476, 501, 11478, 501, 11480, 501, 11482, 501, 11484, 501, 11486, 501, 11488, 501, 11490, 501, 11499, 501, 11501, 501, 11506, 501, 42560, 501, 42562, 501, 42564, 501, 42566, 501, 42568, 501, 42570, 501, 42572, 501, 42574, 501, 42576, 501, 42578, 501, 42580, 501, 42582, 501, 42584, 501, 42586, 501, 42588, 501, 42590, 501, 42592, 501, 42594, 501, 42596, 501, 42598, 501, 42600, 501, 42602, 501, 42604, 501, 42624, 501, 42626, 501, 42628, 501, 42630, 501, 42632, 501, 42634, 501, 42636, 501, 42638, 501, 42640, 501, 42642, 501, 42644, 501, 42646, 501, 42648, 501, 42650, 501, 42786, 501, 42788, 501, 42790, 501, 42792, 501, 42794, 501, 42796, 501, 42798, 501, 42802, 501, 42804, 501, 42806, 501, 42808, 501, 42810, 501, 42812, 501, 42814, 501, 42816, 501, 42818, 501, 42820, 501, 42822, 501, 42824, 501, 42826, 501, 42828, 501, 42830, 501, 42832, 501, 42834, 501, 42836, 501, 42838, 501, 42840, 501, 42842, 501, 42844, 501, 42846, 501, 42848, 501, 42850, 501, 42852, 501, 42854, 501, 42856, 501, 42858, 501, 42860, 501, 42862, 501, 42873, 501, 42875, 501, 42877, (-34832), 42878, 501, 42880, 501, 42882, 501, 42884, 501, 42886, 501, 42891, 501, 42893, (-41780), 42896, 501, 42898, 501, 42902, 501, 42904, 501, 42906, 501, 42908, 501, 42910, 501, 42912, 501, 42914, 501, 42916, 501, 42918, 501, 42920, 501, 42922, (-41808), 42923, (-41819), 42924, (-41815), 42925, (-41805), 42926, (-41808), 42928, (-41758), 42929, (-41782), 42930, (-41761), 42931, 1428, 42932, 501, 42934, 501, 42936, 501, 42938, 501, 42940, 501, 42942, 501, 42946, 501, 42948, 452, 42949, (-41807), 42950, (-34884)]); function absInt(a_33557098) { var Temporary1; @@ -1911,303 +1887,25 @@ function absInt(a_33557098) { return result_33557099; } - var castingOnAnimations_520093731 = [[32,99,97,115,116,105,110,103,45,111,110,45,115,107,121,32], [32,99,97,115,116,105,110,103,45,111,110,45,122,101,114,111,32], [32,99,97,115,116,105,110,103,45,111,110,45,115,116,101,101,108,32], [32,99,97,115,116,105,110,103,45,111,110,45,114,101,118,101,114,105,101,32], [32,99,97,115,116,105,110,103,45,111,110,45,100,97,121,98,114,101,97,107,32]]; - var castingAnimations_520093730 = [[32,99,97,115,116,105,110,103,45,115,107,121,32], [32,99,97,115,116,105,110,103,45,122,101,114,111,32], [32,99,97,115,116,105,110,103,45,115,116,101,101,108,32], [32,99,97,115,116,105,110,103,45,114,101,118,101,114,105,101,32], [32,99,97,115,116,105,110,103,45,100,97,121,98,114,101,97,107,32]]; -var F = {procname: "module kbase", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/kbase.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module kbase", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/kbase.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module dom", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/js/dom.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module dom", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/js/dom.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module kdom", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/kdom.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module kdom", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/kdom.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module macros", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/core/macros.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module macros", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/core/macros.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module parseutils", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/parseutils.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module parseutils", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/parseutils.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module bitops_utils", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/std/private/bitops_utils.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module bitops_utils", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/std/private/bitops_utils.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module countbits_impl", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/countbits_impl.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module countbits_impl", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/countbits_impl.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module bitops", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/bitops.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module bitops", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/bitops.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module fenv", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/fenv.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module fenv", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/fenv.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module math", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/math.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module math", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/math.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module algorithm", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/algorithm.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module algorithm", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/algorithm.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module typetraits", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/typetraits.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module typetraits", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/typetraits.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module enumutils", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/std/enumutils.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module enumutils", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/std/enumutils.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module strbasics", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/std/strbasics.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module strbasics", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/std/strbasics.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module unicode", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/unicode.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module unicode", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/unicode.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module strimpl", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/std/private/strimpl.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module strimpl", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/std/private/strimpl.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module strutils", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/strutils.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module strutils", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/strutils.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module jdict", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/jdict.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module jdict", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/jdict.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module jstrutils", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/jstrutils.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module jstrutils", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/jstrutils.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module vstyles", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/vstyles.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module vstyles", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/vstyles.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module vdom", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/vdom.nim", line: 0}; -framePtr = F; -F.line = 75; -F.filename = "vdom.nim"; -var svgNamespace_721420514 = [[104,116,116,112,58,47,47,119,119,119,46,119,51,46,111,114,103,47,50,48,48,48,47,115,118,103]]; -F.line = 76; -var mathNamespace_721420515 = [[104,116,116,112,58,47,47,119,119,119,46,119,51,46,111,114,103,47,49,57,57,56,47,77,97,116,104,47,77,97,116,104,77,76]]; -F.line = 224; -var gid_721421004 = [0]; -framePtr = F.prev; -var F = {procname: "module vdom", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/vdom.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module hashes", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/hashes.nim", line: 0}; -framePtr = F; -F.line = 218; -F.filename = "hashes.nim"; -var objectID_1124073649 = [0]; -framePtr = F.prev; -var F = {procname: "module hashes", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/hashes.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module outparams", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/std/outparams.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module outparams", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/std/outparams.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module tables", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/collections/tables.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module tables", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/collections/tables.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module compact", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/compact.nim", line: 0}; -framePtr = F; -F.line = 10; -F.filename = "compact.nim"; -var vcomponents_754974733 = [{}]; -F.line = 22; -framePtr = F.prev; -var F = {procname: "module compact", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/compact.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module karax", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/karax.nim", line: 0}; -framePtr = F; -F.line = 60; -F.filename = "karax.nim"; + var castingOnAnimations_553648163 = [[32,99,97,115,116,105,110,103,45,111,110,45,115,107,121,32], [32,99,97,115,116,105,110,103,45,111,110,45,122,101,114,111,32], [32,99,97,115,116,105,110,103,45,111,110,45,115,116,101,101,108,32], [32,99,97,115,116,105,110,103,45,111,110,45,114,101,118,101,114,105,101,32], [32,99,97,115,116,105,110,103,45,111,110,45,100,97,121,98,114,101,97,107,32]]; + var castingAnimations_553648162 = [[32,99,97,115,116,105,110,103,45,115,107,121,32], [32,99,97,115,116,105,110,103,45,122,101,114,111,32], [32,99,97,115,116,105,110,103,45,115,116,101,101,108,32], [32,99,97,115,116,105,110,103,45,114,101,118,101,114,105,101,32], [32,99,97,115,116,105,110,103,45,100,97,121,98,114,101,97,107,32]]; +var svgNamespace_754974946 = [[104,116,116,112,58,47,47,119,119,119,46,119,51,46,111,114,103,47,50,48,48,48,47,115,118,103]]; +var mathNamespace_754974947 = [[104,116,116,112,58,47,47,119,119,119,46,119,51,46,111,114,103,47,49,57,57,56,47,77,97,116,104,47,77,97,116,104,77,76]]; +var gid_754975436 = [0]; +var objectID_1308623025 = [0]; +var vcomponents_788529165 = [{}]; var kxi__ = null; -framePtr = F.prev; -var F = {procname: "module karax", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/karax.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module karaxdsl", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/karaxdsl.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module karaxdsl", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/karaxdsl.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module errors", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/errors.nim", line: 0}; -framePtr = F; -F.line = 6; -F.filename = "errors.nim"; -var gerrorMsgs_1207959558 = [{}]; -F.line = 7; -var gerrorCounter_1207959559 = [0]; -framePtr = F.prev; -var F = {procname: "module errors", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/errors.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module options", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/options.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module options", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/options.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module sequtils", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/collections/sequtils.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module sequtils", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/collections/sequtils.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module piece", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/piece.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module piece", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/piece.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module board", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/board.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module board", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/board.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module moves", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/moves.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module moves", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/moves.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module basePieces", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/basePieces.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module basePieces", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/basePieces.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module jsffi", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/js/jsffi.nim", line: 0}; -framePtr = F; -F.line = 45; -F.filename = "jsffi.nim"; -F.line = 46; -framePtr = F.prev; -var F = {procname: "module jsffi", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/js/jsffi.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module underscored_calls", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/std/private/underscored_calls.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module underscored_calls", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/std/private/underscored_calls.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module sugar", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/sugar.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module sugar", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/sugar.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module jscore", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/js/jscore.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module jscore", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/js/jscore.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module times", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/times.nim", line: 0}; -framePtr = F; -F.line = 1371; -F.filename = "times.nim"; -if (globalThis.utcInstance_1409287800 === undefined) { - globalThis.utcInstance_1409287800 = [null]; -} -F.line = 1372; -if (globalThis.localInstance_1409287801 === undefined) { - globalThis.localInstance_1409287801 = [null]; -} -framePtr = F.prev; -var F = {procname: "module times", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/times.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module random", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/random.nim", line: 0}; -framePtr = F; -F.line = 109; -F.filename = "random.nim"; -var state_1392508942 = [{a0: 1773455756, a1: 4275166512}]; -framePtr = F.prev; -var F = {procname: "module random", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/random.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module port", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/port.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module port", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/port.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module strformat", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/strformat.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module strformat", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/strformat.nim", line: 0}; -framePtr = F; -framePtr = F.prev; - -function HEX3Aanonymous_1442840633(__1442840634, __1442840635, __1442840636, __1442840637) { - var F = {procname: "power.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/power.nim", line: 0}; - framePtr = F; - framePtr = F.prev; +var gerrorMsgs_1459617798 = [{}]; +var gerrorCounter_1459617799 = [0]; +if (globalThis.utcInstance_1660946040 === undefined) { + globalThis.utcInstance_1660946040 = [null]; +} +if (globalThis.localInstance_1660946041 === undefined) { + globalThis.localInstance_1660946041 = [null]; +} +var state_1644167182 = [{a0: 1773455756, a1: 4275166512}]; +function HEX3Aanonymous_1728053305(__1728053306, __1728053307, __1728053308, __1728053309) { } @@ -2261,23 +1959,54 @@ function add_33556373(x_33556374, x_33556374_Idx, y_33556375) { } -function raiseRangeError() { - raiseException({message: [118,97,108,117,101,32,111,117,116,32,111,102,32,114,97,110,103,101], parent: null, m_type: NTI134217751, name: null, trace: [], up: null}, "RangeDefect"); +function newSeq_33556919(len_33556921) { + var result_33556922 = []; - -} + result_33556922 = new Array(len_33556921); for (var i = 0 ; i < len_33556921 ; ++i) { result_33556922[i] = null; } + return result_33556922; -function raiseIndexError(i_33556812, a_33556813, b_33556814) { - var Temporary1; +} - if ((b_33556814 < a_33556813)) { - Temporary1 = [105,110,100,101,120,32,111,117,116,32,111,102,32,98,111,117,110,100,115,44,32,116,104,101,32,99,111,110,116,97,105,110,101,114,32,105,115,32,101,109,112,116,121]; +function unhandledException(e_33556649) { + var buf_33556650 = [[]]; + if (!(((e_33556649.message).length == 0))) { + buf_33556650[0].push.apply(buf_33556650[0], [69,114,114,111,114,58,32,117,110,104,97,110,100,108,101,100,32,101,120,99,101,112,116,105,111,110,58,32]);; + buf_33556650[0].push.apply(buf_33556650[0], e_33556649.message);; } else { - Temporary1 = ([105,110,100,101,120,32] || []).concat(HEX24_369098760(i_33556812) || [],[32,110,111,116,32,105,110,32] || [],HEX24_369098760(a_33556813) || [],[32,46,46,32] || [],HEX24_369098760(b_33556814) || []); + buf_33556650[0].push.apply(buf_33556650[0], [69,114,114,111,114,58,32,117,110,104,97,110,100,108,101,100,32,101,120,99,101,112,116,105,111,110]);; } - raiseException({message: nimCopy(null, Temporary1, NTI33554449), parent: null, m_type: NTI134217749, name: null, trace: [], up: null}, "IndexDefect"); + buf_33556650[0].push.apply(buf_33556650[0], [32,91]);; + add_33556373(buf_33556650, 0, e_33556649.name); + buf_33556650[0].push.apply(buf_33556650[0], [93,10]);; + var cbuf_33556651 = toJSStr(buf_33556650[0]); + if (typeof(Error) !== "undefined") { + throw new Error(cbuf_33556651); + } + else { + throw cbuf_33556651; + } + + + +} + +function raiseOverflow() { + raiseException({message: [111,118,101,114,45,32,111,114,32,117,110,100,101,114,102,108,111,119], parent: null, m_type: NTI134217743, name: null, trace: [], up: null}, "OverflowDefect"); + + +} + +function checkOverflowInt(a_33557048) { + if (a_33557048 > 2147483647 || a_33557048 < -2147483648) raiseOverflow(); + + + +} + +function raiseRangeError() { + raiseException({message: [118,97,108,117,101,32,111,117,116,32,111,102,32,114,97,110,103,101], parent: null, m_type: NTI134217751, name: null, trace: [], up: null}, "RangeDefect"); } @@ -2285,1126 +2014,624 @@ function raiseIndexError(i_33556812, a_33556813, b_33556814) { function addChars_301990090(result_301990092, result_301990092_Idx, x_301990093, start_301990094, n_301990095) { var Temporary1; - var F = {procname: "addChars.addChars", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/std/private/digitsutils.nim", line: 0}; - framePtr = F; - F.line = 43; - F.filename = "digitsutils.nim"; var old_301990096 = (result_301990092[result_301990092_Idx]).length; - F.line = 44; if (result_301990092[result_301990092_Idx].length < (Temporary1 = chckRange(addInt(old_301990096, n_301990095), 0, 2147483647), Temporary1)) { for (var i = result_301990092[result_301990092_Idx].length; i < Temporary1; ++i) result_301990092[result_301990092_Idx].push(0); } else {result_301990092[result_301990092_Idx].length = Temporary1; }; Label2: { - F.line = 46; var iHEX60gensym4_301990110 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_1442843554 = 0; + var i_1728056221 = 0; Label3: { - F.line = 129; Label4: while (true) { - if (!(i_1442843554 < n_301990095)) break Label4; - F.line = 49; - F.filename = "digitsutils.nim"; - iHEX60gensym4_301990110 = i_1442843554; - F.line = 46; + if (!(i_1728056221 < n_301990095)) break Label4; + iHEX60gensym4_301990110 = i_1728056221; result_301990092[result_301990092_Idx][chckIndx(addInt(old_301990096, iHEX60gensym4_301990110), 0, (result_301990092[result_301990092_Idx]).length - 1)] = x_301990093.charCodeAt(chckIndx(addInt(start_301990094, iHEX60gensym4_301990110), 0, (x_301990093).length - 1)); - F.line = 131; - F.filename = "iterators_1.nim"; - i_1442843554 = addInt(i_1442843554, 1); + i_1728056221 = addInt(i_1728056221, 1); } }; }; - framePtr = F.prev; } function addChars_301990086(result_301990088, result_301990088_Idx, x_301990089) { - var F = {procname: "addChars.addChars", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/std/private/digitsutils.nim", line: 0}; - framePtr = F; - F.line = 55; - F.filename = "digitsutils.nim"; addChars_301990090(result_301990088, result_301990088_Idx, x_301990089, 0, ((x_301990089) == null ? 0 : (x_301990089).length)); - framePtr = F.prev; } function addInt_301990111(result_301990112, result_301990112_Idx, x_301990113) { - var F = {procname: "digitsutils.addInt", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/std/private/digitsutils.nim", line: 0}; - framePtr = F; - F.line = 111; - F.filename = "digitsutils.nim"; addChars_301990086(result_301990112, result_301990112_Idx, ((x_301990113) + "")); - framePtr = F.prev; } function addInt_301990129(result_301990130, result_301990130_Idx, x_301990131) { - var F = {procname: "digitsutils.addInt", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/std/private/digitsutils.nim", line: 0}; - framePtr = F; - F.line = 115; - F.filename = "digitsutils.nim"; addInt_301990111(result_301990130, result_301990130_Idx, BigInt(x_301990131)); - framePtr = F.prev; } -function HEX24_369098760(x_369098761) { - var result_369098762 = [[]]; +function HEX24_385875976(x_385875977) { + var result_385875978 = [[]]; - var F = {procname: "dollars.$", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/dollars.nim", line: 0}; - framePtr = F; - F.line = 18; - F.filename = "dollars.nim"; - addInt_301990129(result_369098762, 0, x_369098761); - framePtr = F.prev; + addInt_301990129(result_385875978, 0, x_385875977); - return result_369098762[0]; + return result_385875978[0]; } -function auxWriteStackTrace_33556508(f_33556509) { - var result_33556510 = [[]]; - - var it_33556518 = f_33556509; - var i_33556519 = 0; - var total_33556520 = 0; - var tempFrames_33556521 = arrayConstr(64, {Field0: null, Field1: 0, Field2: null}, NTI33555838); - Label1: { - Label2: while (true) { - if (!(!((it_33556518 == null)) && (i_33556519 <= 63))) break Label2; - tempFrames_33556521[i_33556519].Field0 = it_33556518.procname; - tempFrames_33556521[i_33556519].Field1 = it_33556518.line; - tempFrames_33556521[i_33556519].Field2 = it_33556518.filename; - i_33556519 += 1; - total_33556520 += 1; - it_33556518 = it_33556518.prev; - } - }; - Label3: { - Label4: while (true) { - if (!!((it_33556518 == null))) break Label4; - total_33556520 += 1; - it_33556518 = it_33556518.prev; - } - }; - result_33556510[0] = nimCopy(null, [], NTI33554449); - if (!((total_33556520 == i_33556519))) { - result_33556510[0].push.apply(result_33556510[0], [40]);; - result_33556510[0].push.apply(result_33556510[0], HEX24_369098760((total_33556520 - i_33556519)));; - result_33556510[0].push.apply(result_33556510[0], [32,99,97,108,108,115,32,111,109,105,116,116,101,100,41,32,46,46,46,10]);; - } - - Label5: { - var j_33556554 = 0; - var colontmp__1442843546 = 0; - colontmp__1442843546 = (i_33556519 - 1); - var res_1442843548 = colontmp__1442843546; - Label6: { - Label7: while (true) { - if (!(0 <= res_1442843548)) break Label7; - j_33556554 = res_1442843548; - result_33556510[0].push.apply(result_33556510[0], cstrToNimstr(tempFrames_33556521[j_33556554].Field2));; - if ((0 < tempFrames_33556521[j_33556554].Field1)) { - result_33556510[0].push.apply(result_33556510[0], [40]);; - addInt_301990129(result_33556510, 0, tempFrames_33556521[j_33556554].Field1); - if (false) { - result_33556510[0].push.apply(result_33556510[0], [44,32]);; - addInt_301990129(result_33556510, 0, 0); - } - - result_33556510[0].push.apply(result_33556510[0], [41]);; - } - - result_33556510[0].push.apply(result_33556510[0], [32,97,116,32]);; - add_33556373(result_33556510, 0, tempFrames_33556521[j_33556554].Field0); - result_33556510[0].push.apply(result_33556510[0], [10]);; - res_1442843548 -= 1; - } - }; - }; - - return result_33556510[0]; - -} - -function rawWriteStackTrace_33556604() { - var result_33556605 = []; - - if (!((framePtr == null))) { - result_33556605 = nimCopy(null, ([84,114,97,99,101,98,97,99,107,32,40,109,111,115,116,32,114,101,99,101,110,116,32,99,97,108,108,32,108,97,115,116,41,10] || []).concat(auxWriteStackTrace_33556508(framePtr) || []), NTI33554449); - } - else { - result_33556605 = nimCopy(null, [78,111,32,115,116,97,99,107,32,116,114,97,99,101,98,97,99,107,32,97,118,97,105,108,97,98,108,101,10], NTI33554449); - } - - - return result_33556605; - -} - -function newSeq_33556919(len_33556921) { - var result_33556922 = []; - - var F = {procname: "newSeq.newSeq", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; - F.line = 633; - F.filename = "system.nim"; - result_33556922 = new Array(len_33556921); for (var i = 0 ; i < len_33556921 ; ++i) { result_33556922[i] = null; } framePtr = F.prev; - - return result_33556922; - -} +function raiseIndexError(i_33556812, a_33556813, b_33556814) { + var Temporary1; -function unhandledException(e_33556649) { - var buf_33556650 = [[]]; - if (!(((e_33556649.message).length == 0))) { - buf_33556650[0].push.apply(buf_33556650[0], [69,114,114,111,114,58,32,117,110,104,97,110,100,108,101,100,32,101,120,99,101,112,116,105,111,110,58,32]);; - buf_33556650[0].push.apply(buf_33556650[0], e_33556649.message);; + if ((b_33556814 < a_33556813)) { + Temporary1 = [105,110,100,101,120,32,111,117,116,32,111,102,32,98,111,117,110,100,115,44,32,116,104,101,32,99,111,110,116,97,105,110,101,114,32,105,115,32,101,109,112,116,121]; } else { - buf_33556650[0].push.apply(buf_33556650[0], [69,114,114,111,114,58,32,117,110,104,97,110,100,108,101,100,32,101,120,99,101,112,116,105,111,110]);; + Temporary1 = ([105,110,100,101,120,32] || []).concat(HEX24_385875976(i_33556812) || [],[32,110,111,116,32,105,110,32] || [],HEX24_385875976(a_33556813) || [],[32,46,46,32] || [],HEX24_385875976(b_33556814) || []); } - buf_33556650[0].push.apply(buf_33556650[0], [32,91]);; - add_33556373(buf_33556650, 0, e_33556649.name); - buf_33556650[0].push.apply(buf_33556650[0], [93,10]);; - buf_33556650[0].push.apply(buf_33556650[0], rawWriteStackTrace_33556604());; - var cbuf_33556651 = toJSStr(buf_33556650[0]); - framePtr = null; - if (typeof(Error) !== "undefined") { - throw new Error(cbuf_33556651); - } - else { - throw cbuf_33556651; - } - - - -} - -function raiseOverflow() { - raiseException({message: [111,118,101,114,45,32,111,114,32,117,110,100,101,114,102,108,111,119], parent: null, m_type: NTI134217743, name: null, trace: [], up: null}, "OverflowDefect"); - - -} - -function checkOverflowInt(a_33557048) { - if (a_33557048 > 2147483647 || a_33557048 < -2147483648) raiseOverflow(); - + raiseException({message: nimCopy(null, Temporary1, NTI33554449), parent: null, m_type: NTI134217749, name: null, trace: [], up: null}, "IndexDefect"); } -function seqOf_1442841385(t_1442841386) { - var result_1442841387 = null; - var result_1442841387_Idx = 0; +function seqOf_1728054057(t_1728054058) { + var result_1728054059 = null; + var result_1728054059_Idx = 0; - var F = {procname: "power.seqOf", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/power.nim", line: 0}; - framePtr = F; BeforeRet: { - F.line = 148; - F.filename = "power.nim"; - switch (t_1442841386) { + switch (t_1728054058) { case 0: - F.line = 149; - result_1442841387 = commonPowers_1442840653; result_1442841387_Idx = 0; + result_1728054059 = commonPowers_1728053325; result_1728054059_Idx = 0; break BeforeRet; break; case 1: - F.line = 150; - result_1442841387 = uncommonPowers_1442840654; result_1442841387_Idx = 0; + result_1728054059 = uncommonPowers_1728053326; result_1728054059_Idx = 0; break BeforeRet; break; case 2: - F.line = 151; - result_1442841387 = rarePowers_1442840655; result_1442841387_Idx = 0; + result_1728054059 = rarePowers_1728053327; result_1728054059_Idx = 0; break BeforeRet; break; case 3: - F.line = 152; - result_1442841387 = ultraRarePowers_1442840656; result_1442841387_Idx = 0; + result_1728054059 = ultraRarePowers_1728053328; result_1728054059_Idx = 0; break BeforeRet; break; } }; - framePtr = F.prev; - return [result_1442841387, result_1442841387_Idx]; + return [result_1728054059, result_1728054059_Idx]; } -function registerPower_1442841404(p_1442841405) { +function registerPower_1728054076(p_1728054077) { var Temporary2; - var F = {procname: "power.registerPower", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/power.nim", line: 0}; - framePtr = F; - F.line = 155; - F.filename = "power.nim"; - var x_1442841406 = nimCopy(null, p_1442841405, NTI1442840581); - F.line = 156; - x_1442841406.index = addInt(powers_1442840649[0][chckIndx(subInt((powers_1442840649[0]).length, 1), 0, (powers_1442840649[0]).length - 1)].index, 1); - if (eqStrings(x_1442841406.technicalName, [])) { - F.line = 157; - x_1442841406.technicalName = nimCopy(null, x_1442841406.name, NTI33554449); - } - - F.line = 159; - var Temporary1 = nimCopy(null, x_1442841406, NTI1442840581); - powers_1442840649[0].push(Temporary1);; - F.line = 160; - var Temporary3 = nimCopy(null, x_1442841406, NTI1442840581); - (Temporary2 = seqOf_1442841385(x_1442841406.tier), Temporary2)[0][Temporary2[1]].push(Temporary3);; - framePtr = F.prev; - - -} - -function HEX3Aanonymous_1442840639(__1442840640, __1442840641, __1442840642, __1442840643) { - var F = {procname: "power.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/power.nim", line: 0}; - framePtr = F; - framePtr = F.prev; - - -} -var F = {procname: "module power", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/power.nim", line: 0}; -framePtr = F; -F.line = 86; -F.filename = "power.nim"; -var powers_1442840649 = [[{name: [78,111,116,104,105,110,103,46,32,78,111,116,104,105,110,103,46,46,46], technicalName: [], synergy: false, tier: 0, rarity: 8, description: [84,104,105,115,32,100,111,101,115,32,110,111,116,104,105,110,103,46,32,85,110,108,117,99,107,121,33], icon: [], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1442840633, index: 0, priority: 10}]]; -F.line = 87; -var draftSynergies_1442840650 = [[]]; -F.line = 88; -var secretSynergies_1442840651 = [[]]; -F.line = 89; -var secretSecretSynergies_1442840652 = [[]]; -F.line = 90; -var commonPowers_1442840653 = [[]]; -F.line = 91; -var uncommonPowers_1442840654 = [[]]; -F.line = 92; -var rarePowers_1442840655 = [[]]; -F.line = 93; -var ultraRarePowers_1442840656 = [[]]; -F.line = 237; -registerPower_1442841404(holy_1442840644); -framePtr = F.prev; -var F = {procname: "module power", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/power.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module extramoves", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/extramoves.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module extramoves", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/extramoves.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module capitalism", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/capitalism.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module capitalism", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/capitalism.nim", line: 0}; -framePtr = F; -framePtr = F.prev; - -function isAir_1224737796(p_1224737797) { - var result_1224737798 = false; - - var F = {procname: "piece.isAir", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/piece.nim", line: 0}; - framePtr = F; + var x_1728054078 = nimCopy(null, p_1728054077, NTI1728053253); + x_1728054078.index = addInt(powers_1728053321[0][chckIndx(subInt((powers_1728053321[0]).length, 1), 0, (powers_1728053321[0]).length - 1)].index, 1); + if (eqStrings(x_1728054078.technicalName, [])) { + x_1728054078.technicalName = nimCopy(null, x_1728054078.name, NTI33554449); + } + + var Temporary1 = nimCopy(null, x_1728054078, NTI1728053253); + powers_1728053321[0].push(Temporary1);; + var Temporary3 = nimCopy(null, x_1728054078, NTI1728053253); + (Temporary2 = seqOf_1728054057(x_1728054078.tier), Temporary2)[0][Temporary2[1]].push(Temporary3);; + + +} + +function HEX3Aanonymous_1728053311(__1728053312, __1728053313, __1728053314, __1728053315) { + +} +var powers_1728053321 = [[{name: [78,111,116,104,105,110,103,46,32,78,111,116,104,105,110,103,46,46,46], technicalName: [], synergy: false, tier: 0, rarity: 8, description: [84,104,105,115,32,100,111,101,115,32,110,111,116,104,105,110,103,46,32,85,110,108,117,99,107,121,33], icon: [], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1728053305, index: 0, priority: 10}]]; +var draftSynergies_1728053322 = [[]]; +var secretSynergies_1728053323 = [[]]; +var secretSecretSynergies_1728053324 = [[]]; +var commonPowers_1728053325 = [[]]; +var uncommonPowers_1728053326 = [[]]; +var rarePowers_1728053327 = [[]]; +var ultraRarePowers_1728053328 = [[]]; +registerPower_1728054076(holy_1728053316); + +function isAir_1476396036(p_1476396037) { + var result_1476396038 = false; + BeforeRet: { - F.line = 302; - F.filename = "piece.nim"; - result_1224737798 = (p_1224737797.item == 6); + result_1476396038 = (p_1476396037.item == 6); break BeforeRet; }; - framePtr = F.prev; - return result_1224737798; + return result_1476396038; } -function isColor_1224737813(a_1224737814, b_1224737815) { - var result_1224737816 = false; +function isColor_1476396053(a_1476396054, b_1476396055) { + var result_1476396056 = false; - var F = {procname: "piece.isColor", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/piece.nim", line: 0}; - framePtr = F; BeforeRet: { - F.line = 308; - F.filename = "piece.nim"; - result_1224737816 = ((a_1224737814.color == b_1224737815) && !(isAir_1224737796(a_1224737814))); + result_1476396056 = ((a_1476396054.color == b_1476396055) && !(isAir_1476396036(a_1476396054))); break BeforeRet; }; - framePtr = F.prev; - return result_1224737816; + return result_1476396056; } -function add_1493172278(x_1493172280, x_1493172280_Idx, y_1493172281) { +function add_1845493814(x_1845493816, x_1845493816_Idx, y_1845493817) { var Temporary1; - var F = {procname: "add.add", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; - F.line = 1210; - F.filename = "system.nim"; - var xl_1493172285 = (x_1493172280[x_1493172280_Idx]).length; - F.line = 1211; - if (x_1493172280[x_1493172280_Idx].length < (Temporary1 = chckRange(addInt(xl_1493172285, (y_1493172281).length), 0, 2147483647), Temporary1)) { for (var i = x_1493172280[x_1493172280_Idx].length ; i < Temporary1 ; ++i) x_1493172280[x_1493172280_Idx].push(null); } - else { x_1493172280[x_1493172280_Idx].length = Temporary1; }; + var xl_1845493821 = (x_1845493816[x_1845493816_Idx]).length; + if (x_1845493816[x_1845493816_Idx].length < (Temporary1 = chckRange(addInt(xl_1845493821, (y_1845493817).length), 0, 2147483647), Temporary1)) { for (var i = x_1845493816[x_1845493816_Idx].length ; i < Temporary1 ; ++i) x_1845493816[x_1845493816_Idx].push(null); } + else { x_1845493816[x_1845493816_Idx].length = Temporary1; }; Label2: { - F.line = 1212; - var i_1493172300 = 0; - F.line = 81; - F.filename = "iterators_1.nim"; - var colontmp__1493178748 = 0; - F.line = 1212; - F.filename = "system.nim"; - colontmp__1493178748 = (y_1493172281).length - 1; - F.line = 96; - F.filename = "iterators_1.nim"; - var res_1493178749 = 0; + var i_1845493836 = 0; + var colontmp__1845500307 = 0; + colontmp__1845500307 = (y_1845493817).length - 1; + var res_1845500308 = 0; Label3: { - F.line = 97; Label4: while (true) { - if (!(res_1493178749 <= colontmp__1493178748)) break Label4; - F.line = 1212; - F.filename = "system.nim"; - i_1493172300 = res_1493178749; - F.line = 1212; - x_1493172280[x_1493172280_Idx][chckIndx(addInt(xl_1493172285, i_1493172300), 0, (x_1493172280[x_1493172280_Idx]).length - 1)] = y_1493172281[chckIndx(i_1493172300, 0, (y_1493172281).length - 1)]; - F.line = 102; - F.filename = "iterators_1.nim"; - res_1493178749 = addInt(res_1493178749, 1); + if (!(res_1845500308 <= colontmp__1845500307)) break Label4; + i_1845493836 = res_1845500308; + x_1845493816[x_1845493816_Idx][chckIndx(addInt(xl_1845493821, i_1845493836), 0, (x_1845493816[x_1845493816_Idx]).length - 1)] = y_1845493817[chckIndx(i_1845493836, 0, (y_1845493817).length - 1)]; + res_1845500308 = addInt(res_1845500308, 1); } }; }; - framePtr = F.prev; } -function add_1493172305(x_1493172307, x_1493172307_Idx, y_1493172308) { +function add_1845493841(x_1845493843, x_1845493843_Idx, y_1845493844) { var Temporary1; - var F = {procname: "add.add", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; - F.line = 1210; - F.filename = "system.nim"; - var xl_1493172312 = (x_1493172307[x_1493172307_Idx]).length; - F.line = 1211; - if (x_1493172307[x_1493172307_Idx].length < (Temporary1 = chckRange(addInt(xl_1493172312, (y_1493172308).length), 0, 2147483647), Temporary1)) { for (var i = x_1493172307[x_1493172307_Idx].length ; i < Temporary1 ; ++i) x_1493172307[x_1493172307_Idx].push(null); } - else { x_1493172307[x_1493172307_Idx].length = Temporary1; }; + var xl_1845493848 = (x_1845493843[x_1845493843_Idx]).length; + if (x_1845493843[x_1845493843_Idx].length < (Temporary1 = chckRange(addInt(xl_1845493848, (y_1845493844).length), 0, 2147483647), Temporary1)) { for (var i = x_1845493843[x_1845493843_Idx].length ; i < Temporary1 ; ++i) x_1845493843[x_1845493843_Idx].push(null); } + else { x_1845493843[x_1845493843_Idx].length = Temporary1; }; Label2: { - F.line = 1212; - var i_1493172328 = 0; - F.line = 81; - F.filename = "iterators_1.nim"; - var colontmp__1493178752 = 0; - F.line = 1212; - F.filename = "system.nim"; - colontmp__1493178752 = (y_1493172308).length - 1; - F.line = 96; - F.filename = "iterators_1.nim"; - var res_1493178753 = 0; + var i_1845493864 = 0; + var colontmp__1845500311 = 0; + colontmp__1845500311 = (y_1845493844).length - 1; + var res_1845500312 = 0; Label3: { - F.line = 97; Label4: while (true) { - if (!(res_1493178753 <= colontmp__1493178752)) break Label4; - F.line = 1212; - F.filename = "system.nim"; - i_1493172328 = res_1493178753; - F.line = 1212; - x_1493172307[x_1493172307_Idx][chckIndx(addInt(xl_1493172312, i_1493172328), 0, (x_1493172307[x_1493172307_Idx]).length - 1)] = y_1493172308[chckIndx(i_1493172328, 0, (y_1493172308).length - 1)]; - F.line = 102; - F.filename = "iterators_1.nim"; - res_1493178753 = addInt(res_1493178753, 1); + if (!(res_1845500312 <= colontmp__1845500311)) break Label4; + i_1845493864 = res_1845500312; + x_1845493843[x_1845493843_Idx][chckIndx(addInt(xl_1845493848, i_1845493864), 0, (x_1845493843[x_1845493843_Idx]).length - 1)] = y_1845493844[chckIndx(i_1845493864, 0, (y_1845493844).length - 1)]; + res_1845500312 = addInt(res_1845500312, 1); } }; }; - framePtr = F.prev; } -function buff_1493172242(piece_1493172243, side_1493172244, b_1493172245, s_1493172246, moves_1493172251, takes_1493172256, onEndturn_1493172261, rotate_1493172262, onPromote_1493172267, whenTaken_1493172268, onTake_1493172269, onMove_1493172270, all_1493172271) { - var F = {procname: "powers.buff", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; +function buff_1845493778(piece_1845493779, side_1845493780, b_1845493781, s_1845493782, moves_1845493787, takes_1845493792, onEndturn_1845493797, rotate_1845493798, onPromote_1845493803, whenTaken_1845493804, onTake_1845493805, onMove_1845493806, all_1845493807) { Label1: { - F.line = 66; - F.filename = "powers.nim"; - var i_1493172272 = 0; - F.line = 66; - var j_1493172273 = 0; + var i_1845493808 = 0; + var j_1845493809 = 0; Label2: { - F.line = 124; - F.filename = "piece.nim"; - var i_1493178740 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_1493178741 = 0; + var i_1845500299 = 0; + var i_1845500300 = 0; Label3: { - F.line = 129; Label4: while (true) { - if (!(i_1493178741 < 8)) break Label4; - F.line = 124; - F.filename = "piece.nim"; - i_1493178740 = i_1493178741; + if (!(i_1845500300 < 8)) break Label4; + i_1845500299 = i_1845500300; Label5: { - F.line = 125; - var j_1493178744 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_1493178745 = 0; + var j_1845500303 = 0; + var i_1845500304 = 0; Label6: { - F.line = 129; Label7: while (true) { - if (!(i_1493178745 < 8)) break Label7; - F.line = 125; - F.filename = "piece.nim"; - j_1493178744 = i_1493178745; - F.line = 66; - F.filename = "powers.nim"; - i_1493172272 = i_1493178740; - F.line = 66; - j_1493172273 = j_1493178744; - if ((((b_1493172245[chckIndx(i_1493172272, 0, (b_1493172245).length - 1)][chckIndx(j_1493172273, 0, (b_1493172245[chckIndx(i_1493172272, 0, (b_1493172245).length - 1)]).length - 1)].item == piece_1493172243) || all_1493172271) && isColor_1224737813(b_1493172245[chckIndx(i_1493172272, 0, (b_1493172245).length - 1)][chckIndx(j_1493172273, 0, (b_1493172245[chckIndx(i_1493172272, 0, (b_1493172245).length - 1)]).length - 1)], side_1493172244))) { - F.line = 68; - add_1493172278(b_1493172245[chckIndx(i_1493172272, 0, (b_1493172245).length - 1)][chckIndx(j_1493172273, 0, (b_1493172245[chckIndx(i_1493172272, 0, (b_1493172245).length - 1)]).length - 1)], "moves", moves_1493172251); - F.line = 69; - add_1493172278(b_1493172245[chckIndx(i_1493172272, 0, (b_1493172245).length - 1)][chckIndx(j_1493172273, 0, (b_1493172245[chckIndx(i_1493172272, 0, (b_1493172245).length - 1)]).length - 1)], "takes", takes_1493172256); - F.line = 70; - add_1493172305(b_1493172245[chckIndx(i_1493172272, 0, (b_1493172245).length - 1)][chckIndx(j_1493172273, 0, (b_1493172245[chckIndx(i_1493172272, 0, (b_1493172245).length - 1)]).length - 1)], "onEndTurn", onEndturn_1493172261); - F.line = 71; - add_1493172305(b_1493172245[chckIndx(i_1493172272, 0, (b_1493172245).length - 1)][chckIndx(j_1493172273, 0, (b_1493172245[chckIndx(i_1493172272, 0, (b_1493172245).length - 1)]).length - 1)], "onPromote", onPromote_1493172267); - if (!((whenTaken_1493172268 == null))) { - F.line = 72; - b_1493172245[chckIndx(i_1493172272, 0, (b_1493172245).length - 1)][chckIndx(j_1493172273, 0, (b_1493172245[chckIndx(i_1493172272, 0, (b_1493172245).length - 1)]).length - 1)].whenTaken = whenTaken_1493172268; + if (!(i_1845500304 < 8)) break Label7; + j_1845500303 = i_1845500304; + i_1845493808 = i_1845500299; + j_1845493809 = j_1845500303; + if ((((b_1845493781[chckIndx(i_1845493808, 0, (b_1845493781).length - 1)][chckIndx(j_1845493809, 0, (b_1845493781[chckIndx(i_1845493808, 0, (b_1845493781).length - 1)]).length - 1)].item == piece_1845493779) || all_1845493807) && isColor_1476396053(b_1845493781[chckIndx(i_1845493808, 0, (b_1845493781).length - 1)][chckIndx(j_1845493809, 0, (b_1845493781[chckIndx(i_1845493808, 0, (b_1845493781).length - 1)]).length - 1)], side_1845493780))) { + add_1845493814(b_1845493781[chckIndx(i_1845493808, 0, (b_1845493781).length - 1)][chckIndx(j_1845493809, 0, (b_1845493781[chckIndx(i_1845493808, 0, (b_1845493781).length - 1)]).length - 1)], "moves", moves_1845493787); + add_1845493814(b_1845493781[chckIndx(i_1845493808, 0, (b_1845493781).length - 1)][chckIndx(j_1845493809, 0, (b_1845493781[chckIndx(i_1845493808, 0, (b_1845493781).length - 1)]).length - 1)], "takes", takes_1845493792); + add_1845493841(b_1845493781[chckIndx(i_1845493808, 0, (b_1845493781).length - 1)][chckIndx(j_1845493809, 0, (b_1845493781[chckIndx(i_1845493808, 0, (b_1845493781).length - 1)]).length - 1)], "onEndTurn", onEndturn_1845493797); + add_1845493841(b_1845493781[chckIndx(i_1845493808, 0, (b_1845493781).length - 1)][chckIndx(j_1845493809, 0, (b_1845493781[chckIndx(i_1845493808, 0, (b_1845493781).length - 1)]).length - 1)], "onPromote", onPromote_1845493803); + if (!((whenTaken_1845493804 == null))) { + b_1845493781[chckIndx(i_1845493808, 0, (b_1845493781).length - 1)][chckIndx(j_1845493809, 0, (b_1845493781[chckIndx(i_1845493808, 0, (b_1845493781).length - 1)]).length - 1)].whenTaken = whenTaken_1845493804; } - if (!((onTake_1493172269 == null))) { - F.line = 73; - b_1493172245[chckIndx(i_1493172272, 0, (b_1493172245).length - 1)][chckIndx(j_1493172273, 0, (b_1493172245[chckIndx(i_1493172272, 0, (b_1493172245).length - 1)]).length - 1)].onTake = onTake_1493172269; + if (!((onTake_1845493805 == null))) { + b_1845493781[chckIndx(i_1845493808, 0, (b_1845493781).length - 1)][chckIndx(j_1845493809, 0, (b_1845493781[chckIndx(i_1845493808, 0, (b_1845493781).length - 1)]).length - 1)].onTake = onTake_1845493805; } - if (!((onMove_1493172270 == null))) { - F.line = 74; - b_1493172245[chckIndx(i_1493172272, 0, (b_1493172245).length - 1)][chckIndx(j_1493172273, 0, (b_1493172245[chckIndx(i_1493172272, 0, (b_1493172245).length - 1)]).length - 1)].onMove = onMove_1493172270; + if (!((onMove_1845493806 == null))) { + b_1845493781[chckIndx(i_1845493808, 0, (b_1845493781).length - 1)][chckIndx(j_1845493809, 0, (b_1845493781[chckIndx(i_1845493808, 0, (b_1845493781).length - 1)]).length - 1)].onMove = onMove_1845493806; } - if (rotate_1493172262) { - F.line = 75; - b_1493172245[chckIndx(i_1493172272, 0, (b_1493172245).length - 1)][chckIndx(j_1493172273, 0, (b_1493172245[chckIndx(i_1493172272, 0, (b_1493172245).length - 1)]).length - 1)].rotate = true; + if (rotate_1845493798) { + b_1845493781[chckIndx(i_1845493808, 0, (b_1845493781).length - 1)][chckIndx(j_1845493809, 0, (b_1845493781[chckIndx(i_1845493808, 0, (b_1845493781).length - 1)]).length - 1)].rotate = true; } } - F.line = 131; - F.filename = "iterators_1.nim"; - i_1493178745 = addInt(i_1493178745, 1); + i_1845500304 = addInt(i_1845500304, 1); } }; }; - F.line = 131; - i_1493178741 = addInt(i_1493178741, 1); + i_1845500300 = addInt(i_1845500300, 1); } }; }; }; - F.line = 77; - F.filename = "powers.nim"; - add_1493172278(s_1493172246.Field1[chckIndx(side_1493172244, 0, (s_1493172246.Field1).length - 1)].dna[chckIndx(piece_1493172243, 0, (s_1493172246.Field1[chckIndx(side_1493172244, 0, (s_1493172246.Field1).length - 1)].dna).length - 1)], "moves", moves_1493172251); - F.line = 78; - add_1493172278(s_1493172246.Field1[chckIndx(side_1493172244, 0, (s_1493172246.Field1).length - 1)].dna[chckIndx(piece_1493172243, 0, (s_1493172246.Field1[chckIndx(side_1493172244, 0, (s_1493172246.Field1).length - 1)].dna).length - 1)], "takes", takes_1493172256); - F.line = 79; - add_1493172305(s_1493172246.Field1[chckIndx(side_1493172244, 0, (s_1493172246.Field1).length - 1)].dna[chckIndx(piece_1493172243, 0, (s_1493172246.Field1[chckIndx(side_1493172244, 0, (s_1493172246.Field1).length - 1)].dna).length - 1)], "onEndTurn", onEndturn_1493172261); - F.line = 80; - add_1493172305(s_1493172246.Field1[chckIndx(side_1493172244, 0, (s_1493172246.Field1).length - 1)].dna[chckIndx(piece_1493172243, 0, (s_1493172246.Field1[chckIndx(side_1493172244, 0, (s_1493172246.Field1).length - 1)].dna).length - 1)], "onPromote", onPromote_1493172267); - if (rotate_1493172262) { - F.line = 81; - s_1493172246.Field1[chckIndx(side_1493172244, 0, (s_1493172246.Field1).length - 1)].dna[chckIndx(piece_1493172243, 0, (s_1493172246.Field1[chckIndx(side_1493172244, 0, (s_1493172246.Field1).length - 1)].dna).length - 1)].rotate = true; + add_1845493814(s_1845493782.Field1[chckIndx(side_1845493780, 0, (s_1845493782.Field1).length - 1)].dna[chckIndx(piece_1845493779, 0, (s_1845493782.Field1[chckIndx(side_1845493780, 0, (s_1845493782.Field1).length - 1)].dna).length - 1)], "moves", moves_1845493787); + add_1845493814(s_1845493782.Field1[chckIndx(side_1845493780, 0, (s_1845493782.Field1).length - 1)].dna[chckIndx(piece_1845493779, 0, (s_1845493782.Field1[chckIndx(side_1845493780, 0, (s_1845493782.Field1).length - 1)].dna).length - 1)], "takes", takes_1845493792); + add_1845493841(s_1845493782.Field1[chckIndx(side_1845493780, 0, (s_1845493782.Field1).length - 1)].dna[chckIndx(piece_1845493779, 0, (s_1845493782.Field1[chckIndx(side_1845493780, 0, (s_1845493782.Field1).length - 1)].dna).length - 1)], "onEndTurn", onEndturn_1845493797); + add_1845493841(s_1845493782.Field1[chckIndx(side_1845493780, 0, (s_1845493782.Field1).length - 1)].dna[chckIndx(piece_1845493779, 0, (s_1845493782.Field1[chckIndx(side_1845493780, 0, (s_1845493782.Field1).length - 1)].dna).length - 1)], "onPromote", onPromote_1845493803); + if (rotate_1845493798) { + s_1845493782.Field1[chckIndx(side_1845493780, 0, (s_1845493782.Field1).length - 1)].dna[chckIndx(piece_1845493779, 0, (s_1845493782.Field1[chckIndx(side_1845493780, 0, (s_1845493782.Field1).length - 1)].dna).length - 1)].rotate = true; } - if (!((whenTaken_1493172268 == null))) { - F.line = 82; - s_1493172246.Field1[chckIndx(side_1493172244, 0, (s_1493172246.Field1).length - 1)].dna[chckIndx(piece_1493172243, 0, (s_1493172246.Field1[chckIndx(side_1493172244, 0, (s_1493172246.Field1).length - 1)].dna).length - 1)].whenTaken = whenTaken_1493172268; + if (!((whenTaken_1845493804 == null))) { + s_1845493782.Field1[chckIndx(side_1845493780, 0, (s_1845493782.Field1).length - 1)].dna[chckIndx(piece_1845493779, 0, (s_1845493782.Field1[chckIndx(side_1845493780, 0, (s_1845493782.Field1).length - 1)].dna).length - 1)].whenTaken = whenTaken_1845493804; } - if (!((onTake_1493172269 == null))) { - F.line = 83; - s_1493172246.Field1[chckIndx(side_1493172244, 0, (s_1493172246.Field1).length - 1)].dna[chckIndx(piece_1493172243, 0, (s_1493172246.Field1[chckIndx(side_1493172244, 0, (s_1493172246.Field1).length - 1)].dna).length - 1)].onTake = onTake_1493172269; + if (!((onTake_1845493805 == null))) { + s_1845493782.Field1[chckIndx(side_1845493780, 0, (s_1845493782.Field1).length - 1)].dna[chckIndx(piece_1845493779, 0, (s_1845493782.Field1[chckIndx(side_1845493780, 0, (s_1845493782.Field1).length - 1)].dna).length - 1)].onTake = onTake_1845493805; } - if (!((onMove_1493172270 == null))) { - F.line = 84; - s_1493172246.Field1[chckIndx(side_1493172244, 0, (s_1493172246.Field1).length - 1)].dna[chckIndx(piece_1493172243, 0, (s_1493172246.Field1[chckIndx(side_1493172244, 0, (s_1493172246.Field1).length - 1)].dna).length - 1)].onMove = onMove_1493172270; + if (!((onMove_1845493806 == null))) { + s_1845493782.Field1[chckIndx(side_1845493780, 0, (s_1845493782.Field1).length - 1)].dna[chckIndx(piece_1845493779, 0, (s_1845493782.Field1[chckIndx(side_1845493780, 0, (s_1845493782.Field1).length - 1)].dna).length - 1)].onMove = onMove_1845493806; } - framePtr = F.prev; } -function none_1308623025() { - var result_1308623032 = ({val: ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), has: false}); +function none_1560281265() { + var result_1560281272 = ({val: ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), has: false}); - var F = {procname: "none.none", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/options.nim", line: 0}; - framePtr = F; - framePtr = F.prev; - - return result_1308623032; + return result_1560281272; } -function some_1308623033(val_1308623035) { - var result_1308623036 = ({val: ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), has: false}); +function some_1560281273(val_1560281275) { + var result_1560281276 = ({val: ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), has: false}); - var F = {procname: "some.some", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/options.nim", line: 0}; - framePtr = F; - F.line = 140; - F.filename = "options.nim"; - result_1308623036.has = true; - F.line = 141; - result_1308623036.val = nimCopy(result_1308623036.val, val_1308623035, NTI1224736794); - framePtr = F.prev; + result_1560281276.has = true; + result_1560281276.val = nimCopy(result_1560281276.val, val_1560281275, NTI1476395034); - return result_1308623036; + return result_1560281276; } -function boardRef_1308623002(b_1308623003, t_1308623004) { - var result_1308623010 = ({val: ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), has: false}); +function boardRef_1560281242(b_1560281243, t_1560281244) { + var result_1560281250 = ({val: ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), has: false}); - var F = {procname: "board.boardRef", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/board.nim", line: 0}; - framePtr = F; BeforeRet: { - if (((((t_1308623004.Field0 < 0) || (8 <= t_1308623004.Field0)) || (t_1308623004.Field1 < 0)) || (8 <= t_1308623004.Field1))) { - F.line = 53; - F.filename = "board.nim"; - result_1308623010 = nimCopy(result_1308623010, none_1308623025(), NTI1308622955); + if (((((t_1560281244.Field0 < 0) || (8 <= t_1560281244.Field0)) || (t_1560281244.Field1 < 0)) || (8 <= t_1560281244.Field1))) { + result_1560281250 = nimCopy(result_1560281250, none_1560281265(), NTI1560281195); break BeforeRet; } else { - F.line = 55; - result_1308623010 = nimCopy(result_1308623010, some_1308623033(b_1308623003[chckIndx(t_1308623004.Field1, 0, (b_1308623003).length - 1)][chckIndx(t_1308623004.Field0, 0, (b_1308623003[chckIndx(t_1308623004.Field1, 0, (b_1308623003).length - 1)]).length - 1)]), NTI1308622955); + result_1560281250 = nimCopy(result_1560281250, some_1560281273(b_1560281243[chckIndx(t_1560281244.Field1, 0, (b_1560281243).length - 1)][chckIndx(t_1560281244.Field0, 0, (b_1560281243[chckIndx(t_1560281244.Field1, 0, (b_1560281243).length - 1)]).length - 1)]), NTI1560281195); break BeforeRet; } }; - framePtr = F.prev; - return result_1308623010; + return result_1560281250; } -function isSome_1291845652(self_1291845654) { - var result_1291845655 = false; +function isSome_1543503892(self_1543503894) { + var result_1543503895 = false; - var F = {procname: "isSome.isSome", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/options.nim", line: 0}; - framePtr = F; - F.line = 161; - F.filename = "options.nim"; - result_1291845655 = self_1291845654.has; - framePtr = F.prev; + result_1543503895 = self_1543503894.has; - return result_1291845655; + return result_1543503895; } -function isNone_1291845677(self_1291845679) { - var result_1291845680 = false; +function isNone_1543503917(self_1543503919) { + var result_1543503920 = false; - var F = {procname: "isNone.isNone", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/options.nim", line: 0}; - framePtr = F; - F.line = 176; - F.filename = "options.nim"; - result_1291845680 = !(self_1291845679.has); - framePtr = F.prev; + result_1543503920 = !(self_1543503919.has); - return result_1291845680; + return result_1543503920; } -function get_1291845669(self_1291845671) { - var result_1291845672 = ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}); +function get_1543503909(self_1543503911) { + var result_1543503912 = ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}); - var F = {procname: "get.get", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/options.nim", line: 0}; - framePtr = F; - if (isNone_1291845677(self_1291845671)) { - F.line = 202; - F.filename = "options.nim"; - raiseException({message: [67,97,110,39,116,32,111,98,116,97,105,110,32,97,32,118,97,108,117,101,32,102,114,111,109,32,97,32,96,110,111,110,101,96], parent: null, m_type: NTI1241514007, name: null, trace: [], up: null}, "UnpackDefect"); + if (isNone_1543503917(self_1543503911)) { + raiseException({message: [67,97,110,39,116,32,111,98,116,97,105,110,32,97,32,118,97,108,117,101,32,102,114,111,109,32,97,32,96,110,111,110,101,96], parent: null, m_type: NTI1493172247, name: null, trace: [], up: null}, "UnpackDefect"); } - F.line = 203; - result_1291845672 = self_1291845671.val; - framePtr = F.prev; + result_1543503912 = self_1543503911.val; - return result_1291845672; + return result_1543503912; } -function addIfFree_1291845640(addTo_1291845641, addTo_1291845641_Idx, board_1291845642, t_1291845643, shoot_1291845644) { - var result_1291845645 = false; +function addIfFree_1543503880(addTo_1543503881, addTo_1543503881_Idx, board_1543503882, t_1543503883, shoot_1543503884) { + var result_1543503885 = false; - var F = {procname: "moves.addIfFree", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/moves.nim", line: 0}; - framePtr = F; BeforeRet: { - F.line = 13; - F.filename = "moves.nim"; - var target_1291845647 = boardRef_1308623002(board_1291845642, shoot_1291845644(t_1291845643)); - if ((isSome_1291845652(target_1291845647) && isAir_1224737796(get_1291845669(target_1291845647)))) { - F.line = 15; - addTo_1291845641[addTo_1291845641_Idx].push(shoot_1291845644(t_1291845643));; - F.line = 16; - result_1291845645 = true; + var target_1543503887 = boardRef_1560281242(board_1543503882, shoot_1543503884(t_1543503883)); + if ((isSome_1543503892(target_1543503887) && isAir_1476396036(get_1543503909(target_1543503887)))) { + addTo_1543503881[addTo_1543503881_Idx].push(shoot_1543503884(t_1543503883));; + result_1543503885 = true; break BeforeRet; } - F.line = 17; - result_1291845645 = false; + result_1543503885 = false; break BeforeRet; }; - framePtr = F.prev; - return result_1291845645; + return result_1543503885; } -function shooterFactory_1308622968(m_1308622969, n_1308622970) { +function shooterFactory_1560281208(m_1560281209, n_1560281210) { -function HEX3Aanonymous_1308622972(t_1308622973) { - var result_1308622974 = {Field0: 0, Field1: 0}; +function HEX3Aanonymous_1560281212(t_1560281213) { + var result_1560281214 = {Field0: 0, Field1: 0}; - var F = {procname: "shooterFactory.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/board.nim", line: 0}; - framePtr = F; - F.line = 32; - F.filename = "board.nim"; - var colontmp__1493178755 = addInt(t_1308622973.Field0, m_1308622969); - F.line = 32; - var colontmp__1493178756 = addInt(t_1308622973.Field1, n_1308622970); - F.line = 32; - result_1308622974 = nimCopy(result_1308622974, {Field0: colontmp__1493178755, Field1: colontmp__1493178756}, NTI1224736771); - framePtr = F.prev; + var colontmp__1845500314 = addInt(t_1560281213.Field0, m_1560281209); + var colontmp__1845500315 = addInt(t_1560281213.Field1, n_1560281210); + result_1560281214 = nimCopy(result_1560281214, {Field0: colontmp__1845500314, Field1: colontmp__1845500315}, NTI1476395011); - return result_1308622974; + return result_1560281214; } - var result_1308622971 = null; + var result_1560281211 = null; - var F = {procname: "board.shooterFactory", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/board.nim", line: 0}; - framePtr = F; - F.line = 32; - F.filename = "board.nim"; - result_1308622971 = HEX3Aanonymous_1308622972; - framePtr = F.prev; + result_1560281211 = HEX3Aanonymous_1560281212; - return result_1308622971; + return result_1560281211; } -function HEX3Aanonymous_1291846082(board_1291846083, p_1291846084) { - var result_1291846085 = [[]]; +function HEX3Aanonymous_1543504322(board_1543504323, p_1543504324) { + var result_1543504325 = [[]]; - var F = {procname: "moves.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/moves.nim", line: 0}; - framePtr = F; - F.line = 165; - F.filename = "moves.nim"; - var _ = addIfFree_1291845640(result_1291846085, 0, board_1291846083, p_1291846084.tile, shooterFactory_1308622968(1, 2)); - F.line = 166; - var _ = addIfFree_1291845640(result_1291846085, 0, board_1291846083, p_1291846084.tile, shooterFactory_1308622968((-1), 2)); - F.line = 167; - var _ = addIfFree_1291845640(result_1291846085, 0, board_1291846083, p_1291846084.tile, shooterFactory_1308622968(1, (-2))); - F.line = 168; - var _ = addIfFree_1291845640(result_1291846085, 0, board_1291846083, p_1291846084.tile, shooterFactory_1308622968((-1), (-2))); - F.line = 169; - var _ = addIfFree_1291845640(result_1291846085, 0, board_1291846083, p_1291846084.tile, shooterFactory_1308622968(2, 1)); - F.line = 170; - var _ = addIfFree_1291845640(result_1291846085, 0, board_1291846083, p_1291846084.tile, shooterFactory_1308622968(2, (-1))); - F.line = 171; - var _ = addIfFree_1291845640(result_1291846085, 0, board_1291846083, p_1291846084.tile, shooterFactory_1308622968((-2), 1)); - F.line = 172; - var _ = addIfFree_1291845640(result_1291846085, 0, board_1291846083, p_1291846084.tile, shooterFactory_1308622968((-2), (-1))); - framePtr = F.prev; + var _ = addIfFree_1543503880(result_1543504325, 0, board_1543504323, p_1543504324.tile, shooterFactory_1560281208(1, 2)); + var _ = addIfFree_1543503880(result_1543504325, 0, board_1543504323, p_1543504324.tile, shooterFactory_1560281208((-1), 2)); + var _ = addIfFree_1543503880(result_1543504325, 0, board_1543504323, p_1543504324.tile, shooterFactory_1560281208(1, (-2))); + var _ = addIfFree_1543503880(result_1543504325, 0, board_1543504323, p_1543504324.tile, shooterFactory_1560281208((-1), (-2))); + var _ = addIfFree_1543503880(result_1543504325, 0, board_1543504323, p_1543504324.tile, shooterFactory_1560281208(2, 1)); + var _ = addIfFree_1543503880(result_1543504325, 0, board_1543504323, p_1543504324.tile, shooterFactory_1560281208(2, (-1))); + var _ = addIfFree_1543503880(result_1543504325, 0, board_1543504323, p_1543504324.tile, shooterFactory_1560281208((-2), 1)); + var _ = addIfFree_1543503880(result_1543504325, 0, board_1543504323, p_1543504324.tile, shooterFactory_1560281208((-2), (-1))); - return result_1291846085[0]; + return result_1543504325[0]; } -function sameColor_1224737804(a_1224737805, b_1224737806) { - var result_1224737807 = false; +function sameColor_1476396044(a_1476396045, b_1476396046) { + var result_1476396047 = false; - var F = {procname: "piece.sameColor", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/piece.nim", line: 0}; - framePtr = F; BeforeRet: { - F.line = 305; - F.filename = "piece.nim"; - result_1224737807 = (((a_1224737805.color == b_1224737806.color) && !(isAir_1224737796(a_1224737805))) && !(isAir_1224737796(b_1224737806))); + result_1476396047 = (((a_1476396045.color == b_1476396046.color) && !(isAir_1476396036(a_1476396045))) && !(isAir_1476396036(b_1476396046))); break BeforeRet; }; - framePtr = F.prev; - return result_1224737807; + return result_1476396047; } -function addIfTake_1291845739(addTo_1291845740, addTo_1291845740_Idx, board_1291845741, initialPiece_1291845742, t_1291845743, shoot_1291845744, throughFlag_1291845745, cannibalismFlag_1291845746) { - var result_1291845747 = false; +function addIfTake_1543503979(addTo_1543503980, addTo_1543503980_Idx, board_1543503981, initialPiece_1543503982, t_1543503983, shoot_1543503984, throughFlag_1543503985, cannibalismFlag_1543503986) { + var result_1543503987 = false; - var F = {procname: "moves.addIfTake", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/moves.nim", line: 0}; - framePtr = F; BeforeRet: { - F.line = 26; - F.filename = "moves.nim"; - var target_1291845749 = boardRef_1308623002(board_1291845741, shoot_1291845744(t_1291845743)); - if (((isSome_1291845652(target_1291845749) && !(isAir_1224737796(get_1291845669(target_1291845749)))) && (!(sameColor_1224737804(initialPiece_1291845742, get_1291845669(target_1291845749))) || cannibalismFlag_1291845746))) { - F.line = 29; - addTo_1291845740[addTo_1291845740_Idx].push(shoot_1291845744(t_1291845743));; - F.line = 30; - result_1291845747 = (false || throughFlag_1291845745); + var target_1543503989 = boardRef_1560281242(board_1543503981, shoot_1543503984(t_1543503983)); + if (((isSome_1543503892(target_1543503989) && !(isAir_1476396036(get_1543503909(target_1543503989)))) && (!(sameColor_1476396044(initialPiece_1543503982, get_1543503909(target_1543503989))) || cannibalismFlag_1543503986))) { + addTo_1543503980[addTo_1543503980_Idx].push(shoot_1543503984(t_1543503983));; + result_1543503987 = (false || throughFlag_1543503985); break BeforeRet; } - F.line = 31; - result_1291845747 = (isSome_1291845652(target_1291845749) && (isAir_1224737796(get_1291845669(target_1291845749)) || throughFlag_1291845745)); + result_1543503987 = (isSome_1543503892(target_1543503989) && (isAir_1476396036(get_1543503909(target_1543503989)) || throughFlag_1543503985)); break BeforeRet; }; - framePtr = F.prev; - - return result_1291845747; - -} - -function HEX3Aanonymous_1291846087(board_1291846088, p_1291846089) { - var result_1291846090 = [[]]; - - var F = {procname: "moves.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/moves.nim", line: 0}; - framePtr = F; - F.line = 175; - F.filename = "moves.nim"; - var _ = addIfTake_1291845739(result_1291846090, 0, board_1291846088, p_1291846089, p_1291846089.tile, shooterFactory_1308622968(1, 2), false, false); - F.line = 176; - var _ = addIfTake_1291845739(result_1291846090, 0, board_1291846088, p_1291846089, p_1291846089.tile, shooterFactory_1308622968((-1), 2), false, false); - F.line = 177; - var _ = addIfTake_1291845739(result_1291846090, 0, board_1291846088, p_1291846089, p_1291846089.tile, shooterFactory_1308622968(2, 1), false, false); - F.line = 178; - var _ = addIfTake_1291845739(result_1291846090, 0, board_1291846088, p_1291846089, p_1291846089.tile, shooterFactory_1308622968(2, (-1)), false, false); - F.line = 179; - var _ = addIfTake_1291845739(result_1291846090, 0, board_1291846088, p_1291846089, p_1291846089.tile, shooterFactory_1308622968(1, (-2)), false, false); - F.line = 180; - var _ = addIfTake_1291845739(result_1291846090, 0, board_1291846088, p_1291846089, p_1291846089.tile, shooterFactory_1308622968((-1), (-2)), false, false); - F.line = 181; - var _ = addIfTake_1291845739(result_1291846090, 0, board_1291846088, p_1291846089, p_1291846089.tile, shooterFactory_1308622968((-2), 1), false, false); - F.line = 182; - var _ = addIfTake_1291845739(result_1291846090, 0, board_1291846088, p_1291846089, p_1291846089.tile, shooterFactory_1308622968((-2), (-1)), false, false); - framePtr = F.prev; - - return result_1291846090[0]; - -} - -function HEX3Aanonymous_1493172492(side_1493172493, __1493172494, b_1493172495, s_1493172496) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 136; - F.filename = "powers.nim"; - buff_1493172242(1, side_1493172493, b_1493172495, s_1493172496, [HEX3Aanonymous_1291846082], [HEX3Aanonymous_1291846087], [], false, [], null, null, null, false); - framePtr = F.prev; - - -} - -function HEX3Aanonymous_1509949640(board_1509949641, p_1509949642) { - var result_1509949643 = [[]]; - - var F = {procname: "extramoves.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/extramoves.nim", line: 0}; - framePtr = F; - F.line = 153; - F.filename = "extramoves.nim"; - var _ = addIfFree_1291845640(result_1509949643, 0, board_1509949641, p_1509949642.tile, shooterFactory_1308622968(1, 3)); - F.line = 154; - var _ = addIfFree_1291845640(result_1509949643, 0, board_1509949641, p_1509949642.tile, shooterFactory_1308622968((-1), 3)); - F.line = 155; - var _ = addIfFree_1291845640(result_1509949643, 0, board_1509949641, p_1509949642.tile, shooterFactory_1308622968(1, (-3))); - F.line = 156; - var _ = addIfFree_1291845640(result_1509949643, 0, board_1509949641, p_1509949642.tile, shooterFactory_1308622968((-1), (-3))); - F.line = 157; - var _ = addIfFree_1291845640(result_1509949643, 0, board_1509949641, p_1509949642.tile, shooterFactory_1308622968(3, 1)); - F.line = 158; - var _ = addIfFree_1291845640(result_1509949643, 0, board_1509949641, p_1509949642.tile, shooterFactory_1308622968(3, (-1))); - F.line = 159; - var _ = addIfFree_1291845640(result_1509949643, 0, board_1509949641, p_1509949642.tile, shooterFactory_1308622968((-3), 1)); - F.line = 160; - var _ = addIfFree_1291845640(result_1509949643, 0, board_1509949641, p_1509949642.tile, shooterFactory_1308622968((-3), (-1))); - framePtr = F.prev; - - return result_1509949643[0]; - -} - -function HEX3Aanonymous_1509949635(board_1509949636, p_1509949637) { - var result_1509949638 = [[]]; - - var F = {procname: "extramoves.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/extramoves.nim", line: 0}; - framePtr = F; - F.line = 143; - F.filename = "extramoves.nim"; - var _ = addIfTake_1291845739(result_1509949638, 0, board_1509949636, p_1509949637, p_1509949637.tile, shooterFactory_1308622968(1, 3), false, false); - F.line = 144; - var _ = addIfTake_1291845739(result_1509949638, 0, board_1509949636, p_1509949637, p_1509949637.tile, shooterFactory_1308622968((-1), 3), false, false); - F.line = 145; - var _ = addIfTake_1291845739(result_1509949638, 0, board_1509949636, p_1509949637, p_1509949637.tile, shooterFactory_1308622968(1, (-3)), false, false); - F.line = 146; - var _ = addIfTake_1291845739(result_1509949638, 0, board_1509949636, p_1509949637, p_1509949637.tile, shooterFactory_1308622968((-1), (-3)), false, false); - F.line = 147; - var _ = addIfTake_1291845739(result_1509949638, 0, board_1509949636, p_1509949637, p_1509949637.tile, shooterFactory_1308622968(3, 1), false, false); - F.line = 148; - var _ = addIfTake_1291845739(result_1509949638, 0, board_1509949636, p_1509949637, p_1509949637.tile, shooterFactory_1308622968(3, (-1)), false, false); - F.line = 149; - var _ = addIfTake_1291845739(result_1509949638, 0, board_1509949636, p_1509949637, p_1509949637.tile, shooterFactory_1308622968((-3), 1), false, false); - F.line = 150; - var _ = addIfTake_1291845739(result_1509949638, 0, board_1509949636, p_1509949637, p_1509949637.tile, shooterFactory_1308622968((-3), (-1)), false, false); - framePtr = F.prev; - - return result_1509949638[0]; - -} - -function HEX3Aanonymous_1493172538(side_1493172539, __1493172540, b_1493172541, s_1493172542) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 152; - F.filename = "powers.nim"; - buff_1493172242(1, side_1493172539, b_1493172541, s_1493172542, [HEX3Aanonymous_1509949640], [HEX3Aanonymous_1509949635], [], false, [], null, null, null, false); - framePtr = F.prev; + + return result_1543503987; + +} + +function HEX3Aanonymous_1543504327(board_1543504328, p_1543504329) { + var result_1543504330 = [[]]; + + var _ = addIfTake_1543503979(result_1543504330, 0, board_1543504328, p_1543504329, p_1543504329.tile, shooterFactory_1560281208(1, 2), false, false); + var _ = addIfTake_1543503979(result_1543504330, 0, board_1543504328, p_1543504329, p_1543504329.tile, shooterFactory_1560281208((-1), 2), false, false); + var _ = addIfTake_1543503979(result_1543504330, 0, board_1543504328, p_1543504329, p_1543504329.tile, shooterFactory_1560281208(2, 1), false, false); + var _ = addIfTake_1543503979(result_1543504330, 0, board_1543504328, p_1543504329, p_1543504329.tile, shooterFactory_1560281208(2, (-1)), false, false); + var _ = addIfTake_1543503979(result_1543504330, 0, board_1543504328, p_1543504329, p_1543504329.tile, shooterFactory_1560281208(1, (-2)), false, false); + var _ = addIfTake_1543503979(result_1543504330, 0, board_1543504328, p_1543504329, p_1543504329.tile, shooterFactory_1560281208((-1), (-2)), false, false); + var _ = addIfTake_1543503979(result_1543504330, 0, board_1543504328, p_1543504329, p_1543504329.tile, shooterFactory_1560281208((-2), 1), false, false); + var _ = addIfTake_1543503979(result_1543504330, 0, board_1543504328, p_1543504329, p_1543504329.tile, shooterFactory_1560281208((-2), (-1)), false, false); + + return result_1543504330[0]; + +} + +function HEX3Aanonymous_1845494028(side_1845494029, __1845494030, b_1845494031, s_1845494032) { + buff_1845493778(1, side_1845494029, b_1845494031, s_1845494032, [HEX3Aanonymous_1543504322], [HEX3Aanonymous_1543504327], [], false, [], null, null, null, false); + + +} + +function HEX3Aanonymous_1862271176(board_1862271177, p_1862271178) { + var result_1862271179 = [[]]; + + var _ = addIfFree_1543503880(result_1862271179, 0, board_1862271177, p_1862271178.tile, shooterFactory_1560281208(1, 3)); + var _ = addIfFree_1543503880(result_1862271179, 0, board_1862271177, p_1862271178.tile, shooterFactory_1560281208((-1), 3)); + var _ = addIfFree_1543503880(result_1862271179, 0, board_1862271177, p_1862271178.tile, shooterFactory_1560281208(1, (-3))); + var _ = addIfFree_1543503880(result_1862271179, 0, board_1862271177, p_1862271178.tile, shooterFactory_1560281208((-1), (-3))); + var _ = addIfFree_1543503880(result_1862271179, 0, board_1862271177, p_1862271178.tile, shooterFactory_1560281208(3, 1)); + var _ = addIfFree_1543503880(result_1862271179, 0, board_1862271177, p_1862271178.tile, shooterFactory_1560281208(3, (-1))); + var _ = addIfFree_1543503880(result_1862271179, 0, board_1862271177, p_1862271178.tile, shooterFactory_1560281208((-3), 1)); + var _ = addIfFree_1543503880(result_1862271179, 0, board_1862271177, p_1862271178.tile, shooterFactory_1560281208((-3), (-1))); + + return result_1862271179[0]; + +} + +function HEX3Aanonymous_1862271171(board_1862271172, p_1862271173) { + var result_1862271174 = [[]]; + + var _ = addIfTake_1543503979(result_1862271174, 0, board_1862271172, p_1862271173, p_1862271173.tile, shooterFactory_1560281208(1, 3), false, false); + var _ = addIfTake_1543503979(result_1862271174, 0, board_1862271172, p_1862271173, p_1862271173.tile, shooterFactory_1560281208((-1), 3), false, false); + var _ = addIfTake_1543503979(result_1862271174, 0, board_1862271172, p_1862271173, p_1862271173.tile, shooterFactory_1560281208(1, (-3)), false, false); + var _ = addIfTake_1543503979(result_1862271174, 0, board_1862271172, p_1862271173, p_1862271173.tile, shooterFactory_1560281208((-1), (-3)), false, false); + var _ = addIfTake_1543503979(result_1862271174, 0, board_1862271172, p_1862271173, p_1862271173.tile, shooterFactory_1560281208(3, 1), false, false); + var _ = addIfTake_1543503979(result_1862271174, 0, board_1862271172, p_1862271173, p_1862271173.tile, shooterFactory_1560281208(3, (-1)), false, false); + var _ = addIfTake_1543503979(result_1862271174, 0, board_1862271172, p_1862271173, p_1862271173.tile, shooterFactory_1560281208((-3), 1), false, false); + var _ = addIfTake_1543503979(result_1862271174, 0, board_1862271172, p_1862271173, p_1862271173.tile, shooterFactory_1560281208((-3), (-1)), false, false); + + return result_1862271174[0]; + +} + +function HEX3Aanonymous_1845494074(side_1845494075, __1845494076, b_1845494077, s_1845494078) { + buff_1845493778(1, side_1845494075, b_1845494077, s_1845494078, [HEX3Aanonymous_1862271176], [HEX3Aanonymous_1862271171], [], false, [], null, null, null, false); } function sysFatal_268435501(message_268435504) { - var F = {procname: "sysFatal.sysFatal", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/fatal.nim", line: 0}; - framePtr = F; - F.line = 53; - F.filename = "fatal.nim"; raiseException({message: nimCopy(null, message_268435504, NTI33554449), m_type: NTI134217745, parent: null, name: null, trace: [], up: null}, "AssertionDefect"); - framePtr = F.prev; } function raiseAssert_268435499(msg_268435500) { - var F = {procname: "assertions.raiseAssert", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/std/assertions.nim", line: 0}; - framePtr = F; - F.line = 36; - F.filename = "assertions.nim"; sysFatal_268435501(msg_268435500); - framePtr = F.prev; } function failedAssertImpl_268435541(msg_268435542) { - var F = {procname: "assertions.failedAssertImpl", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/std/assertions.nim", line: 0}; - framePtr = F; - F.line = 41; - F.filename = "assertions.nim"; raiseAssert_268435499(msg_268435542); - framePtr = F.prev; } -function HEX3Aanonymous_1509949465(board_1509949466, p_1509949467) { - var result_1509949468 = [[]]; +function HEX3Aanonymous_1862271001(board_1862271002, p_1862271003) { + var result_1862271004 = [[]]; - var F = {procname: "extramoves.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/extramoves.nim", line: 0}; - framePtr = F; - F.line = 29; - F.filename = "extramoves.nim"; - var _ = addIfFree_1291845640(result_1509949468, 0, board_1509949466, p_1509949467.tile, shooterFactory_1308622968(1, 1)); - F.line = 30; - var _ = addIfFree_1291845640(result_1509949468, 0, board_1509949466, p_1509949467.tile, shooterFactory_1308622968((-1), 1)); - F.line = 31; - var _ = addIfFree_1291845640(result_1509949468, 0, board_1509949466, p_1509949467.tile, shooterFactory_1308622968(1, (-1))); - F.line = 32; - var _ = addIfFree_1291845640(result_1509949468, 0, board_1509949466, p_1509949467.tile, shooterFactory_1308622968((-1), (-1))); - framePtr = F.prev; + var _ = addIfFree_1543503880(result_1862271004, 0, board_1862271002, p_1862271003.tile, shooterFactory_1560281208(1, 1)); + var _ = addIfFree_1543503880(result_1862271004, 0, board_1862271002, p_1862271003.tile, shooterFactory_1560281208((-1), 1)); + var _ = addIfFree_1543503880(result_1862271004, 0, board_1862271002, p_1862271003.tile, shooterFactory_1560281208(1, (-1))); + var _ = addIfFree_1543503880(result_1862271004, 0, board_1862271002, p_1862271003.tile, shooterFactory_1560281208((-1), (-1))); - return result_1509949468[0]; + return result_1862271004[0]; } -function tileBelow_1308622993(t_1308622994) { - var result_1308622995 = {Field0: 0, Field1: 0}; +function tileBelow_1560281233(t_1560281234) { + var result_1560281235 = {Field0: 0, Field1: 0}; - var F = {procname: "board.tileBelow", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/board.nim", line: 0}; - framePtr = F; BeforeRet: { - F.line = 38; - F.filename = "board.nim"; - var colontmp__1493178757 = t_1308622994.Field0; - F.line = 38; - var colontmp__1493178758 = addInt(t_1308622994.Field1, 1); - F.line = 38; - result_1308622995 = nimCopy(result_1308622995, {Field0: colontmp__1493178757, Field1: colontmp__1493178758}, NTI1224736771); + var colontmp__1845500316 = t_1560281234.Field0; + var colontmp__1845500317 = addInt(t_1560281234.Field1, 1); + result_1560281235 = nimCopy(result_1560281235, {Field0: colontmp__1845500316, Field1: colontmp__1845500317}, NTI1476395011); break BeforeRet; }; - framePtr = F.prev; - return result_1308622995; + return result_1560281235; } -function HEX3Aanonymous_1509949514(board_1509949515, p_1509949516) { - var result_1509949517 = [[]]; +function HEX3Aanonymous_1862271050(board_1862271051, p_1862271052) { + var result_1862271053 = [[]]; - var F = {procname: "extramoves.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/extramoves.nim", line: 0}; - framePtr = F; - F.line = 72; - F.filename = "extramoves.nim"; - var _ = addIfFree_1291845640(result_1509949517, 0, board_1509949515, p_1509949516.tile, tileBelow_1308622993); - framePtr = F.prev; + var _ = addIfFree_1543503880(result_1862271053, 0, board_1862271051, p_1862271052.tile, tileBelow_1560281233); - return result_1509949517[0]; + return result_1862271053[0]; } -function HEX3Aanonymous_1509949470(board_1509949471, p_1509949472) { - var result_1509949473 = [[]]; +function HEX3Aanonymous_1862271006(board_1862271007, p_1862271008) { + var result_1862271009 = [[]]; - var F = {procname: "extramoves.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/extramoves.nim", line: 0}; - framePtr = F; - F.line = 35; - F.filename = "extramoves.nim"; - var _ = addIfTake_1291845739(result_1509949473, 0, board_1509949471, p_1509949472, p_1509949472.tile, shooterFactory_1308622968(1, 1), false, false); - F.line = 36; - var _ = addIfTake_1291845739(result_1509949473, 0, board_1509949471, p_1509949472, p_1509949472.tile, shooterFactory_1308622968((-1), 1), false, false); - F.line = 37; - var _ = addIfTake_1291845739(result_1509949473, 0, board_1509949471, p_1509949472, p_1509949472.tile, shooterFactory_1308622968(1, (-1)), false, false); - F.line = 38; - var _ = addIfTake_1291845739(result_1509949473, 0, board_1509949471, p_1509949472, p_1509949472.tile, shooterFactory_1308622968((-1), (-1)), false, false); - framePtr = F.prev; + var _ = addIfTake_1543503979(result_1862271009, 0, board_1862271007, p_1862271008, p_1862271008.tile, shooterFactory_1560281208(1, 1), false, false); + var _ = addIfTake_1543503979(result_1862271009, 0, board_1862271007, p_1862271008, p_1862271008.tile, shooterFactory_1560281208((-1), 1), false, false); + var _ = addIfTake_1543503979(result_1862271009, 0, board_1862271007, p_1862271008, p_1862271008.tile, shooterFactory_1560281208(1, (-1)), false, false); + var _ = addIfTake_1543503979(result_1862271009, 0, board_1862271007, p_1862271008, p_1862271008.tile, shooterFactory_1560281208((-1), (-1)), false, false); - return result_1509949473[0]; + return result_1862271009[0]; } -function HEX3Aanonymous_1509949524(board_1509949525, p_1509949526) { - var result_1509949527 = [[]]; +function HEX3Aanonymous_1862271060(board_1862271061, p_1862271062) { + var result_1862271063 = [[]]; - var F = {procname: "extramoves.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/extramoves.nim", line: 0}; - framePtr = F; - F.line = 78; - F.filename = "extramoves.nim"; - var _ = addIfTake_1291845739(result_1509949527, 0, board_1509949525, p_1509949526, p_1509949526.tile, tileBelow_1308622993, false, false); - framePtr = F.prev; + var _ = addIfTake_1543503979(result_1862271063, 0, board_1862271061, p_1862271062, p_1862271062.tile, tileBelow_1560281233, false, false); - return result_1509949527[0]; + return result_1862271063[0]; } -function tileAbove_1308622990(t_1308622991) { - var result_1308622992 = {Field0: 0, Field1: 0}; +function tileAbove_1560281230(t_1560281231) { + var result_1560281232 = {Field0: 0, Field1: 0}; - var F = {procname: "board.tileAbove", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/board.nim", line: 0}; - framePtr = F; BeforeRet: { - F.line = 35; - F.filename = "board.nim"; - var colontmp__1493178759 = t_1308622991.Field0; - F.line = 35; - var colontmp__1493178760 = subInt(t_1308622991.Field1, 1); - F.line = 35; - result_1308622992 = nimCopy(result_1308622992, {Field0: colontmp__1493178759, Field1: colontmp__1493178760}, NTI1224736771); + var colontmp__1845500318 = t_1560281231.Field0; + var colontmp__1845500319 = subInt(t_1560281231.Field1, 1); + result_1560281232 = nimCopy(result_1560281232, {Field0: colontmp__1845500318, Field1: colontmp__1845500319}, NTI1476395011); break BeforeRet; }; - framePtr = F.prev; - return result_1308622992; + return result_1560281232; } -function HEX3Aanonymous_1509949509(board_1509949510, p_1509949511) { - var result_1509949512 = [[]]; +function HEX3Aanonymous_1862271045(board_1862271046, p_1862271047) { + var result_1862271048 = [[]]; - var F = {procname: "extramoves.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/extramoves.nim", line: 0}; - framePtr = F; - F.line = 69; - F.filename = "extramoves.nim"; - var _ = addIfFree_1291845640(result_1509949512, 0, board_1509949510, p_1509949511.tile, tileAbove_1308622990); - framePtr = F.prev; + var _ = addIfFree_1543503880(result_1862271048, 0, board_1862271046, p_1862271047.tile, tileAbove_1560281230); - return result_1509949512[0]; + return result_1862271048[0]; } -function HEX3Aanonymous_1509949519(board_1509949520, p_1509949521) { - var result_1509949522 = [[]]; +function HEX3Aanonymous_1862271055(board_1862271056, p_1862271057) { + var result_1862271058 = [[]]; - var F = {procname: "extramoves.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/extramoves.nim", line: 0}; - framePtr = F; - F.line = 75; - F.filename = "extramoves.nim"; - var _ = addIfTake_1291845739(result_1509949522, 0, board_1509949520, p_1509949521, p_1509949521.tile, tileAbove_1308622990, false, false); - framePtr = F.prev; + var _ = addIfTake_1543503979(result_1862271058, 0, board_1862271056, p_1862271057, p_1862271057.tile, tileAbove_1560281230, false, false); - return result_1509949522[0]; + return result_1862271058[0]; } -function isAtEnd_1224737998(piece_1224737999) { - var result_1224738000 = false; +function isAtEnd_1476396238(piece_1476396239) { + var result_1476396240 = false; - var F = {procname: "piece.isAtEnd", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/piece.nim", line: 0}; - framePtr = F; BeforeRet: { - F.line = 351; - F.filename = "piece.nim"; - result_1224738000 = (((piece_1224737999.tile.Field1 == 7) && (piece_1224737999.color == 0)) || ((piece_1224737999.tile.Field1 == 0) && (piece_1224737999.color == 1))); + result_1476396240 = (((piece_1476396239.tile.Field1 == 7) && (piece_1476396239.color == 0)) || ((piece_1476396239.tile.Field1 == 0) && (piece_1476396239.color == 1))); break BeforeRet; }; - framePtr = F.prev; - return result_1224738000; + return result_1476396240; } -function HEX3Aanonymous_1493172639(piece_1493172640, board_1493172641, state_1493172642) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - if ((isAtEnd_1224737998(piece_1493172640) && !(piece_1493172640.promoted))) { +function HEX3Aanonymous_1845494175(piece_1845494176, board_1845494177, state_1845494178) { + if ((isAtEnd_1476396238(piece_1845494176) && !(piece_1845494176.promoted))) { Label1: { - F.line = 181; - F.filename = "piece.nim"; - var xHEX60gensym26_1493172647 = null; - F.line = 249; - F.filename = "iterators.nim"; - var i_1493178763 = 0; - F.line = 250; - var L_1493178764 = (piece_1493172640.onPromote).length; + var xHEX60gensym26_1845494183 = null; + var i_1845500322 = 0; + var L_1845500323 = (piece_1845494176.onPromote).length; Label2: { - F.line = 251; Label3: while (true) { - if (!(i_1493178763 < L_1493178764)) break Label3; - F.line = 176; - F.filename = "powers.nim"; - xHEX60gensym26_1493172647 = piece_1493172640.onPromote[chckIndx(i_1493178763, 0, (piece_1493172640.onPromote).length - 1)]; - F.line = 182; - F.filename = "piece.nim"; - xHEX60gensym26_1493172647(piece_1493172640, board_1493172641, state_1493172642); - if (piece_1493172640.promoted) { - F.line = 183; + if (!(i_1845500322 < L_1845500323)) break Label3; + xHEX60gensym26_1845494183 = piece_1845494176.onPromote[chckIndx(i_1845500322, 0, (piece_1845494176.onPromote).length - 1)]; + xHEX60gensym26_1845494183(piece_1845494176, board_1845494177, state_1845494178); + if (piece_1845494176.promoted) { break Label1; } - F.line = 13; - F.filename = "iterators.nim"; - i_1493178763 += 1; - if (!(((piece_1493172640.onPromote).length == L_1493178764))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + i_1845500322 += 1; + if (!(((piece_1845494176.onPromote).length == L_1845500323))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } @@ -3412,815 +2639,520 @@ function HEX3Aanonymous_1493172639(piece_1493172640, board_1493172641, state_149 }; } - framePtr = F.prev; } -function newSeq_1291845948(len_1291845950) { - var result_1291845951 = []; +function newSeq_1543504188(len_1543504190) { + var result_1543504191 = []; - var F = {procname: "newSeq.newSeq", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; - F.line = 633; - F.filename = "system.nim"; - result_1291845951 = new Array(len_1291845950); for (var i = 0 ; i < len_1291845950 ; ++i) { result_1291845951[i] = null; } framePtr = F.prev; - - return result_1291845951; + result_1543504191 = new Array(len_1543504190); for (var i = 0 ; i < len_1543504190 ; ++i) { result_1543504191[i] = null; } + return result_1543504191; } -function HEX3Aanonymous_1509949445(board_1509949446, p_1509949447) { - var result_1509949448 = [[]]; +function HEX3Aanonymous_1862270981(board_1862270982, p_1862270983) { + var result_1862270984 = [[]]; - var F = {procname: "extramoves.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/extramoves.nim", line: 0}; - framePtr = F; - F.line = 13; - F.filename = "extramoves.nim"; - var _ = addIfFree_1291845640(result_1509949448, 0, board_1509949446, p_1509949447.tile, shooterFactory_1308622968(1, (-1))); - F.line = 14; - var _ = addIfFree_1291845640(result_1509949448, 0, board_1509949446, p_1509949447.tile, shooterFactory_1308622968((-1), (-1))); - framePtr = F.prev; + var _ = addIfFree_1543503880(result_1862270984, 0, board_1862270982, p_1862270983.tile, shooterFactory_1560281208(1, (-1))); + var _ = addIfFree_1543503880(result_1862270984, 0, board_1862270982, p_1862270983.tile, shooterFactory_1560281208((-1), (-1))); - return result_1509949448[0]; + return result_1862270984[0]; } -function tileLeft_1308622996(t_1308622997) { - var result_1308622998 = {Field0: 0, Field1: 0}; +function tileLeft_1560281236(t_1560281237) { + var result_1560281238 = {Field0: 0, Field1: 0}; - var F = {procname: "board.tileLeft", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/board.nim", line: 0}; - framePtr = F; BeforeRet: { - F.line = 41; - F.filename = "board.nim"; - var colontmp__1493178775 = subInt(t_1308622997.Field0, 1); - F.line = 41; - var colontmp__1493178776 = t_1308622997.Field1; - F.line = 41; - result_1308622998 = nimCopy(result_1308622998, {Field0: colontmp__1493178775, Field1: colontmp__1493178776}, NTI1224736771); + var colontmp__1845500334 = subInt(t_1560281237.Field0, 1); + var colontmp__1845500335 = t_1560281237.Field1; + result_1560281238 = nimCopy(result_1560281238, {Field0: colontmp__1845500334, Field1: colontmp__1845500335}, NTI1476395011); break BeforeRet; }; - framePtr = F.prev; - return result_1308622998; + return result_1560281238; } -function tileRight_1308622999(t_1308623000) { - var result_1308623001 = {Field0: 0, Field1: 0}; +function tileRight_1560281239(t_1560281240) { + var result_1560281241 = {Field0: 0, Field1: 0}; - var F = {procname: "board.tileRight", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/board.nim", line: 0}; - framePtr = F; BeforeRet: { - F.line = 44; - F.filename = "board.nim"; - var colontmp__1493178777 = addInt(t_1308623000.Field0, 1); - F.line = 44; - var colontmp__1493178778 = t_1308623000.Field1; - F.line = 44; - result_1308623001 = nimCopy(result_1308623001, {Field0: colontmp__1493178777, Field1: colontmp__1493178778}, NTI1224736771); + var colontmp__1845500336 = addInt(t_1560281240.Field0, 1); + var colontmp__1845500337 = t_1560281240.Field1; + result_1560281241 = nimCopy(result_1560281241, {Field0: colontmp__1845500336, Field1: colontmp__1845500337}, NTI1476395011); break BeforeRet; }; - framePtr = F.prev; - return result_1308623001; + return result_1560281241; } -function HEX3Aanonymous_1509949475(board_1509949476, p_1509949477) { - var result_1509949478 = [[]]; +function HEX3Aanonymous_1862271011(board_1862271012, p_1862271013) { + var result_1862271014 = [[]]; - var F = {procname: "extramoves.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/extramoves.nim", line: 0}; - framePtr = F; - F.line = 41; - F.filename = "extramoves.nim"; - var _ = addIfFree_1291845640(result_1509949478, 0, board_1509949476, p_1509949477.tile, tileLeft_1308622996); - F.line = 42; - var _ = addIfFree_1291845640(result_1509949478, 0, board_1509949476, p_1509949477.tile, tileRight_1308622999); - framePtr = F.prev; + var _ = addIfFree_1543503880(result_1862271014, 0, board_1862271012, p_1862271013.tile, tileLeft_1560281236); + var _ = addIfFree_1543503880(result_1862271014, 0, board_1862271012, p_1862271013.tile, tileRight_1560281239); - return result_1509949478[0]; + return result_1862271014[0]; } -function HEX3Aanonymous_1509949455(board_1509949456, p_1509949457) { - var result_1509949458 = [[]]; +function HEX3Aanonymous_1862270991(board_1862270992, p_1862270993) { + var result_1862270994 = [[]]; - var F = {procname: "extramoves.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/extramoves.nim", line: 0}; - framePtr = F; - F.line = 21; - F.filename = "extramoves.nim"; - var _ = addIfTake_1291845739(result_1509949458, 0, board_1509949456, p_1509949457, p_1509949457.tile, shooterFactory_1308622968(1, (-1)), false, false); - F.line = 22; - var _ = addIfTake_1291845739(result_1509949458, 0, board_1509949456, p_1509949457, p_1509949457.tile, shooterFactory_1308622968((-1), (-1)), false, false); - framePtr = F.prev; + var _ = addIfTake_1543503979(result_1862270994, 0, board_1862270992, p_1862270993, p_1862270993.tile, shooterFactory_1560281208(1, (-1)), false, false); + var _ = addIfTake_1543503979(result_1862270994, 0, board_1862270992, p_1862270993, p_1862270993.tile, shooterFactory_1560281208((-1), (-1)), false, false); - return result_1509949458[0]; + return result_1862270994[0]; } -function HEX3Aanonymous_1509949504(board_1509949505, p_1509949506) { - var result_1509949507 = [[]]; +function HEX3Aanonymous_1862271040(board_1862271041, p_1862271042) { + var result_1862271043 = [[]]; - var F = {procname: "extramoves.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/extramoves.nim", line: 0}; - framePtr = F; - F.line = 65; - F.filename = "extramoves.nim"; - var _ = addIfTake_1291845739(result_1509949507, 0, board_1509949505, p_1509949506, p_1509949506.tile, tileLeft_1308622996, false, false); - F.line = 66; - var _ = addIfTake_1291845739(result_1509949507, 0, board_1509949505, p_1509949506, p_1509949506.tile, tileRight_1308622999, false, false); - framePtr = F.prev; + var _ = addIfTake_1543503979(result_1862271043, 0, board_1862271041, p_1862271042, p_1862271042.tile, tileLeft_1560281236, false, false); + var _ = addIfTake_1543503979(result_1862271043, 0, board_1862271041, p_1862271042, p_1862271042.tile, tileRight_1560281239, false, false); - return result_1509949507[0]; + return result_1862271043[0]; } -function HEX3Aanonymous_1509949450(board_1509949451, p_1509949452) { - var result_1509949453 = [[]]; +function HEX3Aanonymous_1862270986(board_1862270987, p_1862270988) { + var result_1862270989 = [[]]; - var F = {procname: "extramoves.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/extramoves.nim", line: 0}; - framePtr = F; - F.line = 17; - F.filename = "extramoves.nim"; - var _ = addIfFree_1291845640(result_1509949453, 0, board_1509949451, p_1509949452.tile, shooterFactory_1308622968(1, 1)); - F.line = 18; - var _ = addIfFree_1291845640(result_1509949453, 0, board_1509949451, p_1509949452.tile, shooterFactory_1308622968((-1), 1)); - framePtr = F.prev; + var _ = addIfFree_1543503880(result_1862270989, 0, board_1862270987, p_1862270988.tile, shooterFactory_1560281208(1, 1)); + var _ = addIfFree_1543503880(result_1862270989, 0, board_1862270987, p_1862270988.tile, shooterFactory_1560281208((-1), 1)); - return result_1509949453[0]; + return result_1862270989[0]; } -function HEX3Aanonymous_1509949460(board_1509949461, p_1509949462) { - var result_1509949463 = [[]]; +function HEX3Aanonymous_1862270996(board_1862270997, p_1862270998) { + var result_1862270999 = [[]]; - var F = {procname: "extramoves.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/extramoves.nim", line: 0}; - framePtr = F; - F.line = 25; - F.filename = "extramoves.nim"; - var _ = addIfTake_1291845739(result_1509949463, 0, board_1509949461, p_1509949462, p_1509949462.tile, shooterFactory_1308622968(1, 1), false, false); - F.line = 26; - var _ = addIfTake_1291845739(result_1509949463, 0, board_1509949461, p_1509949462, p_1509949462.tile, shooterFactory_1308622968((-1), 1), false, false); - framePtr = F.prev; + var _ = addIfTake_1543503979(result_1862270999, 0, board_1862270997, p_1862270998, p_1862270998.tile, shooterFactory_1560281208(1, 1), false, false); + var _ = addIfTake_1543503979(result_1862270999, 0, board_1862270997, p_1862270998, p_1862270998.tile, shooterFactory_1560281208((-1), 1), false, false); - return result_1509949463[0]; + return result_1862270999[0]; } -function HEX3Aanonymous_1493172552(piece_1493172553, board_1493172554, state_1493172555) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 160; - F.filename = "powers.nim"; - F.line = 652; - F.filename = "sequtils.nim"; - var resultHEX60gensym18_1493172560 = newSeq_1291845948(0); +function HEX3Aanonymous_1845494088(piece_1845494089, board_1845494090, state_1845494091) { + var resultHEX60gensym18_1845494096 = newSeq_1543504188(0); Label1: { - F.line = 653; - var it_1493172564 = null; - F.line = 249; - F.filename = "iterators.nim"; - var i_1493178768 = 0; - F.line = 250; - var L_1493178769 = (piece_1493172553.moves).length; + var it_1845494100 = null; + var i_1845500327 = 0; + var L_1845500328 = (piece_1845494089.moves).length; Label2: { - F.line = 251; Label3: while (true) { - if (!(i_1493178768 < L_1493178769)) break Label3; - F.line = 653; - F.filename = "sequtils.nim"; - it_1493172564 = piece_1493172553.moves[chckIndx(i_1493178768, 0, (piece_1493172553.moves).length - 1)]; - if (!((it_1493172564 == HEX3Aanonymous_1509949465))) { - F.line = 654; - resultHEX60gensym18_1493172560.push(it_1493172564);; + if (!(i_1845500327 < L_1845500328)) break Label3; + it_1845494100 = piece_1845494089.moves[chckIndx(i_1845500327, 0, (piece_1845494089.moves).length - 1)]; + if (!((it_1845494100 == HEX3Aanonymous_1862271001))) { + resultHEX60gensym18_1845494096.push(it_1845494100);; } - F.line = 13; - F.filename = "iterators.nim"; - i_1493178768 += 1; - if (!(((piece_1493172553.moves).length == L_1493178769))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + i_1845500327 += 1; + if (!(((piece_1845494089.moves).length == L_1845500328))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - piece_1493172553.moves = nimCopy(null, resultHEX60gensym18_1493172560, NTI1291845874); - F.line = 161; - F.filename = "powers.nim"; - F.line = 652; - F.filename = "sequtils.nim"; - var resultHEX60gensym20_1493172577 = newSeq_1291845948(0); + piece_1845494089.moves = nimCopy(null, resultHEX60gensym18_1845494096, NTI1543504114); + var resultHEX60gensym20_1845494113 = newSeq_1543504188(0); Label4: { - F.line = 653; - var it_1493172581 = null; - F.line = 249; - F.filename = "iterators.nim"; - var i_1493178772 = 0; - F.line = 250; - var L_1493178773 = (piece_1493172553.takes).length; + var it_1845494117 = null; + var i_1845500331 = 0; + var L_1845500332 = (piece_1845494089.takes).length; Label5: { - F.line = 251; Label6: while (true) { - if (!(i_1493178772 < L_1493178773)) break Label6; - F.line = 653; - F.filename = "sequtils.nim"; - it_1493172581 = piece_1493172553.takes[chckIndx(i_1493178772, 0, (piece_1493172553.takes).length - 1)]; - if (!((it_1493172581 == HEX3Aanonymous_1509949470))) { - F.line = 654; - resultHEX60gensym20_1493172577.push(it_1493172581);; + if (!(i_1845500331 < L_1845500332)) break Label6; + it_1845494117 = piece_1845494089.takes[chckIndx(i_1845500331, 0, (piece_1845494089.takes).length - 1)]; + if (!((it_1845494117 == HEX3Aanonymous_1862271006))) { + resultHEX60gensym20_1845494113.push(it_1845494117);; } - F.line = 13; - F.filename = "iterators.nim"; - i_1493178772 += 1; - if (!(((piece_1493172553.takes).length == L_1493178773))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + i_1845500331 += 1; + if (!(((piece_1845494089.takes).length == L_1845500332))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - piece_1493172553.takes = nimCopy(null, resultHEX60gensym20_1493172577, NTI1291845874); - if (isColor_1224737813(piece_1493172553, 1)) { - F.line = 166; - F.filename = "powers.nim"; - add_1493172278(piece_1493172553, "moves", [HEX3Aanonymous_1509949514, HEX3Aanonymous_1509949445, HEX3Aanonymous_1509949475]); - F.line = 167; - add_1493172278(piece_1493172553, "takes", [HEX3Aanonymous_1509949524, HEX3Aanonymous_1509949455, HEX3Aanonymous_1509949504]); + piece_1845494089.takes = nimCopy(null, resultHEX60gensym20_1845494113, NTI1543504114); + if (isColor_1476396053(piece_1845494089, 1)) { + add_1845493814(piece_1845494089, "moves", [HEX3Aanonymous_1862271050, HEX3Aanonymous_1862270981, HEX3Aanonymous_1862271011]); + add_1845493814(piece_1845494089, "takes", [HEX3Aanonymous_1862271060, HEX3Aanonymous_1862270991, HEX3Aanonymous_1862271040]); } else { - F.line = 169; - add_1493172278(piece_1493172553, "moves", [HEX3Aanonymous_1509949509, HEX3Aanonymous_1509949450, HEX3Aanonymous_1509949475]); - F.line = 170; - add_1493172278(piece_1493172553, "takes", [HEX3Aanonymous_1509949519, HEX3Aanonymous_1509949460, HEX3Aanonymous_1509949504]); + add_1845493814(piece_1845494089, "moves", [HEX3Aanonymous_1862271045, HEX3Aanonymous_1862270986, HEX3Aanonymous_1862271011]); + add_1845493814(piece_1845494089, "takes", [HEX3Aanonymous_1862271055, HEX3Aanonymous_1862270996, HEX3Aanonymous_1862271040]); } - F.line = 171; - piece_1493172553.promoted = true; - F.line = 172; - piece_1493172553.filePath = nimCopy(null, [112,114,111,109,111,116,101,100,115,105,108,118,101,114,103,101,110,101,114,97,108,46,115,118,103], NTI33554449); - framePtr = F.prev; + piece_1845494089.promoted = true; + piece_1845494089.filePath = nimCopy(null, [112,114,111,109,111,116,101,100,115,105,108,118,101,114,103,101,110,101,114,97,108,46,115,118,103], NTI33554449); } -function HEX3Aanonymous_1493172651(side_1493172652, viewSide_1493172653, b_1493172654, __1493172655) { +function HEX3Aanonymous_1845494187(side_1845494188, viewSide_1845494189, b_1845494190, __1845494191) { var Temporary1; - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 192; - F.filename = "powers.nim"; - if ((side_1493172652 == 0)) { + if ((side_1845494188 == 0)) { Temporary1 = 1; } else { Temporary1 = 6; } - var rank_1493172660 = Temporary1; - if (!((b_1493172654[chckIndx(rank_1493172660, 0, (b_1493172654).length - 1)][chckIndx(1, 0, (b_1493172654[chckIndx(rank_1493172660, 0, (b_1493172654).length - 1)]).length - 1)].color == side_1493172652))) { - F.line = 193; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/the-playground/chess/src/powers.nim(193, 13) `b[rank][1].color == side` ")); + var rank_1845494196 = Temporary1; + if (!((b_1845494190[chckIndx(rank_1845494196, 0, (b_1845494190).length - 1)][chckIndx(1, 0, (b_1845494190[chckIndx(rank_1845494196, 0, (b_1845494190).length - 1)]).length - 1)].color == side_1845494188))) { + failedAssertImpl_268435541([112,111,119,101,114,115,46,110,105,109,40,49,57,51,44,32,49,51,41,32,96,98,91,114,97,110,107,93,91,49,93,46,99,111,108,111,114,32,61,61,32,115,105,100,101,96,32]); } - if ((side_1493172652 == 0)) { - F.line = 195; - b_1493172654[chckIndx(rank_1493172660, 0, (b_1493172654).length - 1)][chckIndx(1, 0, (b_1493172654[chckIndx(rank_1493172660, 0, (b_1493172654).length - 1)]).length - 1)].moves = nimCopy(null, [HEX3Aanonymous_1509949465, HEX3Aanonymous_1509949514], NTI1275068532); - F.line = 196; - b_1493172654[chckIndx(rank_1493172660, 0, (b_1493172654).length - 1)][chckIndx(1, 0, (b_1493172654[chckIndx(rank_1493172660, 0, (b_1493172654).length - 1)]).length - 1)].takes = nimCopy(null, [HEX3Aanonymous_1509949470, HEX3Aanonymous_1509949524], NTI1275068532); + if ((side_1845494188 == 0)) { + b_1845494190[chckIndx(rank_1845494196, 0, (b_1845494190).length - 1)][chckIndx(1, 0, (b_1845494190[chckIndx(rank_1845494196, 0, (b_1845494190).length - 1)]).length - 1)].moves = nimCopy(null, [HEX3Aanonymous_1862271001, HEX3Aanonymous_1862271050], NTI1526726772); + b_1845494190[chckIndx(rank_1845494196, 0, (b_1845494190).length - 1)][chckIndx(1, 0, (b_1845494190[chckIndx(rank_1845494196, 0, (b_1845494190).length - 1)]).length - 1)].takes = nimCopy(null, [HEX3Aanonymous_1862271006, HEX3Aanonymous_1862271060], NTI1526726772); } else { - F.line = 198; - b_1493172654[chckIndx(rank_1493172660, 0, (b_1493172654).length - 1)][chckIndx(1, 0, (b_1493172654[chckIndx(rank_1493172660, 0, (b_1493172654).length - 1)]).length - 1)].moves = nimCopy(null, [HEX3Aanonymous_1509949465, HEX3Aanonymous_1509949509], NTI1275068532); - F.line = 199; - b_1493172654[chckIndx(rank_1493172660, 0, (b_1493172654).length - 1)][chckIndx(1, 0, (b_1493172654[chckIndx(rank_1493172660, 0, (b_1493172654).length - 1)]).length - 1)].takes = nimCopy(null, [HEX3Aanonymous_1509949470, HEX3Aanonymous_1509949519], NTI1275068532); + b_1845494190[chckIndx(rank_1845494196, 0, (b_1845494190).length - 1)][chckIndx(1, 0, (b_1845494190[chckIndx(rank_1845494196, 0, (b_1845494190).length - 1)]).length - 1)].moves = nimCopy(null, [HEX3Aanonymous_1862271001, HEX3Aanonymous_1862271045], NTI1526726772); + b_1845494190[chckIndx(rank_1845494196, 0, (b_1845494190).length - 1)][chckIndx(1, 0, (b_1845494190[chckIndx(rank_1845494196, 0, (b_1845494190).length - 1)]).length - 1)].takes = nimCopy(null, [HEX3Aanonymous_1862271006, HEX3Aanonymous_1862271055], NTI1526726772); } - F.line = 200; - b_1493172654[chckIndx(rank_1493172660, 0, (b_1493172654).length - 1)][chckIndx(1, 0, (b_1493172654[chckIndx(rank_1493172660, 0, (b_1493172654).length - 1)]).length - 1)].onEndTurn = nimCopy(null, [HEX3Aanonymous_1493172639], NTI1275068457); - F.line = 201; - b_1493172654[chckIndx(rank_1493172660, 0, (b_1493172654).length - 1)][chckIndx(1, 0, (b_1493172654[chckIndx(rank_1493172660, 0, (b_1493172654).length - 1)]).length - 1)].onPromote = nimCopy(null, [HEX3Aanonymous_1493172552], NTI1275068457); - F.line = 202; - b_1493172654[chckIndx(rank_1493172660, 0, (b_1493172654).length - 1)][chckIndx(1, 0, (b_1493172654[chckIndx(rank_1493172660, 0, (b_1493172654).length - 1)]).length - 1)].item = 7; - F.line = 203; - b_1493172654[chckIndx(rank_1493172660, 0, (b_1493172654).length - 1)][chckIndx(1, 0, (b_1493172654[chckIndx(rank_1493172660, 0, (b_1493172654).length - 1)]).length - 1)].filePath = nimCopy(null, [115,105,108,118,101,114,103,101,110,101,114,97,108,46,115,118,103], NTI33554449); - F.line = 204; - b_1493172654[chckIndx(rank_1493172660, 0, (b_1493172654).length - 1)][chckIndx(1, 0, (b_1493172654[chckIndx(rank_1493172660, 0, (b_1493172654).length - 1)]).length - 1)].colorable = false; - if (!((side_1493172652 == viewSide_1493172653))) { - F.line = 205; - b_1493172654[chckIndx(rank_1493172660, 0, (b_1493172654).length - 1)][chckIndx(1, 0, (b_1493172654[chckIndx(rank_1493172660, 0, (b_1493172654).length - 1)]).length - 1)].rotate = true; + b_1845494190[chckIndx(rank_1845494196, 0, (b_1845494190).length - 1)][chckIndx(1, 0, (b_1845494190[chckIndx(rank_1845494196, 0, (b_1845494190).length - 1)]).length - 1)].onEndTurn = nimCopy(null, [HEX3Aanonymous_1845494175], NTI1526726697); + b_1845494190[chckIndx(rank_1845494196, 0, (b_1845494190).length - 1)][chckIndx(1, 0, (b_1845494190[chckIndx(rank_1845494196, 0, (b_1845494190).length - 1)]).length - 1)].onPromote = nimCopy(null, [HEX3Aanonymous_1845494088], NTI1526726697); + b_1845494190[chckIndx(rank_1845494196, 0, (b_1845494190).length - 1)][chckIndx(1, 0, (b_1845494190[chckIndx(rank_1845494196, 0, (b_1845494190).length - 1)]).length - 1)].item = 7; + b_1845494190[chckIndx(rank_1845494196, 0, (b_1845494190).length - 1)][chckIndx(1, 0, (b_1845494190[chckIndx(rank_1845494196, 0, (b_1845494190).length - 1)]).length - 1)].filePath = nimCopy(null, [115,105,108,118,101,114,103,101,110,101,114,97,108,46,115,118,103], NTI33554449); + b_1845494190[chckIndx(rank_1845494196, 0, (b_1845494190).length - 1)][chckIndx(1, 0, (b_1845494190[chckIndx(rank_1845494196, 0, (b_1845494190).length - 1)]).length - 1)].colorable = false; + if (!((side_1845494188 == viewSide_1845494189))) { + b_1845494190[chckIndx(rank_1845494196, 0, (b_1845494190).length - 1)][chckIndx(1, 0, (b_1845494190[chckIndx(rank_1845494196, 0, (b_1845494190).length - 1)]).length - 1)].rotate = true; } - framePtr = F.prev; } -function HEX3Aanonymous_1493172735(side_1493172736, viewSide_1493172737, b_1493172738, __1493172739) { +function HEX3Aanonymous_1845494271(side_1845494272, viewSide_1845494273, b_1845494274, __1845494275) { var Temporary1; - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 222; - F.filename = "powers.nim"; - if ((side_1493172736 == 0)) { + if ((side_1845494272 == 0)) { Temporary1 = 1; } else { Temporary1 = 6; } - var rank_1493172744 = Temporary1; - if (!((b_1493172738[chckIndx(rank_1493172744, 0, (b_1493172738).length - 1)][chckIndx(6, 0, (b_1493172738[chckIndx(rank_1493172744, 0, (b_1493172738).length - 1)]).length - 1)].color == side_1493172736))) { - F.line = 223; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/the-playground/chess/src/powers.nim(223, 13) `b[rank][6].color == side` ")); + var rank_1845494280 = Temporary1; + if (!((b_1845494274[chckIndx(rank_1845494280, 0, (b_1845494274).length - 1)][chckIndx(6, 0, (b_1845494274[chckIndx(rank_1845494280, 0, (b_1845494274).length - 1)]).length - 1)].color == side_1845494272))) { + failedAssertImpl_268435541([112,111,119,101,114,115,46,110,105,109,40,50,50,51,44,32,49,51,41,32,96,98,91,114,97,110,107,93,91,54,93,46,99,111,108,111,114,32,61,61,32,115,105,100,101,96,32]); } - if ((side_1493172736 == 0)) { - F.line = 225; - b_1493172738[chckIndx(rank_1493172744, 0, (b_1493172738).length - 1)][chckIndx(6, 0, (b_1493172738[chckIndx(rank_1493172744, 0, (b_1493172738).length - 1)]).length - 1)].moves = nimCopy(null, [HEX3Aanonymous_1509949465, HEX3Aanonymous_1509949514], NTI1275068532); - F.line = 226; - b_1493172738[chckIndx(rank_1493172744, 0, (b_1493172738).length - 1)][chckIndx(6, 0, (b_1493172738[chckIndx(rank_1493172744, 0, (b_1493172738).length - 1)]).length - 1)].takes = nimCopy(null, [HEX3Aanonymous_1509949470, HEX3Aanonymous_1509949524], NTI1275068532); + if ((side_1845494272 == 0)) { + b_1845494274[chckIndx(rank_1845494280, 0, (b_1845494274).length - 1)][chckIndx(6, 0, (b_1845494274[chckIndx(rank_1845494280, 0, (b_1845494274).length - 1)]).length - 1)].moves = nimCopy(null, [HEX3Aanonymous_1862271001, HEX3Aanonymous_1862271050], NTI1526726772); + b_1845494274[chckIndx(rank_1845494280, 0, (b_1845494274).length - 1)][chckIndx(6, 0, (b_1845494274[chckIndx(rank_1845494280, 0, (b_1845494274).length - 1)]).length - 1)].takes = nimCopy(null, [HEX3Aanonymous_1862271006, HEX3Aanonymous_1862271060], NTI1526726772); } else { - F.line = 228; - b_1493172738[chckIndx(rank_1493172744, 0, (b_1493172738).length - 1)][chckIndx(6, 0, (b_1493172738[chckIndx(rank_1493172744, 0, (b_1493172738).length - 1)]).length - 1)].moves = nimCopy(null, [HEX3Aanonymous_1509949465, HEX3Aanonymous_1509949509], NTI1275068532); - F.line = 229; - b_1493172738[chckIndx(rank_1493172744, 0, (b_1493172738).length - 1)][chckIndx(6, 0, (b_1493172738[chckIndx(rank_1493172744, 0, (b_1493172738).length - 1)]).length - 1)].takes = nimCopy(null, [HEX3Aanonymous_1509949470, HEX3Aanonymous_1509949519], NTI1275068532); + b_1845494274[chckIndx(rank_1845494280, 0, (b_1845494274).length - 1)][chckIndx(6, 0, (b_1845494274[chckIndx(rank_1845494280, 0, (b_1845494274).length - 1)]).length - 1)].moves = nimCopy(null, [HEX3Aanonymous_1862271001, HEX3Aanonymous_1862271045], NTI1526726772); + b_1845494274[chckIndx(rank_1845494280, 0, (b_1845494274).length - 1)][chckIndx(6, 0, (b_1845494274[chckIndx(rank_1845494280, 0, (b_1845494274).length - 1)]).length - 1)].takes = nimCopy(null, [HEX3Aanonymous_1862271006, HEX3Aanonymous_1862271055], NTI1526726772); } - F.line = 230; - b_1493172738[chckIndx(rank_1493172744, 0, (b_1493172738).length - 1)][chckIndx(6, 0, (b_1493172738[chckIndx(rank_1493172744, 0, (b_1493172738).length - 1)]).length - 1)].onEndTurn = nimCopy(null, [HEX3Aanonymous_1493172639], NTI1275068457); - F.line = 231; - b_1493172738[chckIndx(rank_1493172744, 0, (b_1493172738).length - 1)][chckIndx(6, 0, (b_1493172738[chckIndx(rank_1493172744, 0, (b_1493172738).length - 1)]).length - 1)].onPromote = nimCopy(null, [HEX3Aanonymous_1493172552], NTI1275068457); - F.line = 232; - b_1493172738[chckIndx(rank_1493172744, 0, (b_1493172738).length - 1)][chckIndx(6, 0, (b_1493172738[chckIndx(rank_1493172744, 0, (b_1493172738).length - 1)]).length - 1)].item = 7; - F.line = 233; - b_1493172738[chckIndx(rank_1493172744, 0, (b_1493172738).length - 1)][chckIndx(6, 0, (b_1493172738[chckIndx(rank_1493172744, 0, (b_1493172738).length - 1)]).length - 1)].filePath = nimCopy(null, [115,105,108,118,101,114,103,101,110,101,114,97,108,46,115,118,103], NTI33554449); - F.line = 234; - b_1493172738[chckIndx(rank_1493172744, 0, (b_1493172738).length - 1)][chckIndx(6, 0, (b_1493172738[chckIndx(rank_1493172744, 0, (b_1493172738).length - 1)]).length - 1)].colorable = false; - if (!((side_1493172736 == viewSide_1493172737))) { - F.line = 235; - b_1493172738[chckIndx(rank_1493172744, 0, (b_1493172738).length - 1)][chckIndx(6, 0, (b_1493172738[chckIndx(rank_1493172744, 0, (b_1493172738).length - 1)]).length - 1)].rotate = true; + b_1845494274[chckIndx(rank_1845494280, 0, (b_1845494274).length - 1)][chckIndx(6, 0, (b_1845494274[chckIndx(rank_1845494280, 0, (b_1845494274).length - 1)]).length - 1)].onEndTurn = nimCopy(null, [HEX3Aanonymous_1845494175], NTI1526726697); + b_1845494274[chckIndx(rank_1845494280, 0, (b_1845494274).length - 1)][chckIndx(6, 0, (b_1845494274[chckIndx(rank_1845494280, 0, (b_1845494274).length - 1)]).length - 1)].onPromote = nimCopy(null, [HEX3Aanonymous_1845494088], NTI1526726697); + b_1845494274[chckIndx(rank_1845494280, 0, (b_1845494274).length - 1)][chckIndx(6, 0, (b_1845494274[chckIndx(rank_1845494280, 0, (b_1845494274).length - 1)]).length - 1)].item = 7; + b_1845494274[chckIndx(rank_1845494280, 0, (b_1845494274).length - 1)][chckIndx(6, 0, (b_1845494274[chckIndx(rank_1845494280, 0, (b_1845494274).length - 1)]).length - 1)].filePath = nimCopy(null, [115,105,108,118,101,114,103,101,110,101,114,97,108,46,115,118,103], NTI33554449); + b_1845494274[chckIndx(rank_1845494280, 0, (b_1845494274).length - 1)][chckIndx(6, 0, (b_1845494274[chckIndx(rank_1845494280, 0, (b_1845494274).length - 1)]).length - 1)].colorable = false; + if (!((side_1845494272 == viewSide_1845494273))) { + b_1845494274[chckIndx(rank_1845494280, 0, (b_1845494274).length - 1)][chckIndx(6, 0, (b_1845494274[chckIndx(rank_1845494280, 0, (b_1845494274).length - 1)]).length - 1)].rotate = true; } - framePtr = F.prev; } -function newIndex_1224737255(s_1224737256) { - var result_1224737257 = 0; +function newIndex_1476395495(s_1476395496) { + var result_1476395497 = 0; - var F = {procname: "piece.newIndex", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/piece.nim", line: 0}; - framePtr = F; BeforeRet: { - F.line = 198; - F.filename = "piece.nim"; - s_1224737256.Field0.nextIndex = addInt(s_1224737256.Field0.nextIndex, 1); - F.line = 199; - result_1224737257 = s_1224737256.Field0.nextIndex; + s_1476395496.Field0.nextIndex = addInt(s_1476395496.Field0.nextIndex, 1); + result_1476395497 = s_1476395496.Field0.nextIndex; break BeforeRet; }; - framePtr = F.prev; - return result_1224737257; + return result_1476395497; } -function pieceMove_1224737556(p_1224737557, rank_1224737558, file_1224737559, board_1224737560, state_1224737561) { - var F = {procname: "piece.pieceMove", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/piece.nim", line: 0}; - framePtr = F; - F.line = 231; - F.filename = "piece.nim"; - board_1224737560[chckIndx(rank_1224737558, 0, (board_1224737560).length - 1)][chckIndx(file_1224737559, 0, (board_1224737560[chckIndx(rank_1224737558, 0, (board_1224737560).length - 1)]).length - 1)] = nimCopy(board_1224737560[chckIndx(rank_1224737558, 0, (board_1224737560).length - 1)][chckIndx(file_1224737559, 0, (board_1224737560[chckIndx(rank_1224737558, 0, (board_1224737560).length - 1)]).length - 1)], board_1224737560[chckIndx(p_1224737557.tile.Field1, 0, (board_1224737560).length - 1)][chckIndx(p_1224737557.tile.Field0, 0, (board_1224737560[chckIndx(p_1224737557.tile.Field1, 0, (board_1224737560).length - 1)]).length - 1)], NTI1224736794); - F.line = 232; - board_1224737560[chckIndx(p_1224737557.tile.Field1, 0, (board_1224737560).length - 1)][chckIndx(p_1224737557.tile.Field0, 0, (board_1224737560[chckIndx(p_1224737557.tile.Field1, 0, (board_1224737560).length - 1)]).length - 1)] = nimCopy(board_1224737560[chckIndx(p_1224737557.tile.Field1, 0, (board_1224737560).length - 1)][chckIndx(p_1224737557.tile.Field0, 0, (board_1224737560[chckIndx(p_1224737557.tile.Field1, 0, (board_1224737560).length - 1)]).length - 1)], {index: newIndex_1224737255(state_1224737561), item: 6, tile: nimCopy(null, p_1224737557.tile, NTI1224736771), timesMoved: 0, piecesTaken: 0, promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, color: 0, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], casts: []}, NTI1224736794); - F.line = 233; - var colontmp__1493178779 = file_1224737559; - F.line = 233; - var colontmp__1493178780 = rank_1224737558; - F.line = 233; - board_1224737560[chckIndx(rank_1224737558, 0, (board_1224737560).length - 1)][chckIndx(file_1224737559, 0, (board_1224737560[chckIndx(rank_1224737558, 0, (board_1224737560).length - 1)]).length - 1)].tile = nimCopy(board_1224737560[chckIndx(rank_1224737558, 0, (board_1224737560).length - 1)][chckIndx(file_1224737559, 0, (board_1224737560[chckIndx(rank_1224737558, 0, (board_1224737560).length - 1)]).length - 1)].tile, {Field0: colontmp__1493178779, Field1: colontmp__1493178780}, NTI1224736771); - framePtr = F.prev; +function pieceMove_1476395796(p_1476395797, rank_1476395798, file_1476395799, board_1476395800, state_1476395801) { + board_1476395800[chckIndx(rank_1476395798, 0, (board_1476395800).length - 1)][chckIndx(file_1476395799, 0, (board_1476395800[chckIndx(rank_1476395798, 0, (board_1476395800).length - 1)]).length - 1)] = nimCopy(board_1476395800[chckIndx(rank_1476395798, 0, (board_1476395800).length - 1)][chckIndx(file_1476395799, 0, (board_1476395800[chckIndx(rank_1476395798, 0, (board_1476395800).length - 1)]).length - 1)], board_1476395800[chckIndx(p_1476395797.tile.Field1, 0, (board_1476395800).length - 1)][chckIndx(p_1476395797.tile.Field0, 0, (board_1476395800[chckIndx(p_1476395797.tile.Field1, 0, (board_1476395800).length - 1)]).length - 1)], NTI1476395034); + board_1476395800[chckIndx(p_1476395797.tile.Field1, 0, (board_1476395800).length - 1)][chckIndx(p_1476395797.tile.Field0, 0, (board_1476395800[chckIndx(p_1476395797.tile.Field1, 0, (board_1476395800).length - 1)]).length - 1)] = nimCopy(board_1476395800[chckIndx(p_1476395797.tile.Field1, 0, (board_1476395800).length - 1)][chckIndx(p_1476395797.tile.Field0, 0, (board_1476395800[chckIndx(p_1476395797.tile.Field1, 0, (board_1476395800).length - 1)]).length - 1)], {index: newIndex_1476395495(state_1476395801), item: 6, tile: nimCopy(null, p_1476395797.tile, NTI1476395011), timesMoved: 0, piecesTaken: 0, promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, color: 0, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], casts: []}, NTI1476395034); + var colontmp__1845500338 = file_1476395799; + var colontmp__1845500339 = rank_1476395798; + board_1476395800[chckIndx(rank_1476395798, 0, (board_1476395800).length - 1)][chckIndx(file_1476395799, 0, (board_1476395800[chckIndx(rank_1476395798, 0, (board_1476395800).length - 1)]).length - 1)].tile = nimCopy(board_1476395800[chckIndx(rank_1476395798, 0, (board_1476395800).length - 1)][chckIndx(file_1476395799, 0, (board_1476395800[chckIndx(rank_1476395798, 0, (board_1476395800).length - 1)]).length - 1)].tile, {Field0: colontmp__1845500338, Field1: colontmp__1845500339}, NTI1476395011); } -function HEX3Aanonymous_1493172787(side_1493172788, __1493172789, b_1493172790, s_1493172791) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - if ((side_1493172788 == 0)) { - F.line = 251; - F.filename = "powers.nim"; - pieceMove_1224737556(b_1493172790[chckIndx(1, 0, (b_1493172790).length - 1)][chckIndx(3, 0, (b_1493172790[chckIndx(1, 0, (b_1493172790).length - 1)]).length - 1)], 2, 3, b_1493172790, s_1493172791); - F.line = 252; - pieceMove_1224737556(b_1493172790[chckIndx(1, 0, (b_1493172790).length - 1)][chckIndx(4, 0, (b_1493172790[chckIndx(1, 0, (b_1493172790).length - 1)]).length - 1)], 2, 4, b_1493172790, s_1493172791); +function HEX3Aanonymous_1845494323(side_1845494324, __1845494325, b_1845494326, s_1845494327) { + if ((side_1845494324 == 0)) { + pieceMove_1476395796(b_1845494326[chckIndx(1, 0, (b_1845494326).length - 1)][chckIndx(3, 0, (b_1845494326[chckIndx(1, 0, (b_1845494326).length - 1)]).length - 1)], 2, 3, b_1845494326, s_1845494327); + pieceMove_1476395796(b_1845494326[chckIndx(1, 0, (b_1845494326).length - 1)][chckIndx(4, 0, (b_1845494326[chckIndx(1, 0, (b_1845494326).length - 1)]).length - 1)], 2, 4, b_1845494326, s_1845494327); } else { - F.line = 254; - pieceMove_1224737556(b_1493172790[chckIndx(6, 0, (b_1493172790).length - 1)][chckIndx(3, 0, (b_1493172790[chckIndx(6, 0, (b_1493172790).length - 1)]).length - 1)], 5, 3, b_1493172790, s_1493172791); - F.line = 255; - pieceMove_1224737556(b_1493172790[chckIndx(6, 0, (b_1493172790).length - 1)][chckIndx(4, 0, (b_1493172790[chckIndx(6, 0, (b_1493172790).length - 1)]).length - 1)], 5, 4, b_1493172790, s_1493172791); + pieceMove_1476395796(b_1845494326[chckIndx(6, 0, (b_1845494326).length - 1)][chckIndx(3, 0, (b_1845494326[chckIndx(6, 0, (b_1845494326).length - 1)]).length - 1)], 5, 3, b_1845494326, s_1845494327); + pieceMove_1476395796(b_1845494326[chckIndx(6, 0, (b_1845494326).length - 1)][chckIndx(4, 0, (b_1845494326[chckIndx(6, 0, (b_1845494326).length - 1)]).length - 1)], 5, 4, b_1845494326, s_1845494327); } - framePtr = F.prev; } -function add_1224737298(x_1224737300, x_1224737300_Idx, y_1224737301) { +function add_1476395538(x_1476395540, x_1476395540_Idx, y_1476395541) { var Temporary1; - var F = {procname: "add.add", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; - F.line = 1210; - F.filename = "system.nim"; - var xl_1224737306 = (x_1224737300[x_1224737300_Idx]).length; - F.line = 1211; - if (x_1224737300[x_1224737300_Idx].length < (Temporary1 = chckRange(addInt(xl_1224737306, (y_1224737301).length), 0, 2147483647), Temporary1)) { for (var i = x_1224737300[x_1224737300_Idx].length ; i < Temporary1 ; ++i) x_1224737300[x_1224737300_Idx].push({Field0: 0, Field1: 0}); } - else { x_1224737300[x_1224737300_Idx].length = Temporary1; }; + var xl_1476395546 = (x_1476395540[x_1476395540_Idx]).length; + if (x_1476395540[x_1476395540_Idx].length < (Temporary1 = chckRange(addInt(xl_1476395546, (y_1476395541).length), 0, 2147483647), Temporary1)) { for (var i = x_1476395540[x_1476395540_Idx].length ; i < Temporary1 ; ++i) x_1476395540[x_1476395540_Idx].push({Field0: 0, Field1: 0}); } + else { x_1476395540[x_1476395540_Idx].length = Temporary1; }; Label2: { - F.line = 1212; - var i_1224737322 = 0; - F.line = 81; - F.filename = "iterators_1.nim"; - var colontmp__1493178782 = 0; - F.line = 1212; - F.filename = "system.nim"; - colontmp__1493178782 = (y_1224737301).length - 1; - F.line = 96; - F.filename = "iterators_1.nim"; - var res_1493178783 = 0; + var i_1476395562 = 0; + var colontmp__1845500341 = 0; + colontmp__1845500341 = (y_1476395541).length - 1; + var res_1845500342 = 0; Label3: { - F.line = 97; Label4: while (true) { - if (!(res_1493178783 <= colontmp__1493178782)) break Label4; - F.line = 1212; - F.filename = "system.nim"; - i_1224737322 = res_1493178783; - F.line = 1212; - x_1224737300[x_1224737300_Idx][chckIndx(addInt(xl_1224737306, i_1224737322), 0, (x_1224737300[x_1224737300_Idx]).length - 1)] = nimCopy(x_1224737300[x_1224737300_Idx][chckIndx(addInt(xl_1224737306, i_1224737322), 0, (x_1224737300[x_1224737300_Idx]).length - 1)], y_1224737301[chckIndx(i_1224737322, 0, (y_1224737301).length - 1)], NTI1224736771); - F.line = 102; - F.filename = "iterators_1.nim"; - res_1493178783 = addInt(res_1493178783, 1); + if (!(res_1845500342 <= colontmp__1845500341)) break Label4; + i_1476395562 = res_1845500342; + x_1476395540[x_1476395540_Idx][chckIndx(addInt(xl_1476395546, i_1476395562), 0, (x_1476395540[x_1476395540_Idx]).length - 1)] = nimCopy(x_1476395540[x_1476395540_Idx][chckIndx(addInt(xl_1476395546, i_1476395562), 0, (x_1476395540[x_1476395540_Idx]).length - 1)], y_1476395541[chckIndx(i_1476395562, 0, (y_1476395541).length - 1)], NTI1476395011); + res_1845500342 = addInt(res_1845500342, 1); } }; }; - framePtr = F.prev; } -function lineTakes_1291845819(board_1291845820, p_1291845821, shoot_1291845822, throughFlag_1291845823, cannibalismFlag_1291845824) { - var result_1291845825 = [[]]; +function lineTakes_1543504059(board_1543504060, p_1543504061, shoot_1543504062, throughFlag_1543504063, cannibalismFlag_1543504064) { + var result_1543504065 = [[]]; - var F = {procname: "moves.lineTakes", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/moves.nim", line: 0}; - framePtr = F; - F.line = 46; - F.filename = "moves.nim"; - var next_1291845826 = nimCopy(null, p_1291845821.tile, NTI1224736771); + var next_1543504066 = nimCopy(null, p_1543504061.tile, NTI1476395011); Label1: { - F.line = 47; Label2: while (true) { - if (!addIfTake_1291845739(result_1291845825, 0, board_1291845820, p_1291845821, next_1291845826, shoot_1291845822, throughFlag_1291845823, cannibalismFlag_1291845824)) break Label2; - F.line = 48; - next_1291845826 = nimCopy(next_1291845826, shoot_1291845822(next_1291845826), NTI1224736771); + if (!addIfTake_1543503979(result_1543504065, 0, board_1543504060, p_1543504061, next_1543504066, shoot_1543504062, throughFlag_1543504063, cannibalismFlag_1543504064)) break Label2; + next_1543504066 = nimCopy(next_1543504066, shoot_1543504062(next_1543504066), NTI1476395011); } }; - framePtr = F.prev; - return result_1291845825[0]; + return result_1543504065[0]; } -function HEX3Aanonymous_1509949576(board_1509949577, p_1509949578) { - var result_1509949579 = [[]]; +function HEX3Aanonymous_1862271112(board_1862271113, p_1862271114) { + var result_1862271115 = [[]]; - var F = {procname: "extramoves.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/extramoves.nim", line: 0}; - framePtr = F; - F.line = 110; - F.filename = "extramoves.nim"; - add_1224737298(result_1509949579, 0, lineTakes_1291845819(board_1509949577, p_1509949578, shooterFactory_1308622968(1, 1), false, true)); - F.line = 111; - add_1224737298(result_1509949579, 0, lineTakes_1291845819(board_1509949577, p_1509949578, shooterFactory_1308622968((-1), 1), false, true)); - F.line = 112; - add_1224737298(result_1509949579, 0, lineTakes_1291845819(board_1509949577, p_1509949578, shooterFactory_1308622968(1, (-1)), false, true)); - F.line = 113; - add_1224737298(result_1509949579, 0, lineTakes_1291845819(board_1509949577, p_1509949578, shooterFactory_1308622968((-1), (-1)), false, true)); - framePtr = F.prev; + add_1476395538(result_1862271115, 0, lineTakes_1543504059(board_1862271113, p_1862271114, shooterFactory_1560281208(1, 1), false, true)); + add_1476395538(result_1862271115, 0, lineTakes_1543504059(board_1862271113, p_1862271114, shooterFactory_1560281208((-1), 1), false, true)); + add_1476395538(result_1862271115, 0, lineTakes_1543504059(board_1862271113, p_1862271114, shooterFactory_1560281208(1, (-1)), false, true)); + add_1476395538(result_1862271115, 0, lineTakes_1543504059(board_1862271113, p_1862271114, shooterFactory_1560281208((-1), (-1)), false, true)); - return result_1509949579[0]; + return result_1862271115[0]; } -function newSeq_1224737519(len_1224737521) { - var result_1224737522 = []; - - var F = {procname: "newSeq.newSeq", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; - F.line = 633; - F.filename = "system.nim"; - result_1224737522 = new Array(len_1224737521); for (var i = 0 ; i < len_1224737521 ; ++i) { result_1224737522[i] = {Field0: 0, Field1: 0}; } framePtr = F.prev; +function newSeq_1476395759(len_1476395761) { + var result_1476395762 = []; - return result_1224737522; + result_1476395762 = new Array(len_1476395761); for (var i = 0 ; i < len_1476395761 ; ++i) { result_1476395762[i] = {Field0: 0, Field1: 0}; } + return result_1476395762; } -function HEX3DHEX3D_1308622964(a_1308622965, b_1308622966) { - var result_1308622967 = false; +function HEX3DHEX3D_1560281204(a_1560281205, b_1560281206) { + var result_1560281207 = false; - var F = {procname: "board.==", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/board.nim", line: 0}; - framePtr = F; BeforeRet: { - F.line = 25; - F.filename = "board.nim"; - result_1308622967 = ((a_1308622965.Field0 == b_1308622966.Field0) && (a_1308622965.Field1 == b_1308622966.Field1)); + result_1560281207 = ((a_1560281205.Field0 == b_1560281206.Field0) && (a_1560281205.Field1 == b_1560281206.Field1)); break BeforeRet; }; - framePtr = F.prev; - return result_1308622967; + return result_1560281207; } -function HEX3Aanonymous_1509949597(board_1509949598, p_1509949599) { - var result_1509949600 = [[]]; +function HEX3Aanonymous_1862271133(board_1862271134, p_1862271135) { + var result_1862271136 = [[]]; - var F = {procname: "extramoves.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/extramoves.nim", line: 0}; - framePtr = F; - F.line = 116; - F.filename = "extramoves.nim"; Label1: { - F.line = 116; - var i_1509949605 = 0; - F.line = 96; - F.filename = "iterators_1.nim"; - var res_1493178790 = (-1); + var i_1862271141 = 0; + var res_1845500349 = (-1); Label2: { - F.line = 97; Label3: while (true) { - if (!(res_1493178790 <= 1)) break Label3; - F.line = 116; - F.filename = "extramoves.nim"; - i_1509949605 = res_1493178790; + if (!(res_1845500349 <= 1)) break Label3; + i_1862271141 = res_1845500349; Label4: { - F.line = 117; - var j_1509949610 = 0; - F.line = 96; - F.filename = "iterators_1.nim"; - var res_1493178788 = (-1); + var j_1862271146 = 0; + var res_1845500347 = (-1); Label5: { - F.line = 97; Label6: while (true) { - if (!(res_1493178788 <= 1)) break Label6; - F.line = 117; - F.filename = "extramoves.nim"; - j_1509949610 = res_1493178788; - F.line = 118; - var _ = addIfTake_1291845739(result_1509949600, 0, board_1509949598, p_1509949599, p_1509949599.tile, shooterFactory_1308622968(i_1509949605, j_1509949610), false, true); - F.line = 102; - F.filename = "iterators_1.nim"; - res_1493178788 = addInt(res_1493178788, 1); + if (!(res_1845500347 <= 1)) break Label6; + j_1862271146 = res_1845500347; + var _ = addIfTake_1543503979(result_1862271136, 0, board_1862271134, p_1862271135, p_1862271135.tile, shooterFactory_1560281208(i_1862271141, j_1862271146), false, true); + res_1845500347 = addInt(res_1845500347, 1); } }; }; - F.line = 102; - res_1493178790 = addInt(res_1493178790, 1); + res_1845500349 = addInt(res_1845500349, 1); } }; }; - F.line = 652; - F.filename = "sequtils.nim"; - var resultHEX60gensym0_1509949615 = newSeq_1224737519(0); + var resultHEX60gensym0_1862271151 = newSeq_1476395759(0); Label7: { - F.line = 653; - var it_1509949619 = {Field0: 0, Field1: 0}; - F.line = 249; - F.filename = "iterators.nim"; - var i_1493178794 = 0; - F.line = 250; - var L_1493178795 = (result_1509949600[0]).length; + var it_1862271155 = {Field0: 0, Field1: 0}; + var i_1845500353 = 0; + var L_1845500354 = (result_1862271136[0]).length; Label8: { - F.line = 251; Label9: while (true) { - if (!(i_1493178794 < L_1493178795)) break Label9; - F.line = 653; - F.filename = "sequtils.nim"; - it_1509949619 = result_1509949600[0][chckIndx(i_1493178794, 0, (result_1509949600[0]).length - 1)]; - if (!(HEX3DHEX3D_1308622964(it_1509949619, p_1509949599.tile))) { - F.line = 654; - var Temporary10 = nimCopy(null, it_1509949619, NTI1224736771); - resultHEX60gensym0_1509949615.push(Temporary10);; + if (!(i_1845500353 < L_1845500354)) break Label9; + it_1862271155 = result_1862271136[0][chckIndx(i_1845500353, 0, (result_1862271136[0]).length - 1)]; + if (!(HEX3DHEX3D_1560281204(it_1862271155, p_1862271135.tile))) { + var Temporary10 = nimCopy(null, it_1862271155, NTI1476395011); + resultHEX60gensym0_1862271151.push(Temporary10);; } - F.line = 13; - F.filename = "iterators.nim"; - i_1493178794 += 1; - if (!(((result_1509949600[0]).length == L_1493178795))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + i_1845500353 += 1; + if (!(((result_1862271136[0]).length == L_1845500354))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - result_1509949600[0] = nimCopy(null, resultHEX60gensym0_1509949615, NTI1224737341); - framePtr = F.prev; + result_1862271136[0] = nimCopy(null, resultHEX60gensym0_1862271151, NTI1476395581); - return result_1509949600[0]; + return result_1862271136[0]; } -function HEX3Aanonymous_1509949555(board_1509949556, p_1509949557) { - var result_1509949558 = [[]]; +function HEX3Aanonymous_1862271091(board_1862271092, p_1862271093) { + var result_1862271094 = [[]]; - var F = {procname: "extramoves.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/extramoves.nim", line: 0}; - framePtr = F; - F.line = 104; - F.filename = "extramoves.nim"; - add_1224737298(result_1509949558, 0, lineTakes_1291845819(board_1509949556, p_1509949557, tileAbove_1308622990, false, true)); - F.line = 105; - add_1224737298(result_1509949558, 0, lineTakes_1291845819(board_1509949556, p_1509949557, tileBelow_1308622993, false, true)); - F.line = 106; - add_1224737298(result_1509949558, 0, lineTakes_1291845819(board_1509949556, p_1509949557, tileLeft_1308622996, false, true)); - F.line = 107; - add_1224737298(result_1509949558, 0, lineTakes_1291845819(board_1509949556, p_1509949557, tileRight_1308622999, false, true)); - framePtr = F.prev; + add_1476395538(result_1862271094, 0, lineTakes_1543504059(board_1862271092, p_1862271093, tileAbove_1560281230, false, true)); + add_1476395538(result_1862271094, 0, lineTakes_1543504059(board_1862271092, p_1862271093, tileBelow_1560281233, false, true)); + add_1476395538(result_1862271094, 0, lineTakes_1543504059(board_1862271092, p_1862271093, tileLeft_1560281236, false, true)); + add_1476395538(result_1862271094, 0, lineTakes_1543504059(board_1862271092, p_1862271093, tileRight_1560281239, false, true)); - return result_1509949558[0]; + return result_1862271094[0]; } -function HEX3Aanonymous_1493172797(side_1493172798, __1493172799, b_1493172800, s_1493172801) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 267; - F.filename = "powers.nim"; - buff_1493172242(1, side_1493172798, b_1493172800, s_1493172801, [], [HEX3Aanonymous_1509949576, HEX3Aanonymous_1509949597, HEX3Aanonymous_1509949555], [], false, [], null, null, null, false); - framePtr = F.prev; +function HEX3Aanonymous_1845494333(side_1845494334, __1845494335, b_1845494336, s_1845494337) { + buff_1845493778(1, side_1845494334, b_1845494336, s_1845494337, [], [HEX3Aanonymous_1862271112, HEX3Aanonymous_1862271133, HEX3Aanonymous_1862271091], [], false, [], null, null, null, false); } -function pieceSwap_1224737595(p1_1224737596, p2_1224737597, board_1224737598) { - var F = {procname: "piece.pieceSwap", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/piece.nim", line: 0}; - framePtr = F; - F.line = 248; - F.filename = "piece.nim"; - var temp_1224737599 = nimCopy(null, p1_1224737596, NTI1224736794); - F.line = 250; - board_1224737598[chckIndx(p1_1224737596.tile.Field1, 0, (board_1224737598).length - 1)][chckIndx(p1_1224737596.tile.Field0, 0, (board_1224737598[chckIndx(p1_1224737596.tile.Field1, 0, (board_1224737598).length - 1)]).length - 1)] = nimCopy(board_1224737598[chckIndx(p1_1224737596.tile.Field1, 0, (board_1224737598).length - 1)][chckIndx(p1_1224737596.tile.Field0, 0, (board_1224737598[chckIndx(p1_1224737596.tile.Field1, 0, (board_1224737598).length - 1)]).length - 1)], p2_1224737597, NTI1224736794); - F.line = 251; - board_1224737598[chckIndx(p2_1224737597.tile.Field1, 0, (board_1224737598).length - 1)][chckIndx(p2_1224737597.tile.Field0, 0, (board_1224737598[chckIndx(p2_1224737597.tile.Field1, 0, (board_1224737598).length - 1)]).length - 1)] = nimCopy(board_1224737598[chckIndx(p2_1224737597.tile.Field1, 0, (board_1224737598).length - 1)][chckIndx(p2_1224737597.tile.Field0, 0, (board_1224737598[chckIndx(p2_1224737597.tile.Field1, 0, (board_1224737598).length - 1)]).length - 1)], temp_1224737599, NTI1224736794); - F.line = 252; - var colontmp__1493178797 = p1_1224737596.tile.Field0; - F.line = 252; - var colontmp__1493178798 = p1_1224737596.tile.Field1; - F.line = 252; - board_1224737598[chckIndx(p1_1224737596.tile.Field1, 0, (board_1224737598).length - 1)][chckIndx(p1_1224737596.tile.Field0, 0, (board_1224737598[chckIndx(p1_1224737596.tile.Field1, 0, (board_1224737598).length - 1)]).length - 1)].tile = nimCopy(board_1224737598[chckIndx(p1_1224737596.tile.Field1, 0, (board_1224737598).length - 1)][chckIndx(p1_1224737596.tile.Field0, 0, (board_1224737598[chckIndx(p1_1224737596.tile.Field1, 0, (board_1224737598).length - 1)]).length - 1)].tile, {Field0: colontmp__1493178797, Field1: colontmp__1493178798}, NTI1224736771); - F.line = 253; - var colontmp__1493178799 = temp_1224737599.tile.Field0; - F.line = 253; - var colontmp__1493178800 = temp_1224737599.tile.Field1; - F.line = 253; - board_1224737598[chckIndx(temp_1224737599.tile.Field1, 0, (board_1224737598).length - 1)][chckIndx(temp_1224737599.tile.Field0, 0, (board_1224737598[chckIndx(temp_1224737599.tile.Field1, 0, (board_1224737598).length - 1)]).length - 1)].tile = nimCopy(board_1224737598[chckIndx(temp_1224737599.tile.Field1, 0, (board_1224737598).length - 1)][chckIndx(temp_1224737599.tile.Field0, 0, (board_1224737598[chckIndx(temp_1224737599.tile.Field1, 0, (board_1224737598).length - 1)]).length - 1)].tile, {Field0: colontmp__1493178799, Field1: colontmp__1493178800}, NTI1224736771); - framePtr = F.prev; +function pieceSwap_1476395835(p1_1476395836, p2_1476395837, board_1476395838) { + var temp_1476395839 = nimCopy(null, p1_1476395836, NTI1476395034); + board_1476395838[chckIndx(p1_1476395836.tile.Field1, 0, (board_1476395838).length - 1)][chckIndx(p1_1476395836.tile.Field0, 0, (board_1476395838[chckIndx(p1_1476395836.tile.Field1, 0, (board_1476395838).length - 1)]).length - 1)] = nimCopy(board_1476395838[chckIndx(p1_1476395836.tile.Field1, 0, (board_1476395838).length - 1)][chckIndx(p1_1476395836.tile.Field0, 0, (board_1476395838[chckIndx(p1_1476395836.tile.Field1, 0, (board_1476395838).length - 1)]).length - 1)], p2_1476395837, NTI1476395034); + board_1476395838[chckIndx(p2_1476395837.tile.Field1, 0, (board_1476395838).length - 1)][chckIndx(p2_1476395837.tile.Field0, 0, (board_1476395838[chckIndx(p2_1476395837.tile.Field1, 0, (board_1476395838).length - 1)]).length - 1)] = nimCopy(board_1476395838[chckIndx(p2_1476395837.tile.Field1, 0, (board_1476395838).length - 1)][chckIndx(p2_1476395837.tile.Field0, 0, (board_1476395838[chckIndx(p2_1476395837.tile.Field1, 0, (board_1476395838).length - 1)]).length - 1)], temp_1476395839, NTI1476395034); + var colontmp__1845500356 = p1_1476395836.tile.Field0; + var colontmp__1845500357 = p1_1476395836.tile.Field1; + board_1476395838[chckIndx(p1_1476395836.tile.Field1, 0, (board_1476395838).length - 1)][chckIndx(p1_1476395836.tile.Field0, 0, (board_1476395838[chckIndx(p1_1476395836.tile.Field1, 0, (board_1476395838).length - 1)]).length - 1)].tile = nimCopy(board_1476395838[chckIndx(p1_1476395836.tile.Field1, 0, (board_1476395838).length - 1)][chckIndx(p1_1476395836.tile.Field0, 0, (board_1476395838[chckIndx(p1_1476395836.tile.Field1, 0, (board_1476395838).length - 1)]).length - 1)].tile, {Field0: colontmp__1845500356, Field1: colontmp__1845500357}, NTI1476395011); + var colontmp__1845500358 = temp_1476395839.tile.Field0; + var colontmp__1845500359 = temp_1476395839.tile.Field1; + board_1476395838[chckIndx(temp_1476395839.tile.Field1, 0, (board_1476395838).length - 1)][chckIndx(temp_1476395839.tile.Field0, 0, (board_1476395838[chckIndx(temp_1476395839.tile.Field1, 0, (board_1476395838).length - 1)]).length - 1)].tile = nimCopy(board_1476395838[chckIndx(temp_1476395839.tile.Field1, 0, (board_1476395838).length - 1)][chckIndx(temp_1476395839.tile.Field0, 0, (board_1476395838[chckIndx(temp_1476395839.tile.Field1, 0, (board_1476395838).length - 1)]).length - 1)].tile, {Field0: colontmp__1845500358, Field1: colontmp__1845500359}, NTI1476395011); } -function HEX3Aanonymous_1493172845(side_1493172846, __1493172847, b_1493172848, __1493172849) { +function HEX3Aanonymous_1845494381(side_1845494382, __1845494383, b_1845494384, __1845494385) { var Temporary1; var Temporary2; - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 313; - F.filename = "powers.nim"; - if ((side_1493172846 == 0)) { + if ((side_1845494382 == 0)) { Temporary1 = 0; } else { Temporary1 = 6; } - var rank_1493172854 = Temporary1; - F.line = 314; - pieceSwap_1224737595(b_1493172848[chckIndx(rank_1493172854, 0, (b_1493172848).length - 1)][chckIndx(2, 0, (b_1493172848[chckIndx(rank_1493172854, 0, (b_1493172848).length - 1)]).length - 1)], (Temporary2 = b_1493172848[chckIndx(addInt(rank_1493172854, 1), 0, (b_1493172848).length - 1)], Temporary2)[chckIndx(2, 0, (Temporary2).length - 1)], b_1493172848); - framePtr = F.prev; + var rank_1845494390 = Temporary1; + pieceSwap_1476395835(b_1845494384[chckIndx(rank_1845494390, 0, (b_1845494384).length - 1)][chckIndx(2, 0, (b_1845494384[chckIndx(rank_1845494390, 0, (b_1845494384).length - 1)]).length - 1)], (Temporary2 = b_1845494384[chckIndx(addInt(rank_1845494390, 1), 0, (b_1845494384).length - 1)], Temporary2)[chckIndx(2, 0, (Temporary2).length - 1)], b_1845494384); } -function HEX3Aanonymous_1493172856(side_1493172857, __1493172858, b_1493172859, __1493172860) { +function HEX3Aanonymous_1845494392(side_1845494393, __1845494394, b_1845494395, __1845494396) { var Temporary1; var Temporary2; - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 328; - F.filename = "powers.nim"; - if ((side_1493172857 == 0)) { + if ((side_1845494393 == 0)) { Temporary1 = 0; } else { Temporary1 = 6; } - var rank_1493172865 = Temporary1; - F.line = 329; - pieceSwap_1224737595(b_1493172859[chckIndx(rank_1493172865, 0, (b_1493172859).length - 1)][chckIndx(5, 0, (b_1493172859[chckIndx(rank_1493172865, 0, (b_1493172859).length - 1)]).length - 1)], (Temporary2 = b_1493172859[chckIndx(addInt(rank_1493172865, 1), 0, (b_1493172859).length - 1)], Temporary2)[chckIndx(5, 0, (Temporary2).length - 1)], b_1493172859); - framePtr = F.prev; + var rank_1845494401 = Temporary1; + pieceSwap_1476395835(b_1845494395[chckIndx(rank_1845494401, 0, (b_1845494395).length - 1)][chckIndx(5, 0, (b_1845494395[chckIndx(rank_1845494401, 0, (b_1845494395).length - 1)]).length - 1)], (Temporary2 = b_1845494395[chckIndx(addInt(rank_1845494401, 1), 0, (b_1845494395).length - 1)], Temporary2)[chckIndx(5, 0, (Temporary2).length - 1)], b_1845494395); } -function HEX3Aanonymous_1493172823(side_1493172824, __1493172825, b_1493172826, __1493172827) { +function HEX3Aanonymous_1845494359(side_1845494360, __1845494361, b_1845494362, __1845494363) { var Temporary1; var Temporary2; - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 283; - F.filename = "powers.nim"; - if ((side_1493172824 == 0)) { + if ((side_1845494360 == 0)) { Temporary1 = 0; } else { Temporary1 = 6; } - var rank_1493172832 = Temporary1; - F.line = 284; - pieceSwap_1224737595(b_1493172826[chckIndx(rank_1493172832, 0, (b_1493172826).length - 1)][chckIndx(0, 0, (b_1493172826[chckIndx(rank_1493172832, 0, (b_1493172826).length - 1)]).length - 1)], (Temporary2 = b_1493172826[chckIndx(addInt(rank_1493172832, 1), 0, (b_1493172826).length - 1)], Temporary2)[chckIndx(0, 0, (Temporary2).length - 1)], b_1493172826); - framePtr = F.prev; + var rank_1845494368 = Temporary1; + pieceSwap_1476395835(b_1845494362[chckIndx(rank_1845494368, 0, (b_1845494362).length - 1)][chckIndx(0, 0, (b_1845494362[chckIndx(rank_1845494368, 0, (b_1845494362).length - 1)]).length - 1)], (Temporary2 = b_1845494362[chckIndx(addInt(rank_1845494368, 1), 0, (b_1845494362).length - 1)], Temporary2)[chckIndx(0, 0, (Temporary2).length - 1)], b_1845494362); } -function HEX3Aanonymous_1493172834(side_1493172835, __1493172836, b_1493172837, __1493172838) { +function HEX3Aanonymous_1845494370(side_1845494371, __1845494372, b_1845494373, __1845494374) { var Temporary1; var Temporary2; - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 298; - F.filename = "powers.nim"; - if ((side_1493172835 == 0)) { + if ((side_1845494371 == 0)) { Temporary1 = 0; } else { Temporary1 = 6; } - var rank_1493172843 = Temporary1; - F.line = 299; - pieceSwap_1224737595(b_1493172837[chckIndx(rank_1493172843, 0, (b_1493172837).length - 1)][chckIndx(7, 0, (b_1493172837[chckIndx(rank_1493172843, 0, (b_1493172837).length - 1)]).length - 1)], (Temporary2 = b_1493172837[chckIndx(addInt(rank_1493172843, 1), 0, (b_1493172837).length - 1)], Temporary2)[chckIndx(7, 0, (Temporary2).length - 1)], b_1493172837); - framePtr = F.prev; + var rank_1845494379 = Temporary1; + pieceSwap_1476395835(b_1845494373[chckIndx(rank_1845494379, 0, (b_1845494373).length - 1)][chckIndx(7, 0, (b_1845494373[chckIndx(rank_1845494379, 0, (b_1845494373).length - 1)]).length - 1)], (Temporary2 = b_1845494373[chckIndx(addInt(rank_1845494379, 1), 0, (b_1845494373).length - 1)], Temporary2)[chckIndx(7, 0, (Temporary2).length - 1)], b_1845494373); } -function HEX3Aanonymous_1493172867(piece_1493172868, board_1493172869, state_1493172870) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - if ((piece_1493172868.piecesTaken == 3)) { +function HEX3Aanonymous_1845494403(piece_1845494404, board_1845494405, state_1845494406) { + if ((piece_1845494404.piecesTaken == 3)) { Label1: { - F.line = 181; - F.filename = "piece.nim"; - var xHEX60gensym33_1493172875 = null; - F.line = 249; - F.filename = "iterators.nim"; - var i_1493178802 = 0; - F.line = 250; - var L_1493178803 = (piece_1493172868.onPromote).length; + var xHEX60gensym33_1845494411 = null; + var i_1845500361 = 0; + var L_1845500362 = (piece_1845494404.onPromote).length; Label2: { - F.line = 251; Label3: while (true) { - if (!(i_1493178802 < L_1493178803)) break Label3; - F.line = 334; - F.filename = "powers.nim"; - xHEX60gensym33_1493172875 = piece_1493172868.onPromote[chckIndx(i_1493178802, 0, (piece_1493172868.onPromote).length - 1)]; - F.line = 182; - F.filename = "piece.nim"; - xHEX60gensym33_1493172875(piece_1493172868, board_1493172869, state_1493172870); - if (piece_1493172868.promoted) { - F.line = 183; + if (!(i_1845500361 < L_1845500362)) break Label3; + xHEX60gensym33_1845494411 = piece_1845494404.onPromote[chckIndx(i_1845500361, 0, (piece_1845494404.onPromote).length - 1)]; + xHEX60gensym33_1845494411(piece_1845494404, board_1845494405, state_1845494406); + if (piece_1845494404.promoted) { break Label1; } - F.line = 13; - F.filename = "iterators.nim"; - i_1493178802 += 1; - if (!(((piece_1493172868.onPromote).length == L_1493178803))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + i_1845500361 += 1; + if (!(((piece_1845494404.onPromote).length == L_1845500362))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } @@ -4228,526 +3160,344 @@ function HEX3Aanonymous_1493172867(piece_1493172868, board_1493172869, state_149 }; } - framePtr = F.prev; } -function HEX3Aanonymous_1493172879(side_1493172880, __1493172881, b_1493172882, s_1493172883) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 347; - F.filename = "powers.nim"; - buff_1493172242(3, side_1493172880, b_1493172882, s_1493172883, [], [], [HEX3Aanonymous_1493172867], false, [], null, null, null, false); - framePtr = F.prev; +function HEX3Aanonymous_1845494415(side_1845494416, __1845494417, b_1845494418, s_1845494419) { + buff_1845493778(3, side_1845494416, b_1845494418, s_1845494419, [], [], [HEX3Aanonymous_1845494403], false, [], null, null, null, false); } -function HEX3Aanonymous_1224737210(piece_1224737211, board_1224737212, state_1224737213) { - var F = {procname: "piece.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/piece.nim", line: 0}; - framePtr = F; - framePtr = F.prev; - +function HEX3Aanonymous_1476395450(piece_1476395451, board_1476395452, state_1476395453) { } -function HEX3Aanonymous_1493172889(side_1493172890, viewSide_1493172891, b_1493172892, __1493172893) { +function HEX3Aanonymous_1845494425(side_1845494426, viewSide_1845494427, b_1845494428, __1845494429) { var Temporary1; - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 367; - F.filename = "powers.nim"; - if ((side_1493172890 == 0)) { + if ((side_1845494426 == 0)) { Temporary1 = 1; } else { Temporary1 = 6; } - var rank_1493172898 = Temporary1; - if (!((b_1493172892[chckIndx(rank_1493172898, 0, (b_1493172892).length - 1)][chckIndx(2, 0, (b_1493172892[chckIndx(rank_1493172898, 0, (b_1493172892).length - 1)]).length - 1)].color == side_1493172890))) { - F.line = 368; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/the-playground/chess/src/powers.nim(368, 13) `b[rank][2].color == side` ")); + var rank_1845494434 = Temporary1; + if (!((b_1845494428[chckIndx(rank_1845494434, 0, (b_1845494428).length - 1)][chckIndx(2, 0, (b_1845494428[chckIndx(rank_1845494434, 0, (b_1845494428).length - 1)]).length - 1)].color == side_1845494426))) { + failedAssertImpl_268435541([112,111,119,101,114,115,46,110,105,109,40,51,54,56,44,32,49,51,41,32,96,98,91,114,97,110,107,93,91,50,93,46,99,111,108,111,114,32,61,61,32,115,105,100,101,96,32]); } - if ((side_1493172890 == 0)) { - F.line = 370; - b_1493172892[chckIndx(rank_1493172898, 0, (b_1493172892).length - 1)][chckIndx(2, 0, (b_1493172892[chckIndx(rank_1493172898, 0, (b_1493172892).length - 1)]).length - 1)].moves = nimCopy(null, [HEX3Aanonymous_1509949465, HEX3Aanonymous_1509949514, HEX3Aanonymous_1509949475], NTI1291846007); - F.line = 371; - b_1493172892[chckIndx(rank_1493172898, 0, (b_1493172892).length - 1)][chckIndx(2, 0, (b_1493172892[chckIndx(rank_1493172898, 0, (b_1493172892).length - 1)]).length - 1)].takes = nimCopy(null, [HEX3Aanonymous_1509949470, HEX3Aanonymous_1509949524, HEX3Aanonymous_1509949504], NTI1291846007); + if ((side_1845494426 == 0)) { + b_1845494428[chckIndx(rank_1845494434, 0, (b_1845494428).length - 1)][chckIndx(2, 0, (b_1845494428[chckIndx(rank_1845494434, 0, (b_1845494428).length - 1)]).length - 1)].moves = nimCopy(null, [HEX3Aanonymous_1862271001, HEX3Aanonymous_1862271050, HEX3Aanonymous_1862271011], NTI1543504247); + b_1845494428[chckIndx(rank_1845494434, 0, (b_1845494428).length - 1)][chckIndx(2, 0, (b_1845494428[chckIndx(rank_1845494434, 0, (b_1845494428).length - 1)]).length - 1)].takes = nimCopy(null, [HEX3Aanonymous_1862271006, HEX3Aanonymous_1862271060, HEX3Aanonymous_1862271040], NTI1543504247); } else { - F.line = 373; - b_1493172892[chckIndx(rank_1493172898, 0, (b_1493172892).length - 1)][chckIndx(2, 0, (b_1493172892[chckIndx(rank_1493172898, 0, (b_1493172892).length - 1)]).length - 1)].moves = nimCopy(null, [HEX3Aanonymous_1509949465, HEX3Aanonymous_1509949509, HEX3Aanonymous_1509949475], NTI1291846007); - F.line = 374; - b_1493172892[chckIndx(rank_1493172898, 0, (b_1493172892).length - 1)][chckIndx(2, 0, (b_1493172892[chckIndx(rank_1493172898, 0, (b_1493172892).length - 1)]).length - 1)].takes = nimCopy(null, [HEX3Aanonymous_1509949470, HEX3Aanonymous_1509949519, HEX3Aanonymous_1509949504], NTI1291846007); + b_1845494428[chckIndx(rank_1845494434, 0, (b_1845494428).length - 1)][chckIndx(2, 0, (b_1845494428[chckIndx(rank_1845494434, 0, (b_1845494428).length - 1)]).length - 1)].moves = nimCopy(null, [HEX3Aanonymous_1862271001, HEX3Aanonymous_1862271045, HEX3Aanonymous_1862271011], NTI1543504247); + b_1845494428[chckIndx(rank_1845494434, 0, (b_1845494428).length - 1)][chckIndx(2, 0, (b_1845494428[chckIndx(rank_1845494434, 0, (b_1845494428).length - 1)]).length - 1)].takes = nimCopy(null, [HEX3Aanonymous_1862271006, HEX3Aanonymous_1862271055, HEX3Aanonymous_1862271040], NTI1543504247); } - F.line = 375; - b_1493172892[chckIndx(rank_1493172898, 0, (b_1493172892).length - 1)][chckIndx(2, 0, (b_1493172892[chckIndx(rank_1493172898, 0, (b_1493172892).length - 1)]).length - 1)].onPromote = nimCopy(null, [HEX3Aanonymous_1224737210], NTI1275068457); - F.line = 376; - b_1493172892[chckIndx(rank_1493172898, 0, (b_1493172892).length - 1)][chckIndx(2, 0, (b_1493172892[chckIndx(rank_1493172898, 0, (b_1493172892).length - 1)]).length - 1)].item = 7; - F.line = 377; - b_1493172892[chckIndx(rank_1493172898, 0, (b_1493172892).length - 1)][chckIndx(2, 0, (b_1493172892[chckIndx(rank_1493172898, 0, (b_1493172892).length - 1)]).length - 1)].filePath = nimCopy(null, [103,111,108,100,103,101,110,101,114,97,108,46,115,118,103], NTI33554449); - F.line = 378; - b_1493172892[chckIndx(rank_1493172898, 0, (b_1493172892).length - 1)][chckIndx(2, 0, (b_1493172892[chckIndx(rank_1493172898, 0, (b_1493172892).length - 1)]).length - 1)].colorable = false; - if (!((side_1493172890 == viewSide_1493172891))) { - F.line = 379; - b_1493172892[chckIndx(rank_1493172898, 0, (b_1493172892).length - 1)][chckIndx(2, 0, (b_1493172892[chckIndx(rank_1493172898, 0, (b_1493172892).length - 1)]).length - 1)].rotate = true; + b_1845494428[chckIndx(rank_1845494434, 0, (b_1845494428).length - 1)][chckIndx(2, 0, (b_1845494428[chckIndx(rank_1845494434, 0, (b_1845494428).length - 1)]).length - 1)].onPromote = nimCopy(null, [HEX3Aanonymous_1476395450], NTI1526726697); + b_1845494428[chckIndx(rank_1845494434, 0, (b_1845494428).length - 1)][chckIndx(2, 0, (b_1845494428[chckIndx(rank_1845494434, 0, (b_1845494428).length - 1)]).length - 1)].item = 7; + b_1845494428[chckIndx(rank_1845494434, 0, (b_1845494428).length - 1)][chckIndx(2, 0, (b_1845494428[chckIndx(rank_1845494434, 0, (b_1845494428).length - 1)]).length - 1)].filePath = nimCopy(null, [103,111,108,100,103,101,110,101,114,97,108,46,115,118,103], NTI33554449); + b_1845494428[chckIndx(rank_1845494434, 0, (b_1845494428).length - 1)][chckIndx(2, 0, (b_1845494428[chckIndx(rank_1845494434, 0, (b_1845494428).length - 1)]).length - 1)].colorable = false; + if (!((side_1845494426 == viewSide_1845494427))) { + b_1845494428[chckIndx(rank_1845494434, 0, (b_1845494428).length - 1)][chckIndx(2, 0, (b_1845494428[chckIndx(rank_1845494434, 0, (b_1845494428).length - 1)]).length - 1)].rotate = true; } - framePtr = F.prev; } -function HEX3Aanonymous_1493172937(side_1493172938, viewSide_1493172939, b_1493172940, __1493172941) { +function HEX3Aanonymous_1845494473(side_1845494474, viewSide_1845494475, b_1845494476, __1845494477) { var Temporary1; - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 396; - F.filename = "powers.nim"; - if ((side_1493172938 == 0)) { + if ((side_1845494474 == 0)) { Temporary1 = 1; } else { Temporary1 = 6; } - var rank_1493172946 = Temporary1; - if (!((b_1493172940[chckIndx(rank_1493172946, 0, (b_1493172940).length - 1)][chckIndx(5, 0, (b_1493172940[chckIndx(rank_1493172946, 0, (b_1493172940).length - 1)]).length - 1)].color == side_1493172938))) { - F.line = 397; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/the-playground/chess/src/powers.nim(397, 13) `b[rank][5].color == side` ")); + var rank_1845494482 = Temporary1; + if (!((b_1845494476[chckIndx(rank_1845494482, 0, (b_1845494476).length - 1)][chckIndx(5, 0, (b_1845494476[chckIndx(rank_1845494482, 0, (b_1845494476).length - 1)]).length - 1)].color == side_1845494474))) { + failedAssertImpl_268435541([112,111,119,101,114,115,46,110,105,109,40,51,57,55,44,32,49,51,41,32,96,98,91,114,97,110,107,93,91,53,93,46,99,111,108,111,114,32,61,61,32,115,105,100,101,96,32]); } - if ((side_1493172938 == 0)) { - F.line = 399; - b_1493172940[chckIndx(rank_1493172946, 0, (b_1493172940).length - 1)][chckIndx(5, 0, (b_1493172940[chckIndx(rank_1493172946, 0, (b_1493172940).length - 1)]).length - 1)].moves = nimCopy(null, [HEX3Aanonymous_1509949465, HEX3Aanonymous_1509949514, HEX3Aanonymous_1509949475], NTI1291846007); - F.line = 400; - b_1493172940[chckIndx(rank_1493172946, 0, (b_1493172940).length - 1)][chckIndx(5, 0, (b_1493172940[chckIndx(rank_1493172946, 0, (b_1493172940).length - 1)]).length - 1)].takes = nimCopy(null, [HEX3Aanonymous_1509949470, HEX3Aanonymous_1509949524, HEX3Aanonymous_1509949504], NTI1291846007); + if ((side_1845494474 == 0)) { + b_1845494476[chckIndx(rank_1845494482, 0, (b_1845494476).length - 1)][chckIndx(5, 0, (b_1845494476[chckIndx(rank_1845494482, 0, (b_1845494476).length - 1)]).length - 1)].moves = nimCopy(null, [HEX3Aanonymous_1862271001, HEX3Aanonymous_1862271050, HEX3Aanonymous_1862271011], NTI1543504247); + b_1845494476[chckIndx(rank_1845494482, 0, (b_1845494476).length - 1)][chckIndx(5, 0, (b_1845494476[chckIndx(rank_1845494482, 0, (b_1845494476).length - 1)]).length - 1)].takes = nimCopy(null, [HEX3Aanonymous_1862271006, HEX3Aanonymous_1862271060, HEX3Aanonymous_1862271040], NTI1543504247); } else { - F.line = 402; - b_1493172940[chckIndx(rank_1493172946, 0, (b_1493172940).length - 1)][chckIndx(5, 0, (b_1493172940[chckIndx(rank_1493172946, 0, (b_1493172940).length - 1)]).length - 1)].moves = nimCopy(null, [HEX3Aanonymous_1509949465, HEX3Aanonymous_1509949509, HEX3Aanonymous_1509949475], NTI1291846007); - F.line = 403; - b_1493172940[chckIndx(rank_1493172946, 0, (b_1493172940).length - 1)][chckIndx(5, 0, (b_1493172940[chckIndx(rank_1493172946, 0, (b_1493172940).length - 1)]).length - 1)].takes = nimCopy(null, [HEX3Aanonymous_1509949470, HEX3Aanonymous_1509949519, HEX3Aanonymous_1509949504], NTI1291846007); + b_1845494476[chckIndx(rank_1845494482, 0, (b_1845494476).length - 1)][chckIndx(5, 0, (b_1845494476[chckIndx(rank_1845494482, 0, (b_1845494476).length - 1)]).length - 1)].moves = nimCopy(null, [HEX3Aanonymous_1862271001, HEX3Aanonymous_1862271045, HEX3Aanonymous_1862271011], NTI1543504247); + b_1845494476[chckIndx(rank_1845494482, 0, (b_1845494476).length - 1)][chckIndx(5, 0, (b_1845494476[chckIndx(rank_1845494482, 0, (b_1845494476).length - 1)]).length - 1)].takes = nimCopy(null, [HEX3Aanonymous_1862271006, HEX3Aanonymous_1862271055, HEX3Aanonymous_1862271040], NTI1543504247); } - F.line = 404; - b_1493172940[chckIndx(rank_1493172946, 0, (b_1493172940).length - 1)][chckIndx(5, 0, (b_1493172940[chckIndx(rank_1493172946, 0, (b_1493172940).length - 1)]).length - 1)].onPromote = nimCopy(null, [HEX3Aanonymous_1224737210], NTI1275068457); - F.line = 405; - b_1493172940[chckIndx(rank_1493172946, 0, (b_1493172940).length - 1)][chckIndx(5, 0, (b_1493172940[chckIndx(rank_1493172946, 0, (b_1493172940).length - 1)]).length - 1)].item = 7; - F.line = 406; - b_1493172940[chckIndx(rank_1493172946, 0, (b_1493172940).length - 1)][chckIndx(5, 0, (b_1493172940[chckIndx(rank_1493172946, 0, (b_1493172940).length - 1)]).length - 1)].filePath = nimCopy(null, [103,111,108,100,103,101,110,101,114,97,108,46,115,118,103], NTI33554449); - F.line = 407; - b_1493172940[chckIndx(rank_1493172946, 0, (b_1493172940).length - 1)][chckIndx(5, 0, (b_1493172940[chckIndx(rank_1493172946, 0, (b_1493172940).length - 1)]).length - 1)].colorable = false; - if (!((side_1493172938 == viewSide_1493172939))) { - F.line = 408; - b_1493172940[chckIndx(rank_1493172946, 0, (b_1493172940).length - 1)][chckIndx(5, 0, (b_1493172940[chckIndx(rank_1493172946, 0, (b_1493172940).length - 1)]).length - 1)].rotate = true; + b_1845494476[chckIndx(rank_1845494482, 0, (b_1845494476).length - 1)][chckIndx(5, 0, (b_1845494476[chckIndx(rank_1845494482, 0, (b_1845494476).length - 1)]).length - 1)].onPromote = nimCopy(null, [HEX3Aanonymous_1476395450], NTI1526726697); + b_1845494476[chckIndx(rank_1845494482, 0, (b_1845494476).length - 1)][chckIndx(5, 0, (b_1845494476[chckIndx(rank_1845494482, 0, (b_1845494476).length - 1)]).length - 1)].item = 7; + b_1845494476[chckIndx(rank_1845494482, 0, (b_1845494476).length - 1)][chckIndx(5, 0, (b_1845494476[chckIndx(rank_1845494482, 0, (b_1845494476).length - 1)]).length - 1)].filePath = nimCopy(null, [103,111,108,100,103,101,110,101,114,97,108,46,115,118,103], NTI33554449); + b_1845494476[chckIndx(rank_1845494482, 0, (b_1845494476).length - 1)][chckIndx(5, 0, (b_1845494476[chckIndx(rank_1845494482, 0, (b_1845494476).length - 1)]).length - 1)].colorable = false; + if (!((side_1845494474 == viewSide_1845494475))) { + b_1845494476[chckIndx(rank_1845494482, 0, (b_1845494476).length - 1)][chckIndx(5, 0, (b_1845494476[chckIndx(rank_1845494482, 0, (b_1845494476).length - 1)]).length - 1)].rotate = true; } - framePtr = F.prev; } -function HEX3Aanonymous_1493173027(side_1493173028, __1493173029, b_1493173030, s_1493173031) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 447; - F.filename = "powers.nim"; - buff_1493172242(2, side_1493173028, b_1493173030, s_1493173031, [HEX3Aanonymous_1291846082], [HEX3Aanonymous_1291846087], [], false, [], null, null, null, false); - framePtr = F.prev; +function HEX3Aanonymous_1845494563(side_1845494564, __1845494565, b_1845494566, s_1845494567) { + buff_1845493778(2, side_1845494564, b_1845494566, s_1845494567, [HEX3Aanonymous_1543504322], [HEX3Aanonymous_1543504327], [], false, [], null, null, null, false); } -function createWerewolf_1493172985() { +function createWerewolf_1845494521() { -function HEX3Aanonymous_1493172988(piece_1493172989, board_1493172990, state_1493172991) { - var F = {procname: "createWerewolf.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - if (((1 <= piece_1493172989.piecesTaken) && !(transformed_1493172987))) { - F.line = 419; - F.filename = "powers.nim"; - add_1493172278(piece_1493172989, "moves", [HEX3Aanonymous_1291846082, HEX3Aanonymous_1509949640]); - F.line = 420; - add_1493172278(piece_1493172989, "takes", [HEX3Aanonymous_1291846087, HEX3Aanonymous_1509949635]); - F.line = 421; - piece_1493172989.rotate = true; - F.line = 422; - transformed_1493172987 = true; +function HEX3Aanonymous_1845494524(piece_1845494525, board_1845494526, state_1845494527) { + if (((1 <= piece_1845494525.piecesTaken) && !(transformed_1845494523))) { + add_1845493814(piece_1845494525, "moves", [HEX3Aanonymous_1543504322, HEX3Aanonymous_1862271176]); + add_1845493814(piece_1845494525, "takes", [HEX3Aanonymous_1543504327, HEX3Aanonymous_1862271171]); + piece_1845494525.rotate = true; + transformed_1845494523 = true; } - framePtr = F.prev; } - var result_1493172986 = null; + var result_1845494522 = null; - var F = {procname: "powers.createWerewolf", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 415; - F.filename = "powers.nim"; - var transformed_1493172987 = false; - F.line = 417; - result_1493172986 = HEX3Aanonymous_1493172988; - framePtr = F.prev; + var transformed_1845494523 = false; + result_1845494522 = HEX3Aanonymous_1845494524; - return result_1493172986; + return result_1845494522; } -function HEX3Aanonymous_1493173008(side_1493173009, __1493173010, b_1493173011, __1493173012) { +function HEX3Aanonymous_1845494544(side_1845494545, __1845494546, b_1845494547, __1845494548) { var Temporary1; - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 433; - F.filename = "powers.nim"; - if ((side_1493173009 == 0)) { + if ((side_1845494545 == 0)) { Temporary1 = 1; } else { Temporary1 = 6; } - var rank_1493173017 = Temporary1; - F.line = 434; - b_1493173011[chckIndx(rank_1493173017, 0, (b_1493173011).length - 1)][chckIndx(0, 0, (b_1493173011[chckIndx(rank_1493173017, 0, (b_1493173011).length - 1)]).length - 1)].onEndTurn.push(createWerewolf_1493172985());; - F.line = 435; - b_1493173011[chckIndx(rank_1493173017, 0, (b_1493173011).length - 1)][chckIndx(7, 0, (b_1493173011[chckIndx(rank_1493173017, 0, (b_1493173011).length - 1)]).length - 1)].onEndTurn.push(createWerewolf_1493172985());; - framePtr = F.prev; + var rank_1845494553 = Temporary1; + b_1845494547[chckIndx(rank_1845494553, 0, (b_1845494547).length - 1)][chckIndx(0, 0, (b_1845494547[chckIndx(rank_1845494553, 0, (b_1845494547).length - 1)]).length - 1)].onEndTurn.push(createWerewolf_1845494521());; + b_1845494547[chckIndx(rank_1845494553, 0, (b_1845494547).length - 1)][chckIndx(7, 0, (b_1845494547[chckIndx(rank_1845494553, 0, (b_1845494547).length - 1)]).length - 1)].onEndTurn.push(createWerewolf_1845494521());; } -function change_1493172382(piece_1493172383, side_1493172384, b_1493172385, s_1493172386, moves_1493172391, takes_1493172396, onEndturn_1493172401, rotate_1493172402, onPromote_1493172407, whenTaken_1493172408, onTake_1493172409, onMove_1493172410, filePath_1493172411, all_1493172412) { - var F = {procname: "powers.change", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; +function change_1845493918(piece_1845493919, side_1845493920, b_1845493921, s_1845493922, moves_1845493927, takes_1845493932, onEndturn_1845493937, rotate_1845493938, onPromote_1845493943, whenTaken_1845493944, onTake_1845493945, onMove_1845493946, filePath_1845493947, all_1845493948) { Label1: { - F.line = 94; - F.filename = "powers.nim"; - var i_1493172413 = 0; - F.line = 94; - var j_1493172414 = 0; + var i_1845493949 = 0; + var j_1845493950 = 0; Label2: { - F.line = 124; - F.filename = "piece.nim"; - var i_1493178807 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_1493178808 = 0; + var i_1845500366 = 0; + var i_1845500367 = 0; Label3: { - F.line = 129; Label4: while (true) { - if (!(i_1493178808 < 8)) break Label4; - F.line = 124; - F.filename = "piece.nim"; - i_1493178807 = i_1493178808; + if (!(i_1845500367 < 8)) break Label4; + i_1845500366 = i_1845500367; Label5: { - F.line = 125; - var j_1493178811 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_1493178812 = 0; + var j_1845500370 = 0; + var i_1845500371 = 0; Label6: { - F.line = 129; Label7: while (true) { - if (!(i_1493178812 < 8)) break Label7; - F.line = 125; - F.filename = "piece.nim"; - j_1493178811 = i_1493178812; - F.line = 94; - F.filename = "powers.nim"; - i_1493172413 = i_1493178807; - F.line = 94; - j_1493172414 = j_1493178811; - if ((((b_1493172385[chckIndx(i_1493172413, 0, (b_1493172385).length - 1)][chckIndx(j_1493172414, 0, (b_1493172385[chckIndx(i_1493172413, 0, (b_1493172385).length - 1)]).length - 1)].item == piece_1493172383) || all_1493172412) && isColor_1224737813(b_1493172385[chckIndx(i_1493172413, 0, (b_1493172385).length - 1)][chckIndx(j_1493172414, 0, (b_1493172385[chckIndx(i_1493172413, 0, (b_1493172385).length - 1)]).length - 1)], side_1493172384))) { - if (!(((moves_1493172391).length == 0))) { - F.line = 96; - b_1493172385[chckIndx(i_1493172413, 0, (b_1493172385).length - 1)][chckIndx(j_1493172414, 0, (b_1493172385[chckIndx(i_1493172413, 0, (b_1493172385).length - 1)]).length - 1)].moves = nimCopy(null, moves_1493172391, NTI1493172359); + if (!(i_1845500371 < 8)) break Label7; + j_1845500370 = i_1845500371; + i_1845493949 = i_1845500366; + j_1845493950 = j_1845500370; + if ((((b_1845493921[chckIndx(i_1845493949, 0, (b_1845493921).length - 1)][chckIndx(j_1845493950, 0, (b_1845493921[chckIndx(i_1845493949, 0, (b_1845493921).length - 1)]).length - 1)].item == piece_1845493919) || all_1845493948) && isColor_1476396053(b_1845493921[chckIndx(i_1845493949, 0, (b_1845493921).length - 1)][chckIndx(j_1845493950, 0, (b_1845493921[chckIndx(i_1845493949, 0, (b_1845493921).length - 1)]).length - 1)], side_1845493920))) { + if (!(((moves_1845493927).length == 0))) { + b_1845493921[chckIndx(i_1845493949, 0, (b_1845493921).length - 1)][chckIndx(j_1845493950, 0, (b_1845493921[chckIndx(i_1845493949, 0, (b_1845493921).length - 1)]).length - 1)].moves = nimCopy(null, moves_1845493927, NTI1845493895); } - if (!(((takes_1493172396).length == 0))) { - F.line = 97; - b_1493172385[chckIndx(i_1493172413, 0, (b_1493172385).length - 1)][chckIndx(j_1493172414, 0, (b_1493172385[chckIndx(i_1493172413, 0, (b_1493172385).length - 1)]).length - 1)].takes = nimCopy(null, takes_1493172396, NTI1493172368); + if (!(((takes_1845493932).length == 0))) { + b_1845493921[chckIndx(i_1845493949, 0, (b_1845493921).length - 1)][chckIndx(j_1845493950, 0, (b_1845493921[chckIndx(i_1845493949, 0, (b_1845493921).length - 1)]).length - 1)].takes = nimCopy(null, takes_1845493932, NTI1845493904); } - if (!(((onEndturn_1493172401).length == 0))) { - F.line = 98; - b_1493172385[chckIndx(i_1493172413, 0, (b_1493172385).length - 1)][chckIndx(j_1493172414, 0, (b_1493172385[chckIndx(i_1493172413, 0, (b_1493172385).length - 1)]).length - 1)].onEndTurn = nimCopy(null, onEndturn_1493172401, NTI1493172377); + if (!(((onEndturn_1845493937).length == 0))) { + b_1845493921[chckIndx(i_1845493949, 0, (b_1845493921).length - 1)][chckIndx(j_1845493950, 0, (b_1845493921[chckIndx(i_1845493949, 0, (b_1845493921).length - 1)]).length - 1)].onEndTurn = nimCopy(null, onEndturn_1845493937, NTI1845493913); } - if (!(((onPromote_1493172407).length == 0))) { - F.line = 99; - b_1493172385[chckIndx(i_1493172413, 0, (b_1493172385).length - 1)][chckIndx(j_1493172414, 0, (b_1493172385[chckIndx(i_1493172413, 0, (b_1493172385).length - 1)]).length - 1)].onPromote = nimCopy(null, onPromote_1493172407, NTI1493172386); + if (!(((onPromote_1845493943).length == 0))) { + b_1845493921[chckIndx(i_1845493949, 0, (b_1845493921).length - 1)][chckIndx(j_1845493950, 0, (b_1845493921[chckIndx(i_1845493949, 0, (b_1845493921).length - 1)]).length - 1)].onPromote = nimCopy(null, onPromote_1845493943, NTI1845493922); } - if (!((whenTaken_1493172408 == null))) { - F.line = 100; - b_1493172385[chckIndx(i_1493172413, 0, (b_1493172385).length - 1)][chckIndx(j_1493172414, 0, (b_1493172385[chckIndx(i_1493172413, 0, (b_1493172385).length - 1)]).length - 1)].whenTaken = whenTaken_1493172408; + if (!((whenTaken_1845493944 == null))) { + b_1845493921[chckIndx(i_1845493949, 0, (b_1845493921).length - 1)][chckIndx(j_1845493950, 0, (b_1845493921[chckIndx(i_1845493949, 0, (b_1845493921).length - 1)]).length - 1)].whenTaken = whenTaken_1845493944; } - if (!((onTake_1493172409 == null))) { - F.line = 101; - b_1493172385[chckIndx(i_1493172413, 0, (b_1493172385).length - 1)][chckIndx(j_1493172414, 0, (b_1493172385[chckIndx(i_1493172413, 0, (b_1493172385).length - 1)]).length - 1)].onTake = onTake_1493172409; + if (!((onTake_1845493945 == null))) { + b_1845493921[chckIndx(i_1845493949, 0, (b_1845493921).length - 1)][chckIndx(j_1845493950, 0, (b_1845493921[chckIndx(i_1845493949, 0, (b_1845493921).length - 1)]).length - 1)].onTake = onTake_1845493945; } - if (!((onMove_1493172410 == null))) { - F.line = 102; - b_1493172385[chckIndx(i_1493172413, 0, (b_1493172385).length - 1)][chckIndx(j_1493172414, 0, (b_1493172385[chckIndx(i_1493172413, 0, (b_1493172385).length - 1)]).length - 1)].onMove = onMove_1493172410; + if (!((onMove_1845493946 == null))) { + b_1845493921[chckIndx(i_1845493949, 0, (b_1845493921).length - 1)][chckIndx(j_1845493950, 0, (b_1845493921[chckIndx(i_1845493949, 0, (b_1845493921).length - 1)]).length - 1)].onMove = onMove_1845493946; } - if (!(eqStrings(filePath_1493172411, []))) { - F.line = 103; - b_1493172385[chckIndx(i_1493172413, 0, (b_1493172385).length - 1)][chckIndx(j_1493172414, 0, (b_1493172385[chckIndx(i_1493172413, 0, (b_1493172385).length - 1)]).length - 1)].filePath = nimCopy(null, filePath_1493172411, NTI33554449); + if (!(eqStrings(filePath_1845493947, []))) { + b_1845493921[chckIndx(i_1845493949, 0, (b_1845493921).length - 1)][chckIndx(j_1845493950, 0, (b_1845493921[chckIndx(i_1845493949, 0, (b_1845493921).length - 1)]).length - 1)].filePath = nimCopy(null, filePath_1845493947, NTI33554449); } - if (rotate_1493172402) { - F.line = 104; - b_1493172385[chckIndx(i_1493172413, 0, (b_1493172385).length - 1)][chckIndx(j_1493172414, 0, (b_1493172385[chckIndx(i_1493172413, 0, (b_1493172385).length - 1)]).length - 1)].rotate = true; + if (rotate_1845493938) { + b_1845493921[chckIndx(i_1845493949, 0, (b_1845493921).length - 1)][chckIndx(j_1845493950, 0, (b_1845493921[chckIndx(i_1845493949, 0, (b_1845493921).length - 1)]).length - 1)].rotate = true; } } - F.line = 131; - F.filename = "iterators_1.nim"; - i_1493178812 = addInt(i_1493178812, 1); + i_1845500371 = addInt(i_1845500371, 1); } }; }; - F.line = 131; - i_1493178808 = addInt(i_1493178808, 1); + i_1845500367 = addInt(i_1845500367, 1); } }; }; }; - if (!(((moves_1493172391).length == 0))) { - F.line = 106; - F.filename = "powers.nim"; - s_1493172386.Field1[chckIndx(side_1493172384, 0, (s_1493172386.Field1).length - 1)].dna[chckIndx(piece_1493172383, 0, (s_1493172386.Field1[chckIndx(side_1493172384, 0, (s_1493172386.Field1).length - 1)].dna).length - 1)].moves = nimCopy(null, moves_1493172391, NTI1493172359); + if (!(((moves_1845493927).length == 0))) { + s_1845493922.Field1[chckIndx(side_1845493920, 0, (s_1845493922.Field1).length - 1)].dna[chckIndx(piece_1845493919, 0, (s_1845493922.Field1[chckIndx(side_1845493920, 0, (s_1845493922.Field1).length - 1)].dna).length - 1)].moves = nimCopy(null, moves_1845493927, NTI1845493895); } - if (!(((takes_1493172396).length == 0))) { - F.line = 107; - s_1493172386.Field1[chckIndx(side_1493172384, 0, (s_1493172386.Field1).length - 1)].dna[chckIndx(piece_1493172383, 0, (s_1493172386.Field1[chckIndx(side_1493172384, 0, (s_1493172386.Field1).length - 1)].dna).length - 1)].takes = nimCopy(null, takes_1493172396, NTI1493172368); + if (!(((takes_1845493932).length == 0))) { + s_1845493922.Field1[chckIndx(side_1845493920, 0, (s_1845493922.Field1).length - 1)].dna[chckIndx(piece_1845493919, 0, (s_1845493922.Field1[chckIndx(side_1845493920, 0, (s_1845493922.Field1).length - 1)].dna).length - 1)].takes = nimCopy(null, takes_1845493932, NTI1845493904); } - if (!(((onEndturn_1493172401).length == 0))) { - F.line = 108; - s_1493172386.Field1[chckIndx(side_1493172384, 0, (s_1493172386.Field1).length - 1)].dna[chckIndx(piece_1493172383, 0, (s_1493172386.Field1[chckIndx(side_1493172384, 0, (s_1493172386.Field1).length - 1)].dna).length - 1)].onEndTurn = nimCopy(null, onEndturn_1493172401, NTI1493172377); + if (!(((onEndturn_1845493937).length == 0))) { + s_1845493922.Field1[chckIndx(side_1845493920, 0, (s_1845493922.Field1).length - 1)].dna[chckIndx(piece_1845493919, 0, (s_1845493922.Field1[chckIndx(side_1845493920, 0, (s_1845493922.Field1).length - 1)].dna).length - 1)].onEndTurn = nimCopy(null, onEndturn_1845493937, NTI1845493913); } - if (!(((onPromote_1493172407).length == 0))) { - F.line = 109; - s_1493172386.Field1[chckIndx(side_1493172384, 0, (s_1493172386.Field1).length - 1)].dna[chckIndx(piece_1493172383, 0, (s_1493172386.Field1[chckIndx(side_1493172384, 0, (s_1493172386.Field1).length - 1)].dna).length - 1)].onPromote = nimCopy(null, onPromote_1493172407, NTI1493172386); + if (!(((onPromote_1845493943).length == 0))) { + s_1845493922.Field1[chckIndx(side_1845493920, 0, (s_1845493922.Field1).length - 1)].dna[chckIndx(piece_1845493919, 0, (s_1845493922.Field1[chckIndx(side_1845493920, 0, (s_1845493922.Field1).length - 1)].dna).length - 1)].onPromote = nimCopy(null, onPromote_1845493943, NTI1845493922); } - if (!(eqStrings(filePath_1493172411, []))) { - F.line = 110; - s_1493172386.Field1[chckIndx(side_1493172384, 0, (s_1493172386.Field1).length - 1)].dna[chckIndx(piece_1493172383, 0, (s_1493172386.Field1[chckIndx(side_1493172384, 0, (s_1493172386.Field1).length - 1)].dna).length - 1)].filePath = nimCopy(null, filePath_1493172411, NTI33554449); + if (!(eqStrings(filePath_1845493947, []))) { + s_1845493922.Field1[chckIndx(side_1845493920, 0, (s_1845493922.Field1).length - 1)].dna[chckIndx(piece_1845493919, 0, (s_1845493922.Field1[chckIndx(side_1845493920, 0, (s_1845493922.Field1).length - 1)].dna).length - 1)].filePath = nimCopy(null, filePath_1845493947, NTI33554449); } - if (rotate_1493172402) { - F.line = 111; - s_1493172386.Field1[chckIndx(side_1493172384, 0, (s_1493172386.Field1).length - 1)].dna[chckIndx(piece_1493172383, 0, (s_1493172386.Field1[chckIndx(side_1493172384, 0, (s_1493172386.Field1).length - 1)].dna).length - 1)].rotate = true; + if (rotate_1845493938) { + s_1845493922.Field1[chckIndx(side_1845493920, 0, (s_1845493922.Field1).length - 1)].dna[chckIndx(piece_1845493919, 0, (s_1845493922.Field1[chckIndx(side_1845493920, 0, (s_1845493922.Field1).length - 1)].dna).length - 1)].rotate = true; } - if (!((whenTaken_1493172408 == null))) { - F.line = 112; - s_1493172386.Field1[chckIndx(side_1493172384, 0, (s_1493172386.Field1).length - 1)].dna[chckIndx(piece_1493172383, 0, (s_1493172386.Field1[chckIndx(side_1493172384, 0, (s_1493172386.Field1).length - 1)].dna).length - 1)].whenTaken = whenTaken_1493172408; + if (!((whenTaken_1845493944 == null))) { + s_1845493922.Field1[chckIndx(side_1845493920, 0, (s_1845493922.Field1).length - 1)].dna[chckIndx(piece_1845493919, 0, (s_1845493922.Field1[chckIndx(side_1845493920, 0, (s_1845493922.Field1).length - 1)].dna).length - 1)].whenTaken = whenTaken_1845493944; } - if (!((onTake_1493172409 == null))) { - F.line = 113; - s_1493172386.Field1[chckIndx(side_1493172384, 0, (s_1493172386.Field1).length - 1)].dna[chckIndx(piece_1493172383, 0, (s_1493172386.Field1[chckIndx(side_1493172384, 0, (s_1493172386.Field1).length - 1)].dna).length - 1)].onTake = onTake_1493172409; + if (!((onTake_1845493945 == null))) { + s_1845493922.Field1[chckIndx(side_1845493920, 0, (s_1845493922.Field1).length - 1)].dna[chckIndx(piece_1845493919, 0, (s_1845493922.Field1[chckIndx(side_1845493920, 0, (s_1845493922.Field1).length - 1)].dna).length - 1)].onTake = onTake_1845493945; } - if (!((onMove_1493172410 == null))) { - F.line = 114; - s_1493172386.Field1[chckIndx(side_1493172384, 0, (s_1493172386.Field1).length - 1)].dna[chckIndx(piece_1493172383, 0, (s_1493172386.Field1[chckIndx(side_1493172384, 0, (s_1493172386.Field1).length - 1)].dna).length - 1)].onMove = onMove_1493172410; + if (!((onMove_1845493946 == null))) { + s_1845493922.Field1[chckIndx(side_1845493920, 0, (s_1845493922.Field1).length - 1)].dna[chckIndx(piece_1845493919, 0, (s_1845493922.Field1[chckIndx(side_1845493920, 0, (s_1845493922.Field1).length - 1)].dna).length - 1)].onMove = onMove_1845493946; } - framePtr = F.prev; } -function HEX3Aanonymous_1493173041(side_1493173042, __1493173043, b_1493173044, s_1493173045) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 462; - F.filename = "powers.nim"; - change_1493172382(5, side_1493173042, b_1493173044, s_1493173045, [HEX3Aanonymous_1509949640], [HEX3Aanonymous_1509949635], [], false, [], null, null, null, [103,105,114,97,102,102,101,46,115,118,103], false); - framePtr = F.prev; +function HEX3Aanonymous_1845494577(side_1845494578, __1845494579, b_1845494580, s_1845494581) { + change_1845493918(5, side_1845494578, b_1845494580, s_1845494581, [HEX3Aanonymous_1862271176], [HEX3Aanonymous_1862271171], [], false, [], null, null, null, [103,105,114,97,102,102,101,46,115,118,103], false); } -function HEX3Aanonymous_1509949645(board_1509949646, p_1509949647) { - var result_1509949648 = []; +function HEX3Aanonymous_1862271181(board_1862271182, p_1862271183) { + var result_1862271184 = []; - var F = {procname: "extramoves.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/extramoves.nim", line: 0}; - framePtr = F; - F.line = 163; - F.filename = "extramoves.nim"; - var Temporary1 = nimCopy(null, p_1509949647.tile, NTI1224736771); - result_1509949648.push(Temporary1);; - framePtr = F.prev; + var Temporary1 = nimCopy(null, p_1862271183.tile, NTI1476395011); + result_1862271184.push(Temporary1);; - return result_1509949648; + return result_1862271184; } -function HEX5BHEX5DHEX3D_1224737144(b_1224737145, tile_1224737146, newPiece_1224737147) { - var F = {procname: "piece.[]=", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/piece.nim", line: 0}; - framePtr = F; - F.line = 151; - F.filename = "piece.nim"; - b_1224737145[chckIndx(tile_1224737146.Field1, 0, (b_1224737145).length - 1)][chckIndx(tile_1224737146.Field0, 0, (b_1224737145[chckIndx(tile_1224737146.Field1, 0, (b_1224737145).length - 1)]).length - 1)] = nimCopy(b_1224737145[chckIndx(tile_1224737146.Field1, 0, (b_1224737145).length - 1)][chckIndx(tile_1224737146.Field0, 0, (b_1224737145[chckIndx(tile_1224737146.Field1, 0, (b_1224737145).length - 1)]).length - 1)], newPiece_1224737147, NTI1224736794); - framePtr = F.prev; +function HEX5BHEX5DHEX3D_1476395384(b_1476395385, tile_1476395386, newPiece_1476395387) { + b_1476395385[chckIndx(tile_1476395386.Field1, 0, (b_1476395385).length - 1)][chckIndx(tile_1476395386.Field0, 0, (b_1476395385[chckIndx(tile_1476395386.Field1, 0, (b_1476395385).length - 1)]).length - 1)] = nimCopy(b_1476395385[chckIndx(tile_1476395386.Field1, 0, (b_1476395385).length - 1)][chckIndx(tile_1476395386.Field0, 0, (b_1476395385[chckIndx(tile_1476395386.Field1, 0, (b_1476395385).length - 1)]).length - 1)], newPiece_1476395387, NTI1476395034); } -function pieceCopy_1224737660(initial_1224737661, index_1224737662, item_1224737663, color_1224737664, timesMoved_1224737665, piecesTaken_1224737666, tile_1224737667, moves_1224737668, takes_1224737669, onMove_1224737670, onTake_1224737671, whenTaken_1224737672, onEndTurn_1224737677, onPromote_1224737682, promoted_1224737683, filePath_1224737684, colorable_1224737685, rotate_1224737686, drunk_1224737687) { - var result_1224737688 = ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}); +function pieceCopy_1476395900(initial_1476395901, index_1476395902, item_1476395903, color_1476395904, timesMoved_1476395905, piecesTaken_1476395906, tile_1476395907, moves_1476395908, takes_1476395909, onMove_1476395910, onTake_1476395911, whenTaken_1476395912, onEndTurn_1476395917, onPromote_1476395922, promoted_1476395923, filePath_1476395924, colorable_1476395925, rotate_1476395926, drunk_1476395927) { + var result_1476395928 = ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}); - var F = {procname: "piece.pieceCopy", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/piece.nim", line: 0}; - framePtr = F; BeforeRet: { - F.line = 292; - F.filename = "piece.nim"; - result_1224737688 = nimCopy(result_1224737688, {index: index_1224737662, item: item_1224737663, color: color_1224737664, timesMoved: timesMoved_1224737665, piecesTaken: piecesTaken_1224737666, tile: nimCopy(null, tile_1224737667, NTI1224736771), moves: nimCopy(null, moves_1224737668, NTI1224737446), takes: nimCopy(null, takes_1224737669, NTI1224737447), onMove: onMove_1224737670, onTake: onTake_1224737671, whenTaken: whenTaken_1224737672, onEndTurn: nimCopy(null, onEndTurn_1224737677, NTI1224737448), onPromote: nimCopy(null, onPromote_1224737682, NTI1224737453), promoted: promoted_1224737683, filePath: nimCopy(null, filePath_1224737684, NTI33554449), rotate: rotate_1224737686, drunk: drunk_1224737687, colorable: colorable_1224737685, casts: []}, NTI1224736794); + result_1476395928 = nimCopy(result_1476395928, {index: index_1476395902, item: item_1476395903, color: color_1476395904, timesMoved: timesMoved_1476395905, piecesTaken: piecesTaken_1476395906, tile: nimCopy(null, tile_1476395907, NTI1476395011), moves: nimCopy(null, moves_1476395908, NTI1476395686), takes: nimCopy(null, takes_1476395909, NTI1476395687), onMove: onMove_1476395910, onTake: onTake_1476395911, whenTaken: whenTaken_1476395912, onEndTurn: nimCopy(null, onEndTurn_1476395917, NTI1476395688), onPromote: nimCopy(null, onPromote_1476395922, NTI1476395693), promoted: promoted_1476395923, filePath: nimCopy(null, filePath_1476395924, NTI33554449), rotate: rotate_1476395926, drunk: drunk_1476395927, colorable: colorable_1476395925, casts: []}, NTI1476395034); break BeforeRet; }; - framePtr = F.prev; - return result_1224737688; + return result_1476395928; } -function pieceMove_1224737590(p_1224737591, t_1224737592, board_1224737593, state_1224737594) { - var F = {procname: "piece.pieceMove", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/piece.nim", line: 0}; - framePtr = F; - F.line = 243; - F.filename = "piece.nim"; - pieceMove_1224737556(p_1224737591, t_1224737592.tile.Field1, t_1224737592.tile.Field0, board_1224737593, state_1224737594); - framePtr = F.prev; +function pieceMove_1476395830(p_1476395831, t_1476395832, board_1476395833, state_1476395834) { + pieceMove_1476395796(p_1476395831, t_1476395832.tile.Field1, t_1476395832.tile.Field0, board_1476395833, state_1476395834); } -function HEX3Aanonymous_1224737604(taken_1224737605, taker_1224737606, board_1224737607, state_1224737608) { - var result_1224737611 = {Field0: {Field0: 0, Field1: 0}, Field1: false}; +function HEX3Aanonymous_1476395844(taken_1476395845, taker_1476395846, board_1476395847, state_1476395848) { + var result_1476395851 = {Field0: {Field0: 0, Field1: 0}, Field1: false}; - var F = {procname: "piece.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/piece.nim", line: 0}; - framePtr = F; BeforeRet: { - F.line = 258; - F.filename = "piece.nim"; - pieceMove_1224737590(taker_1224737606, taken_1224737605, board_1224737607, state_1224737608); - F.line = 259; - var colontmp__1493178830 = nimCopy(null, taken_1224737605.tile, NTI1224736771); - F.line = 259; - var colontmp__1493178831 = true; - F.line = 259; - result_1224737611 = nimCopy(result_1224737611, {Field0: nimCopy(null, colontmp__1493178830, NTI1224736771), Field1: colontmp__1493178831}, NTI1224737401); + pieceMove_1476395830(taker_1476395846, taken_1476395845, board_1476395847, state_1476395848); + var colontmp__1845500389 = nimCopy(null, taken_1476395845.tile, NTI1476395011); + var colontmp__1845500390 = true; + result_1476395851 = nimCopy(result_1476395851, {Field0: nimCopy(null, colontmp__1845500389, NTI1476395011), Field1: colontmp__1845500390}, NTI1476395641); break BeforeRet; }; - framePtr = F.prev; - return result_1224737611; + return result_1476395851; } -function HEX3Aanonymous_1493173143(taken_1493173144, taker_1493173145, board_1493173146, state_1493173147) { - var result_1493173150 = {Field0: {Field0: 0, Field1: 0}, Field1: false}; +function HEX3Aanonymous_1845494679(taken_1845494680, taker_1845494681, board_1845494682, state_1845494683) { + var result_1845494686 = {Field0: {Field0: 0, Field1: 0}, Field1: false}; - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; BeforeRet: { - if (HEX3DHEX3D_1308622964(taken_1493173144.tile, taker_1493173145.tile)) { + if (HEX3DHEX3D_1560281204(taken_1845494680.tile, taker_1845494681.tile)) { Label1: { - F.line = 552; - F.filename = "powers.nim"; - var i_1493173151 = 0; - F.line = 552; - var j_1493173152 = 0; + var i_1845494687 = 0; + var j_1845494688 = 0; Label2: { - F.line = 124; - F.filename = "piece.nim"; - var i_1493178821 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_1493178822 = 0; + var i_1845500380 = 0; + var i_1845500381 = 0; Label3: { - F.line = 129; Label4: while (true) { - if (!(i_1493178822 < 8)) break Label4; - F.line = 124; - F.filename = "piece.nim"; - i_1493178821 = i_1493178822; + if (!(i_1845500381 < 8)) break Label4; + i_1845500380 = i_1845500381; Label5: { - F.line = 125; - var j_1493178825 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_1493178826 = 0; + var j_1845500384 = 0; + var i_1845500385 = 0; Label6: { - F.line = 129; Label7: while (true) { - if (!(i_1493178826 < 8)) break Label7; - F.line = 125; - F.filename = "piece.nim"; - j_1493178825 = i_1493178826; - F.line = 552; - F.filename = "powers.nim"; - i_1493173151 = i_1493178821; - F.line = 552; - j_1493173152 = j_1493178825; - if ((sameColor_1224737804(board_1493173146[chckIndx(i_1493173151, 0, (board_1493173146).length - 1)][chckIndx(j_1493173152, 0, (board_1493173146[chckIndx(i_1493173151, 0, (board_1493173146).length - 1)]).length - 1)], taken_1493173144) && !(board_1493173146[chckIndx(i_1493173151, 0, (board_1493173146).length - 1)][chckIndx(j_1493173152, 0, (board_1493173146[chckIndx(i_1493173151, 0, (board_1493173146).length - 1)]).length - 1)].promoted))) { + if (!(i_1845500385 < 8)) break Label7; + j_1845500384 = i_1845500385; + i_1845494687 = i_1845500380; + j_1845494688 = j_1845500384; + if ((sameColor_1476396044(board_1845494682[chckIndx(i_1845494687, 0, (board_1845494682).length - 1)][chckIndx(j_1845494688, 0, (board_1845494682[chckIndx(i_1845494687, 0, (board_1845494682).length - 1)]).length - 1)], taken_1845494680) && !(board_1845494682[chckIndx(i_1845494687, 0, (board_1845494682).length - 1)][chckIndx(j_1845494688, 0, (board_1845494682[chckIndx(i_1845494687, 0, (board_1845494682).length - 1)]).length - 1)].promoted))) { Label8: { - F.line = 181; - F.filename = "piece.nim"; - var xHEX60gensym45_1493173157 = null; - F.line = 247; - F.filename = "iterators.nim"; - var colontmp__1493178816 = []; - F.line = 181; - F.filename = "piece.nim"; - colontmp__1493178816 = board_1493173146[chckIndx(i_1493173151, 0, (board_1493173146).length - 1)][chckIndx(j_1493173152, 0, (board_1493173146[chckIndx(i_1493173151, 0, (board_1493173146).length - 1)]).length - 1)].onPromote; - F.line = 249; - F.filename = "iterators.nim"; - var i_1493178817 = 0; - F.line = 250; - var L_1493178818 = (colontmp__1493178816).length; + var xHEX60gensym45_1845494693 = null; + var colontmp__1845500375 = []; + colontmp__1845500375 = board_1845494682[chckIndx(i_1845494687, 0, (board_1845494682).length - 1)][chckIndx(j_1845494688, 0, (board_1845494682[chckIndx(i_1845494687, 0, (board_1845494682).length - 1)]).length - 1)].onPromote; + var i_1845500376 = 0; + var L_1845500377 = (colontmp__1845500375).length; Label9: { - F.line = 251; Label10: while (true) { - if (!(i_1493178817 < L_1493178818)) break Label10; - F.line = 554; - F.filename = "powers.nim"; - xHEX60gensym45_1493173157 = colontmp__1493178816[chckIndx(i_1493178817, 0, (colontmp__1493178816).length - 1)]; - F.line = 182; - F.filename = "piece.nim"; - xHEX60gensym45_1493173157(board_1493173146[chckIndx(i_1493173151, 0, (board_1493173146).length - 1)][chckIndx(j_1493173152, 0, (board_1493173146[chckIndx(i_1493173151, 0, (board_1493173146).length - 1)]).length - 1)], board_1493173146, state_1493173147); - if (board_1493173146[chckIndx(i_1493173151, 0, (board_1493173146).length - 1)][chckIndx(j_1493173152, 0, (board_1493173146[chckIndx(i_1493173151, 0, (board_1493173146).length - 1)]).length - 1)].promoted) { - F.line = 183; + if (!(i_1845500376 < L_1845500377)) break Label10; + xHEX60gensym45_1845494693 = colontmp__1845500375[chckIndx(i_1845500376, 0, (colontmp__1845500375).length - 1)]; + xHEX60gensym45_1845494693(board_1845494682[chckIndx(i_1845494687, 0, (board_1845494682).length - 1)][chckIndx(j_1845494688, 0, (board_1845494682[chckIndx(i_1845494687, 0, (board_1845494682).length - 1)]).length - 1)], board_1845494682, state_1845494683); + if (board_1845494682[chckIndx(i_1845494687, 0, (board_1845494682).length - 1)][chckIndx(j_1845494688, 0, (board_1845494682[chckIndx(i_1845494687, 0, (board_1845494682).length - 1)]).length - 1)].promoted) { break Label8; } - F.line = 13; - F.filename = "iterators.nim"; - i_1493178817 += 1; - if (!(((colontmp__1493178816).length == L_1493178818))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + i_1845500376 += 1; + if (!(((colontmp__1845500375).length == L_1845500377))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } @@ -4755,911 +3505,570 @@ function HEX3Aanonymous_1493173143(taken_1493173144, taker_1493173145, board_149 }; } - F.line = 131; - F.filename = "iterators_1.nim"; - i_1493178826 = addInt(i_1493178826, 1); + i_1845500385 = addInt(i_1845500385, 1); } }; }; - F.line = 131; - i_1493178822 = addInt(i_1493178822, 1); + i_1845500381 = addInt(i_1845500381, 1); } }; }; }; - F.line = 555; - F.filename = "powers.nim"; - HEX5BHEX5DHEX3D_1224737144(board_1493173146, taken_1493173144.tile, pieceCopy_1224737660(air_1275068591, taken_1493173144.index, 6, 1, 0, 0, taken_1493173144.tile, [], [], air_1275068591.onMove, air_1275068591.onTake, air_1275068591.whenTaken, [], [], false, [], true, false, false)); - F.line = 556; - var colontmp__1493178828 = nimCopy(null, taken_1493173144.tile, NTI1224736771); - F.line = 556; - var colontmp__1493178829 = false; - F.line = 556; - result_1493173150 = nimCopy(result_1493173150, {Field0: nimCopy(null, colontmp__1493178828, NTI1224736771), Field1: colontmp__1493178829}, NTI1493173092); + HEX5BHEX5DHEX3D_1476395384(board_1845494682, taken_1845494680.tile, pieceCopy_1476395900(air_1526726831, taken_1845494680.index, 6, 1, 0, 0, taken_1845494680.tile, [], [], air_1526726831.onMove, air_1526726831.onTake, air_1526726831.whenTaken, [], [], false, [], true, false, false)); + var colontmp__1845500387 = nimCopy(null, taken_1845494680.tile, NTI1476395011); + var colontmp__1845500388 = false; + result_1845494686 = nimCopy(result_1845494686, {Field0: nimCopy(null, colontmp__1845500387, NTI1476395011), Field1: colontmp__1845500388}, NTI1845494628); break BeforeRet; } else { - F.line = 558; - result_1493173150 = nimCopy(result_1493173150, HEX3Aanonymous_1224737604(taken_1493173144, taker_1493173145, board_1493173146, state_1493173147), NTI1493173092); + result_1845494686 = nimCopy(result_1845494686, HEX3Aanonymous_1476395844(taken_1845494680, taker_1845494681, board_1845494682, state_1845494683), NTI1845494628); break BeforeRet; } }; - framePtr = F.prev; - return result_1493173150; + return result_1845494686; } -function HEX3Aanonymous_1493173161(side_1493173162, viewSide_1493173163, b_1493173164, s_1493173165) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 569; - F.filename = "powers.nim"; - buff_1493172242(1, side_1493173162, b_1493173164, s_1493173165, [], [HEX3Aanonymous_1509949645], [], false, [], HEX3Aanonymous_1493173143, null, null, false); - framePtr = F.prev; +function HEX3Aanonymous_1845494697(side_1845494698, viewSide_1845494699, b_1845494700, s_1845494701) { + buff_1845493778(1, side_1845494698, b_1845494700, s_1845494701, [], [HEX3Aanonymous_1862271181], [], false, [], HEX3Aanonymous_1845494679, null, null, false); } -function HEX3Aanonymous_1509949531(board_1509949532, p_1509949533) { - var result_1509949534 = [[]]; +function HEX3Aanonymous_1862271067(board_1862271068, p_1862271069) { + var result_1862271070 = [[]]; - var F = {procname: "extramoves.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/extramoves.nim", line: 0}; - framePtr = F; - F.line = 84; - F.filename = "extramoves.nim"; - var next_1509949535 = addIfTake_1291845739(result_1509949534, 0, board_1509949532, p_1509949533, p_1509949533.tile, tileAbove_1308622990, false, false); - if (next_1509949535) { - F.line = 86; - var _ = addIfTake_1291845739(result_1509949534, 0, board_1509949532, p_1509949533, tileAbove_1308622990(p_1509949533.tile), tileAbove_1308622990, false, false); + var next_1862271071 = addIfTake_1543503979(result_1862271070, 0, board_1862271068, p_1862271069, p_1862271069.tile, tileAbove_1560281230, false, false); + if (next_1862271071) { + var _ = addIfTake_1543503979(result_1862271070, 0, board_1862271068, p_1862271069, tileAbove_1560281230(p_1862271069.tile), tileAbove_1560281230, false, false); } - framePtr = F.prev; - return result_1509949534[0]; + return result_1862271070[0]; } -function HEX3Aanonymous_1509949537(board_1509949538, p_1509949539) { - var result_1509949540 = [[]]; +function HEX3Aanonymous_1862271073(board_1862271074, p_1862271075) { + var result_1862271076 = [[]]; - var F = {procname: "extramoves.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/extramoves.nim", line: 0}; - framePtr = F; - F.line = 89; - F.filename = "extramoves.nim"; - var next_1509949541 = addIfTake_1291845739(result_1509949540, 0, board_1509949538, p_1509949539, p_1509949539.tile, tileBelow_1308622993, false, false); - if (next_1509949541) { - F.line = 91; - var _ = addIfTake_1291845739(result_1509949540, 0, board_1509949538, p_1509949539, tileBelow_1308622993(p_1509949539.tile), tileBelow_1308622993, false, false); + var next_1862271077 = addIfTake_1543503979(result_1862271076, 0, board_1862271074, p_1862271075, p_1862271075.tile, tileBelow_1560281233, false, false); + if (next_1862271077) { + var _ = addIfTake_1543503979(result_1862271076, 0, board_1862271074, p_1862271075, tileBelow_1560281233(p_1862271075.tile), tileBelow_1560281233, false, false); } - framePtr = F.prev; - return result_1509949540[0]; + return result_1862271076[0]; } -function HEX3Aanonymous_1493173055(side_1493173056, __1493173057, b_1493173058, s_1493173059) { +function HEX3Aanonymous_1845494591(side_1845494592, __1845494593, b_1845494594, s_1845494595) { var Temporary1; - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 479; - F.filename = "powers.nim"; - if ((side_1493173056 == 1)) { - Temporary1 = HEX3Aanonymous_1509949531; + if ((side_1845494592 == 1)) { + Temporary1 = HEX3Aanonymous_1862271067; } else { - Temporary1 = HEX3Aanonymous_1509949537; + Temporary1 = HEX3Aanonymous_1862271073; } - var addedTake_1493173064 = Temporary1; - F.line = 480; - buff_1493172242(5, side_1493173056, b_1493173058, s_1493173059, [], [addedTake_1493173064], [], false, [], null, null, null, false); - framePtr = F.prev; + var addedTake_1845494600 = Temporary1; + buff_1845493778(5, side_1845494592, b_1845494594, s_1845494595, [], [addedTake_1845494600], [], false, [], null, null, null, false); } -function HEX3Aanonymous_1493173171(side_1493173172, viewSide_1493173173, b_1493173174, s_1493173175) { +function HEX3Aanonymous_1845494707(side_1845494708, viewSide_1845494709, b_1845494710, s_1845494711) { var Temporary1; - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 583; - F.filename = "powers.nim"; - if ((side_1493173172 == 0)) { - Temporary1 = HEX3Aanonymous_1509949509; + if ((side_1845494708 == 0)) { + Temporary1 = HEX3Aanonymous_1862271045; } else { - Temporary1 = HEX3Aanonymous_1509949514; + Temporary1 = HEX3Aanonymous_1862271050; } - var addedMove_1493173180 = Temporary1; - F.line = 584; - buff_1493172242(3, side_1493173172, b_1493173174, s_1493173175, [addedMove_1493173180], [], [], false, [], null, null, null, false); - framePtr = F.prev; + var addedMove_1845494716 = Temporary1; + buff_1845493778(3, side_1845494708, b_1845494710, s_1845494711, [addedMove_1845494716], [], [], false, [], null, null, null, false); } -function HEX3Aanonymous_1509949549(board_1509949550, p_1509949551) { - var result_1509949552 = [[]]; +function HEX3Aanonymous_1862271085(board_1862271086, p_1862271087) { + var result_1862271088 = [[]]; - var F = {procname: "extramoves.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/extramoves.nim", line: 0}; - framePtr = F; - F.line = 99; - F.filename = "extramoves.nim"; - var next_1509949553 = addIfFree_1291845640(result_1509949552, 0, board_1509949550, p_1509949551.tile, tileBelow_1308622993); - if (next_1509949553) { - F.line = 101; - var _ = addIfFree_1291845640(result_1509949552, 0, board_1509949550, tileBelow_1308622993(p_1509949551.tile), tileBelow_1308622993); + var next_1862271089 = addIfFree_1543503880(result_1862271088, 0, board_1862271086, p_1862271087.tile, tileBelow_1560281233); + if (next_1862271089) { + var _ = addIfFree_1543503880(result_1862271088, 0, board_1862271086, tileBelow_1560281233(p_1862271087.tile), tileBelow_1560281233); } - framePtr = F.prev; - return result_1509949552[0]; + return result_1862271088[0]; } -function HEX3Aanonymous_1509949543(board_1509949544, p_1509949545) { - var result_1509949546 = [[]]; +function HEX3Aanonymous_1862271079(board_1862271080, p_1862271081) { + var result_1862271082 = [[]]; - var F = {procname: "extramoves.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/extramoves.nim", line: 0}; - framePtr = F; - F.line = 94; - F.filename = "extramoves.nim"; - var next_1509949547 = addIfFree_1291845640(result_1509949546, 0, board_1509949544, p_1509949545.tile, tileAbove_1308622990); - if (next_1509949547) { - F.line = 96; - var _ = addIfFree_1291845640(result_1509949546, 0, board_1509949544, tileAbove_1308622990(p_1509949545.tile), tileAbove_1308622990); + var next_1862271083 = addIfFree_1543503880(result_1862271082, 0, board_1862271080, p_1862271081.tile, tileAbove_1560281230); + if (next_1862271083) { + var _ = addIfFree_1543503880(result_1862271082, 0, board_1862271080, tileAbove_1560281230(p_1862271081.tile), tileAbove_1560281230); } - framePtr = F.prev; - return result_1509949546[0]; + return result_1862271082[0]; } -function HEX3Aanonymous_1493173186(side_1493173187, viewSide_1493173188, b_1493173189, s_1493173190) { +function HEX3Aanonymous_1845494722(side_1845494723, viewSide_1845494724, b_1845494725, s_1845494726) { var Temporary1; - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 597; - F.filename = "powers.nim"; - if ((side_1493173187 == 0)) { - Temporary1 = HEX3Aanonymous_1509949549; + if ((side_1845494723 == 0)) { + Temporary1 = HEX3Aanonymous_1862271085; } else { - Temporary1 = HEX3Aanonymous_1509949543; + Temporary1 = HEX3Aanonymous_1862271079; } - var addedMove_1493173195 = Temporary1; - F.line = 598; - buff_1493172242(3, side_1493173187, b_1493173189, s_1493173190, [addedMove_1493173195], [], [], false, [], null, null, null, false); - framePtr = F.prev; + var addedMove_1845494731 = Temporary1; + buff_1845493778(3, side_1845494723, b_1845494725, s_1845494726, [addedMove_1845494731], [], [], false, [], null, null, null, false); } -function HEX3Aanonymous_1493173201(side_1493173202, viewSide_1493173203, b_1493173204, __1493173205) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; +function HEX3Aanonymous_1845494737(side_1845494738, viewSide_1845494739, b_1845494740, __1845494741) { Label1: { - F.line = 611; - F.filename = "powers.nim"; - var i_1493173206 = 0; - F.line = 611; - var j_1493173207 = 0; + var i_1845494742 = 0; + var j_1845494743 = 0; Label2: { - F.line = 124; - F.filename = "piece.nim"; - var i_1493178834 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_1493178835 = 0; + var i_1845500393 = 0; + var i_1845500394 = 0; Label3: { - F.line = 129; Label4: while (true) { - if (!(i_1493178835 < 8)) break Label4; - F.line = 124; - F.filename = "piece.nim"; - i_1493178834 = i_1493178835; + if (!(i_1845500394 < 8)) break Label4; + i_1845500393 = i_1845500394; Label5: { - F.line = 125; - var j_1493178838 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_1493178839 = 0; + var j_1845500397 = 0; + var i_1845500398 = 0; Label6: { - F.line = 129; Label7: while (true) { - if (!(i_1493178839 < 8)) break Label7; - F.line = 125; - F.filename = "piece.nim"; - j_1493178838 = i_1493178839; - F.line = 611; - F.filename = "powers.nim"; - i_1493173206 = i_1493178834; - F.line = 611; - j_1493173207 = j_1493178838; - if ((b_1493173204[chckIndx(i_1493173206, 0, (b_1493173204).length - 1)][chckIndx(j_1493173207, 0, (b_1493173204[chckIndx(i_1493173206, 0, (b_1493173204).length - 1)]).length - 1)].item == 1)) { - F.line = 613; - b_1493173204[chckIndx(i_1493173206, 0, (b_1493173204).length - 1)][chckIndx(j_1493173207, 0, (b_1493173204[chckIndx(i_1493173206, 0, (b_1493173204).length - 1)]).length - 1)] = nimCopy(b_1493173204[chckIndx(i_1493173206, 0, (b_1493173204).length - 1)][chckIndx(j_1493173207, 0, (b_1493173204[chckIndx(i_1493173206, 0, (b_1493173204).length - 1)]).length - 1)], pieceCopy_1224737660(air_1275068591, b_1493173204[chckIndx(i_1493173206, 0, (b_1493173204).length - 1)][chckIndx(j_1493173207, 0, (b_1493173204[chckIndx(i_1493173206, 0, (b_1493173204).length - 1)]).length - 1)].index, 6, 1, 0, 0, b_1493173204[chckIndx(i_1493173206, 0, (b_1493173204).length - 1)][chckIndx(j_1493173207, 0, (b_1493173204[chckIndx(i_1493173206, 0, (b_1493173204).length - 1)]).length - 1)].tile, [], [], air_1275068591.onMove, air_1275068591.onTake, air_1275068591.whenTaken, [], [], false, [], true, false, false), NTI1224736794); + if (!(i_1845500398 < 8)) break Label7; + j_1845500397 = i_1845500398; + i_1845494742 = i_1845500393; + j_1845494743 = j_1845500397; + if ((b_1845494740[chckIndx(i_1845494742, 0, (b_1845494740).length - 1)][chckIndx(j_1845494743, 0, (b_1845494740[chckIndx(i_1845494742, 0, (b_1845494740).length - 1)]).length - 1)].item == 1)) { + b_1845494740[chckIndx(i_1845494742, 0, (b_1845494740).length - 1)][chckIndx(j_1845494743, 0, (b_1845494740[chckIndx(i_1845494742, 0, (b_1845494740).length - 1)]).length - 1)] = nimCopy(b_1845494740[chckIndx(i_1845494742, 0, (b_1845494740).length - 1)][chckIndx(j_1845494743, 0, (b_1845494740[chckIndx(i_1845494742, 0, (b_1845494740).length - 1)]).length - 1)], pieceCopy_1476395900(air_1526726831, b_1845494740[chckIndx(i_1845494742, 0, (b_1845494740).length - 1)][chckIndx(j_1845494743, 0, (b_1845494740[chckIndx(i_1845494742, 0, (b_1845494740).length - 1)]).length - 1)].index, 6, 1, 0, 0, b_1845494740[chckIndx(i_1845494742, 0, (b_1845494740).length - 1)][chckIndx(j_1845494743, 0, (b_1845494740[chckIndx(i_1845494742, 0, (b_1845494740).length - 1)]).length - 1)].tile, [], [], air_1526726831.onMove, air_1526726831.onTake, air_1526726831.whenTaken, [], [], false, [], true, false, false), NTI1476395034); } - F.line = 131; - F.filename = "iterators_1.nim"; - i_1493178839 = addInt(i_1493178839, 1); + i_1845500398 = addInt(i_1845500398, 1); } }; }; - F.line = 131; - i_1493178835 = addInt(i_1493178835, 1); + i_1845500394 = addInt(i_1845500394, 1); } }; }; }; - framePtr = F.prev; } -function lineMoves_1291845813(board_1291845814, p_1291845815, shoot_1291845816) { - var result_1291845817 = [[]]; +function lineMoves_1543504053(board_1543504054, p_1543504055, shoot_1543504056) { + var result_1543504057 = [[]]; - var F = {procname: "moves.lineMoves", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/moves.nim", line: 0}; - framePtr = F; - F.line = 36; - F.filename = "moves.nim"; - var next_1291845818 = nimCopy(null, p_1291845815.tile, NTI1224736771); + var next_1543504058 = nimCopy(null, p_1543504055.tile, NTI1476395011); Label1: { - F.line = 37; Label2: while (true) { - if (!addIfFree_1291845640(result_1291845817, 0, board_1291845814, next_1291845818, shoot_1291845816)) break Label2; - F.line = 38; - next_1291845818 = nimCopy(next_1291845818, shoot_1291845816(next_1291845818), NTI1224736771); + if (!addIfFree_1543503880(result_1543504057, 0, board_1543504054, next_1543504058, shoot_1543504056)) break Label2; + next_1543504058 = nimCopy(next_1543504058, shoot_1543504056(next_1543504058), NTI1476395011); } }; - framePtr = F.prev; - return result_1291845817[0]; + return result_1543504057[0]; } -function HEX3Aanonymous_1291846030(board_1291846031, p_1291846032) { - var result_1291846033 = [[]]; +function HEX3Aanonymous_1543504270(board_1543504271, p_1543504272) { + var result_1543504273 = [[]]; - var F = {procname: "moves.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/moves.nim", line: 0}; - framePtr = F; - F.line = 150; - F.filename = "moves.nim"; - add_1224737298(result_1291846033, 0, lineMoves_1291845813(board_1291846031, p_1291846032, shooterFactory_1308622968(1, 1))); - F.line = 151; - add_1224737298(result_1291846033, 0, lineMoves_1291845813(board_1291846031, p_1291846032, shooterFactory_1308622968((-1), 1))); - F.line = 152; - add_1224737298(result_1291846033, 0, lineMoves_1291845813(board_1291846031, p_1291846032, shooterFactory_1308622968(1, (-1)))); - F.line = 153; - add_1224737298(result_1291846033, 0, lineMoves_1291845813(board_1291846031, p_1291846032, shooterFactory_1308622968((-1), (-1)))); - framePtr = F.prev; + add_1476395538(result_1543504273, 0, lineMoves_1543504053(board_1543504271, p_1543504272, shooterFactory_1560281208(1, 1))); + add_1476395538(result_1543504273, 0, lineMoves_1543504053(board_1543504271, p_1543504272, shooterFactory_1560281208((-1), 1))); + add_1476395538(result_1543504273, 0, lineMoves_1543504053(board_1543504271, p_1543504272, shooterFactory_1560281208(1, (-1)))); + add_1476395538(result_1543504273, 0, lineMoves_1543504053(board_1543504271, p_1543504272, shooterFactory_1560281208((-1), (-1)))); - return result_1291846033[0]; + return result_1543504273[0]; } -function HEX3Aanonymous_1291845988(board_1291845989, p_1291845990) { - var result_1291845991 = [[]]; +function HEX3Aanonymous_1543504228(board_1543504229, p_1543504230) { + var result_1543504231 = [[]]; - var F = {procname: "moves.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/moves.nim", line: 0}; - framePtr = F; - F.line = 138; - F.filename = "moves.nim"; - add_1224737298(result_1291845991, 0, lineMoves_1291845813(board_1291845989, p_1291845990, tileAbove_1308622990)); - F.line = 139; - add_1224737298(result_1291845991, 0, lineMoves_1291845813(board_1291845989, p_1291845990, tileBelow_1308622993)); - F.line = 140; - add_1224737298(result_1291845991, 0, lineMoves_1291845813(board_1291845989, p_1291845990, tileLeft_1308622996)); - F.line = 141; - add_1224737298(result_1291845991, 0, lineMoves_1291845813(board_1291845989, p_1291845990, tileRight_1308622999)); - framePtr = F.prev; + add_1476395538(result_1543504231, 0, lineMoves_1543504053(board_1543504229, p_1543504230, tileAbove_1560281230)); + add_1476395538(result_1543504231, 0, lineMoves_1543504053(board_1543504229, p_1543504230, tileBelow_1560281233)); + add_1476395538(result_1543504231, 0, lineMoves_1543504053(board_1543504229, p_1543504230, tileLeft_1560281236)); + add_1476395538(result_1543504231, 0, lineMoves_1543504053(board_1543504229, p_1543504230, tileRight_1560281239)); - return result_1291845991[0]; + return result_1543504231[0]; } -function HEX3Aanonymous_1291845865(board_1291845866, p_1291845867) { - var result_1291845868 = [[]]; +function HEX3Aanonymous_1543504105(board_1543504106, p_1543504107) { + var result_1543504108 = [[]]; - var F = {procname: "moves.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/moves.nim", line: 0}; - framePtr = F; Label1: { - F.line = 90; - F.filename = "moves.nim"; - var i_1291845873 = 0; - F.line = 96; - F.filename = "iterators_1.nim"; - var res_1493178855 = (-1); + var i_1543504113 = 0; + var res_1845500414 = (-1); Label2: { - F.line = 97; Label3: while (true) { - if (!(res_1493178855 <= 1)) break Label3; - F.line = 90; - F.filename = "moves.nim"; - i_1291845873 = res_1493178855; + if (!(res_1845500414 <= 1)) break Label3; + i_1543504113 = res_1845500414; Label4: { - F.line = 91; - var j_1291845878 = 0; - F.line = 96; - F.filename = "iterators_1.nim"; - var res_1493178853 = (-1); + var j_1543504118 = 0; + var res_1845500412 = (-1); Label5: { - F.line = 97; Label6: while (true) { - if (!(res_1493178853 <= 1)) break Label6; - F.line = 91; - F.filename = "moves.nim"; - j_1291845878 = res_1493178853; - F.line = 92; - var _ = addIfFree_1291845640(result_1291845868, 0, board_1291845866, p_1291845867.tile, shooterFactory_1308622968(i_1291845873, j_1291845878)); - F.line = 102; - F.filename = "iterators_1.nim"; - res_1493178853 = addInt(res_1493178853, 1); + if (!(res_1845500412 <= 1)) break Label6; + j_1543504118 = res_1845500412; + var _ = addIfFree_1543503880(result_1543504108, 0, board_1543504106, p_1543504107.tile, shooterFactory_1560281208(i_1543504113, j_1543504118)); + res_1845500412 = addInt(res_1845500412, 1); } }; }; - F.line = 102; - res_1493178855 = addInt(res_1493178855, 1); + res_1845500414 = addInt(res_1845500414, 1); } }; }; - framePtr = F.prev; - return result_1291845868[0]; + return result_1543504108[0]; } -function HEX3Aanonymous_1291846051(board_1291846052, p_1291846053) { - var result_1291846054 = [[]]; +function HEX3Aanonymous_1543504291(board_1543504292, p_1543504293) { + var result_1543504294 = [[]]; - var F = {procname: "moves.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/moves.nim", line: 0}; - framePtr = F; - F.line = 156; - F.filename = "moves.nim"; - add_1224737298(result_1291846054, 0, lineTakes_1291845819(board_1291846052, p_1291846053, shooterFactory_1308622968(1, 1), false, false)); - F.line = 157; - add_1224737298(result_1291846054, 0, lineTakes_1291845819(board_1291846052, p_1291846053, shooterFactory_1308622968((-1), 1), false, false)); - F.line = 158; - add_1224737298(result_1291846054, 0, lineTakes_1291845819(board_1291846052, p_1291846053, shooterFactory_1308622968(1, (-1)), false, false)); - F.line = 159; - add_1224737298(result_1291846054, 0, lineTakes_1291845819(board_1291846052, p_1291846053, shooterFactory_1308622968((-1), (-1)), false, false)); - framePtr = F.prev; + add_1476395538(result_1543504294, 0, lineTakes_1543504059(board_1543504292, p_1543504293, shooterFactory_1560281208(1, 1), false, false)); + add_1476395538(result_1543504294, 0, lineTakes_1543504059(board_1543504292, p_1543504293, shooterFactory_1560281208((-1), 1), false, false)); + add_1476395538(result_1543504294, 0, lineTakes_1543504059(board_1543504292, p_1543504293, shooterFactory_1560281208(1, (-1)), false, false)); + add_1476395538(result_1543504294, 0, lineTakes_1543504059(board_1543504292, p_1543504293, shooterFactory_1560281208((-1), (-1)), false, false)); - return result_1291846054[0]; + return result_1543504294[0]; } -function HEX3Aanonymous_1291846009(board_1291846010, p_1291846011) { - var result_1291846012 = [[]]; +function HEX3Aanonymous_1543504249(board_1543504250, p_1543504251) { + var result_1543504252 = [[]]; - var F = {procname: "moves.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/moves.nim", line: 0}; - framePtr = F; - F.line = 144; - F.filename = "moves.nim"; - add_1224737298(result_1291846012, 0, lineTakes_1291845819(board_1291846010, p_1291846011, tileAbove_1308622990, false, false)); - F.line = 145; - add_1224737298(result_1291846012, 0, lineTakes_1291845819(board_1291846010, p_1291846011, tileBelow_1308622993, false, false)); - F.line = 146; - add_1224737298(result_1291846012, 0, lineTakes_1291845819(board_1291846010, p_1291846011, tileLeft_1308622996, false, false)); - F.line = 147; - add_1224737298(result_1291846012, 0, lineTakes_1291845819(board_1291846010, p_1291846011, tileRight_1308622999, false, false)); - framePtr = F.prev; + add_1476395538(result_1543504252, 0, lineTakes_1543504059(board_1543504250, p_1543504251, tileAbove_1560281230, false, false)); + add_1476395538(result_1543504252, 0, lineTakes_1543504059(board_1543504250, p_1543504251, tileBelow_1560281233, false, false)); + add_1476395538(result_1543504252, 0, lineTakes_1543504059(board_1543504250, p_1543504251, tileLeft_1560281236, false, false)); + add_1476395538(result_1543504252, 0, lineTakes_1543504059(board_1543504250, p_1543504251, tileRight_1560281239, false, false)); - return result_1291846012[0]; + return result_1543504252[0]; } -function HEX3Aanonymous_1291845880(board_1291845881, p_1291845882) { - var result_1291845883 = [[]]; +function HEX3Aanonymous_1543504120(board_1543504121, p_1543504122) { + var result_1543504123 = [[]]; - var F = {procname: "moves.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/moves.nim", line: 0}; - framePtr = F; Label1: { - F.line = 95; - F.filename = "moves.nim"; - var i_1291845888 = 0; - F.line = 96; - F.filename = "iterators_1.nim"; - var res_1493178861 = (-1); + var i_1543504128 = 0; + var res_1845500420 = (-1); Label2: { - F.line = 97; Label3: while (true) { - if (!(res_1493178861 <= 1)) break Label3; - F.line = 95; - F.filename = "moves.nim"; - i_1291845888 = res_1493178861; + if (!(res_1845500420 <= 1)) break Label3; + i_1543504128 = res_1845500420; Label4: { - F.line = 96; - var j_1291845893 = 0; - F.line = 96; - F.filename = "iterators_1.nim"; - var res_1493178859 = (-1); + var j_1543504133 = 0; + var res_1845500418 = (-1); Label5: { - F.line = 97; Label6: while (true) { - if (!(res_1493178859 <= 1)) break Label6; - F.line = 96; - F.filename = "moves.nim"; - j_1291845893 = res_1493178859; - F.line = 97; - var _ = addIfTake_1291845739(result_1291845883, 0, board_1291845881, p_1291845882, p_1291845882.tile, shooterFactory_1308622968(i_1291845888, j_1291845893), false, false); - F.line = 102; - F.filename = "iterators_1.nim"; - res_1493178859 = addInt(res_1493178859, 1); + if (!(res_1845500418 <= 1)) break Label6; + j_1543504133 = res_1845500418; + var _ = addIfTake_1543503979(result_1543504123, 0, board_1543504121, p_1543504122, p_1543504122.tile, shooterFactory_1560281208(i_1543504128, j_1543504133), false, false); + res_1845500418 = addInt(res_1845500418, 1); } }; }; - F.line = 102; - res_1493178861 = addInt(res_1493178861, 1); + res_1845500420 = addInt(res_1845500420, 1); } }; }; - framePtr = F.prev; - return result_1291845883[0]; + return result_1543504123[0]; } -function pieceMove_1224737580(p_1224737581, t_1224737582, board_1224737583, state_1224737584) { - var F = {procname: "piece.pieceMove", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/piece.nim", line: 0}; - framePtr = F; - F.line = 237; - F.filename = "piece.nim"; - pieceMove_1224737556(p_1224737581, t_1224737582.Field1, t_1224737582.Field0, board_1224737583, state_1224737584); - framePtr = F.prev; +function pieceMove_1476395820(p_1476395821, t_1476395822, board_1476395823, state_1476395824) { + pieceMove_1476395796(p_1476395821, t_1476395822.Field1, t_1476395822.Field0, board_1476395823, state_1476395824); } -function HEX3Aanonymous_1224737631(piece_1224737632, to_1224737633, b_1224737634, state_1224737635) { - var F = {procname: "piece.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/piece.nim", line: 0}; - framePtr = F; - F.line = 262; - F.filename = "piece.nim"; - piece_1224737632.timesMoved = addInt(piece_1224737632.timesMoved, 1); - F.line = 263; - pieceMove_1224737580(piece_1224737632, to_1224737633, b_1224737634, state_1224737635); - framePtr = F.prev; +function HEX3Aanonymous_1476395871(piece_1476395872, to_1476395873, b_1476395874, state_1476395875) { + piece_1476395872.timesMoved = addInt(piece_1476395872.timesMoved, 1); + pieceMove_1476395820(piece_1476395872, to_1476395873, b_1476395874, state_1476395875); } -function HEX3Aanonymous_1224737642(piece_1224737643, taking_1224737644, board_1224737645, state_1224737646) { - var F = {procname: "piece.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/piece.nim", line: 0}; - framePtr = F; - F.line = 266; - F.filename = "piece.nim"; - piece_1224737643.timesMoved = addInt(piece_1224737643.timesMoved, 1); - F.line = 267; - var takeResult_1224737652 = board_1224737645[chckIndx(taking_1224737644.Field1, 0, (board_1224737645).length - 1)][chckIndx(taking_1224737644.Field0, 0, (board_1224737645[chckIndx(taking_1224737644.Field1, 0, (board_1224737645).length - 1)]).length - 1)].whenTaken(board_1224737645[chckIndx(taking_1224737644.Field1, 0, (board_1224737645).length - 1)][chckIndx(taking_1224737644.Field0, 0, (board_1224737645[chckIndx(taking_1224737644.Field1, 0, (board_1224737645).length - 1)]).length - 1)], piece_1224737643, board_1224737645, state_1224737646); - if (takeResult_1224737652.Field1) { - F.line = 269; - board_1224737645[chckIndx(takeResult_1224737652.Field0.Field1, 0, (board_1224737645).length - 1)][chckIndx(takeResult_1224737652.Field0.Field0, 0, (board_1224737645[chckIndx(takeResult_1224737652.Field0.Field1, 0, (board_1224737645).length - 1)]).length - 1)].piecesTaken = addInt(board_1224737645[chckIndx(takeResult_1224737652.Field0.Field1, 0, (board_1224737645).length - 1)][chckIndx(takeResult_1224737652.Field0.Field0, 0, (board_1224737645[chckIndx(takeResult_1224737652.Field0.Field1, 0, (board_1224737645).length - 1)]).length - 1)].piecesTaken, 1); +function HEX3Aanonymous_1476395882(piece_1476395883, taking_1476395884, board_1476395885, state_1476395886) { + piece_1476395883.timesMoved = addInt(piece_1476395883.timesMoved, 1); + var takeResult_1476395892 = board_1476395885[chckIndx(taking_1476395884.Field1, 0, (board_1476395885).length - 1)][chckIndx(taking_1476395884.Field0, 0, (board_1476395885[chckIndx(taking_1476395884.Field1, 0, (board_1476395885).length - 1)]).length - 1)].whenTaken(board_1476395885[chckIndx(taking_1476395884.Field1, 0, (board_1476395885).length - 1)][chckIndx(taking_1476395884.Field0, 0, (board_1476395885[chckIndx(taking_1476395884.Field1, 0, (board_1476395885).length - 1)]).length - 1)], piece_1476395883, board_1476395885, state_1476395886); + if (takeResult_1476395892.Field1) { + board_1476395885[chckIndx(takeResult_1476395892.Field0.Field1, 0, (board_1476395885).length - 1)][chckIndx(takeResult_1476395892.Field0.Field0, 0, (board_1476395885[chckIndx(takeResult_1476395892.Field0.Field1, 0, (board_1476395885).length - 1)]).length - 1)].piecesTaken = addInt(board_1476395885[chckIndx(takeResult_1476395892.Field0.Field1, 0, (board_1476395885).length - 1)][chckIndx(takeResult_1476395892.Field0.Field0, 0, (board_1476395885[chckIndx(takeResult_1476395892.Field0.Field1, 0, (board_1476395885).length - 1)]).length - 1)].piecesTaken, 1); } - framePtr = F.prev; } -function HEX3Aanonymous_1493173247(side_1493173248, viewSide_1493173249, b_1493173250, __1493173251) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; +function HEX3Aanonymous_1845494783(side_1845494784, viewSide_1845494785, b_1845494786, __1845494787) { Label1: { - F.line = 651; - F.filename = "powers.nim"; - var i_1493173252 = 0; - F.line = 651; - var j_1493173253 = 0; + var i_1845494788 = 0; + var j_1845494789 = 0; Label2: { - F.line = 124; - F.filename = "piece.nim"; - var i_1493178843 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_1493178844 = 0; + var i_1845500402 = 0; + var i_1845500403 = 0; Label3: { - F.line = 129; Label4: while (true) { - if (!(i_1493178844 < 8)) break Label4; - F.line = 124; - F.filename = "piece.nim"; - i_1493178843 = i_1493178844; + if (!(i_1845500403 < 8)) break Label4; + i_1845500402 = i_1845500403; Label5: { - F.line = 125; - var j_1493178847 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_1493178848 = 0; + var j_1845500406 = 0; + var i_1845500407 = 0; Label6: { - F.line = 129; Label7: while (true) { - if (!(i_1493178848 < 8)) break Label7; - F.line = 125; - F.filename = "piece.nim"; - j_1493178847 = i_1493178848; - F.line = 651; - F.filename = "powers.nim"; - i_1493173252 = i_1493178843; - F.line = 651; - j_1493173253 = j_1493178847; - if (((b_1493173250[chckIndx(i_1493173252, 0, (b_1493173250).length - 1)][chckIndx(j_1493173253, 0, (b_1493173250[chckIndx(i_1493173252, 0, (b_1493173250).length - 1)]).length - 1)].item == 0) && isColor_1224737813(b_1493173250[chckIndx(i_1493173252, 0, (b_1493173250).length - 1)][chckIndx(j_1493173253, 0, (b_1493173250[chckIndx(i_1493173252, 0, (b_1493173250).length - 1)]).length - 1)], side_1493173248))) { - F.line = 653; - b_1493173250[chckIndx(i_1493173252, 0, (b_1493173250).length - 1)][chckIndx(j_1493173253, 0, (b_1493173250[chckIndx(i_1493173252, 0, (b_1493173250).length - 1)]).length - 1)] = nimCopy(b_1493173250[chckIndx(i_1493173252, 0, (b_1493173250).length - 1)][chckIndx(j_1493173253, 0, (b_1493173250[chckIndx(i_1493173252, 0, (b_1493173250).length - 1)]).length - 1)], pieceCopy_1224737660(whiteQueen_1275068556, b_1493173250[chckIndx(i_1493173252, 0, (b_1493173250).length - 1)][chckIndx(j_1493173253, 0, (b_1493173250[chckIndx(i_1493173252, 0, (b_1493173250).length - 1)]).length - 1)].index, 0, b_1493173250[chckIndx(i_1493173252, 0, (b_1493173250).length - 1)][chckIndx(j_1493173253, 0, (b_1493173250[chckIndx(i_1493173252, 0, (b_1493173250).length - 1)]).length - 1)].color, 0, 0, b_1493173250[chckIndx(i_1493173252, 0, (b_1493173250).length - 1)][chckIndx(j_1493173253, 0, (b_1493173250[chckIndx(i_1493173252, 0, (b_1493173250).length - 1)]).length - 1)].tile, whiteQueen_1275068556.moves, whiteQueen_1275068556.takes, HEX3Aanonymous_1224737631, HEX3Aanonymous_1224737642, HEX3Aanonymous_1224737604, whiteQueen_1275068556.onEndTurn, whiteQueen_1275068556.onPromote, false, [113,117,101,101,110,46,115,118,103], true, true, false), NTI1224736794); + if (!(i_1845500407 < 8)) break Label7; + j_1845500406 = i_1845500407; + i_1845494788 = i_1845500402; + j_1845494789 = j_1845500406; + if (((b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)][chckIndx(j_1845494789, 0, (b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)]).length - 1)].item == 0) && isColor_1476396053(b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)][chckIndx(j_1845494789, 0, (b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)]).length - 1)], side_1845494784))) { + b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)][chckIndx(j_1845494789, 0, (b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)]).length - 1)] = nimCopy(b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)][chckIndx(j_1845494789, 0, (b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)]).length - 1)], pieceCopy_1476395900(whiteQueen_1526726796, b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)][chckIndx(j_1845494789, 0, (b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)]).length - 1)].index, 0, b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)][chckIndx(j_1845494789, 0, (b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)]).length - 1)].color, 0, 0, b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)][chckIndx(j_1845494789, 0, (b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)]).length - 1)].tile, whiteQueen_1526726796.moves, whiteQueen_1526726796.takes, HEX3Aanonymous_1476395871, HEX3Aanonymous_1476395882, HEX3Aanonymous_1476395844, whiteQueen_1526726796.onEndTurn, whiteQueen_1526726796.onPromote, false, [113,117,101,101,110,46,115,118,103], true, true, false), NTI1476395034); } else { - if (((b_1493173250[chckIndx(i_1493173252, 0, (b_1493173250).length - 1)][chckIndx(j_1493173253, 0, (b_1493173250[chckIndx(i_1493173252, 0, (b_1493173250).length - 1)]).length - 1)].item == 2) && isColor_1224737813(b_1493173250[chckIndx(i_1493173252, 0, (b_1493173250).length - 1)][chckIndx(j_1493173253, 0, (b_1493173250[chckIndx(i_1493173252, 0, (b_1493173250).length - 1)]).length - 1)], side_1493173248))) { - F.line = 657; - b_1493173250[chckIndx(i_1493173252, 0, (b_1493173250).length - 1)][chckIndx(j_1493173253, 0, (b_1493173250[chckIndx(i_1493173252, 0, (b_1493173250).length - 1)]).length - 1)] = nimCopy(b_1493173250[chckIndx(i_1493173252, 0, (b_1493173250).length - 1)][chckIndx(j_1493173253, 0, (b_1493173250[chckIndx(i_1493173252, 0, (b_1493173250).length - 1)]).length - 1)], pieceCopy_1224737660(air_1275068591, b_1493173250[chckIndx(i_1493173252, 0, (b_1493173250).length - 1)][chckIndx(j_1493173253, 0, (b_1493173250[chckIndx(i_1493173252, 0, (b_1493173250).length - 1)]).length - 1)].index, 6, 1, 0, 0, b_1493173250[chckIndx(i_1493173252, 0, (b_1493173250).length - 1)][chckIndx(j_1493173253, 0, (b_1493173250[chckIndx(i_1493173252, 0, (b_1493173250).length - 1)]).length - 1)].tile, [], [], air_1275068591.onMove, air_1275068591.onTake, air_1275068591.whenTaken, [], [], false, [], true, false, false), NTI1224736794); + if (((b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)][chckIndx(j_1845494789, 0, (b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)]).length - 1)].item == 2) && isColor_1476396053(b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)][chckIndx(j_1845494789, 0, (b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)]).length - 1)], side_1845494784))) { + b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)][chckIndx(j_1845494789, 0, (b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)]).length - 1)] = nimCopy(b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)][chckIndx(j_1845494789, 0, (b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)]).length - 1)], pieceCopy_1476395900(air_1526726831, b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)][chckIndx(j_1845494789, 0, (b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)]).length - 1)].index, 6, 1, 0, 0, b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)][chckIndx(j_1845494789, 0, (b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)]).length - 1)].tile, [], [], air_1526726831.onMove, air_1526726831.onTake, air_1526726831.whenTaken, [], [], false, [], true, false, false), NTI1476395034); } } - F.line = 131; - F.filename = "iterators_1.nim"; - i_1493178848 = addInt(i_1493178848, 1); + i_1845500407 = addInt(i_1845500407, 1); } }; }; - F.line = 131; - i_1493178844 = addInt(i_1493178844, 1); + i_1845500403 = addInt(i_1845500403, 1); } }; }; }; - framePtr = F.prev; } -function HEX3Aanonymous_1493173386(side_1493173387, viewSide_1493173388, b_1493173389, s_1493173390) { +function HEX3Aanonymous_1845494922(side_1845494923, viewSide_1845494924, b_1845494925, s_1845494926) { var Temporary1; - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 732; - F.filename = "powers.nim"; - if ((side_1493173387 == 1)) { + if ((side_1845494923 == 1)) { Temporary1 = (-3); } else { Temporary1 = 3; } - var offset_1493173395 = Temporary1; + var offset_1845494931 = Temporary1; Label2: { - F.line = 733; - var i_1493173396 = 0; - F.line = 733; - var j_1493173397 = 0; + var i_1845494932 = 0; + var j_1845494933 = 0; Label3: { - F.line = 124; - F.filename = "piece.nim"; - var i_1493178865 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_1493178866 = 0; + var i_1845500424 = 0; + var i_1845500425 = 0; Label4: { - F.line = 129; Label5: while (true) { - if (!(i_1493178866 < 8)) break Label5; - F.line = 124; - F.filename = "piece.nim"; - i_1493178865 = i_1493178866; + if (!(i_1845500425 < 8)) break Label5; + i_1845500424 = i_1845500425; Label6: { - F.line = 125; - var j_1493178869 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_1493178870 = 0; + var j_1845500428 = 0; + var i_1845500429 = 0; Label7: { - F.line = 129; Label8: while (true) { - if (!(i_1493178870 < 8)) break Label8; - F.line = 125; - F.filename = "piece.nim"; - j_1493178869 = i_1493178870; - F.line = 733; - F.filename = "powers.nim"; - i_1493173396 = i_1493178865; - F.line = 733; - j_1493173397 = j_1493178869; - if ((((b_1493173389[chckIndx(i_1493173396, 0, (b_1493173389).length - 1)][chckIndx(j_1493173397, 0, (b_1493173389[chckIndx(i_1493173396, 0, (b_1493173389).length - 1)]).length - 1)].item == 5) && isColor_1224737813(b_1493173389[chckIndx(i_1493173396, 0, (b_1493173389).length - 1)][chckIndx(j_1493173397, 0, (b_1493173389[chckIndx(i_1493173396, 0, (b_1493173389).length - 1)]).length - 1)], side_1493173387)) && (b_1493173389[chckIndx(i_1493173396, 0, (b_1493173389).length - 1)][chckIndx(j_1493173397, 0, (b_1493173389[chckIndx(i_1493173396, 0, (b_1493173389).length - 1)]).length - 1)].timesMoved == 0))) { - F.line = 735; - b_1493173389[chckIndx(i_1493173396, 0, (b_1493173389).length - 1)][chckIndx(j_1493173397, 0, (b_1493173389[chckIndx(i_1493173396, 0, (b_1493173389).length - 1)]).length - 1)].timesMoved = addInt(b_1493173389[chckIndx(i_1493173396, 0, (b_1493173389).length - 1)][chckIndx(j_1493173397, 0, (b_1493173389[chckIndx(i_1493173396, 0, (b_1493173389).length - 1)]).length - 1)].timesMoved, 1); - F.line = 736; - pieceMove_1224737556(b_1493173389[chckIndx(i_1493173396, 0, (b_1493173389).length - 1)][chckIndx(j_1493173397, 0, (b_1493173389[chckIndx(i_1493173396, 0, (b_1493173389).length - 1)]).length - 1)], addInt(i_1493173396, offset_1493173395), j_1493173397, b_1493173389, s_1493173390); + if (!(i_1845500429 < 8)) break Label8; + j_1845500428 = i_1845500429; + i_1845494932 = i_1845500424; + j_1845494933 = j_1845500428; + if ((((b_1845494925[chckIndx(i_1845494932, 0, (b_1845494925).length - 1)][chckIndx(j_1845494933, 0, (b_1845494925[chckIndx(i_1845494932, 0, (b_1845494925).length - 1)]).length - 1)].item == 5) && isColor_1476396053(b_1845494925[chckIndx(i_1845494932, 0, (b_1845494925).length - 1)][chckIndx(j_1845494933, 0, (b_1845494925[chckIndx(i_1845494932, 0, (b_1845494925).length - 1)]).length - 1)], side_1845494923)) && (b_1845494925[chckIndx(i_1845494932, 0, (b_1845494925).length - 1)][chckIndx(j_1845494933, 0, (b_1845494925[chckIndx(i_1845494932, 0, (b_1845494925).length - 1)]).length - 1)].timesMoved == 0))) { + b_1845494925[chckIndx(i_1845494932, 0, (b_1845494925).length - 1)][chckIndx(j_1845494933, 0, (b_1845494925[chckIndx(i_1845494932, 0, (b_1845494925).length - 1)]).length - 1)].timesMoved = addInt(b_1845494925[chckIndx(i_1845494932, 0, (b_1845494925).length - 1)][chckIndx(j_1845494933, 0, (b_1845494925[chckIndx(i_1845494932, 0, (b_1845494925).length - 1)]).length - 1)].timesMoved, 1); + pieceMove_1476395796(b_1845494925[chckIndx(i_1845494932, 0, (b_1845494925).length - 1)][chckIndx(j_1845494933, 0, (b_1845494925[chckIndx(i_1845494932, 0, (b_1845494925).length - 1)]).length - 1)], addInt(i_1845494932, offset_1845494931), j_1845494933, b_1845494925, s_1845494926); } - F.line = 131; - F.filename = "iterators_1.nim"; - i_1493178870 = addInt(i_1493178870, 1); + i_1845500429 = addInt(i_1845500429, 1); } }; }; - F.line = 131; - i_1493178866 = addInt(i_1493178866, 1); + i_1845500425 = addInt(i_1845500425, 1); } }; }; }; - framePtr = F.prev; - - -} - -function HEX3Aanonymous_1509949691(board_1509949692, p_1509949693) { - var result_1509949694 = [[]]; - - var F = {procname: "extramoves.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/extramoves.nim", line: 0}; - framePtr = F; - F.line = 176; - F.filename = "extramoves.nim"; - add_1224737298(result_1509949694, 0, lineMoves_1291845813(board_1509949692, p_1509949693, shooterFactory_1308622968(1, 2))); - F.line = 177; - add_1224737298(result_1509949694, 0, lineMoves_1291845813(board_1509949692, p_1509949693, shooterFactory_1308622968((-1), 2))); - F.line = 178; - add_1224737298(result_1509949694, 0, lineMoves_1291845813(board_1509949692, p_1509949693, shooterFactory_1308622968(2, 1))); - F.line = 179; - add_1224737298(result_1509949694, 0, lineMoves_1291845813(board_1509949692, p_1509949693, shooterFactory_1308622968(2, (-1)))); - F.line = 180; - add_1224737298(result_1509949694, 0, lineMoves_1291845813(board_1509949692, p_1509949693, shooterFactory_1308622968(1, (-2)))); - F.line = 181; - add_1224737298(result_1509949694, 0, lineMoves_1291845813(board_1509949692, p_1509949693, shooterFactory_1308622968((-1), (-2)))); - F.line = 182; - add_1224737298(result_1509949694, 0, lineMoves_1291845813(board_1509949692, p_1509949693, shooterFactory_1308622968((-2), 1))); - F.line = 183; - add_1224737298(result_1509949694, 0, lineMoves_1291845813(board_1509949692, p_1509949693, shooterFactory_1308622968((-2), (-1)))); - framePtr = F.prev; - - return result_1509949694[0]; - -} - -function HEX3Aanonymous_1509949654(board_1509949655, p_1509949656) { - var result_1509949657 = [[]]; - - var F = {procname: "extramoves.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/extramoves.nim", line: 0}; - framePtr = F; - F.line = 166; - F.filename = "extramoves.nim"; - add_1224737298(result_1509949657, 0, lineTakes_1291845819(board_1509949655, p_1509949656, shooterFactory_1308622968(1, 2), false, true)); - F.line = 167; - add_1224737298(result_1509949657, 0, lineTakes_1291845819(board_1509949655, p_1509949656, shooterFactory_1308622968((-1), 2), false, true)); - F.line = 168; - add_1224737298(result_1509949657, 0, lineTakes_1291845819(board_1509949655, p_1509949656, shooterFactory_1308622968(2, 1), false, true)); - F.line = 169; - add_1224737298(result_1509949657, 0, lineTakes_1291845819(board_1509949655, p_1509949656, shooterFactory_1308622968(2, (-1)), false, true)); - F.line = 170; - add_1224737298(result_1509949657, 0, lineTakes_1291845819(board_1509949655, p_1509949656, shooterFactory_1308622968(1, (-2)), false, true)); - F.line = 171; - add_1224737298(result_1509949657, 0, lineTakes_1291845819(board_1509949655, p_1509949656, shooterFactory_1308622968((-1), (-2)), false, true)); - F.line = 172; - add_1224737298(result_1509949657, 0, lineTakes_1291845819(board_1509949655, p_1509949656, shooterFactory_1308622968((-2), 1), false, true)); - F.line = 173; - add_1224737298(result_1509949657, 0, lineTakes_1291845819(board_1509949655, p_1509949656, shooterFactory_1308622968((-2), (-1)), false, true)); - framePtr = F.prev; - - return result_1509949657[0]; - -} - -function HEX3Aanonymous_1493173499(side_1493173500, viewSide_1493173501, b_1493173502, __1493173503) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; + + +} + +function HEX3Aanonymous_1862271227(board_1862271228, p_1862271229) { + var result_1862271230 = [[]]; + + add_1476395538(result_1862271230, 0, lineMoves_1543504053(board_1862271228, p_1862271229, shooterFactory_1560281208(1, 2))); + add_1476395538(result_1862271230, 0, lineMoves_1543504053(board_1862271228, p_1862271229, shooterFactory_1560281208((-1), 2))); + add_1476395538(result_1862271230, 0, lineMoves_1543504053(board_1862271228, p_1862271229, shooterFactory_1560281208(2, 1))); + add_1476395538(result_1862271230, 0, lineMoves_1543504053(board_1862271228, p_1862271229, shooterFactory_1560281208(2, (-1)))); + add_1476395538(result_1862271230, 0, lineMoves_1543504053(board_1862271228, p_1862271229, shooterFactory_1560281208(1, (-2)))); + add_1476395538(result_1862271230, 0, lineMoves_1543504053(board_1862271228, p_1862271229, shooterFactory_1560281208((-1), (-2)))); + add_1476395538(result_1862271230, 0, lineMoves_1543504053(board_1862271228, p_1862271229, shooterFactory_1560281208((-2), 1))); + add_1476395538(result_1862271230, 0, lineMoves_1543504053(board_1862271228, p_1862271229, shooterFactory_1560281208((-2), (-1)))); + + return result_1862271230[0]; + +} + +function HEX3Aanonymous_1862271190(board_1862271191, p_1862271192) { + var result_1862271193 = [[]]; + + add_1476395538(result_1862271193, 0, lineTakes_1543504059(board_1862271191, p_1862271192, shooterFactory_1560281208(1, 2), false, true)); + add_1476395538(result_1862271193, 0, lineTakes_1543504059(board_1862271191, p_1862271192, shooterFactory_1560281208((-1), 2), false, true)); + add_1476395538(result_1862271193, 0, lineTakes_1543504059(board_1862271191, p_1862271192, shooterFactory_1560281208(2, 1), false, true)); + add_1476395538(result_1862271193, 0, lineTakes_1543504059(board_1862271191, p_1862271192, shooterFactory_1560281208(2, (-1)), false, true)); + add_1476395538(result_1862271193, 0, lineTakes_1543504059(board_1862271191, p_1862271192, shooterFactory_1560281208(1, (-2)), false, true)); + add_1476395538(result_1862271193, 0, lineTakes_1543504059(board_1862271191, p_1862271192, shooterFactory_1560281208((-1), (-2)), false, true)); + add_1476395538(result_1862271193, 0, lineTakes_1543504059(board_1862271191, p_1862271192, shooterFactory_1560281208((-2), 1), false, true)); + add_1476395538(result_1862271193, 0, lineTakes_1543504059(board_1862271191, p_1862271192, shooterFactory_1560281208((-2), (-1)), false, true)); + + return result_1862271193[0]; + +} + +function HEX3Aanonymous_1845495035(side_1845495036, viewSide_1845495037, b_1845495038, __1845495039) { Label1: { - F.line = 822; - F.filename = "powers.nim"; - var i_1493173504 = 0; - F.line = 822; - var j_1493173505 = 0; + var i_1845495040 = 0; + var j_1845495041 = 0; Label2: { - F.line = 124; - F.filename = "piece.nim"; - var i_1493178874 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_1493178875 = 0; + var i_1845500433 = 0; + var i_1845500434 = 0; Label3: { - F.line = 129; Label4: while (true) { - if (!(i_1493178875 < 8)) break Label4; - F.line = 124; - F.filename = "piece.nim"; - i_1493178874 = i_1493178875; + if (!(i_1845500434 < 8)) break Label4; + i_1845500433 = i_1845500434; Label5: { - F.line = 125; - var j_1493178878 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_1493178879 = 0; + var j_1845500437 = 0; + var i_1845500438 = 0; Label6: { - F.line = 129; Label7: while (true) { - if (!(i_1493178879 < 8)) break Label7; - F.line = 125; - F.filename = "piece.nim"; - j_1493178878 = i_1493178879; - F.line = 822; - F.filename = "powers.nim"; - i_1493173504 = i_1493178874; - F.line = 822; - j_1493173505 = j_1493178878; - if (((b_1493173502[chckIndx(i_1493173504, 0, (b_1493173502).length - 1)][chckIndx(j_1493173505, 0, (b_1493173502[chckIndx(i_1493173504, 0, (b_1493173502).length - 1)]).length - 1)].item == 5) && isColor_1224737813(b_1493173502[chckIndx(i_1493173504, 0, (b_1493173502).length - 1)][chckIndx(j_1493173505, 0, (b_1493173502[chckIndx(i_1493173504, 0, (b_1493173502).length - 1)]).length - 1)], side_1493173500))) { - F.line = 824; - b_1493173502[chckIndx(i_1493173504, 0, (b_1493173502).length - 1)][chckIndx(j_1493173505, 0, (b_1493173502[chckIndx(i_1493173504, 0, (b_1493173502).length - 1)]).length - 1)].moves.push(HEX3Aanonymous_1509949691);; - F.line = 825; - b_1493173502[chckIndx(i_1493173504, 0, (b_1493173502).length - 1)][chckIndx(j_1493173505, 0, (b_1493173502[chckIndx(i_1493173504, 0, (b_1493173502).length - 1)]).length - 1)].takes.push(HEX3Aanonymous_1509949654);; - F.line = 826; - b_1493173502[chckIndx(i_1493173504, 0, (b_1493173502).length - 1)][chckIndx(j_1493173505, 0, (b_1493173502[chckIndx(i_1493173504, 0, (b_1493173502).length - 1)]).length - 1)].item = 7; - F.line = 827; - b_1493173502[chckIndx(i_1493173504, 0, (b_1493173502).length - 1)][chckIndx(j_1493173505, 0, (b_1493173502[chckIndx(i_1493173504, 0, (b_1493173502).length - 1)]).length - 1)].filePath = nimCopy(null, [110,105,103,104,116,114,105,100,101,114,46,115,118,103], NTI33554449); + if (!(i_1845500438 < 8)) break Label7; + j_1845500437 = i_1845500438; + i_1845495040 = i_1845500433; + j_1845495041 = j_1845500437; + if (((b_1845495038[chckIndx(i_1845495040, 0, (b_1845495038).length - 1)][chckIndx(j_1845495041, 0, (b_1845495038[chckIndx(i_1845495040, 0, (b_1845495038).length - 1)]).length - 1)].item == 5) && isColor_1476396053(b_1845495038[chckIndx(i_1845495040, 0, (b_1845495038).length - 1)][chckIndx(j_1845495041, 0, (b_1845495038[chckIndx(i_1845495040, 0, (b_1845495038).length - 1)]).length - 1)], side_1845495036))) { + b_1845495038[chckIndx(i_1845495040, 0, (b_1845495038).length - 1)][chckIndx(j_1845495041, 0, (b_1845495038[chckIndx(i_1845495040, 0, (b_1845495038).length - 1)]).length - 1)].moves.push(HEX3Aanonymous_1862271227);; + b_1845495038[chckIndx(i_1845495040, 0, (b_1845495038).length - 1)][chckIndx(j_1845495041, 0, (b_1845495038[chckIndx(i_1845495040, 0, (b_1845495038).length - 1)]).length - 1)].takes.push(HEX3Aanonymous_1862271190);; + b_1845495038[chckIndx(i_1845495040, 0, (b_1845495038).length - 1)][chckIndx(j_1845495041, 0, (b_1845495038[chckIndx(i_1845495040, 0, (b_1845495038).length - 1)]).length - 1)].item = 7; + b_1845495038[chckIndx(i_1845495040, 0, (b_1845495038).length - 1)][chckIndx(j_1845495041, 0, (b_1845495038[chckIndx(i_1845495040, 0, (b_1845495038).length - 1)]).length - 1)].filePath = nimCopy(null, [110,105,103,104,116,114,105,100,101,114,46,115,118,103], NTI33554449); } - F.line = 131; - F.filename = "iterators_1.nim"; - i_1493178879 = addInt(i_1493178879, 1); + i_1845500438 = addInt(i_1845500438, 1); } }; }; - F.line = 131; - i_1493178875 = addInt(i_1493178875, 1); + i_1845500434 = addInt(i_1845500434, 1); } }; }; }; - framePtr = F.prev; } -function HEX3Aanonymous_1493173519(side_1493173520, viewSide_1493173521, b_1493173522, s_1493173523) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 838; - F.filename = "powers.nim"; - buff_1493172242(2, side_1493173520, b_1493173522, s_1493173523, [HEX3Aanonymous_1509949475], [HEX3Aanonymous_1509949504], [], false, [], null, null, null, false); - framePtr = F.prev; +function HEX3Aanonymous_1845495055(side_1845495056, viewSide_1845495057, b_1845495058, s_1845495059) { + buff_1845493778(2, side_1845495056, b_1845495058, s_1845495059, [HEX3Aanonymous_1862271011], [HEX3Aanonymous_1862271040], [], false, [], null, null, null, false); } -function HEX3Aanonymous_1275068592(piece_1275068593, board_1275068594, state_1275068595) { - var F = {procname: "basePieces.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/basePieces.nim", line: 0}; - framePtr = F; - F.line = 63; - F.filename = "basePieces.nim"; - F.line = 63; - var HEX3Atmp_1275068596 = nimCopy(null, state_1275068595.Field1[chckIndx(piece_1275068593.color, 0, (state_1275068595.Field1).length - 1)].dna[chckIndx(1, 0, (state_1275068595.Field1[chckIndx(piece_1275068593.color, 0, (state_1275068595.Field1).length - 1)].dna).length - 1)], NTI1224736794); - piece_1275068593 = nimCopy(piece_1275068593, pieceCopy_1224737660(HEX3Atmp_1275068596, piece_1275068593.index, HEX3Atmp_1275068596.item, piece_1275068593.color, piece_1275068593.timesMoved, piece_1275068593.piecesTaken, piece_1275068593.tile, HEX3Atmp_1275068596.moves, HEX3Atmp_1275068596.takes, HEX3Atmp_1275068596.onMove, HEX3Atmp_1275068596.onTake, HEX3Atmp_1275068596.whenTaken, HEX3Atmp_1275068596.onEndTurn, HEX3Atmp_1275068596.onPromote, true, [113,117,101,101,110,46,115,118,103], HEX3Atmp_1275068596.colorable, HEX3Atmp_1275068596.rotate, HEX3Atmp_1275068596.drunk), NTI1224736794); - framePtr = F.prev; +function HEX3Aanonymous_1526726832(piece_1526726833, board_1526726834, state_1526726835) { + var HEX3Atmp_1526726836 = nimCopy(null, state_1526726835.Field1[chckIndx(piece_1526726833.color, 0, (state_1526726835.Field1).length - 1)].dna[chckIndx(1, 0, (state_1526726835.Field1[chckIndx(piece_1526726833.color, 0, (state_1526726835.Field1).length - 1)].dna).length - 1)], NTI1476395034); + piece_1526726833 = nimCopy(piece_1526726833, pieceCopy_1476395900(HEX3Atmp_1526726836, piece_1526726833.index, HEX3Atmp_1526726836.item, piece_1526726833.color, piece_1526726833.timesMoved, piece_1526726833.piecesTaken, piece_1526726833.tile, HEX3Atmp_1526726836.moves, HEX3Atmp_1526726836.takes, HEX3Atmp_1526726836.onMove, HEX3Atmp_1526726836.onTake, HEX3Atmp_1526726836.whenTaken, HEX3Atmp_1526726836.onEndTurn, HEX3Atmp_1526726836.onPromote, true, [113,117,101,101,110,46,115,118,103], HEX3Atmp_1526726836.colorable, HEX3Atmp_1526726836.rotate, HEX3Atmp_1526726836.drunk), NTI1476395034); } -function HEX3Aanonymous_1493173560(taken_1493173561, taker_1493173562, board_1493173563, state_1493173564) { - var result_1493173567 = {Field0: {Field0: 0, Field1: 0}, Field1: false}; +function HEX3Aanonymous_1845495096(taken_1845495097, taker_1845495098, board_1845495099, state_1845495100) { + var result_1845495103 = {Field0: {Field0: 0, Field1: 0}, Field1: false}; - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; BeforeRet: { - if ((((((taker_1493173562.item == 0) && (taken_1493173561.item == 4)) && sameColor_1224737804(taken_1493173561, taker_1493173562)) && (taker_1493173562.timesMoved == 1)) && (taken_1493173561.timesMoved == 0))) { - F.line = 873; - F.filename = "powers.nim"; - state_1493173564.Field1[chckIndx(taken_1493173561.color, 0, (state_1493173564.Field1).length - 1)].hasCastled = true; + if ((((((taker_1845495098.item == 0) && (taken_1845495097.item == 4)) && sameColor_1476396044(taken_1845495097, taker_1845495098)) && (taker_1845495098.timesMoved == 1)) && (taken_1845495097.timesMoved == 0))) { + state_1845495100.Field1[chckIndx(taken_1845495097.color, 0, (state_1845495100.Field1).length - 1)].hasCastled = true; Label1: { - F.line = 181; - F.filename = "piece.nim"; - var xHEX60gensym54_1493173580 = null; - F.line = 249; - F.filename = "iterators.nim"; - var i_1493178882 = 0; - F.line = 250; - var L_1493178883 = (taken_1493173561.onPromote).length; + var xHEX60gensym54_1845495116 = null; + var i_1845500441 = 0; + var L_1845500442 = (taken_1845495097.onPromote).length; Label2: { - F.line = 251; Label3: while (true) { - if (!(i_1493178882 < L_1493178883)) break Label3; - F.line = 874; - F.filename = "powers.nim"; - xHEX60gensym54_1493173580 = taken_1493173561.onPromote[chckIndx(i_1493178882, 0, (taken_1493173561.onPromote).length - 1)]; - F.line = 182; - F.filename = "piece.nim"; - xHEX60gensym54_1493173580(taken_1493173561, board_1493173563, state_1493173564); - if (taken_1493173561.promoted) { - F.line = 183; + if (!(i_1845500441 < L_1845500442)) break Label3; + xHEX60gensym54_1845495116 = taken_1845495097.onPromote[chckIndx(i_1845500441, 0, (taken_1845495097.onPromote).length - 1)]; + xHEX60gensym54_1845495116(taken_1845495097, board_1845495099, state_1845495100); + if (taken_1845495097.promoted) { break Label1; } - F.line = 13; - F.filename = "iterators.nim"; - i_1493178882 += 1; - if (!(((taken_1493173561.onPromote).length == L_1493178883))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + i_1845500441 += 1; + if (!(((taken_1845495097.onPromote).length == L_1845500442))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - F.line = 875; - F.filename = "powers.nim"; - var kingTile_1493173581 = nimCopy(null, taker_1493173562.tile, NTI1224736771); - if ((taken_1493173561.tile.Field0 == 0)) { - F.line = 877; - pieceMove_1224737556(taker_1493173562, kingTile_1493173581.Field1, subInt(kingTile_1493173581.Field0, 2), board_1493173563, state_1493173564); - F.line = 878; - pieceMove_1224737556(taken_1493173561, kingTile_1493173581.Field1, subInt(kingTile_1493173581.Field0, 1), board_1493173563, state_1493173564); - F.line = 879; - var colontmp__1493178885 = {Field0: subInt(kingTile_1493173581.Field0, 1), Field1: kingTile_1493173581.Field1}; - F.line = 879; - var colontmp__1493178886 = false; - F.line = 879; - result_1493173567 = nimCopy(result_1493173567, {Field0: nimCopy(null, colontmp__1493178885, NTI1224736771), Field1: colontmp__1493178886}, NTI1493173477); + var kingTile_1845495117 = nimCopy(null, taker_1845495098.tile, NTI1476395011); + if ((taken_1845495097.tile.Field0 == 0)) { + pieceMove_1476395796(taker_1845495098, kingTile_1845495117.Field1, subInt(kingTile_1845495117.Field0, 2), board_1845495099, state_1845495100); + pieceMove_1476395796(taken_1845495097, kingTile_1845495117.Field1, subInt(kingTile_1845495117.Field0, 1), board_1845495099, state_1845495100); + var colontmp__1845500444 = {Field0: subInt(kingTile_1845495117.Field0, 1), Field1: kingTile_1845495117.Field1}; + var colontmp__1845500445 = false; + result_1845495103 = nimCopy(result_1845495103, {Field0: nimCopy(null, colontmp__1845500444, NTI1476395011), Field1: colontmp__1845500445}, NTI1845495013); break BeforeRet; } else { - F.line = 881; - pieceMove_1224737556(taker_1493173562, kingTile_1493173581.Field1, addInt(kingTile_1493173581.Field0, 2), board_1493173563, state_1493173564); - F.line = 882; - pieceMove_1224737556(taken_1493173561, kingTile_1493173581.Field1, addInt(kingTile_1493173581.Field0, 1), board_1493173563, state_1493173564); - F.line = 883; - var colontmp__1493178887 = {Field0: addInt(kingTile_1493173581.Field0, 1), Field1: kingTile_1493173581.Field1}; - F.line = 883; - var colontmp__1493178888 = false; - F.line = 883; - result_1493173567 = nimCopy(result_1493173567, {Field0: nimCopy(null, colontmp__1493178887, NTI1224736771), Field1: colontmp__1493178888}, NTI1493173477); + pieceMove_1476395796(taker_1845495098, kingTile_1845495117.Field1, addInt(kingTile_1845495117.Field0, 2), board_1845495099, state_1845495100); + pieceMove_1476395796(taken_1845495097, kingTile_1845495117.Field1, addInt(kingTile_1845495117.Field0, 1), board_1845495099, state_1845495100); + var colontmp__1845500446 = {Field0: addInt(kingTile_1845495117.Field0, 1), Field1: kingTile_1845495117.Field1}; + var colontmp__1845500447 = false; + result_1845495103 = nimCopy(result_1845495103, {Field0: nimCopy(null, colontmp__1845500446, NTI1476395011), Field1: colontmp__1845500447}, NTI1845495013); break BeforeRet; } } else { - F.line = 885; - result_1493173567 = nimCopy(result_1493173567, HEX3Aanonymous_1224737604(taken_1493173561, taker_1493173562, board_1493173563, state_1493173564), NTI1493173477); + result_1845495103 = nimCopy(result_1845495103, HEX3Aanonymous_1476395844(taken_1845495097, taker_1845495098, board_1845495099, state_1845495100), NTI1845495013); break BeforeRet; } }; - framePtr = F.prev; - return result_1493173567; + return result_1845495103; } -function HEX3Aanonymous_1493173585(side_1493173586, __1493173587, b_1493173588, s_1493173589) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 895; - F.filename = "powers.nim"; - buff_1493172242(4, side_1493173586, b_1493173588, s_1493173589, [], [], [], false, [HEX3Aanonymous_1275068592], HEX3Aanonymous_1493173560, null, null, false); - framePtr = F.prev; +function HEX3Aanonymous_1845495121(side_1845495122, __1845495123, b_1845495124, s_1845495125) { + buff_1845493778(4, side_1845495122, b_1845495124, s_1845495125, [], [], [], false, [HEX3Aanonymous_1526726832], HEX3Aanonymous_1845495096, null, null, false); } -function HEX5BHEX5D_1224737124(b_1224737125, tile_1224737126) { - var result_1224737127 = null; +function HEX5BHEX5D_1476395364(b_1476395365, tile_1476395366) { + var result_1476395367 = null; - var F = {procname: "piece.[]", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/piece.nim", line: 0}; - framePtr = F; BeforeRet: { - F.line = 147; - F.filename = "piece.nim"; - result_1224737127 = b_1224737125[chckIndx(tile_1224737126.Field1, 0, (b_1224737125).length - 1)][chckIndx(tile_1224737126.Field0, 0, (b_1224737125[chckIndx(tile_1224737126.Field1, 0, (b_1224737125).length - 1)]).length - 1)]; + result_1476395367 = b_1476395365[chckIndx(tile_1476395366.Field1, 0, (b_1476395365).length - 1)][chckIndx(tile_1476395366.Field0, 0, (b_1476395365[chckIndx(tile_1476395366.Field1, 0, (b_1476395365).length - 1)]).length - 1)]; break BeforeRet; }; - framePtr = F.prev; - return result_1224737127; + return result_1476395367; } @@ -5669,331 +4078,201 @@ function raiseDivByZero() { } -function applyTransforms_1224737751(piece_1224737752, board_1224737753, state_1224737754) { - var F = {procname: "piece.applyTransforms", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/piece.nim", line: 0}; - framePtr = F; +function applyTransforms_1476395991(piece_1476395992, board_1476395993, state_1476395994) { Label1: { - F.line = 298; - F.filename = "piece.nim"; - var t_1224737777 = null; - F.line = 247; - F.filename = "iterators.nim"; - var colontmp__1493178890 = []; - F.line = 298; - F.filename = "piece.nim"; - colontmp__1493178890 = state_1224737754.Field1[chckIndx(piece_1224737752.color, 0, (state_1224737754.Field1).length - 1)].transforms[chckIndx(piece_1224737752.item, 0, (state_1224737754.Field1[chckIndx(piece_1224737752.color, 0, (state_1224737754.Field1).length - 1)].transforms).length - 1)]; - F.line = 249; - F.filename = "iterators.nim"; - var i_1493178891 = 0; - F.line = 250; - var L_1493178892 = (colontmp__1493178890).length; + var t_1476396017 = null; + var colontmp__1845500449 = []; + colontmp__1845500449 = state_1476395994.Field1[chckIndx(piece_1476395992.color, 0, (state_1476395994.Field1).length - 1)].transforms[chckIndx(piece_1476395992.item, 0, (state_1476395994.Field1[chckIndx(piece_1476395992.color, 0, (state_1476395994.Field1).length - 1)].transforms).length - 1)]; + var i_1845500450 = 0; + var L_1845500451 = (colontmp__1845500449).length; Label2: { - F.line = 251; Label3: while (true) { - if (!(i_1493178891 < L_1493178892)) break Label3; - F.line = 298; - F.filename = "piece.nim"; - t_1224737777 = colontmp__1493178890[chckIndx(i_1493178891, 0, (colontmp__1493178890).length - 1)]; - F.line = 299; - t_1224737777(piece_1224737752, board_1224737753, state_1224737754); - F.line = 13; - F.filename = "iterators.nim"; - i_1493178891 += 1; - if (!(((colontmp__1493178890).length == L_1493178892))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + if (!(i_1845500450 < L_1845500451)) break Label3; + t_1476396017 = colontmp__1845500449[chckIndx(i_1845500450, 0, (colontmp__1845500449).length - 1)]; + t_1476396017(piece_1476395992, board_1476395993, state_1476395994); + i_1845500450 += 1; + if (!(((colontmp__1845500449).length == L_1845500451))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - framePtr = F.prev; } -function HEX3Aanonymous_1493173595(piece_1493173596, to_1493173597, board_1493173598, state_1493173599) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 902; - F.filename = "powers.nim"; - var takeResults_1493173600 = board_1493173598[chckIndx(to_1493173597.Field1, 0, (board_1493173598).length - 1)][chckIndx(to_1493173597.Field0, 0, (board_1493173598[chckIndx(to_1493173597.Field1, 0, (board_1493173598).length - 1)]).length - 1)].whenTaken(board_1493173598[chckIndx(to_1493173597.Field1, 0, (board_1493173598).length - 1)][chckIndx(to_1493173597.Field0, 0, (board_1493173598[chckIndx(to_1493173597.Field1, 0, (board_1493173598).length - 1)]).length - 1)], piece_1493173596, board_1493173598, state_1493173599); - F.line = 903; - var originalRookTile_1493173601 = nimCopy(null, piece_1493173596.tile, NTI1224736771); - F.line = 904; - HEX5BHEX5D_1224737124(board_1493173598, takeResults_1493173600.Field0).timesMoved = addInt(HEX5BHEX5D_1224737124(board_1493173598, takeResults_1493173600.Field0).timesMoved, 1); - if (takeResults_1493173600.Field1) { - F.line = 907; - HEX5BHEX5D_1224737124(board_1493173598, takeResults_1493173600.Field0).piecesTaken = addInt(HEX5BHEX5D_1224737124(board_1493173598, takeResults_1493173600.Field0).piecesTaken, 1); - if ((modInt(HEX5BHEX5D_1224737124(board_1493173598, takeResults_1493173600.Field0).piecesTaken, 2) == 0)) { - F.line = 909; - F.line = 910; - var HEX3Atmp_1493173610 = nimCopy(null, state_1493173599.Field1[chckIndx(piece_1493173596.color, 0, (state_1493173599.Field1).length - 1)].dna[chckIndx(3, 0, (state_1493173599.Field1[chckIndx(piece_1493173596.color, 0, (state_1493173599.Field1).length - 1)].dna).length - 1)], NTI1224736794); - HEX5BHEX5DHEX3D_1224737144(board_1493173598, originalRookTile_1493173601, pieceCopy_1224737660(HEX3Atmp_1493173610, newIndex_1224737255(state_1493173599), HEX3Atmp_1493173610.item, HEX3Atmp_1493173610.color, HEX3Atmp_1493173610.timesMoved, HEX3Atmp_1493173610.piecesTaken, originalRookTile_1493173601, HEX3Atmp_1493173610.moves, HEX3Atmp_1493173610.takes, HEX3Atmp_1493173610.onMove, HEX3Atmp_1493173610.onTake, HEX3Atmp_1493173610.whenTaken, HEX3Atmp_1493173610.onEndTurn, HEX3Atmp_1493173610.onPromote, HEX3Atmp_1493173610.promoted, HEX3Atmp_1493173610.filePath, HEX3Atmp_1493173610.colorable, HEX3Atmp_1493173610.rotate, HEX3Atmp_1493173610.drunk)); - F.line = 911; - applyTransforms_1224737751(HEX5BHEX5D_1224737124(board_1493173598, originalRookTile_1493173601), board_1493173598, state_1493173599); +function HEX3Aanonymous_1845495131(piece_1845495132, to_1845495133, board_1845495134, state_1845495135) { + var takeResults_1845495136 = board_1845495134[chckIndx(to_1845495133.Field1, 0, (board_1845495134).length - 1)][chckIndx(to_1845495133.Field0, 0, (board_1845495134[chckIndx(to_1845495133.Field1, 0, (board_1845495134).length - 1)]).length - 1)].whenTaken(board_1845495134[chckIndx(to_1845495133.Field1, 0, (board_1845495134).length - 1)][chckIndx(to_1845495133.Field0, 0, (board_1845495134[chckIndx(to_1845495133.Field1, 0, (board_1845495134).length - 1)]).length - 1)], piece_1845495132, board_1845495134, state_1845495135); + var originalRookTile_1845495137 = nimCopy(null, piece_1845495132.tile, NTI1476395011); + HEX5BHEX5D_1476395364(board_1845495134, takeResults_1845495136.Field0).timesMoved = addInt(HEX5BHEX5D_1476395364(board_1845495134, takeResults_1845495136.Field0).timesMoved, 1); + if (takeResults_1845495136.Field1) { + HEX5BHEX5D_1476395364(board_1845495134, takeResults_1845495136.Field0).piecesTaken = addInt(HEX5BHEX5D_1476395364(board_1845495134, takeResults_1845495136.Field0).piecesTaken, 1); + if ((modInt(HEX5BHEX5D_1476395364(board_1845495134, takeResults_1845495136.Field0).piecesTaken, 2) == 0)) { + var HEX3Atmp_1845495146 = nimCopy(null, state_1845495135.Field1[chckIndx(piece_1845495132.color, 0, (state_1845495135.Field1).length - 1)].dna[chckIndx(3, 0, (state_1845495135.Field1[chckIndx(piece_1845495132.color, 0, (state_1845495135.Field1).length - 1)].dna).length - 1)], NTI1476395034); + HEX5BHEX5DHEX3D_1476395384(board_1845495134, originalRookTile_1845495137, pieceCopy_1476395900(HEX3Atmp_1845495146, newIndex_1476395495(state_1845495135), HEX3Atmp_1845495146.item, HEX3Atmp_1845495146.color, HEX3Atmp_1845495146.timesMoved, HEX3Atmp_1845495146.piecesTaken, originalRookTile_1845495137, HEX3Atmp_1845495146.moves, HEX3Atmp_1845495146.takes, HEX3Atmp_1845495146.onMove, HEX3Atmp_1845495146.onTake, HEX3Atmp_1845495146.whenTaken, HEX3Atmp_1845495146.onEndTurn, HEX3Atmp_1845495146.onPromote, HEX3Atmp_1845495146.promoted, HEX3Atmp_1845495146.filePath, HEX3Atmp_1845495146.colorable, HEX3Atmp_1845495146.rotate, HEX3Atmp_1845495146.drunk)); + applyTransforms_1476395991(HEX5BHEX5D_1476395364(board_1845495134, originalRookTile_1845495137), board_1845495134, state_1845495135); } } - framePtr = F.prev; } -function HEX3Aanonymous_1493173614(side_1493173615, __1493173616, b_1493173617, s_1493173618) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 921; - F.filename = "powers.nim"; - buff_1493172242(4, side_1493173615, b_1493173617, s_1493173618, [], [], [], false, [], null, HEX3Aanonymous_1493173595, null, false); - framePtr = F.prev; +function HEX3Aanonymous_1845495150(side_1845495151, __1845495152, b_1845495153, s_1845495154) { + buff_1845493778(4, side_1845495151, b_1845495153, s_1845495154, [], [], [], false, [], null, HEX3Aanonymous_1845495131, null, false); } -function HEX3Aanonymous_1509949733(board_1509949734, p_1509949735) { - var result_1509949736 = [[]]; +function HEX3Aanonymous_1862271269(board_1862271270, p_1862271271) { + var result_1862271272 = [[]]; - var F = {procname: "extramoves.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/extramoves.nim", line: 0}; - framePtr = F; - F.line = 190; - F.filename = "extramoves.nim"; - var _ = addIfTake_1291845739(result_1509949736, 0, board_1509949734, p_1509949735, p_1509949735.tile, shooterFactory_1308622968(0, 1), false, false); - F.line = 191; - var _ = addIfTake_1291845739(result_1509949736, 0, board_1509949734, p_1509949735, p_1509949735.tile, shooterFactory_1308622968(0, 2), false, false); - framePtr = F.prev; + var _ = addIfTake_1543503979(result_1862271272, 0, board_1862271270, p_1862271271, p_1862271271.tile, shooterFactory_1560281208(0, 1), false, false); + var _ = addIfTake_1543503979(result_1862271272, 0, board_1862271270, p_1862271271, p_1862271271.tile, shooterFactory_1560281208(0, 2), false, false); - return result_1509949736[0]; + return result_1862271272[0]; } -function HEX3Aanonymous_1509949743(board_1509949744, p_1509949745) { - var result_1509949746 = [[]]; +function HEX3Aanonymous_1862271279(board_1862271280, p_1862271281) { + var result_1862271282 = [[]]; - var F = {procname: "extramoves.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/extramoves.nim", line: 0}; - framePtr = F; - F.line = 198; - F.filename = "extramoves.nim"; - var _ = addIfTake_1291845739(result_1509949746, 0, board_1509949744, p_1509949745, p_1509949745.tile, shooterFactory_1308622968(0, (-1)), false, false); - F.line = 199; - var _ = addIfTake_1291845739(result_1509949746, 0, board_1509949744, p_1509949745, p_1509949745.tile, shooterFactory_1308622968(0, (-2)), false, false); - framePtr = F.prev; + var _ = addIfTake_1543503979(result_1862271282, 0, board_1862271280, p_1862271281, p_1862271281.tile, shooterFactory_1560281208(0, (-1)), false, false); + var _ = addIfTake_1543503979(result_1862271282, 0, board_1862271280, p_1862271281, p_1862271281.tile, shooterFactory_1560281208(0, (-2)), false, false); - return result_1509949746[0]; + return result_1862271282[0]; } -function pieceMove_1224737585(p_1224737586, t_1224737587, board_1224737588, state_1224737589) { - var F = {procname: "piece.pieceMove", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/piece.nim", line: 0}; - framePtr = F; - F.line = 240; - F.filename = "piece.nim"; - pieceMove_1224737556(board_1224737588[chckIndx(p_1224737586.Field1, 0, (board_1224737588).length - 1)][chckIndx(p_1224737586.Field0, 0, (board_1224737588[chckIndx(p_1224737586.Field1, 0, (board_1224737588).length - 1)]).length - 1)], t_1224737587.Field1, t_1224737587.Field0, board_1224737588, state_1224737589); - framePtr = F.prev; +function pieceMove_1476395825(p_1476395826, t_1476395827, board_1476395828, state_1476395829) { + pieceMove_1476395796(board_1476395828[chckIndx(p_1476395826.Field1, 0, (board_1476395828).length - 1)][chckIndx(p_1476395826.Field0, 0, (board_1476395828[chckIndx(p_1476395826.Field1, 0, (board_1476395828).length - 1)]).length - 1)], t_1476395827.Field1, t_1476395827.Field0, board_1476395828, state_1476395829); } -function HEX3Aanonymous_1493173620(piece_1493173621, to_1493173622, board_1493173623, state_1493173624) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 927; - F.filename = "powers.nim"; - var originalKingTile_1493173625 = nimCopy(null, piece_1493173621.tile, NTI1224736771); - F.line = 928; - var takeResult_1493173626 = board_1493173623[chckIndx(to_1493173622.Field1, 0, (board_1493173623).length - 1)][chckIndx(to_1493173622.Field0, 0, (board_1493173623[chckIndx(to_1493173622.Field1, 0, (board_1493173623).length - 1)]).length - 1)].whenTaken(board_1493173623[chckIndx(to_1493173622.Field1, 0, (board_1493173623).length - 1)][chckIndx(to_1493173622.Field0, 0, (board_1493173623[chckIndx(to_1493173622.Field1, 0, (board_1493173623).length - 1)]).length - 1)], piece_1493173621, board_1493173623, state_1493173624); - F.line = 929; - piece_1493173621.timesMoved = addInt(piece_1493173621.timesMoved, 1); - if (takeResult_1493173626.Field1) { - F.line = 931; - piece_1493173621.piecesTaken = addInt(piece_1493173621.piecesTaken, 1); - if ((addInt(originalKingTile_1493173625.Field1, 2) == takeResult_1493173626.Field0.Field1)) { - F.line = 934; - pieceMove_1224737585(takeResult_1493173626.Field0, originalKingTile_1493173625, board_1493173623, state_1493173624); +function HEX3Aanonymous_1845495156(piece_1845495157, to_1845495158, board_1845495159, state_1845495160) { + var originalKingTile_1845495161 = nimCopy(null, piece_1845495157.tile, NTI1476395011); + var takeResult_1845495162 = board_1845495159[chckIndx(to_1845495158.Field1, 0, (board_1845495159).length - 1)][chckIndx(to_1845495158.Field0, 0, (board_1845495159[chckIndx(to_1845495158.Field1, 0, (board_1845495159).length - 1)]).length - 1)].whenTaken(board_1845495159[chckIndx(to_1845495158.Field1, 0, (board_1845495159).length - 1)][chckIndx(to_1845495158.Field0, 0, (board_1845495159[chckIndx(to_1845495158.Field1, 0, (board_1845495159).length - 1)]).length - 1)], piece_1845495157, board_1845495159, state_1845495160); + piece_1845495157.timesMoved = addInt(piece_1845495157.timesMoved, 1); + if (takeResult_1845495162.Field1) { + piece_1845495157.piecesTaken = addInt(piece_1845495157.piecesTaken, 1); + if ((addInt(originalKingTile_1845495161.Field1, 2) == takeResult_1845495162.Field0.Field1)) { + pieceMove_1476395825(takeResult_1845495162.Field0, originalKingTile_1845495161, board_1845495159, state_1845495160); } else { - if ((subInt(originalKingTile_1493173625.Field1, 2) == takeResult_1493173626.Field0.Field1)) { - F.line = 936; - pieceMove_1224737585(takeResult_1493173626.Field0, originalKingTile_1493173625, board_1493173623, state_1493173624); + if ((subInt(originalKingTile_1845495161.Field1, 2) == takeResult_1845495162.Field0.Field1)) { + pieceMove_1476395825(takeResult_1845495162.Field0, originalKingTile_1845495161, board_1845495159, state_1845495160); } } } - framePtr = F.prev; } -function HEX3Aanonymous_1493173638(side_1493173639, __1493173640, b_1493173641, s_1493173642) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 947; - F.filename = "powers.nim"; - buff_1493172242(0, side_1493173639, b_1493173641, s_1493173642, [], [HEX3Aanonymous_1509949733, HEX3Aanonymous_1509949743], [], false, [], null, HEX3Aanonymous_1493173620, null, false); - framePtr = F.prev; +function HEX3Aanonymous_1845495174(side_1845495175, __1845495176, b_1845495177, s_1845495178) { + buff_1845493778(0, side_1845495175, b_1845495177, s_1845495178, [], [HEX3Aanonymous_1862271269, HEX3Aanonymous_1862271279], [], false, [], null, HEX3Aanonymous_1845495156, null, false); } -function HEX3Aanonymous_1493173682(side_1493173683, __1493173684, b_1493173685, __1493173686) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; +function HEX3Aanonymous_1845495218(side_1845495219, __1845495220, b_1845495221, __1845495222) { Label1: { - F.line = 989; - F.filename = "powers.nim"; - var i_1493173687 = 0; - F.line = 989; - var j_1493173688 = 0; + var i_1845495223 = 0; + var j_1845495224 = 0; Label2: { - F.line = 124; - F.filename = "piece.nim"; - var i_1493178896 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_1493178897 = 0; + var i_1845500455 = 0; + var i_1845500456 = 0; Label3: { - F.line = 129; Label4: while (true) { - if (!(i_1493178897 < 8)) break Label4; - F.line = 124; - F.filename = "piece.nim"; - i_1493178896 = i_1493178897; + if (!(i_1845500456 < 8)) break Label4; + i_1845500455 = i_1845500456; Label5: { - F.line = 125; - var j_1493178900 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_1493178901 = 0; + var j_1845500459 = 0; + var i_1845500460 = 0; Label6: { - F.line = 129; Label7: while (true) { - if (!(i_1493178901 < 8)) break Label7; - F.line = 125; - F.filename = "piece.nim"; - j_1493178900 = i_1493178901; - F.line = 989; - F.filename = "powers.nim"; - i_1493173687 = i_1493178896; - F.line = 989; - j_1493173688 = j_1493178900; - if (((b_1493173685[chckIndx(i_1493173687, 0, (b_1493173685).length - 1)][chckIndx(j_1493173688, 0, (b_1493173685[chckIndx(i_1493173687, 0, (b_1493173685).length - 1)]).length - 1)].item == 0) && isColor_1224737813(b_1493173685[chckIndx(i_1493173687, 0, (b_1493173685).length - 1)][chckIndx(j_1493173688, 0, (b_1493173685[chckIndx(i_1493173687, 0, (b_1493173685).length - 1)]).length - 1)], side_1493173683))) { - if ((b_1493173685[chckIndx(i_1493173687, 0, (b_1493173685).length - 1)][chckIndx(j_1493173688, 0, (b_1493173685[chckIndx(i_1493173687, 0, (b_1493173685).length - 1)]).length - 1)].timesMoved == 0)) { - F.line = 992; - b_1493173685[chckIndx(i_1493173687, 0, (b_1493173685).length - 1)][chckIndx(j_1493173688, 0, (b_1493173685[chckIndx(i_1493173687, 0, (b_1493173685).length - 1)]).length - 1)].timesMoved = addInt(b_1493173685[chckIndx(i_1493173687, 0, (b_1493173685).length - 1)][chckIndx(j_1493173688, 0, (b_1493173685[chckIndx(i_1493173687, 0, (b_1493173685).length - 1)]).length - 1)].timesMoved, 1); - F.line = 993; - pieceSwap_1224737595(b_1493173685[chckIndx(i_1493173687, 0, (b_1493173685).length - 1)][chckIndx(j_1493173688, 0, (b_1493173685[chckIndx(i_1493173687, 0, (b_1493173685).length - 1)]).length - 1)], b_1493173685[chckIndx(i_1493173687, 0, (b_1493173685).length - 1)][chckIndx(addInt(j_1493173688, 2), 0, (b_1493173685[chckIndx(i_1493173687, 0, (b_1493173685).length - 1)]).length - 1)], b_1493173685); + if (!(i_1845500460 < 8)) break Label7; + j_1845500459 = i_1845500460; + i_1845495223 = i_1845500455; + j_1845495224 = j_1845500459; + if (((b_1845495221[chckIndx(i_1845495223, 0, (b_1845495221).length - 1)][chckIndx(j_1845495224, 0, (b_1845495221[chckIndx(i_1845495223, 0, (b_1845495221).length - 1)]).length - 1)].item == 0) && isColor_1476396053(b_1845495221[chckIndx(i_1845495223, 0, (b_1845495221).length - 1)][chckIndx(j_1845495224, 0, (b_1845495221[chckIndx(i_1845495223, 0, (b_1845495221).length - 1)]).length - 1)], side_1845495219))) { + if ((b_1845495221[chckIndx(i_1845495223, 0, (b_1845495221).length - 1)][chckIndx(j_1845495224, 0, (b_1845495221[chckIndx(i_1845495223, 0, (b_1845495221).length - 1)]).length - 1)].timesMoved == 0)) { + b_1845495221[chckIndx(i_1845495223, 0, (b_1845495221).length - 1)][chckIndx(j_1845495224, 0, (b_1845495221[chckIndx(i_1845495223, 0, (b_1845495221).length - 1)]).length - 1)].timesMoved = addInt(b_1845495221[chckIndx(i_1845495223, 0, (b_1845495221).length - 1)][chckIndx(j_1845495224, 0, (b_1845495221[chckIndx(i_1845495223, 0, (b_1845495221).length - 1)]).length - 1)].timesMoved, 1); + pieceSwap_1476395835(b_1845495221[chckIndx(i_1845495223, 0, (b_1845495221).length - 1)][chckIndx(j_1845495224, 0, (b_1845495221[chckIndx(i_1845495223, 0, (b_1845495221).length - 1)]).length - 1)], b_1845495221[chckIndx(i_1845495223, 0, (b_1845495221).length - 1)][chckIndx(addInt(j_1845495224, 2), 0, (b_1845495221[chckIndx(i_1845495223, 0, (b_1845495221).length - 1)]).length - 1)], b_1845495221); } } - F.line = 131; - F.filename = "iterators_1.nim"; - i_1493178901 = addInt(i_1493178901, 1); + i_1845500460 = addInt(i_1845500460, 1); } }; }; - F.line = 131; - i_1493178897 = addInt(i_1493178897, 1); + i_1845500456 = addInt(i_1845500456, 1); } }; }; }; - framePtr = F.prev; } -function HEX3Aanonymous_1509949772(board_1509949773, p_1509949774) { - var result_1509949775 = [[]]; +function HEX3Aanonymous_1862271308(board_1862271309, p_1862271310) { + var result_1862271311 = [[]]; - var F = {procname: "extramoves.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/extramoves.nim", line: 0}; - framePtr = F; - F.line = 225; - F.filename = "extramoves.nim"; - add_1224737298(result_1509949775, 0, lineMoves_1291845813(board_1509949773, p_1509949774, tileBelow_1308622993)); - framePtr = F.prev; + add_1476395538(result_1862271311, 0, lineMoves_1543504053(board_1862271309, p_1862271310, tileBelow_1560281233)); - return result_1509949775[0]; + return result_1862271311[0]; } -function HEX3Aanonymous_1509949790(board_1509949791, p_1509949792) { - var result_1509949793 = [[]]; +function HEX3Aanonymous_1862271326(board_1862271327, p_1862271328) { + var result_1862271329 = [[]]; - var F = {procname: "extramoves.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/extramoves.nim", line: 0}; - framePtr = F; - F.line = 231; - F.filename = "extramoves.nim"; - add_1224737298(result_1509949793, 0, lineTakes_1291845819(board_1509949791, p_1509949792, tileBelow_1308622993, false, false)); - framePtr = F.prev; + add_1476395538(result_1862271329, 0, lineTakes_1543504059(board_1862271327, p_1862271328, tileBelow_1560281233, false, false)); - return result_1509949793[0]; + return result_1862271329[0]; } -function HEX3Aanonymous_1509949763(board_1509949764, p_1509949765) { - var result_1509949766 = [[]]; +function HEX3Aanonymous_1862271299(board_1862271300, p_1862271301) { + var result_1862271302 = [[]]; - var F = {procname: "extramoves.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/extramoves.nim", line: 0}; - framePtr = F; - F.line = 222; - F.filename = "extramoves.nim"; - add_1224737298(result_1509949766, 0, lineMoves_1291845813(board_1509949764, p_1509949765, tileAbove_1308622990)); - framePtr = F.prev; + add_1476395538(result_1862271302, 0, lineMoves_1543504053(board_1862271300, p_1862271301, tileAbove_1560281230)); - return result_1509949766[0]; + return result_1862271302[0]; } -function HEX3Aanonymous_1509949781(board_1509949782, p_1509949783) { - var result_1509949784 = [[]]; +function HEX3Aanonymous_1862271317(board_1862271318, p_1862271319) { + var result_1862271320 = [[]]; - var F = {procname: "extramoves.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/extramoves.nim", line: 0}; - framePtr = F; - F.line = 228; - F.filename = "extramoves.nim"; - add_1224737298(result_1509949784, 0, lineTakes_1291845819(board_1509949782, p_1509949783, tileAbove_1308622990, false, false)); - framePtr = F.prev; + add_1476395538(result_1862271320, 0, lineTakes_1543504059(board_1862271318, p_1862271319, tileAbove_1560281230, false, false)); - return result_1509949784[0]; + return result_1862271320[0]; } -function HEX3Aanonymous_1493173777(piece_1493173778, board_1493173779, state_1493173780) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - if ((isAtEnd_1224737998(piece_1493173778) && !(piece_1493173778.promoted))) { +function HEX3Aanonymous_1845495313(piece_1845495314, board_1845495315, state_1845495316) { + if ((isAtEnd_1476396238(piece_1845495314) && !(piece_1845495314.promoted))) { Label1: { - F.line = 181; - F.filename = "piece.nim"; - var xHEX60gensym61_1493173785 = null; - F.line = 249; - F.filename = "iterators.nim"; - var i_1493178904 = 0; - F.line = 250; - var L_1493178905 = (piece_1493173778.onPromote).length; + var xHEX60gensym61_1845495321 = null; + var i_1845500463 = 0; + var L_1845500464 = (piece_1845495314.onPromote).length; Label2: { - F.line = 251; Label3: while (true) { - if (!(i_1493178904 < L_1493178905)) break Label3; - F.line = 1058; - F.filename = "powers.nim"; - xHEX60gensym61_1493173785 = piece_1493173778.onPromote[chckIndx(i_1493178904, 0, (piece_1493173778.onPromote).length - 1)]; - F.line = 182; - F.filename = "piece.nim"; - xHEX60gensym61_1493173785(piece_1493173778, board_1493173779, state_1493173780); - if (piece_1493173778.promoted) { - F.line = 183; + if (!(i_1845500463 < L_1845500464)) break Label3; + xHEX60gensym61_1845495321 = piece_1845495314.onPromote[chckIndx(i_1845500463, 0, (piece_1845495314.onPromote).length - 1)]; + xHEX60gensym61_1845495321(piece_1845495314, board_1845495315, state_1845495316); + if (piece_1845495314.promoted) { break Label1; } - F.line = 13; - F.filename = "iterators.nim"; - i_1493178904 += 1; - if (!(((piece_1493173778.onPromote).length == L_1493178905))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + i_1845500463 += 1; + if (!(((piece_1845495314.onPromote).length == L_1845500464))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } @@ -6001,612 +4280,395 @@ function HEX3Aanonymous_1493173777(piece_1493173778, board_1493173779, state_149 }; } - framePtr = F.prev; } -function HEX3Aanonymous_1493173764(piece_1493173765, board_1493173766, state_1493173767) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 1051; - F.filename = "powers.nim"; - piece_1493173765.moves = nimCopy(null, [HEX3Aanonymous_1509949475, HEX3Aanonymous_1509949465, HEX3Aanonymous_1509949514, HEX3Aanonymous_1509949509], NTI1493173219); - F.line = 1052; - piece_1493173765.takes = nimCopy(null, [HEX3Aanonymous_1509949504, HEX3Aanonymous_1509949470, HEX3Aanonymous_1509949524, HEX3Aanonymous_1509949519], NTI1493173219); - F.line = 1053; - piece_1493173765.promoted = true; - F.line = 1054; - piece_1493173765.filePath = nimCopy(null, [112,114,111,109,111,116,101,100,108,97,110,99,101,46,115,118,103], NTI33554449); - framePtr = F.prev; +function HEX3Aanonymous_1845495300(piece_1845495301, board_1845495302, state_1845495303) { + piece_1845495301.moves = nimCopy(null, [HEX3Aanonymous_1862271011, HEX3Aanonymous_1862271001, HEX3Aanonymous_1862271050, HEX3Aanonymous_1862271045], NTI1845494755); + piece_1845495301.takes = nimCopy(null, [HEX3Aanonymous_1862271040, HEX3Aanonymous_1862271006, HEX3Aanonymous_1862271060, HEX3Aanonymous_1862271055], NTI1845494755); + piece_1845495301.promoted = true; + piece_1845495301.filePath = nimCopy(null, [112,114,111,109,111,116,101,100,108,97,110,99,101,46,115,118,103], NTI33554449); } -function HEX3Aanonymous_1493173789(side_1493173790, viewSide_1493173791, b_1493173792, __1493173793) { +function HEX3Aanonymous_1845495325(side_1845495326, viewSide_1845495327, b_1845495328, __1845495329) { var Temporary1; - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 1074; - F.filename = "powers.nim"; - if ((side_1493173790 == 0)) { + if ((side_1845495326 == 0)) { Temporary1 = 1; } else { Temporary1 = 6; } - var rank_1493173798 = Temporary1; - if (!((b_1493173792[chckIndx(rank_1493173798, 0, (b_1493173792).length - 1)][chckIndx(0, 0, (b_1493173792[chckIndx(rank_1493173798, 0, (b_1493173792).length - 1)]).length - 1)].color == side_1493173790))) { - F.line = 1075; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/the-playground/chess/src/powers.nim(1075, 13) `b[rank][0].color == side` ")); + var rank_1845495334 = Temporary1; + if (!((b_1845495328[chckIndx(rank_1845495334, 0, (b_1845495328).length - 1)][chckIndx(0, 0, (b_1845495328[chckIndx(rank_1845495334, 0, (b_1845495328).length - 1)]).length - 1)].color == side_1845495326))) { + failedAssertImpl_268435541([112,111,119,101,114,115,46,110,105,109,40,49,48,55,53,44,32,49,51,41,32,96,98,91,114,97,110,107,93,91,48,93,46,99,111,108,111,114,32,61,61,32,115,105,100,101,96,32]); } - if ((side_1493173790 == 0)) { - F.line = 1077; - b_1493173792[chckIndx(rank_1493173798, 0, (b_1493173792).length - 1)][chckIndx(0, 0, (b_1493173792[chckIndx(rank_1493173798, 0, (b_1493173792).length - 1)]).length - 1)].moves = nimCopy(null, [HEX3Aanonymous_1509949772], NTI1275068441); - F.line = 1078; - b_1493173792[chckIndx(rank_1493173798, 0, (b_1493173792).length - 1)][chckIndx(0, 0, (b_1493173792[chckIndx(rank_1493173798, 0, (b_1493173792).length - 1)]).length - 1)].takes = nimCopy(null, [HEX3Aanonymous_1509949790], NTI1275068441); + if ((side_1845495326 == 0)) { + b_1845495328[chckIndx(rank_1845495334, 0, (b_1845495328).length - 1)][chckIndx(0, 0, (b_1845495328[chckIndx(rank_1845495334, 0, (b_1845495328).length - 1)]).length - 1)].moves = nimCopy(null, [HEX3Aanonymous_1862271308], NTI1526726681); + b_1845495328[chckIndx(rank_1845495334, 0, (b_1845495328).length - 1)][chckIndx(0, 0, (b_1845495328[chckIndx(rank_1845495334, 0, (b_1845495328).length - 1)]).length - 1)].takes = nimCopy(null, [HEX3Aanonymous_1862271326], NTI1526726681); } else { - F.line = 1080; - b_1493173792[chckIndx(rank_1493173798, 0, (b_1493173792).length - 1)][chckIndx(0, 0, (b_1493173792[chckIndx(rank_1493173798, 0, (b_1493173792).length - 1)]).length - 1)].moves = nimCopy(null, [HEX3Aanonymous_1509949763], NTI1275068441); - F.line = 1081; - b_1493173792[chckIndx(rank_1493173798, 0, (b_1493173792).length - 1)][chckIndx(0, 0, (b_1493173792[chckIndx(rank_1493173798, 0, (b_1493173792).length - 1)]).length - 1)].takes = nimCopy(null, [HEX3Aanonymous_1509949781], NTI1275068441); + b_1845495328[chckIndx(rank_1845495334, 0, (b_1845495328).length - 1)][chckIndx(0, 0, (b_1845495328[chckIndx(rank_1845495334, 0, (b_1845495328).length - 1)]).length - 1)].moves = nimCopy(null, [HEX3Aanonymous_1862271299], NTI1526726681); + b_1845495328[chckIndx(rank_1845495334, 0, (b_1845495328).length - 1)][chckIndx(0, 0, (b_1845495328[chckIndx(rank_1845495334, 0, (b_1845495328).length - 1)]).length - 1)].takes = nimCopy(null, [HEX3Aanonymous_1862271317], NTI1526726681); } - F.line = 1082; - b_1493173792[chckIndx(rank_1493173798, 0, (b_1493173792).length - 1)][chckIndx(0, 0, (b_1493173792[chckIndx(rank_1493173798, 0, (b_1493173792).length - 1)]).length - 1)].onEndTurn = nimCopy(null, [HEX3Aanonymous_1493173777], NTI1275068457); - F.line = 1083; - b_1493173792[chckIndx(rank_1493173798, 0, (b_1493173792).length - 1)][chckIndx(0, 0, (b_1493173792[chckIndx(rank_1493173798, 0, (b_1493173792).length - 1)]).length - 1)].onPromote = nimCopy(null, [HEX3Aanonymous_1493173764], NTI1275068457); - F.line = 1084; - b_1493173792[chckIndx(rank_1493173798, 0, (b_1493173792).length - 1)][chckIndx(0, 0, (b_1493173792[chckIndx(rank_1493173798, 0, (b_1493173792).length - 1)]).length - 1)].item = 7; - F.line = 1085; - b_1493173792[chckIndx(rank_1493173798, 0, (b_1493173792).length - 1)][chckIndx(0, 0, (b_1493173792[chckIndx(rank_1493173798, 0, (b_1493173792).length - 1)]).length - 1)].filePath = nimCopy(null, [108,97,110,99,101,46,115,118,103], NTI33554449); - F.line = 1086; - b_1493173792[chckIndx(rank_1493173798, 0, (b_1493173792).length - 1)][chckIndx(0, 0, (b_1493173792[chckIndx(rank_1493173798, 0, (b_1493173792).length - 1)]).length - 1)].colorable = false; - if (!((side_1493173790 == viewSide_1493173791))) { - F.line = 1087; - b_1493173792[chckIndx(rank_1493173798, 0, (b_1493173792).length - 1)][chckIndx(0, 0, (b_1493173792[chckIndx(rank_1493173798, 0, (b_1493173792).length - 1)]).length - 1)].rotate = true; + b_1845495328[chckIndx(rank_1845495334, 0, (b_1845495328).length - 1)][chckIndx(0, 0, (b_1845495328[chckIndx(rank_1845495334, 0, (b_1845495328).length - 1)]).length - 1)].onEndTurn = nimCopy(null, [HEX3Aanonymous_1845495313], NTI1526726697); + b_1845495328[chckIndx(rank_1845495334, 0, (b_1845495328).length - 1)][chckIndx(0, 0, (b_1845495328[chckIndx(rank_1845495334, 0, (b_1845495328).length - 1)]).length - 1)].onPromote = nimCopy(null, [HEX3Aanonymous_1845495300], NTI1526726697); + b_1845495328[chckIndx(rank_1845495334, 0, (b_1845495328).length - 1)][chckIndx(0, 0, (b_1845495328[chckIndx(rank_1845495334, 0, (b_1845495328).length - 1)]).length - 1)].item = 7; + b_1845495328[chckIndx(rank_1845495334, 0, (b_1845495328).length - 1)][chckIndx(0, 0, (b_1845495328[chckIndx(rank_1845495334, 0, (b_1845495328).length - 1)]).length - 1)].filePath = nimCopy(null, [108,97,110,99,101,46,115,118,103], NTI33554449); + b_1845495328[chckIndx(rank_1845495334, 0, (b_1845495328).length - 1)][chckIndx(0, 0, (b_1845495328[chckIndx(rank_1845495334, 0, (b_1845495328).length - 1)]).length - 1)].colorable = false; + if (!((side_1845495326 == viewSide_1845495327))) { + b_1845495328[chckIndx(rank_1845495334, 0, (b_1845495328).length - 1)][chckIndx(0, 0, (b_1845495328[chckIndx(rank_1845495334, 0, (b_1845495328).length - 1)]).length - 1)].rotate = true; } - framePtr = F.prev; } -function HEX3Aanonymous_1493173841(side_1493173842, viewSide_1493173843, b_1493173844, __1493173845) { +function HEX3Aanonymous_1845495377(side_1845495378, viewSide_1845495379, b_1845495380, __1845495381) { var Temporary1; - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 1104; - F.filename = "powers.nim"; - if ((side_1493173842 == 0)) { + if ((side_1845495378 == 0)) { Temporary1 = 1; } else { Temporary1 = 6; } - var rank_1493173850 = Temporary1; - if (!((b_1493173844[chckIndx(rank_1493173850, 0, (b_1493173844).length - 1)][chckIndx(7, 0, (b_1493173844[chckIndx(rank_1493173850, 0, (b_1493173844).length - 1)]).length - 1)].color == side_1493173842))) { - F.line = 1105; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/the-playground/chess/src/powers.nim(1105, 13) `b[rank][7].color == side` ")); + var rank_1845495386 = Temporary1; + if (!((b_1845495380[chckIndx(rank_1845495386, 0, (b_1845495380).length - 1)][chckIndx(7, 0, (b_1845495380[chckIndx(rank_1845495386, 0, (b_1845495380).length - 1)]).length - 1)].color == side_1845495378))) { + failedAssertImpl_268435541([112,111,119,101,114,115,46,110,105,109,40,49,49,48,53,44,32,49,51,41,32,96,98,91,114,97,110,107,93,91,55,93,46,99,111,108,111,114,32,61,61,32,115,105,100,101,96,32]); } - if ((side_1493173842 == 0)) { - F.line = 1107; - b_1493173844[chckIndx(rank_1493173850, 0, (b_1493173844).length - 1)][chckIndx(7, 0, (b_1493173844[chckIndx(rank_1493173850, 0, (b_1493173844).length - 1)]).length - 1)].moves = nimCopy(null, [HEX3Aanonymous_1509949772], NTI1275068441); - F.line = 1108; - b_1493173844[chckIndx(rank_1493173850, 0, (b_1493173844).length - 1)][chckIndx(7, 0, (b_1493173844[chckIndx(rank_1493173850, 0, (b_1493173844).length - 1)]).length - 1)].takes = nimCopy(null, [HEX3Aanonymous_1509949790], NTI1275068441); + if ((side_1845495378 == 0)) { + b_1845495380[chckIndx(rank_1845495386, 0, (b_1845495380).length - 1)][chckIndx(7, 0, (b_1845495380[chckIndx(rank_1845495386, 0, (b_1845495380).length - 1)]).length - 1)].moves = nimCopy(null, [HEX3Aanonymous_1862271308], NTI1526726681); + b_1845495380[chckIndx(rank_1845495386, 0, (b_1845495380).length - 1)][chckIndx(7, 0, (b_1845495380[chckIndx(rank_1845495386, 0, (b_1845495380).length - 1)]).length - 1)].takes = nimCopy(null, [HEX3Aanonymous_1862271326], NTI1526726681); } else { - F.line = 1110; - b_1493173844[chckIndx(rank_1493173850, 0, (b_1493173844).length - 1)][chckIndx(7, 0, (b_1493173844[chckIndx(rank_1493173850, 0, (b_1493173844).length - 1)]).length - 1)].moves = nimCopy(null, [HEX3Aanonymous_1509949763], NTI1275068441); - F.line = 1111; - b_1493173844[chckIndx(rank_1493173850, 0, (b_1493173844).length - 1)][chckIndx(7, 0, (b_1493173844[chckIndx(rank_1493173850, 0, (b_1493173844).length - 1)]).length - 1)].takes = nimCopy(null, [HEX3Aanonymous_1509949781], NTI1275068441); + b_1845495380[chckIndx(rank_1845495386, 0, (b_1845495380).length - 1)][chckIndx(7, 0, (b_1845495380[chckIndx(rank_1845495386, 0, (b_1845495380).length - 1)]).length - 1)].moves = nimCopy(null, [HEX3Aanonymous_1862271299], NTI1526726681); + b_1845495380[chckIndx(rank_1845495386, 0, (b_1845495380).length - 1)][chckIndx(7, 0, (b_1845495380[chckIndx(rank_1845495386, 0, (b_1845495380).length - 1)]).length - 1)].takes = nimCopy(null, [HEX3Aanonymous_1862271317], NTI1526726681); } - F.line = 1112; - b_1493173844[chckIndx(rank_1493173850, 0, (b_1493173844).length - 1)][chckIndx(7, 0, (b_1493173844[chckIndx(rank_1493173850, 0, (b_1493173844).length - 1)]).length - 1)].onEndTurn = nimCopy(null, [HEX3Aanonymous_1493173777], NTI1275068457); - F.line = 1113; - b_1493173844[chckIndx(rank_1493173850, 0, (b_1493173844).length - 1)][chckIndx(7, 0, (b_1493173844[chckIndx(rank_1493173850, 0, (b_1493173844).length - 1)]).length - 1)].onPromote = nimCopy(null, [HEX3Aanonymous_1493173764], NTI1275068457); - F.line = 1114; - b_1493173844[chckIndx(rank_1493173850, 0, (b_1493173844).length - 1)][chckIndx(7, 0, (b_1493173844[chckIndx(rank_1493173850, 0, (b_1493173844).length - 1)]).length - 1)].item = 7; - F.line = 1115; - b_1493173844[chckIndx(rank_1493173850, 0, (b_1493173844).length - 1)][chckIndx(7, 0, (b_1493173844[chckIndx(rank_1493173850, 0, (b_1493173844).length - 1)]).length - 1)].filePath = nimCopy(null, [108,97,110,99,101,46,115,118,103], NTI33554449); - F.line = 1116; - b_1493173844[chckIndx(rank_1493173850, 0, (b_1493173844).length - 1)][chckIndx(7, 0, (b_1493173844[chckIndx(rank_1493173850, 0, (b_1493173844).length - 1)]).length - 1)].colorable = false; - if (!((side_1493173842 == viewSide_1493173843))) { - F.line = 1117; - b_1493173844[chckIndx(rank_1493173850, 0, (b_1493173844).length - 1)][chckIndx(7, 0, (b_1493173844[chckIndx(rank_1493173850, 0, (b_1493173844).length - 1)]).length - 1)].rotate = true; + b_1845495380[chckIndx(rank_1845495386, 0, (b_1845495380).length - 1)][chckIndx(7, 0, (b_1845495380[chckIndx(rank_1845495386, 0, (b_1845495380).length - 1)]).length - 1)].onEndTurn = nimCopy(null, [HEX3Aanonymous_1845495313], NTI1526726697); + b_1845495380[chckIndx(rank_1845495386, 0, (b_1845495380).length - 1)][chckIndx(7, 0, (b_1845495380[chckIndx(rank_1845495386, 0, (b_1845495380).length - 1)]).length - 1)].onPromote = nimCopy(null, [HEX3Aanonymous_1845495300], NTI1526726697); + b_1845495380[chckIndx(rank_1845495386, 0, (b_1845495380).length - 1)][chckIndx(7, 0, (b_1845495380[chckIndx(rank_1845495386, 0, (b_1845495380).length - 1)]).length - 1)].item = 7; + b_1845495380[chckIndx(rank_1845495386, 0, (b_1845495380).length - 1)][chckIndx(7, 0, (b_1845495380[chckIndx(rank_1845495386, 0, (b_1845495380).length - 1)]).length - 1)].filePath = nimCopy(null, [108,97,110,99,101,46,115,118,103], NTI33554449); + b_1845495380[chckIndx(rank_1845495386, 0, (b_1845495380).length - 1)][chckIndx(7, 0, (b_1845495380[chckIndx(rank_1845495386, 0, (b_1845495380).length - 1)]).length - 1)].colorable = false; + if (!((side_1845495378 == viewSide_1845495379))) { + b_1845495380[chckIndx(rank_1845495386, 0, (b_1845495380).length - 1)][chckIndx(7, 0, (b_1845495380[chckIndx(rank_1845495386, 0, (b_1845495380).length - 1)]).length - 1)].rotate = true; } - framePtr = F.prev; } -function rotl_1392508951(x_1392508952, k_1392508953) { - var result_1392508954 = 0; +function rotl_1644167191(x_1644167192, k_1644167193) { + var result_1644167194 = 0; - var F = {procname: "random.rotl", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/random.nim", line: 0}; - framePtr = F; - F.line = 134; - F.filename = "random.nim"; - result_1392508954 = ((((x_1392508952 << k_1392508953) >>> 0) | (x_1392508952 >>> ((64 - k_1392508953) >>> 0))) >>> 0); - framePtr = F.prev; + result_1644167194 = ((((x_1644167192 << k_1644167193) >>> 0) | (x_1644167192 >>> ((64 - k_1644167193) >>> 0))) >>> 0); - return result_1392508954; + return result_1644167194; } -function next_1392508963(r_1392508964) { - var result_1392508965 = 0n; +function next_1644167203(r_1644167204) { + var result_1644167205 = 0n; - var F = {procname: "random.next", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/random.nim", line: 0}; - framePtr = F; - F.line = 152; - F.filename = "random.nim"; - var s0_1392508966 = r_1392508964.a0; - F.line = 153; - var s1_1392508967 = r_1392508964.a1; - F.line = 154; - result_1392508965 = BigInt(((s0_1392508966 + s1_1392508967) >>> 0)); - F.line = 155; - s1_1392508967 = ((s1_1392508967 ^ s0_1392508966) >>> 0); - F.line = 156; - r_1392508964.a0 = ((((rotl_1392508951(s0_1392508966, 55) ^ s1_1392508967) >>> 0) ^ ((s1_1392508967 << 14) >>> 0)) >>> 0); - F.line = 157; - r_1392508964.a1 = rotl_1392508951(s1_1392508967, 36); - framePtr = F.prev; + var s0_1644167206 = r_1644167204.a0; + var s1_1644167207 = r_1644167204.a1; + result_1644167205 = BigInt(((s0_1644167206 + s1_1644167207) >>> 0)); + s1_1644167207 = ((s1_1644167207 ^ s0_1644167206) >>> 0); + r_1644167204.a0 = ((((rotl_1644167191(s0_1644167206, 55) ^ s1_1644167207) >>> 0) ^ ((s1_1644167207 << 14) >>> 0)) >>> 0); + r_1644167204.a1 = rotl_1644167191(s1_1644167207, 36); - return result_1392508965; + return result_1644167205; } -function skipRandomNumbers_1392508972(s_1392508973) { - var F = {procname: "random.skipRandomNumbers", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/random.nim", line: 0}; - framePtr = F; - F.line = 216; - F.filename = "random.nim"; - var s0_1392508975 = 0; - F.line = 217; - var s1_1392508976 = 0; +function skipRandomNumbers_1644167212(s_1644167213) { + var s0_1644167215 = 0; + var s1_1644167216 = 0; Label1: { - F.line = 218; - var i_1392508985 = 0; - F.line = 96; - F.filename = "iterators_1.nim"; - var res_1493178915 = 0; + var i_1644167225 = 0; + var res_1845500474 = 0; Label2: { - F.line = 97; Label3: while (true) { - if (!(res_1493178915 <= 1)) break Label3; - F.line = 218; - F.filename = "random.nim"; - i_1392508985 = res_1493178915; + if (!(res_1845500474 <= 1)) break Label3; + i_1644167225 = res_1845500474; Label4: { - F.line = 219; - var b_1392508990 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_1493178913 = 0; + var b_1644167230 = 0; + var i_1845500472 = 0; Label5: { - F.line = 129; Label6: while (true) { - if (!(i_1493178913 < 64)) break Label6; - F.line = 219; - F.filename = "random.nim"; - b_1392508990 = i_1493178913; - if (!((((helper_1392508974[chckIndx(i_1392508985, 0, (helper_1392508974).length - 1)] & ((1 << b_1392508990) >>> 0)) >>> 0) == 0))) { - F.line = 221; - s0_1392508975 = ((s0_1392508975 ^ s_1392508973.a0) >>> 0); - F.line = 222; - s1_1392508976 = ((s1_1392508976 ^ s_1392508973.a1) >>> 0); + if (!(i_1845500472 < 64)) break Label6; + b_1644167230 = i_1845500472; + if (!((((helper_1644167214[chckIndx(i_1644167225, 0, (helper_1644167214).length - 1)] & ((1 << b_1644167230) >>> 0)) >>> 0) == 0))) { + s0_1644167215 = ((s0_1644167215 ^ s_1644167213.a0) >>> 0); + s1_1644167216 = ((s1_1644167216 ^ s_1644167213.a1) >>> 0); } - F.line = 223; - var _ = next_1392508963(s_1392508973); - F.line = 131; - F.filename = "iterators_1.nim"; - i_1493178913 = addInt(i_1493178913, 1); + var _ = next_1644167203(s_1644167213); + i_1845500472 = addInt(i_1845500472, 1); } }; }; - F.line = 102; - res_1493178915 = addInt(res_1493178915, 1); + res_1845500474 = addInt(res_1845500474, 1); } }; }; - F.line = 224; - F.filename = "random.nim"; - s_1392508973.a0 = s0_1392508975; - F.line = 225; - s_1392508973.a1 = s1_1392508976; - framePtr = F.prev; + s_1644167213.a0 = s0_1644167215; + s_1644167213.a1 = s1_1644167216; } -function initRand_1392509177(seed_1392509178) { +function initRand_1644167417(seed_1644167418) { var Temporary1; - var result_1392509179 = [({a0: 0, a1: 0})]; + var result_1644167419 = [({a0: 0, a1: 0})]; - var F = {procname: "random.initRand", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/random.nim", line: 0}; - framePtr = F; - F.line = 598; - F.filename = "random.nim"; - if (!((seed_1392509178 == 0n))) { - Temporary1 = seed_1392509178; + if (!((seed_1644167418 == 0n))) { + Temporary1 = seed_1644167418; } else { Temporary1 = 2147483647n; } - var seed_1392509185 = Temporary1; - F.line = 599; - result_1392509179[0].a0 = Number((seed_1392509185 >> BigInt(16))); - F.line = 600; - result_1392509179[0].a1 = Number((seed_1392509185 & 65535n)); - F.line = 604; - skipRandomNumbers_1392508972(result_1392509179[0]); - F.line = 605; - var _ = next_1392508963(result_1392509179[0]); - framePtr = F.prev; + var seed_1644167425 = Temporary1; + result_1644167419[0].a0 = Number((seed_1644167425 >> BigInt(16))); + result_1644167419[0].a1 = Number((seed_1644167425 & 65535n)); + skipRandomNumbers_1644167212(result_1644167419[0]); + var _ = next_1644167203(result_1644167419[0]); - return result_1392509179[0]; + return result_1644167419[0]; } -function randomize_1392509190(seed_1392509191) { - var F = {procname: "random.randomize", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/random.nim", line: 0}; - framePtr = F; - F.line = 626; - F.filename = "random.nim"; - state_1392508942[0] = nimCopy(state_1392508942[0], initRand_1392509177(seed_1392509191), NTI1392508932); - framePtr = F.prev; +function randomize_1644167430(seed_1644167431) { + state_1644167182[0] = nimCopy(state_1644167182[0], initRand_1644167417(seed_1644167431), NTI1644167172); } -function getTakesOn_1224737271(p_1224737272, board_1224737273) { - var result_1224737274 = [[]]; +function getTakesOn_1476395511(p_1476395512, board_1476395513) { + var result_1476395514 = [[]]; - var F = {procname: "piece.getTakesOn", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/piece.nim", line: 0}; - framePtr = F; Label1: { - F.line = 208; - F.filename = "piece.nim"; - var x_1224737297 = null; - F.line = 249; - F.filename = "iterators.nim"; - var i_1493178918 = 0; - F.line = 250; - var L_1493178919 = (p_1224737272.takes).length; + var x_1476395537 = null; + var i_1845500477 = 0; + var L_1845500478 = (p_1476395512.takes).length; Label2: { - F.line = 251; Label3: while (true) { - if (!(i_1493178918 < L_1493178919)) break Label3; - F.line = 208; - F.filename = "piece.nim"; - x_1224737297 = p_1224737272.takes[chckIndx(i_1493178918, 0, (p_1224737272.takes).length - 1)]; - F.line = 209; - add_1224737298(result_1224737274, 0, x_1224737297(board_1224737273, p_1224737272)); - F.line = 13; - F.filename = "iterators.nim"; - i_1493178918 += 1; - if (!(((p_1224737272.takes).length == L_1493178919))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + if (!(i_1845500477 < L_1845500478)) break Label3; + x_1476395537 = p_1476395512.takes[chckIndx(i_1845500477, 0, (p_1476395512.takes).length - 1)]; + add_1476395538(result_1476395514, 0, x_1476395537(board_1476395513, p_1476395512)); + i_1845500477 += 1; + if (!(((p_1476395512.takes).length == L_1845500478))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - framePtr = F.prev; - return result_1224737274[0]; + return result_1476395514[0]; } -function HEX3DHEX3D_1224737445(x_1224737447, y_1224737448) { - var result_1224737449 = false; +function HEX3DHEX3D_1476395685(x_1476395687, y_1476395688) { + var result_1476395689 = false; - var F = {procname: "==.==", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; BeforeRet: { - if (!((x_1224737447["Field0"] == y_1224737448["Field0"]))) { - F.line = 1714; - F.filename = "system.nim"; - result_1224737449 = false; + if (!((x_1476395687["Field0"] == y_1476395688["Field0"]))) { + result_1476395689 = false; break BeforeRet; } - if (!((x_1224737447["Field1"] == y_1224737448["Field1"]))) { - F.line = 1714; - result_1224737449 = false; + if (!((x_1476395687["Field1"] == y_1476395688["Field1"]))) { + result_1476395689 = false; break BeforeRet; } - F.line = 1715; - result_1224737449 = true; + result_1476395689 = true; break BeforeRet; }; - framePtr = F.prev; - return result_1224737449; + return result_1476395689; } -function find_1224737426(a_1224737429, item_1224737430) { - var result_1224737431 = 0; +function find_1476395666(a_1476395669, item_1476395670) { + var result_1476395671 = 0; - var F = {procname: "find.find", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; BeforeRet: { - F.line = 1671; - F.filename = "system.nim"; - result_1224737431 = 0; + result_1476395671 = 0; Label1: { - F.line = 1672; - var i_1224737444 = {Field0: 0, Field1: 0}; - F.line = 18; - F.filename = "iterators.nim"; - var i_1493178935 = 0; + var i_1476395684 = {Field0: 0, Field1: 0}; + var i_1845500494 = 0; Label2: { - F.line = 19; Label3: while (true) { - if (!(i_1493178935 < (a_1224737429).length)) break Label3; - F.line = 1672; - F.filename = "system.nim"; - i_1224737444 = a_1224737429[chckIndx(i_1493178935, 0, (a_1224737429).length - 1)]; - if (HEX3DHEX3D_1224737445(i_1224737444, item_1224737430)) { - F.line = 1673; + if (!(i_1845500494 < (a_1476395669).length)) break Label3; + i_1476395684 = a_1476395669[chckIndx(i_1845500494, 0, (a_1476395669).length - 1)]; + if (HEX3DHEX3D_1476395685(i_1476395684, item_1476395670)) { break BeforeRet; } - F.line = 1674; - result_1224737431 = addInt(result_1224737431, 1); - F.line = 13; - F.filename = "iterators.nim"; - i_1493178935 += 1; + result_1476395671 = addInt(result_1476395671, 1); + i_1845500494 += 1; } }; }; - F.line = 1675; - F.filename = "system.nim"; - result_1224737431 = (-1); + result_1476395671 = (-1); }; - framePtr = F.prev; - return result_1224737431; + return result_1476395671; } -function contains_1224737421(a_1224737423, item_1224737424) { - var result_1224737425 = false; +function contains_1476395661(a_1476395663, item_1476395664) { + var result_1476395665 = false; - var F = {procname: "contains.contains", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; BeforeRet: { - F.line = 1689; - F.filename = "system.nim"; - result_1224737425 = (0 <= find_1224737426(a_1224737423, item_1224737424)); + result_1476395665 = (0 <= find_1476395666(a_1476395663, item_1476395664)); break BeforeRet; }; - framePtr = F.prev; - return result_1224737425; + return result_1476395665; } -function addQuoted_838862213(s_838862215, s_838862215_Idx, x_838862216) { - var F = {procname: "addQuoted.addQuoted", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; - F.line = 2533; - F.filename = "system.nim"; - addInt_301990129(s_838862215, s_838862215_Idx, x_838862216); - framePtr = F.prev; +function addQuoted_889193861(s_889193863, s_889193863_Idx, x_889193864) { + addInt_301990129(s_889193863, s_889193863_Idx, x_889193864); } -function HEX24_1224737476(x_1224737478) { - var result_1224737479 = [[]]; +function HEX24_1476395716(x_1476395718) { + var result_1476395719 = [[]]; - var F = {procname: "$.$", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/dollars.nim", line: 0}; - framePtr = F; - F.line = 19; - F.filename = "miscdollars.nim"; - result_1224737479[0] = nimCopy(null, [40], NTI33554449); - F.line = 21; - var countHEX60gensym5_1224737490 = 0; - if ((0 < countHEX60gensym5_1224737490)) { - F.line = 23; - result_1224737479[0].push.apply(result_1224737479[0], [44,32]);; + result_1476395719[0] = nimCopy(null, [40], NTI33554449); + var countHEX60gensym5_1476395730 = 0; + if ((0 < countHEX60gensym5_1476395730)) { + result_1476395719[0].push.apply(result_1476395719[0], [44,32]);; } - F.line = 25; - result_1224737479[0].push.apply(result_1224737479[0], [102,105,108,101]);; - F.line = 26; - result_1224737479[0].push.apply(result_1224737479[0], [58,32]);; - F.line = 27; - countHEX60gensym5_1224737490 += 1; - F.line = 33; - addQuoted_838862213(result_1224737479, 0, x_1224737478["Field0"]); - if ((0 < countHEX60gensym5_1224737490)) { - F.line = 23; - result_1224737479[0].push.apply(result_1224737479[0], [44,32]);; + result_1476395719[0].push.apply(result_1476395719[0], [102,105,108,101]);; + result_1476395719[0].push.apply(result_1476395719[0], [58,32]);; + countHEX60gensym5_1476395730 += 1; + addQuoted_889193861(result_1476395719, 0, x_1476395718["Field0"]); + if ((0 < countHEX60gensym5_1476395730)) { + result_1476395719[0].push.apply(result_1476395719[0], [44,32]);; } - F.line = 25; - result_1224737479[0].push.apply(result_1224737479[0], [114,97,110,107]);; - F.line = 26; - result_1224737479[0].push.apply(result_1224737479[0], [58,32]);; - F.line = 27; - countHEX60gensym5_1224737490 += 1; - F.line = 33; - addQuoted_838862213(result_1224737479, 0, x_1224737478["Field1"]); - F.line = 39; - result_1224737479[0].push.apply(result_1224737479[0], [41]);; - framePtr = F.prev; + result_1476395719[0].push.apply(result_1476395719[0], [114,97,110,107]);; + result_1476395719[0].push.apply(result_1476395719[0], [58,32]);; + countHEX60gensym5_1476395730 += 1; + addQuoted_889193861(result_1476395719, 0, x_1476395718["Field1"]); + result_1476395719[0].push.apply(result_1476395719[0], [41]);; - return result_1224737479[0]; + return result_1476395719[0]; } -function getMovesOn_1224737386(p_1224737387, board_1224737388) { - var result_1224737389 = [[]]; +function getMovesOn_1476395626(p_1476395627, board_1476395628) { + var result_1476395629 = [[]]; - var F = {procname: "piece.getMovesOn", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/piece.nim", line: 0}; - framePtr = F; Label1: { - F.line = 218; - F.filename = "piece.nim"; - var x_1224737393 = null; - F.line = 249; - F.filename = "iterators.nim"; - var i_1493178922 = 0; - F.line = 250; - var L_1493178923 = (p_1224737387.moves).length; + var x_1476395633 = null; + var i_1845500481 = 0; + var L_1845500482 = (p_1476395627.moves).length; Label2: { - F.line = 251; Label3: while (true) { - if (!(i_1493178922 < L_1493178923)) break Label3; - F.line = 218; - F.filename = "piece.nim"; - x_1224737393 = p_1224737387.moves[chckIndx(i_1493178922, 0, (p_1224737387.moves).length - 1)]; - F.line = 219; - add_1224737298(result_1224737389, 0, x_1224737393(board_1224737388, p_1224737387)); - F.line = 13; - F.filename = "iterators.nim"; - i_1493178922 += 1; - if (!(((p_1224737387.moves).length == L_1493178923))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + if (!(i_1845500481 < L_1845500482)) break Label3; + x_1476395633 = p_1476395627.moves[chckIndx(i_1845500481, 0, (p_1476395627.moves).length - 1)]; + add_1476395538(result_1476395629, 0, x_1476395633(board_1476395628, p_1476395627)); + i_1845500481 += 1; + if (!(((p_1476395627.moves).length == L_1845500482))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - F.line = 220; - F.filename = "piece.nim"; - var takes_1224737398 = getTakesOn_1224737271(p_1224737387, board_1224737388); + var takes_1476395638 = getTakesOn_1476395511(p_1476395627, board_1476395628); Label4: { - F.line = 221; - var x_1224737420 = {Field0: 0, Field1: 0}; - F.line = 249; - F.filename = "iterators.nim"; - var i_1493178926 = 0; - F.line = 250; - var L_1493178927 = (takes_1224737398).length; + var x_1476395660 = {Field0: 0, Field1: 0}; + var i_1845500485 = 0; + var L_1845500486 = (takes_1476395638).length; Label5: { - F.line = 251; Label6: while (true) { - if (!(i_1493178926 < L_1493178927)) break Label6; - F.line = 221; - F.filename = "piece.nim"; - x_1224737420 = takes_1224737398[chckIndx(i_1493178926, 0, (takes_1224737398).length - 1)]; - if (contains_1224737421(result_1224737389[0], x_1224737420)) { - F.line = 222; - rawEcho(HEX24_1224737476(x_1224737420), [32,105,115,32,97,32,116,97,107,101,32,97,110,100,32,97,32,109,111,118,101]); + if (!(i_1845500485 < L_1845500486)) break Label6; + x_1476395660 = takes_1476395638[chckIndx(i_1845500485, 0, (takes_1476395638).length - 1)]; + if (contains_1476395661(result_1476395629[0], x_1476395660)) { + rawEcho(HEX24_1476395716(x_1476395660), [32,105,115,32,97,32,116,97,107,101,32,97,110,100,32,97,32,109,111,118,101]); } - F.line = 13; - F.filename = "iterators.nim"; - i_1493178926 += 1; - if (!(((takes_1224737398).length == L_1493178927))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + i_1845500485 += 1; + if (!(((takes_1476395638).length == L_1845500486))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - F.line = 223; - F.filename = "piece.nim"; - F.line = 652; - F.filename = "sequtils.nim"; - var resultHEX60gensym12_1224737527 = newSeq_1224737519(0); + var resultHEX60gensym12_1476395767 = newSeq_1476395759(0); Label7: { - F.line = 653; - var it_1224737531 = {Field0: 0, Field1: 0}; - F.line = 249; - F.filename = "iterators.nim"; - var i_1493178930 = 0; - F.line = 250; - var L_1493178931 = (result_1224737389[0]).length; + var it_1476395771 = {Field0: 0, Field1: 0}; + var i_1845500489 = 0; + var L_1845500490 = (result_1476395629[0]).length; Label8: { - F.line = 251; Label9: while (true) { - if (!(i_1493178930 < L_1493178931)) break Label9; - F.line = 653; - F.filename = "sequtils.nim"; - it_1224737531 = result_1224737389[0][chckIndx(i_1493178930, 0, (result_1224737389[0]).length - 1)]; - if (!(contains_1224737421(takes_1224737398, it_1224737531))) { - F.line = 654; - var Temporary10 = nimCopy(null, it_1224737531, NTI1224736771); - resultHEX60gensym12_1224737527.push(Temporary10);; + if (!(i_1845500489 < L_1845500490)) break Label9; + it_1476395771 = result_1476395629[0][chckIndx(i_1845500489, 0, (result_1476395629[0]).length - 1)]; + if (!(contains_1476395661(takes_1476395638, it_1476395771))) { + var Temporary10 = nimCopy(null, it_1476395771, NTI1476395011); + resultHEX60gensym12_1476395767.push(Temporary10);; } - F.line = 13; - F.filename = "iterators.nim"; - i_1493178930 += 1; - if (!(((result_1224737389[0]).length == L_1493178931))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + i_1845500489 += 1; + if (!(((result_1476395629[0]).length == L_1845500490))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - result_1224737389[0] = nimCopy(null, resultHEX60gensym12_1224737527, NTI1224737341); - framePtr = F.prev; + result_1476395629[0] = nimCopy(null, resultHEX60gensym12_1476395767, NTI1476395581); - return result_1224737389[0]; + return result_1476395629[0]; } -function rand_1392509039(r_1392509041, max_1392509042) { - var result_1392509043 = 0n; +function rand_1644167279(r_1644167281, max_1644167282) { + var result_1644167283 = 0n; - var F = {procname: "rand.rand", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/random.nim", line: 0}; - framePtr = F; BeforeRet: { - if ((max_1392509042 == 0n)) { - F.line = 229; - F.filename = "random.nim"; + if ((max_1644167282 == 0n)) { break BeforeRet; } else { - F.line = 231; - var max_1392509044 = max_1392509042; - if ((max_1392509044 == 18446744073709551615n)) { - F.line = 233; - result_1392509043 = next_1392508963(r_1392509041); + var max_1644167284 = max_1644167282; + if ((max_1644167284 == 18446744073709551615n)) { + result_1644167283 = next_1644167203(r_1644167281); break BeforeRet; } - F.line = 234; - var iters_1392509057 = 0; + var iters_1644167297 = 0; Label1: { - F.line = 235; Label2: while (true) { if (!true) break Label2; - F.line = 236; - var x_1392509058 = next_1392508963(r_1392509041); - if (((x_1392509058 <= BigInt.asUintN(64, (4294967295n - (4294967295n % max_1392509044)))) || (20 < iters_1392509057))) { - F.line = 239; - result_1392509043 = (x_1392509058 % BigInt.asUintN(64, (max_1392509044 + 1n))); + var x_1644167298 = next_1644167203(r_1644167281); + if (((x_1644167298 <= BigInt.asUintN(64, (4294967295n - (4294967295n % max_1644167284)))) || (20 < iters_1644167297))) { + result_1644167283 = (x_1644167298 % BigInt.asUintN(64, (max_1644167284 + 1n))); break BeforeRet; } else { - F.line = 241; - iters_1392509057 = addInt(iters_1392509057, 1); + iters_1644167297 = addInt(iters_1644167297, 1); } } @@ -6614,315 +4676,195 @@ function rand_1392509039(r_1392509041, max_1392509042) { } }; - framePtr = F.prev; - return result_1392509043; + return result_1644167283; } -function rand_1325400138(r_1325400140, x_1325400141) { - var result_1325400142 = 0; +function rand_1577058378(r_1577058380, x_1577058381) { + var result_1577058382 = 0; - var F = {procname: "rand.rand", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/random.nim", line: 0}; - framePtr = F; - if (!((x_1325400141.a <= x_1325400141.b))) { - F.line = 339; - F.filename = "random.nim"; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/random.nim(339, 3) `x.a <= x.b` ")); + if (!((x_1577058381.a <= x_1577058381.b))) { + failedAssertImpl_268435541([114,97,110,100,111,109,46,110,105,109,40,51,51,57,44,32,51,41,32,96,120,46,97,32,60,61,32,120,46,98,96,32]); } - F.line = 346; - result_1325400142 = Number(BigInt.asIntN(32, BigInt.asUintN(64, (rand_1392509039(r_1325400140, BigInt.asUintN(64, (BigInt.asUintN(64, BigInt(x_1325400141.b)) - BigInt.asUintN(64, BigInt(x_1325400141.a))))) + BigInt.asUintN(64, BigInt(x_1325400141.a)))))); - framePtr = F.prev; + result_1577058382 = Number(BigInt.asIntN(32, BigInt.asUintN(64, (rand_1644167279(r_1577058380, BigInt.asUintN(64, (BigInt.asUintN(64, BigInt(x_1577058381.b)) - BigInt.asUintN(64, BigInt(x_1577058381.a))))) + BigInt.asUintN(64, BigInt(x_1577058381.a)))))); - return result_1325400142; + return result_1577058382; } -function rand_1325400130(x_1325400132) { - var result_1325400133 = 0; +function rand_1577058370(x_1577058372) { + var result_1577058373 = 0; - var F = {procname: "rand.rand", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/random.nim", line: 0}; - framePtr = F; - F.line = 368; - F.filename = "random.nim"; - result_1325400133 = rand_1325400138(state_1392508942[0], x_1325400132); - framePtr = F.prev; + result_1577058373 = rand_1577058378(state_1644167182[0], x_1577058372); - return result_1325400133; + return result_1577058373; } -function HEX2EHEX2E_1056964656(a_1056964659, b_1056964660) { - var result_1056964661 = ({a: 0, b: 0}); +function HEX2EHEX2E_1174405168(a_1174405171, b_1174405172) { + var result_1174405173 = ({a: 0, b: 0}); - var F = {procname: ".....", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; - F.line = 418; - F.filename = "system.nim"; - result_1056964661 = nimCopy(result_1056964661, {a: a_1056964659, b: b_1056964660}, NTI889192517); - framePtr = F.prev; + result_1174405173 = nimCopy(result_1174405173, {a: a_1174405171, b: b_1174405172}, NTI939524165); - return result_1056964661; + return result_1174405173; } -function sample_1493173919(a_1493173921) { - var result_1493173922 = {Field0: 0, Field1: 0}; +function sample_1845495455(a_1845495457) { + var result_1845495458 = {Field0: 0, Field1: 0}; - var F = {procname: "sample.sample", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/random.nim", line: 0}; - framePtr = F; - F.line = 488; - F.filename = "random.nim"; - result_1493173922 = a_1493173921[chckIndx(rand_1325400130(HEX2EHEX2E_1056964656(0, (a_1493173921).length - 1)), 0, (a_1493173921).length - 1)]; - framePtr = F.prev; + result_1845495458 = a_1845495457[chckIndx(rand_1577058370(HEX2EHEX2E_1174405168(0, (a_1845495457).length - 1)), 0, (a_1845495457).length - 1)]; - return result_1493173922; + return result_1845495458; } -function HEX3Aanonymous_1493173893(piece_1493173894, board_1493173895, state_1493173896) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; +function HEX3Aanonymous_1845495429(piece_1845495430, board_1845495431, state_1845495432) { BeforeRet: { - if (!(piece_1493173894.drunk)) { - F.line = 1123; - F.filename = "powers.nim"; - piece_1493173894.drunk = true; - F.line = 1128; - randomize_1392509190(BigInt(addInt(addInt(mulInt(10, piece_1493173894.tile.Field1), mulInt(100, piece_1493173894.tile.Field0)), state_1493173896.Field0.randSeed))); - F.line = 1129; - var takes_1493173897 = getTakesOn_1224737271(piece_1493173894, board_1493173895); - F.line = 1130; - var moves_1493173898 = getMovesOn_1224737386(piece_1493173894, board_1493173895); - if (((moves_1493173898).length == 0)) { - F.line = 1131; + if (!(piece_1845495430.drunk)) { + piece_1845495430.drunk = true; + randomize_1644167430(BigInt(addInt(addInt(mulInt(10, piece_1845495430.tile.Field1), mulInt(100, piece_1845495430.tile.Field0)), state_1845495432.Field0.randSeed))); + var takes_1845495433 = getTakesOn_1476395511(piece_1845495430, board_1845495431); + var moves_1845495434 = getMovesOn_1476395626(piece_1845495430, board_1845495431); + if (((moves_1845495434).length == 0)) { break BeforeRet; } - F.line = 1134; - F.line = 652; - F.filename = "sequtils.nim"; - var resultHEX60gensym68_1493173906 = newSeq_1224737519(0); + var resultHEX60gensym68_1845495442 = newSeq_1476395759(0); Label1: { - F.line = 653; - var it_1493173910 = {Field0: 0, Field1: 0}; - F.line = 249; - F.filename = "iterators.nim"; - var i_1493178908 = 0; - F.line = 250; - var L_1493178909 = (moves_1493173898).length; + var it_1845495446 = {Field0: 0, Field1: 0}; + var i_1845500467 = 0; + var L_1845500468 = (moves_1845495434).length; Label2: { - F.line = 251; Label3: while (true) { - if (!(i_1493178908 < L_1493178909)) break Label3; - F.line = 653; - F.filename = "sequtils.nim"; - it_1493173910 = moves_1493173898[chckIndx(i_1493178908, 0, (moves_1493173898).length - 1)]; - if (!(contains_1224737421(takes_1493173897, it_1493173910))) { - F.line = 654; - var Temporary4 = nimCopy(null, it_1493173910, NTI1224736771); - resultHEX60gensym68_1493173906.push(Temporary4);; + if (!(i_1845500467 < L_1845500468)) break Label3; + it_1845495446 = moves_1845495434[chckIndx(i_1845500467, 0, (moves_1845495434).length - 1)]; + if (!(contains_1476395661(takes_1845495433, it_1845495446))) { + var Temporary4 = nimCopy(null, it_1845495446, NTI1476395011); + resultHEX60gensym68_1845495442.push(Temporary4);; } - F.line = 13; - F.filename = "iterators.nim"; - i_1493178908 += 1; - if (!(((moves_1493173898).length == L_1493178909))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + i_1845500467 += 1; + if (!(((moves_1845495434).length == L_1845500468))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - var attempt_1493173941 = nimCopy(null, sample_1493173919(resultHEX60gensym68_1493173906), NTI1224736771); - if (contains_1224737421(moves_1493173898, attempt_1493173941)) { - F.line = 1138; - F.filename = "powers.nim"; - piece_1493173894.onMove(piece_1493173894, attempt_1493173941, board_1493173895, state_1493173896); + var attempt_1845495477 = nimCopy(null, sample_1845495455(resultHEX60gensym68_1845495442), NTI1476395011); + if (contains_1476395661(moves_1845495434, attempt_1845495477)) { + piece_1845495430.onMove(piece_1845495430, attempt_1845495477, board_1845495431, state_1845495432); } } }; - framePtr = F.prev; } -function HEX3Aanonymous_1493174013(side_1493174014, __1493174015, b_1493174016, s_1493174017) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 1171; - F.filename = "powers.nim"; - buff_1493172242(5, side_1493174014, b_1493174016, s_1493174017, [], [], [HEX3Aanonymous_1493173893], true, [], null, null, null, false); - framePtr = F.prev; +function HEX3Aanonymous_1845495549(side_1845495550, __1845495551, b_1845495552, s_1845495553) { + buff_1845493778(5, side_1845495550, b_1845495552, s_1845495553, [], [], [HEX3Aanonymous_1845495429], true, [], null, null, null, false); } -function HEX3Aanonymous_1493174023(side_1493174024, __1493174025, b_1493174026, s_1493174027) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 1187; - F.filename = "powers.nim"; - buff_1493172242(6, side_1493174024, b_1493174026, s_1493174027, [], [], [HEX3Aanonymous_1493173893], true, [], null, null, null, true); - framePtr = F.prev; +function HEX3Aanonymous_1845495559(side_1845495560, __1845495561, b_1845495562, s_1845495563) { + buff_1845493778(6, side_1845495560, b_1845495562, s_1845495563, [], [], [HEX3Aanonymous_1845495429], true, [], null, null, null, true); } -function addOnEndTurnTransform_1493172461(piece_1493172462, side_1493172463, board_1493172464, state_1493172465, create_1493172467, all_1493172468) { +function addOnEndTurnTransform_1845493997(piece_1845493998, side_1845493999, board_1845494000, state_1845494001, create_1845494003, all_1845494004) { -function HEX3Aanonymous_1493172479(p_1493172480, b_1493172481, s_1493172482) { - var F = {procname: "addOnEndTurnTransform.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 124; - F.filename = "powers.nim"; - p_1493172480.onEndTurn.push(create_1493172467());; - framePtr = F.prev; +function HEX3Aanonymous_1845494015(p_1845494016, b_1845494017, s_1845494018) { + p_1845494016.onEndTurn.push(create_1845494003());; } - var F = {procname: "powers.addOnEndTurnTransform", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; Label1: { - F.line = 119; - F.filename = "powers.nim"; - var i_1493172469 = 0; - F.line = 119; - var j_1493172470 = 0; + var i_1845494005 = 0; + var j_1845494006 = 0; Label2: { - F.line = 124; - F.filename = "piece.nim"; - var i_1493178940 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_1493178941 = 0; + var i_1845500499 = 0; + var i_1845500500 = 0; Label3: { - F.line = 129; Label4: while (true) { - if (!(i_1493178941 < 8)) break Label4; - F.line = 124; - F.filename = "piece.nim"; - i_1493178940 = i_1493178941; + if (!(i_1845500500 < 8)) break Label4; + i_1845500499 = i_1845500500; Label5: { - F.line = 125; - var j_1493178944 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_1493178945 = 0; + var j_1845500503 = 0; + var i_1845500504 = 0; Label6: { - F.line = 129; Label7: while (true) { - if (!(i_1493178945 < 8)) break Label7; - F.line = 125; - F.filename = "piece.nim"; - j_1493178944 = i_1493178945; - F.line = 119; - F.filename = "powers.nim"; - i_1493172469 = i_1493178940; - F.line = 119; - j_1493172470 = j_1493178944; - if ((((board_1493172464[chckIndx(i_1493172469, 0, (board_1493172464).length - 1)][chckIndx(j_1493172470, 0, (board_1493172464[chckIndx(i_1493172469, 0, (board_1493172464).length - 1)]).length - 1)].item == piece_1493172462) || all_1493172468) && isColor_1224737813(board_1493172464[chckIndx(i_1493172469, 0, (board_1493172464).length - 1)][chckIndx(j_1493172470, 0, (board_1493172464[chckIndx(i_1493172469, 0, (board_1493172464).length - 1)]).length - 1)], side_1493172463))) { - F.line = 121; - board_1493172464[chckIndx(i_1493172469, 0, (board_1493172464).length - 1)][chckIndx(j_1493172470, 0, (board_1493172464[chckIndx(i_1493172469, 0, (board_1493172464).length - 1)]).length - 1)].onEndTurn.push(create_1493172467());; + if (!(i_1845500504 < 8)) break Label7; + j_1845500503 = i_1845500504; + i_1845494005 = i_1845500499; + j_1845494006 = j_1845500503; + if ((((board_1845494000[chckIndx(i_1845494005, 0, (board_1845494000).length - 1)][chckIndx(j_1845494006, 0, (board_1845494000[chckIndx(i_1845494005, 0, (board_1845494000).length - 1)]).length - 1)].item == piece_1845493998) || all_1845494004) && isColor_1476396053(board_1845494000[chckIndx(i_1845494005, 0, (board_1845494000).length - 1)][chckIndx(j_1845494006, 0, (board_1845494000[chckIndx(i_1845494005, 0, (board_1845494000).length - 1)]).length - 1)], side_1845493999))) { + board_1845494000[chckIndx(i_1845494005, 0, (board_1845494000).length - 1)][chckIndx(j_1845494006, 0, (board_1845494000[chckIndx(i_1845494005, 0, (board_1845494000).length - 1)]).length - 1)].onEndTurn.push(create_1845494003());; } - F.line = 131; - F.filename = "iterators_1.nim"; - i_1493178945 = addInt(i_1493178945, 1); + i_1845500504 = addInt(i_1845500504, 1); } }; }; - F.line = 131; - i_1493178941 = addInt(i_1493178941, 1); + i_1845500500 = addInt(i_1845500500, 1); } }; }; }; - F.line = 123; - F.filename = "powers.nim"; - var transform_1493172487 = HEX3Aanonymous_1493172479; - F.line = 126; - state_1493172465.Field1[chckIndx(side_1493172463, 0, (state_1493172465.Field1).length - 1)].transforms[chckIndx(piece_1493172462, 0, (state_1493172465.Field1[chckIndx(side_1493172463, 0, (state_1493172465.Field1).length - 1)].transforms).length - 1)].push(transform_1493172487);; - framePtr = F.prev; + var transform_1845494023 = HEX3Aanonymous_1845494015; + state_1845494001.Field1[chckIndx(side_1845493999, 0, (state_1845494001.Field1).length - 1)].transforms[chckIndx(piece_1845493998, 0, (state_1845494001.Field1[chckIndx(side_1845493999, 0, (state_1845494001.Field1).length - 1)].transforms).length - 1)].push(transform_1845494023);; } -function rand_1392509035(r_1392509036, max_1392509037) { - var result_1392509038 = 0; +function rand_1644167275(r_1644167276, max_1644167277) { + var result_1644167278 = 0; - var F = {procname: "random.rand", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/random.nim", line: 0}; - framePtr = F; - F.line = 244; - F.filename = "random.nim"; - result_1392509038 = Number(BigInt.asIntN(32, rand_1392509039(r_1392509036, BigInt.asUintN(64, BigInt(max_1392509037))))); - framePtr = F.prev; + result_1644167278 = Number(BigInt.asIntN(32, rand_1644167279(r_1644167276, BigInt.asUintN(64, BigInt(max_1644167277))))); - return result_1392509038; + return result_1644167278; } -function rand_1392509064(max_1392509065) { - var result_1392509066 = 0; +function rand_1644167304(max_1644167305) { + var result_1644167306 = 0; - var F = {procname: "random.rand", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/random.nim", line: 0}; - framePtr = F; - F.line = 261; - F.filename = "random.nim"; - result_1392509066 = rand_1392509035(state_1392508942[0], chckRange(max_1392509065, 0, 2147483647)); - framePtr = F.prev; + result_1644167306 = rand_1644167275(state_1644167182[0], chckRange(max_1644167305, 0, 2147483647)); - return result_1392509066; + return result_1644167306; } -function createLottery_1493174351() { +function createLottery_1845495887() { -function HEX3Aanonymous_1493174354(piece_1493174355, board_1493174356, state_1493174357) { - var F = {procname: "createLottery.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - if (!((piece_1493174355.timesMoved == lastTimesMoved_1493174353))) { - F.line = 1403; - F.filename = "powers.nim"; - randomize_1392509190(BigInt(addInt(addInt(mulInt(10, piece_1493174355.tile.Field1), mulInt(100, piece_1493174355.tile.Field0)), state_1493174357.Field0.randSeed))); - F.line = 1404; - var ticket_1493174358 = rand_1392509064(100); - if ((ticket_1493174358 == 42)) { +function HEX3Aanonymous_1845495890(piece_1845495891, board_1845495892, state_1845495893) { + if (!((piece_1845495891.timesMoved == lastTimesMoved_1845495889))) { + randomize_1644167430(BigInt(addInt(addInt(mulInt(10, piece_1845495891.tile.Field1), mulInt(100, piece_1845495891.tile.Field0)), state_1845495893.Field0.randSeed))); + var ticket_1845495894 = rand_1644167304(100); + if ((ticket_1845495894 == 42)) { Label1: { - F.line = 181; - F.filename = "piece.nim"; - var xHEX60gensym86_1493174363 = null; - F.line = 249; - F.filename = "iterators.nim"; - var i_1493178948 = 0; - F.line = 250; - var L_1493178949 = (piece_1493174355.onPromote).length; + var xHEX60gensym86_1845495899 = null; + var i_1845500507 = 0; + var L_1845500508 = (piece_1845495891.onPromote).length; Label2: { - F.line = 251; Label3: while (true) { - if (!(i_1493178948 < L_1493178949)) break Label3; - F.line = 1406; - F.filename = "powers.nim"; - xHEX60gensym86_1493174363 = piece_1493174355.onPromote[chckIndx(i_1493178948, 0, (piece_1493174355.onPromote).length - 1)]; - F.line = 182; - F.filename = "piece.nim"; - xHEX60gensym86_1493174363(piece_1493174355, board_1493174356, state_1493174357); - if (piece_1493174355.promoted) { - F.line = 183; + if (!(i_1845500507 < L_1845500508)) break Label3; + xHEX60gensym86_1845495899 = piece_1845495891.onPromote[chckIndx(i_1845500507, 0, (piece_1845495891.onPromote).length - 1)]; + xHEX60gensym86_1845495899(piece_1845495891, board_1845495892, state_1845495893); + if (piece_1845495891.promoted) { break Label1; } - F.line = 13; - F.filename = "iterators.nim"; - i_1493178948 += 1; - if (!(((piece_1493174355.onPromote).length == L_1493178949))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + i_1845500507 += 1; + if (!(((piece_1845495891.onPromote).length == L_1845500508))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } @@ -6932,977 +4874,634 @@ function HEX3Aanonymous_1493174354(piece_1493174355, board_1493174356, state_149 } - F.line = 1407; - F.filename = "powers.nim"; - lastTimesMoved_1493174353 = piece_1493174355.timesMoved; - framePtr = F.prev; + lastTimesMoved_1845495889 = piece_1845495891.timesMoved; } - var result_1493174352 = null; + var result_1845495888 = null; - var F = {procname: "powers.createLottery", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 1395; - F.filename = "powers.nim"; - var lastTimesMoved_1493174353 = 0; - F.line = 1401; - result_1493174352 = HEX3Aanonymous_1493174354; - framePtr = F.prev; + var lastTimesMoved_1845495889 = 0; + result_1845495888 = HEX3Aanonymous_1845495890; - return result_1493174352; + return result_1845495888; } -function HEX3Aanonymous_1493174366(side_1493174367, __1493174368, b_1493174369, s_1493174370) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 1419; - F.filename = "powers.nim"; - addOnEndTurnTransform_1493172461(3, side_1493174367, b_1493174369, s_1493174370, createLottery_1493174351, false); - framePtr = F.prev; +function HEX3Aanonymous_1845495902(side_1845495903, __1845495904, b_1845495905, s_1845495906) { + addOnEndTurnTransform_1845493997(3, side_1845495903, b_1845495905, s_1845495906, createLottery_1845495887, false); } -function otherSide_1224737821(a_1224737822) { +function otherSide_1476396061(a_1476396062) { var Temporary1; - var result_1224737823 = 0; + var result_1476396063 = 0; - var F = {procname: "piece.otherSide", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/piece.nim", line: 0}; - framePtr = F; BeforeRet: { - F.line = 311; - F.filename = "piece.nim"; - if ((a_1224737822 == 1)) { + if ((a_1476396062 == 1)) { Temporary1 = 0; } else { Temporary1 = 1; } - result_1224737823 = Temporary1; + result_1476396063 = Temporary1; break BeforeRet; }; - framePtr = F.prev; - return result_1224737823; + return result_1476396063; } -function HEX3Aanonymous_1493174403(piece_1493174404, board_1493174405, state_1493174406) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 1424; - F.filename = "powers.nim"; - randomize_1392509190(BigInt(addInt(addInt(mulInt(10, piece_1493174404.tile.Field1), mulInt(100, piece_1493174404.tile.Field0)), state_1493174406.Field0.randSeed))); - F.line = 1425; - var ticket_1493174407 = rand_1392509064(1000); - if ((ticket_1493174407 == 42)) { +function HEX3Aanonymous_1845495939(piece_1845495940, board_1845495941, state_1845495942) { + randomize_1644167430(BigInt(addInt(addInt(mulInt(10, piece_1845495940.tile.Field1), mulInt(100, piece_1845495940.tile.Field0)), state_1845495942.Field0.randSeed))); + var ticket_1845495943 = rand_1644167304(1000); + if ((ticket_1845495943 == 42)) { Label1: { - F.line = 1427; - var i_1493174408 = 0; - F.line = 1427; - var j_1493174409 = 0; + var i_1845495944 = 0; + var j_1845495945 = 0; Label2: { - F.line = 124; - F.filename = "piece.nim"; - var i_1493178953 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_1493178954 = 0; + var i_1845500512 = 0; + var i_1845500513 = 0; Label3: { - F.line = 129; Label4: while (true) { - if (!(i_1493178954 < 8)) break Label4; - F.line = 124; - F.filename = "piece.nim"; - i_1493178953 = i_1493178954; + if (!(i_1845500513 < 8)) break Label4; + i_1845500512 = i_1845500513; Label5: { - F.line = 125; - var j_1493178957 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_1493178958 = 0; + var j_1845500516 = 0; + var i_1845500517 = 0; Label6: { - F.line = 129; Label7: while (true) { - if (!(i_1493178958 < 8)) break Label7; - F.line = 125; - F.filename = "piece.nim"; - j_1493178957 = i_1493178958; - F.line = 1427; - F.filename = "powers.nim"; - i_1493174408 = i_1493178953; - F.line = 1427; - j_1493174409 = j_1493178957; - if (((board_1493174405[chckIndx(i_1493174408, 0, (board_1493174405).length - 1)][chckIndx(j_1493174409, 0, (board_1493174405[chckIndx(i_1493174408, 0, (board_1493174405).length - 1)]).length - 1)].item == 0) && isColor_1224737813(board_1493174405[chckIndx(i_1493174408, 0, (board_1493174405).length - 1)][chckIndx(j_1493174409, 0, (board_1493174405[chckIndx(i_1493174408, 0, (board_1493174405).length - 1)]).length - 1)], otherSide_1224737821(piece_1493174404.color)))) { - F.line = 1430; - board_1493174405[chckIndx(i_1493174408, 0, (board_1493174405).length - 1)][chckIndx(j_1493174409, 0, (board_1493174405[chckIndx(i_1493174408, 0, (board_1493174405).length - 1)]).length - 1)].item = 6; + if (!(i_1845500517 < 8)) break Label7; + j_1845500516 = i_1845500517; + i_1845495944 = i_1845500512; + j_1845495945 = j_1845500516; + if (((board_1845495941[chckIndx(i_1845495944, 0, (board_1845495941).length - 1)][chckIndx(j_1845495945, 0, (board_1845495941[chckIndx(i_1845495944, 0, (board_1845495941).length - 1)]).length - 1)].item == 0) && isColor_1476396053(board_1845495941[chckIndx(i_1845495944, 0, (board_1845495941).length - 1)][chckIndx(j_1845495945, 0, (board_1845495941[chckIndx(i_1845495944, 0, (board_1845495941).length - 1)]).length - 1)], otherSide_1476396061(piece_1845495940.color)))) { + board_1845495941[chckIndx(i_1845495944, 0, (board_1845495941).length - 1)][chckIndx(j_1845495945, 0, (board_1845495941[chckIndx(i_1845495944, 0, (board_1845495941).length - 1)]).length - 1)].item = 6; } - F.line = 131; - F.filename = "iterators_1.nim"; - i_1493178958 = addInt(i_1493178958, 1); + i_1845500517 = addInt(i_1845500517, 1); } }; }; - F.line = 131; - i_1493178954 = addInt(i_1493178954, 1); + i_1845500513 = addInt(i_1845500513, 1); } }; }; }; } - framePtr = F.prev; } -function HEX3Aanonymous_1493174415(side_1493174416, __1493174417, b_1493174418, s_1493174419) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 1440; - F.filename = "powers.nim"; - buff_1493172242(0, side_1493174416, b_1493174418, s_1493174419, [], [], [HEX3Aanonymous_1493174403], false, [], null, null, null, false); - framePtr = F.prev; +function HEX3Aanonymous_1845495951(side_1845495952, __1845495953, b_1845495954, s_1845495955) { + buff_1845493778(0, side_1845495952, b_1845495954, s_1845495955, [], [], [HEX3Aanonymous_1845495939], false, [], null, null, null, false); } -function HEX3Aanonymous_1493174425(piece_1493174426, taking_1493174427, board_1493174428, state_1493174429) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 1446; - F.filename = "powers.nim"; - randomize_1392509190(BigInt(addInt(addInt(mulInt(10, piece_1493174426.tile.Field1), mulInt(100, piece_1493174426.tile.Field0)), state_1493174429.Field0.randSeed))); - F.line = 1447; - var dice_1493174430 = rand_1392509064(20); - F.line = 1449; - piece_1493174426.timesMoved = addInt(piece_1493174426.timesMoved, 1); - if (((dice_1493174430 <= 3) && !((HEX5BHEX5D_1224737124(board_1493174428, taking_1493174427).item == 0)))) { - F.line = 1451; - HEX5BHEX5D_1224737124(board_1493174428, taking_1493174427).color = piece_1493174426.color; - F.line = 1452; - HEX5BHEX5D_1224737124(board_1493174428, taking_1493174427).index = newIndex_1224737255(state_1493174429); - F.line = 1453; - pieceSwap_1224737595(piece_1493174426, HEX5BHEX5D_1224737124(board_1493174428, taking_1493174427), board_1493174428); - } - else { - F.line = 1455; - var takeResult_1493174440 = board_1493174428[chckIndx(taking_1493174427.Field1, 0, (board_1493174428).length - 1)][chckIndx(taking_1493174427.Field0, 0, (board_1493174428[chckIndx(taking_1493174427.Field1, 0, (board_1493174428).length - 1)]).length - 1)].whenTaken(board_1493174428[chckIndx(taking_1493174427.Field1, 0, (board_1493174428).length - 1)][chckIndx(taking_1493174427.Field0, 0, (board_1493174428[chckIndx(taking_1493174427.Field1, 0, (board_1493174428).length - 1)]).length - 1)], piece_1493174426, board_1493174428, state_1493174429); - if (takeResult_1493174440.Field1) { - F.line = 1457; - HEX5BHEX5D_1224737124(board_1493174428, takeResult_1493174440.Field0).piecesTaken = addInt(HEX5BHEX5D_1224737124(board_1493174428, takeResult_1493174440.Field0).piecesTaken, 1); - } +function createConvertingTake_1845495961(odds_1845495962) { + +function HEX3Aanonymous_1845495969(piece_1845495970, taking_1845495971, board_1845495972, state_1845495973) { + randomize_1644167430(BigInt(addInt(addInt(mulInt(10, piece_1845495970.tile.Field1), mulInt(100, piece_1845495970.tile.Field0)), state_1845495973.Field0.randSeed))); + var dice_1845495974 = rand_1644167304(100); + piece_1845495970.timesMoved = addInt(piece_1845495970.timesMoved, 1); + if (((dice_1845495974 <= (((odds_1845495962 * 100.0)) | 0)) && !((HEX5BHEX5D_1476395364(board_1845495972, taking_1845495971).item == 0)))) { + HEX5BHEX5D_1476395364(board_1845495972, taking_1845495971).color = piece_1845495970.color; + HEX5BHEX5D_1476395364(board_1845495972, taking_1845495971).index = newIndex_1476395495(state_1845495973); + pieceSwap_1476395835(piece_1845495970, HEX5BHEX5D_1476395364(board_1845495972, taking_1845495971), board_1845495972); + } + else { + var takeResult_1845495984 = board_1845495972[chckIndx(taking_1845495971.Field1, 0, (board_1845495972).length - 1)][chckIndx(taking_1845495971.Field0, 0, (board_1845495972[chckIndx(taking_1845495971.Field1, 0, (board_1845495972).length - 1)]).length - 1)].whenTaken(board_1845495972[chckIndx(taking_1845495971.Field1, 0, (board_1845495972).length - 1)][chckIndx(taking_1845495971.Field0, 0, (board_1845495972[chckIndx(taking_1845495971.Field1, 0, (board_1845495972).length - 1)]).length - 1)], piece_1845495970, board_1845495972, state_1845495973); + if (takeResult_1845495984.Field1) { + HEX5BHEX5D_1476395364(board_1845495972, takeResult_1845495984.Field0).piecesTaken = addInt(HEX5BHEX5D_1476395364(board_1845495972, takeResult_1845495984.Field0).piecesTaken, 1); + } + + } + + } + + var result_1845495963 = null; + + if (!((odds_1845495962 <= 1.0))) { + failedAssertImpl_268435541([112,111,119,101,114,115,46,110,105,109,40,49,52,52,54,44,32,53,41,32,96,111,100,100,115,32,60,61,32,49,96,32]); + } - framePtr = F.prev; + result_1845495963 = HEX3Aanonymous_1845495969; + + return result_1845495963; - } -function HEX3Aanonymous_1493174448(side_1493174449, __1493174450, b_1493174451, s_1493174452) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 1468; - F.filename = "powers.nim"; - buff_1493172242(2, side_1493174449, b_1493174451, s_1493174452, [], [], [], false, [], null, HEX3Aanonymous_1493174425, null, false); - framePtr = F.prev; +function HEX3Aanonymous_1845495991(side_1845495992, __1845495993, b_1845495994, s_1845495995) { + buff_1845493778(2, side_1845495992, b_1845495994, s_1845495995, [], [], [], false, [], null, createConvertingTake_1845495961(0.15), null, false); } -function HEX3Aanonymous_1493174496(piece_1493174497, board_1493174498, state_1493174499) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; +function HEX3Aanonymous_1845496016(piece_1845496017, board_1845496018, state_1845496019) { Label1: { - F.line = 1511; - F.filename = "powers.nim"; - var i_1493174500 = 0; - F.line = 1511; - var j_1493174501 = 0; + var i_1845496020 = 0; + var j_1845496021 = 0; Label2: { - F.line = 124; - F.filename = "piece.nim"; - var i_1493178962 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_1493178963 = 0; + var i_1845500521 = 0; + var i_1845500522 = 0; Label3: { - F.line = 129; Label4: while (true) { - if (!(i_1493178963 < 8)) break Label4; - F.line = 124; - F.filename = "piece.nim"; - i_1493178962 = i_1493178963; + if (!(i_1845500522 < 8)) break Label4; + i_1845500521 = i_1845500522; Label5: { - F.line = 125; - var j_1493178966 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_1493178967 = 0; + var j_1845500525 = 0; + var i_1845500526 = 0; Label6: { - F.line = 129; Label7: while (true) { - if (!(i_1493178967 < 8)) break Label7; - F.line = 125; - F.filename = "piece.nim"; - j_1493178966 = i_1493178967; - F.line = 1511; - F.filename = "powers.nim"; - i_1493174500 = i_1493178962; - F.line = 1511; - j_1493174501 = j_1493178966; - if (board_1493174498[chckIndx(i_1493174500, 0, (board_1493174498).length - 1)][chckIndx(j_1493174501, 0, (board_1493174498[chckIndx(i_1493174500, 0, (board_1493174498).length - 1)]).length - 1)].promoted) { - F.line = 1513; - board_1493174498[chckIndx(i_1493174500, 0, (board_1493174498).length - 1)][chckIndx(j_1493174501, 0, (board_1493174498[chckIndx(i_1493174500, 0, (board_1493174498).length - 1)]).length - 1)] = nimCopy(board_1493174498[chckIndx(i_1493174500, 0, (board_1493174498).length - 1)][chckIndx(j_1493174501, 0, (board_1493174498[chckIndx(i_1493174500, 0, (board_1493174498).length - 1)]).length - 1)], pieceCopy_1224737660(air_1275068591, newIndex_1224737255(state_1493174499), 6, 1, 0, 0, board_1493174498[chckIndx(i_1493174500, 0, (board_1493174498).length - 1)][chckIndx(j_1493174501, 0, (board_1493174498[chckIndx(i_1493174500, 0, (board_1493174498).length - 1)]).length - 1)].tile, [], [], air_1275068591.onMove, air_1275068591.onTake, air_1275068591.whenTaken, [], [], false, [], true, false, false), NTI1224736794); + if (!(i_1845500526 < 8)) break Label7; + j_1845500525 = i_1845500526; + i_1845496020 = i_1845500521; + j_1845496021 = j_1845500525; + if (board_1845496018[chckIndx(i_1845496020, 0, (board_1845496018).length - 1)][chckIndx(j_1845496021, 0, (board_1845496018[chckIndx(i_1845496020, 0, (board_1845496018).length - 1)]).length - 1)].promoted) { + board_1845496018[chckIndx(i_1845496020, 0, (board_1845496018).length - 1)][chckIndx(j_1845496021, 0, (board_1845496018[chckIndx(i_1845496020, 0, (board_1845496018).length - 1)]).length - 1)] = nimCopy(board_1845496018[chckIndx(i_1845496020, 0, (board_1845496018).length - 1)][chckIndx(j_1845496021, 0, (board_1845496018[chckIndx(i_1845496020, 0, (board_1845496018).length - 1)]).length - 1)], pieceCopy_1476395900(air_1526726831, newIndex_1476395495(state_1845496019), 6, 1, 0, 0, board_1845496018[chckIndx(i_1845496020, 0, (board_1845496018).length - 1)][chckIndx(j_1845496021, 0, (board_1845496018[chckIndx(i_1845496020, 0, (board_1845496018).length - 1)]).length - 1)].tile, [], [], air_1526726831.onMove, air_1526726831.onTake, air_1526726831.whenTaken, [], [], false, [], true, false, false), NTI1476395034); } - F.line = 131; - F.filename = "iterators_1.nim"; - i_1493178967 = addInt(i_1493178967, 1); + i_1845500526 = addInt(i_1845500526, 1); } }; }; - F.line = 131; - i_1493178963 = addInt(i_1493178963, 1); + i_1845500522 = addInt(i_1845500522, 1); } }; }; }; - framePtr = F.prev; } -function HEX3Aanonymous_1493174503(side_1493174504, __1493174505, b_1493174506, s_1493174507) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 1524; - F.filename = "powers.nim"; - buff_1493172242(0, side_1493174504, b_1493174506, s_1493174507, [], [], [HEX3Aanonymous_1493174496], false, [], null, null, null, false); - framePtr = F.prev; +function HEX3Aanonymous_1845496023(side_1845496024, __1845496025, b_1845496026, s_1845496027) { + buff_1845493778(0, side_1845496024, b_1845496026, s_1845496027, [], [], [HEX3Aanonymous_1845496016], false, [], null, null, null, false); } -function HEX3Aanonymous_1493174513(side_1493174514, __1493174515, b_1493174516, state_1493174517) { +function HEX3Aanonymous_1845496033(side_1845496034, __1845496035, b_1845496036, state_1845496037) { var Temporary1; - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 1538; - F.filename = "powers.nim"; - randomize_1392509190(BigInt(state_1493174517.Field0.randSeed)); - F.line = 1539; - var sleeper_1493174525 = rand_1392509064(7); - F.line = 1540; - var failsafe_1493174533 = 9; - F.line = 1541; - if ((side_1493174514 == 0)) { + randomize_1644167430(BigInt(state_1845496037.Field0.randSeed)); + var sleeper_1845496045 = rand_1644167304(7); + var failsafe_1845496053 = 9; + if ((side_1845496034 == 0)) { Temporary1 = 1; } else { Temporary1 = 6; } - var rank_1493174538 = Temporary1; + var rank_1845496058 = Temporary1; Label2: { - F.line = 1545; Label3: while (true) { - if (!(!((b_1493174516[chckIndx(rank_1493174538, 0, (b_1493174516).length - 1)][chckIndx(sleeper_1493174525, 0, (b_1493174516[chckIndx(rank_1493174538, 0, (b_1493174516).length - 1)]).length - 1)].item == 3)) && !((failsafe_1493174533 == 0)))) break Label3; - F.line = 1546; - sleeper_1493174525 = addInt(sleeper_1493174525, 1); - F.line = 1547; - failsafe_1493174533 = subInt(failsafe_1493174533, 1); - F.line = 1548; - sleeper_1493174525 = modInt(sleeper_1493174525, 8); + if (!(!((b_1845496036[chckIndx(rank_1845496058, 0, (b_1845496036).length - 1)][chckIndx(sleeper_1845496045, 0, (b_1845496036[chckIndx(rank_1845496058, 0, (b_1845496036).length - 1)]).length - 1)].item == 3)) && !((failsafe_1845496053 == 0)))) break Label3; + sleeper_1845496045 = addInt(sleeper_1845496045, 1); + failsafe_1845496053 = subInt(failsafe_1845496053, 1); + sleeper_1845496045 = modInt(sleeper_1845496045, 8); } }; - if (!((failsafe_1493174533 == 0))) { - if ((side_1493174514 == 0)) { - F.line = 1553; - b_1493174516[chckIndx(1, 0, (b_1493174516).length - 1)][chckIndx(sleeper_1493174525, 0, (b_1493174516[chckIndx(1, 0, (b_1493174516).length - 1)]).length - 1)].takes.push(HEX3Aanonymous_1509949524);; + if (!((failsafe_1845496053 == 0))) { + if ((side_1845496034 == 0)) { + b_1845496036[chckIndx(1, 0, (b_1845496036).length - 1)][chckIndx(sleeper_1845496045, 0, (b_1845496036[chckIndx(1, 0, (b_1845496036).length - 1)]).length - 1)].takes.push(HEX3Aanonymous_1862271060);; } else { - F.line = 1555; - b_1493174516[chckIndx(6, 0, (b_1493174516).length - 1)][chckIndx(sleeper_1493174525, 0, (b_1493174516[chckIndx(6, 0, (b_1493174516).length - 1)]).length - 1)].takes.push(HEX3Aanonymous_1509949519);; + b_1845496036[chckIndx(6, 0, (b_1845496036).length - 1)][chckIndx(sleeper_1845496045, 0, (b_1845496036[chckIndx(6, 0, (b_1845496036).length - 1)]).length - 1)].takes.push(HEX3Aanonymous_1862271055);; } } - framePtr = F.prev; } -function alwaysCost_1526726885(cost_1526726886) { +function alwaysCost_1879048421(cost_1879048422) { -function HEX3Aanonymous_1526726888(piece_1526726889, b_1526726890, s_1526726891) { - var result_1526726892 = 0; +function HEX3Aanonymous_1879048424(piece_1879048425, b_1879048426, s_1879048427) { + var result_1879048428 = 0; - var F = {procname: "alwaysCost.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/capitalism.nim", line: 0}; - framePtr = F; BeforeRet: { - F.line = 45; - F.filename = "capitalism.nim"; - result_1526726892 = cost_1526726886; + result_1879048428 = cost_1879048422; break BeforeRet; }; - framePtr = F.prev; - return result_1526726892; + return result_1879048428; } - var result_1526726887 = null; + var result_1879048423 = null; - var F = {procname: "capitalism.alwaysCost", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/capitalism.nim", line: 0}; - framePtr = F; - F.line = 44; - F.filename = "capitalism.nim"; - result_1526726887 = HEX3Aanonymous_1526726888; - framePtr = F.prev; + result_1879048423 = HEX3Aanonymous_1879048424; - return result_1526726887; + return result_1879048423; } -function HEX3Aanonymous_1493174566(piece_1493174567, b_1493174568, s_1493174569) { +function HEX3Aanonymous_1845496086(piece_1845496087, b_1845496088, s_1845496089) { -function HEX3Aanonymous_1493174587(piece_1493174588, board_1493174589, state_1493174590) { - var F = {procname: ":anonymous.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - if ((!((state_1493174590.Field0.turnNumber == turnOfPromote_1493174577)) && !(release_1493174578))) { - F.line = 1572; - F.filename = "powers.nim"; - add_1493172278(piece_1493174588, "moves", captureMove_1493174575); - F.line = 1573; - add_1493172278(piece_1493174588, "takes", captureTake_1493174576); - F.line = 1574; - release_1493174578 = true; +function HEX3Aanonymous_1845496107(piece_1845496108, board_1845496109, state_1845496110) { + if ((!((state_1845496110.Field0.turnNumber == turnOfPromote_1845496097)) && !(release_1845496098))) { + add_1845493814(piece_1845496108, "moves", captureMove_1845496095); + add_1845493814(piece_1845496108, "takes", captureTake_1845496096); + release_1845496098 = true; } - framePtr = F.prev; } - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; Label1: { - F.line = 181; - F.filename = "piece.nim"; - var xHEX60gensym96_1493174574 = null; - F.line = 249; - F.filename = "iterators.nim"; - var i_1493178971 = 0; - F.line = 250; - var L_1493178972 = (piece_1493174567.onPromote).length; + var xHEX60gensym96_1845496094 = null; + var i_1845500530 = 0; + var L_1845500531 = (piece_1845496087.onPromote).length; Label2: { - F.line = 251; Label3: while (true) { - if (!(i_1493178971 < L_1493178972)) break Label3; - F.line = 1560; - F.filename = "powers.nim"; - xHEX60gensym96_1493174574 = piece_1493174567.onPromote[chckIndx(i_1493178971, 0, (piece_1493174567.onPromote).length - 1)]; - F.line = 182; - F.filename = "piece.nim"; - xHEX60gensym96_1493174574(piece_1493174567, b_1493174568, s_1493174569); - if (piece_1493174567.promoted) { - F.line = 183; + if (!(i_1845500530 < L_1845500531)) break Label3; + xHEX60gensym96_1845496094 = piece_1845496087.onPromote[chckIndx(i_1845500530, 0, (piece_1845496087.onPromote).length - 1)]; + xHEX60gensym96_1845496094(piece_1845496087, b_1845496088, s_1845496089); + if (piece_1845496087.promoted) { break Label1; } - F.line = 13; - F.filename = "iterators.nim"; - i_1493178971 += 1; - if (!(((piece_1493174567.onPromote).length == L_1493178972))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + i_1845500530 += 1; + if (!(((piece_1845496087.onPromote).length == L_1845500531))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - F.line = 1561; - F.filename = "powers.nim"; - var captureMove_1493174575 = nimCopy(null, piece_1493174567.moves, NTI1224736849); - F.line = 1562; - var captureTake_1493174576 = nimCopy(null, piece_1493174567.takes, NTI1224736850); - F.line = 1563; - var turnOfPromote_1493174577 = s_1493174569.Field0.turnNumber; - F.line = 1564; - var release_1493174578 = false; - F.line = 1565; - piece_1493174567.moves = nimCopy(null, [], NTI1493172238); - F.line = 1566; - piece_1493174567.takes = nimCopy(null, [], NTI1493172238); - F.line = 1567; - piece_1493174567.promoted = true; - F.line = 1569; - piece_1493174567.onEndTurn.push(HEX3Aanonymous_1493174587);; - framePtr = F.prev; - - -} - -function HEX3DHEX3D_1493174615(x_1493174617, y_1493174618) { - var result_1493174619 = false; - - var F = {procname: "==.==", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/comparisons.nim", line: 0}; - framePtr = F; + var captureMove_1845496095 = nimCopy(null, piece_1845496087.moves, NTI1476395089); + var captureTake_1845496096 = nimCopy(null, piece_1845496087.takes, NTI1476395090); + var turnOfPromote_1845496097 = s_1845496089.Field0.turnNumber; + var release_1845496098 = false; + piece_1845496087.moves = nimCopy(null, [], NTI1845493774); + piece_1845496087.takes = nimCopy(null, [], NTI1845493774); + piece_1845496087.promoted = true; + piece_1845496087.onEndTurn.push(HEX3Aanonymous_1845496107);; + + +} + +function HEX3DHEX3D_1845496135(x_1845496137, y_1845496138) { + var result_1845496139 = false; + BeforeRet: { - F.line = 326; - F.filename = "comparisons.nim"; - var sameObject_1493174626 = false; - F.line = 327; - sameObject_1493174626 = x_1493174617 === y_1493174618 - if (sameObject_1493174626) { - F.line = 328; - result_1493174619 = true; + var sameObject_1845496146 = false; + sameObject_1845496146 = x_1845496137 === y_1845496138 + if (sameObject_1845496146) { + result_1845496139 = true; break BeforeRet; } - if (!(((x_1493174617).length == (y_1493174618).length))) { - F.line = 331; - result_1493174619 = false; + if (!(((x_1845496137).length == (y_1845496138).length))) { + result_1845496139 = false; break BeforeRet; } Label1: { - F.line = 333; - var i_1493174640 = 0; - F.line = 81; - F.filename = "iterators_1.nim"; - var colontmp__1493178975 = 0; - F.line = 333; - F.filename = "comparisons.nim"; - colontmp__1493178975 = subInt((x_1493174617).length, 1); - F.line = 96; - F.filename = "iterators_1.nim"; - var res_1493178976 = 0; + var i_1845496160 = 0; + var colontmp__1845500534 = 0; + colontmp__1845500534 = subInt((x_1845496137).length, 1); + var res_1845500535 = 0; Label2: { - F.line = 97; Label3: while (true) { - if (!(res_1493178976 <= colontmp__1493178975)) break Label3; - F.line = 333; - F.filename = "comparisons.nim"; - i_1493174640 = res_1493178976; - if (!((x_1493174617[chckIndx(i_1493174640, 0, (x_1493174617).length - 1)] == y_1493174618[chckIndx(i_1493174640, 0, (y_1493174618).length - 1)]))) { - F.line = 335; - result_1493174619 = false; + if (!(res_1845500535 <= colontmp__1845500534)) break Label3; + i_1845496160 = res_1845500535; + if (!((x_1845496137[chckIndx(i_1845496160, 0, (x_1845496137).length - 1)] == y_1845496138[chckIndx(i_1845496160, 0, (y_1845496138).length - 1)]))) { + result_1845496139 = false; break BeforeRet; } - F.line = 102; - F.filename = "iterators_1.nim"; - res_1493178976 = addInt(res_1493178976, 1); + res_1845500535 = addInt(res_1845500535, 1); } }; }; - F.line = 337; - F.filename = "comparisons.nim"; - result_1493174619 = true; + result_1845496139 = true; break BeforeRet; }; - framePtr = F.prev; - return result_1493174619; + return result_1845496139; } -function HEX3Aanonymous_1493174606(piece_1493174607, board_1493174608, s_1493174609) { - var result_1493174610 = false; +function HEX3Aanonymous_1845496126(piece_1845496127, board_1845496128, s_1845496129) { + var result_1845496130 = false; - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; BeforeRet: { - F.line = 1577; - F.filename = "powers.nim"; - result_1493174610 = (!(piece_1493174607.promoted) && !(HEX3DHEX3D_1493174615(piece_1493174607.onPromote, [HEX3Aanonymous_1224737210]))); + result_1845496130 = (!(piece_1845496127.promoted) && !(HEX3DHEX3D_1845496135(piece_1845496127.onPromote, [HEX3Aanonymous_1476395450]))); break BeforeRet; }; - framePtr = F.prev; - return result_1493174610; + return result_1845496130; } -function some_1409288448(val_1409288450) { - var result_1409288451 = ({val: 0, has: false}); +function some_1660946688(val_1660946690) { + var result_1660946691 = ({val: 0, has: false}); - var F = {procname: "some.some", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/options.nim", line: 0}; - framePtr = F; - F.line = 140; - F.filename = "options.nim"; - result_1409288451.has = true; - F.line = 141; - result_1409288451.val = val_1409288450; - framePtr = F.prev; + result_1660946691.has = true; + result_1660946691.val = val_1660946690; - return result_1409288451; + return result_1660946691; } -function initWallet_1526726758(side_1526726759, s_1526726760) { - var F = {procname: "capitalism.initWallet", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/capitalism.nim", line: 0}; - framePtr = F; - F.line = 21; - F.filename = "capitalism.nim"; - s_1526726760.Field1[chckIndx(side_1526726759, 0, (s_1526726760.Field1).length - 1)].wallet = nimCopy(s_1526726760.Field1[chckIndx(side_1526726759, 0, (s_1526726760.Field1).length - 1)].wallet, some_1409288448(0), NTI1224736866); - framePtr = F.prev; +function initWallet_1879048294(side_1879048295, s_1879048296) { + s_1879048296.Field1[chckIndx(side_1879048295, 0, (s_1879048296.Field1).length - 1)].wallet = nimCopy(s_1879048296.Field1[chckIndx(side_1879048295, 0, (s_1879048296.Field1).length - 1)].wallet, some_1660946688(0), NTI1476395106); } -function isSome_1409289449(self_1409289451) { - var result_1409289452 = false; +function isSome_1660947689(self_1660947691) { + var result_1660947692 = false; - var F = {procname: "isSome.isSome", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/options.nim", line: 0}; - framePtr = F; - F.line = 161; - F.filename = "options.nim"; - result_1409289452 = self_1409289451.has; - framePtr = F.prev; + result_1660947692 = self_1660947691.has; - return result_1409289452; + return result_1660947692; } -function none_1224736916() { - var result_1224736923 = ({val: 0, has: false}); +function none_1476395156() { + var result_1476395163 = ({val: 0, has: false}); - var F = {procname: "none.none", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/options.nim", line: 0}; - framePtr = F; - framePtr = F.prev; - - return result_1224736923; + return result_1476395163; } -function map_1526726734(self_1526726737, callback_1526726739) { +function map_1879048270(self_1879048273, callback_1879048275) { var Temporary1; - var result_1526726740 = ({val: 0, has: false}); + var result_1879048276 = ({val: 0, has: false}); - var F = {procname: "map.map", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/options.nim", line: 0}; - framePtr = F; - F.line = 253; - F.filename = "options.nim"; - if (isSome_1409289449(self_1526726737)) { - Temporary1 = some_1409288448(callback_1526726739(self_1526726737.val)); + if (isSome_1660947689(self_1879048273)) { + Temporary1 = some_1660946688(callback_1879048275(self_1879048273.val)); } else { - Temporary1 = none_1224736916(); + Temporary1 = none_1476395156(); } - result_1526726740 = nimCopy(result_1526726740, Temporary1, NTI1224736866); - framePtr = F.prev; + result_1879048276 = nimCopy(result_1879048276, Temporary1, NTI1476395106); - return result_1526726740; + return result_1879048276; } -function addMoney_1526726698(side_1526726699, money_1526726700, s_1526726701) { +function addMoney_1879048234(side_1879048235, money_1879048236, s_1879048237) { -function HEX3Aanonymous_1526726718(x_1526726729) { - var result_1526726733 = 0; +function HEX3Aanonymous_1879048254(x_1879048265) { + var result_1879048269 = 0; - var F = {procname: "addMoney.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/capitalism.nim", line: 0}; - framePtr = F; - F.line = 18; - F.filename = "capitalism.nim"; - result_1526726733 = addInt(x_1526726729, money_1526726700); - framePtr = F.prev; + result_1879048269 = addInt(x_1879048265, money_1879048236); - return result_1526726733; + return result_1879048269; } - var F = {procname: "capitalism.addMoney", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/capitalism.nim", line: 0}; - framePtr = F; - if (!(isSome_1409289449(s_1526726701.Field1[chckIndx(side_1526726699, 0, (s_1526726701.Field1).length - 1)].wallet))) { - F.line = 17; - F.filename = "capitalism.nim"; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/the-playground/chess/src/capitalism.nim(17, 5) `s.side[side].wallet.isSome()` ")); + if (!(isSome_1660947689(s_1879048237.Field1[chckIndx(side_1879048235, 0, (s_1879048237.Field1).length - 1)].wallet))) { + failedAssertImpl_268435541([99,97,112,105,116,97,108,105,115,109,46,110,105,109,40,49,55,44,32,53,41,32,96,115,46,115,105,100,101,91,115,105,100,101,93,46,119,97,108,108,101,116,46,105,115,83,111,109,101,40,41,96,32]); } - F.line = 18; - s_1526726701.Field1[chckIndx(side_1526726699, 0, (s_1526726701.Field1).length - 1)].wallet = nimCopy(s_1526726701.Field1[chckIndx(side_1526726699, 0, (s_1526726701.Field1).length - 1)].wallet, map_1526726734(s_1526726701.Field1[chckIndx(side_1526726699, 0, (s_1526726701.Field1).length - 1)].wallet, HEX3Aanonymous_1526726718), NTI1224736866); - framePtr = F.prev; + s_1879048237.Field1[chckIndx(side_1879048235, 0, (s_1879048237.Field1).length - 1)].wallet = nimCopy(s_1879048237.Field1[chckIndx(side_1879048235, 0, (s_1879048237.Field1).length - 1)].wallet, map_1879048270(s_1879048237.Field1[chckIndx(side_1879048235, 0, (s_1879048237.Field1).length - 1)].wallet, HEX3Aanonymous_1879048254), NTI1476395106); } -function moneyForTake_1493174646() { +function moneyForTakeAll_1845496166() { -function HEX3Aanonymous_1493174649(piece_1493174650, b_1493174651, state_1493174652) { - var F = {procname: "moneyForTake.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 1587; - F.filename = "powers.nim"; - var allPiecesTaken_1493174653 = 0; +function HEX3Aanonymous_1845496169(piece_1845496170, b_1845496171, state_1845496172) { + var allPiecesTaken_1845496173 = 0; Label1: { - F.line = 1588; - var i_1493174654 = 0; - F.line = 1588; - var j_1493174655 = 0; + var i_1845496174 = 0; + var j_1845496175 = 0; Label2: { - F.line = 124; - F.filename = "piece.nim"; - var i_1493178980 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_1493178981 = 0; + var i_1845500539 = 0; + var i_1845500540 = 0; Label3: { - F.line = 129; Label4: while (true) { - if (!(i_1493178981 < 8)) break Label4; - F.line = 124; - F.filename = "piece.nim"; - i_1493178980 = i_1493178981; + if (!(i_1845500540 < 8)) break Label4; + i_1845500539 = i_1845500540; Label5: { - F.line = 125; - var j_1493178984 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_1493178985 = 0; + var j_1845500543 = 0; + var i_1845500544 = 0; Label6: { - F.line = 129; Label7: while (true) { - if (!(i_1493178985 < 8)) break Label7; - F.line = 125; - F.filename = "piece.nim"; - j_1493178984 = i_1493178985; - F.line = 1588; - F.filename = "powers.nim"; - i_1493174654 = i_1493178980; - F.line = 1588; - j_1493174655 = j_1493178984; - if (sameColor_1224737804(b_1493174651[chckIndx(i_1493174654, 0, (b_1493174651).length - 1)][chckIndx(j_1493174655, 0, (b_1493174651[chckIndx(i_1493174654, 0, (b_1493174651).length - 1)]).length - 1)], piece_1493174650)) { - F.line = 1590; - allPiecesTaken_1493174653 = addInt(allPiecesTaken_1493174653, b_1493174651[chckIndx(i_1493174654, 0, (b_1493174651).length - 1)][chckIndx(j_1493174655, 0, (b_1493174651[chckIndx(i_1493174654, 0, (b_1493174651).length - 1)]).length - 1)].piecesTaken); + if (!(i_1845500544 < 8)) break Label7; + j_1845500543 = i_1845500544; + i_1845496174 = i_1845500539; + j_1845496175 = j_1845500543; + if (sameColor_1476396044(b_1845496171[chckIndx(i_1845496174, 0, (b_1845496171).length - 1)][chckIndx(j_1845496175, 0, (b_1845496171[chckIndx(i_1845496174, 0, (b_1845496171).length - 1)]).length - 1)], piece_1845496170)) { + allPiecesTaken_1845496173 = addInt(allPiecesTaken_1845496173, b_1845496171[chckIndx(i_1845496174, 0, (b_1845496171).length - 1)][chckIndx(j_1845496175, 0, (b_1845496171[chckIndx(i_1845496174, 0, (b_1845496171).length - 1)]).length - 1)].piecesTaken); } - F.line = 131; - F.filename = "iterators_1.nim"; - i_1493178985 = addInt(i_1493178985, 1); + i_1845500544 = addInt(i_1845500544, 1); } }; }; - F.line = 131; - i_1493178981 = addInt(i_1493178981, 1); + i_1845500540 = addInt(i_1845500540, 1); } }; }; }; - F.line = 1592; - F.filename = "powers.nim"; - allPiecesTaken_1493174653 = addInt(allPiecesTaken_1493174653, state_1493174652.Field1[chckIndx(piece_1493174650.color, 0, (state_1493174652.Field1).length - 1)].abilityTakes); - if ((lastPiecesTaken_1493174648 < allPiecesTaken_1493174653)) { - F.line = 1595; - addMoney_1526726698(piece_1493174650.color, mulInt(subInt(allPiecesTaken_1493174653, lastPiecesTaken_1493174648), 3), state_1493174652); + allPiecesTaken_1845496173 = addInt(allPiecesTaken_1845496173, state_1845496172.Field1[chckIndx(piece_1845496170.color, 0, (state_1845496172.Field1).length - 1)].abilityTakes); + if ((lastPiecesTaken_1845496168 < allPiecesTaken_1845496173)) { + addMoney_1879048234(piece_1845496170.color, mulInt(subInt(allPiecesTaken_1845496173, lastPiecesTaken_1845496168), 3), state_1845496172); } - F.line = 1596; - lastPiecesTaken_1493174648 = allPiecesTaken_1493174653; - framePtr = F.prev; + lastPiecesTaken_1845496168 = allPiecesTaken_1845496173; } - var result_1493174647 = null; + var result_1845496167 = null; - var F = {procname: "powers.moneyForTake", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 1582; - F.filename = "powers.nim"; - var lastPiecesTaken_1493174648 = 0; - F.line = 1586; - result_1493174647 = HEX3Aanonymous_1493174649; - framePtr = F.prev; + var lastPiecesTaken_1845496168 = 0; + result_1845496167 = HEX3Aanonymous_1845496169; - return result_1493174647; + return result_1845496167; } -function HEX3Aanonymous_1493174664(side_1493174665, __1493174666, b_1493174667, s_1493174668) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 1611; - F.filename = "powers.nim"; - s_1493174668.Field1[chckIndx(side_1493174665, 0, (s_1493174668.Field1).length - 1)].buys.push({Field0: [80,114,111,109,111,116,101], Field1: alwaysCost_1526726885(30), Field2: HEX3Aanonymous_1493174566, Field3: HEX3Aanonymous_1493174606});; - F.line = 1612; - initWallet_1526726758(side_1493174665, s_1493174668); - F.line = 1613; - addOnEndTurnTransform_1493172461(0, side_1493174665, b_1493174667, s_1493174668, moneyForTake_1493174646, false); - framePtr = F.prev; +function HEX3Aanonymous_1845496191(side_1845496192, __1845496193, b_1845496194, s_1845496195) { + s_1845496195.Field1[chckIndx(side_1845496192, 0, (s_1845496195.Field1).length - 1)].buys.push({Field0: [80,114,111,109,111,116,101], Field1: alwaysCost_1879048421(30), Field2: HEX3Aanonymous_1845496086, Field3: HEX3Aanonymous_1845496126});; + initWallet_1879048294(side_1845496192, s_1845496195); + addOnEndTurnTransform_1845493997(0, side_1845496192, b_1845496194, s_1845496195, moneyForTakeAll_1845496166, false); } -function some_1493178051(val_1493178053) { - var result_1493178054 = ({val: {Field0: 0, Field1: null, Field2: null}, has: false}); +function some_1845499610(val_1845499612) { + var result_1845499613 = ({val: {Field0: 0, Field1: null, Field2: null}, has: false}); - var F = {procname: "some.some", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/options.nim", line: 0}; - framePtr = F; - F.line = 140; - F.filename = "options.nim"; - result_1493178054.has = true; - F.line = 141; - result_1493178054.val = nimCopy(result_1493178054.val, val_1493178053, NTI1224736792); - framePtr = F.prev; + result_1845499613.has = true; + result_1845499613.val = nimCopy(result_1845499613.val, val_1845499612, NTI1476395032); - return result_1493178054; + return result_1845499613; } -function HEX3Aanonymous_1493177940(piece_1493177941, to_1493177942, b_1493177943, s_1493177944) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; +function HEX3Aanonymous_1845499499(piece_1845499500, to_1845499501, b_1845499502, s_1845499503) { BeforeRet: { - if (!((b_1493177943[chckIndx(to_1493177942.Field1, 0, (b_1493177943).length - 1)][chckIndx(to_1493177942.Field0, 0, (b_1493177943[chckIndx(to_1493177942.Field1, 0, (b_1493177943).length - 1)]).length - 1)].item == 6))) { - F.line = 1924; - F.filename = "powers.nim"; + if (!((b_1845499502[chckIndx(to_1845499501.Field1, 0, (b_1845499502).length - 1)][chckIndx(to_1845499501.Field0, 0, (b_1845499502[chckIndx(to_1845499501.Field1, 0, (b_1845499502).length - 1)]).length - 1)].item == 6))) { break BeforeRet; } - F.line = 1925; - piece_1493177941.onMove(piece_1493177941, to_1493177942, b_1493177943, s_1493177944); + piece_1845499500.onMove(piece_1845499500, to_1845499501, b_1845499502, s_1845499503); }; - framePtr = F.prev; } -function HEX5BHEX5D_1224737072(b_1224737073, tile_1224737074) { - var result_1224737075 = ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}); +function HEX5BHEX5D_1476395312(b_1476395313, tile_1476395314) { + var result_1476395315 = ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}); - var F = {procname: "piece.[]", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/piece.nim", line: 0}; - framePtr = F; BeforeRet: { - F.line = 142; - F.filename = "piece.nim"; - result_1224737075 = nimCopy(result_1224737075, b_1224737073[chckIndx(tile_1224737074.Field1, 0, (b_1224737073).length - 1)][chckIndx(tile_1224737074.Field0, 0, (b_1224737073[chckIndx(tile_1224737074.Field1, 0, (b_1224737073).length - 1)]).length - 1)], NTI1224736794); + result_1476395315 = nimCopy(result_1476395315, b_1476395313[chckIndx(tile_1476395314.Field1, 0, (b_1476395313).length - 1)][chckIndx(tile_1476395314.Field0, 0, (b_1476395313[chckIndx(tile_1476395314.Field1, 0, (b_1476395313).length - 1)]).length - 1)], NTI1476395034); break BeforeRet; }; - framePtr = F.prev; - return result_1224737075; + return result_1476395315; } -function getPiecesChecking_1224737927(b_1224737928, c_1224737929) { - var result_1224737930 = []; +function getPiecesChecking_1476396167(b_1476396168, c_1476396169) { + var result_1476396170 = []; - var F = {procname: "piece.getPiecesChecking", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/piece.nim", line: 0}; - framePtr = F; - F.line = 330; - F.filename = "piece.nim"; - var kingTile_1224737931 = nimCopy(null, {Field0: (-1), Field1: (-1)}, NTI1224736771); + var kingTile_1476396171 = nimCopy(null, {Field0: (-1), Field1: (-1)}, NTI1476395011); Label1: { - F.line = 331; - var row_1224737936 = [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})]; - F.line = 43; - F.filename = "iterators.nim"; - var i_1493179002 = 0; + var row_1476396176 = [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})]; + var i_1845500561 = 0; Label2: { - F.line = 44; Label3: while (true) { if (!true) break Label3; - F.line = 331; - F.filename = "piece.nim"; - row_1224737936 = nimCopy(row_1224737936, b_1224737928[chckIndx(i_1493179002, 0, (b_1224737928).length - 1)], NTI1224736772); + row_1476396176 = nimCopy(row_1476396176, b_1476396168[chckIndx(i_1845500561, 0, (b_1476396168).length - 1)], NTI1476395012); Label4: { - F.line = 332; - var p_1224737941 = ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}); - F.line = 43; - F.filename = "iterators.nim"; - var i_1493178999 = 0; + var p_1476396181 = ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}); + var i_1845500558 = 0; Label5: { - F.line = 44; Label6: while (true) { if (!true) break Label6; - F.line = 332; - F.filename = "piece.nim"; - p_1224737941 = nimCopy(p_1224737941, row_1224737936[chckIndx(i_1493178999, 0, (row_1224737936).length - 1)], NTI1224736794); - if (((p_1224737941.item == 0) && isColor_1224737813(p_1224737941, c_1224737929))) { - F.line = 334; - kingTile_1224737931 = nimCopy(kingTile_1224737931, p_1224737941.tile, NTI1224736771); + p_1476396181 = nimCopy(p_1476396181, row_1476396176[chckIndx(i_1845500558, 0, (row_1476396176).length - 1)], NTI1476395034); + if (((p_1476396181.item == 0) && isColor_1476396053(p_1476396181, c_1476396169))) { + kingTile_1476396171 = nimCopy(kingTile_1476396171, p_1476396181.tile, NTI1476395011); } - if ((7 <= i_1493178999)) { - F.line = 46; - F.filename = "iterators.nim"; + if ((7 <= i_1845500558)) { break Label5; } - F.line = 13; - i_1493178999 += 1; + i_1845500558 += 1; } }; }; - if ((7 <= i_1493179002)) { - F.line = 46; + if ((7 <= i_1845500561)) { break Label2; } - F.line = 13; - i_1493179002 += 1; + i_1845500561 += 1; } }; }; Label7: { - F.line = 336; - F.filename = "piece.nim"; - var row_1224737950 = [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})]; - F.line = 43; - F.filename = "iterators.nim"; - var i_1493179008 = 0; + var row_1476396190 = [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})]; + var i_1845500567 = 0; Label8: { - F.line = 44; Label9: while (true) { if (!true) break Label9; - F.line = 336; - F.filename = "piece.nim"; - row_1224737950 = nimCopy(row_1224737950, b_1224737928[chckIndx(i_1493179008, 0, (b_1224737928).length - 1)], NTI1224736772); + row_1476396190 = nimCopy(row_1476396190, b_1476396168[chckIndx(i_1845500567, 0, (b_1476396168).length - 1)], NTI1476395012); Label10: { - F.line = 337; - var p_1224737955 = ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}); - F.line = 43; - F.filename = "iterators.nim"; - var i_1493179006 = 0; + var p_1476396195 = ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}); + var i_1845500565 = 0; Label11: { - F.line = 44; Label12: while (true) { if (!true) break Label12; - F.line = 337; - F.filename = "piece.nim"; - p_1224737955 = nimCopy(p_1224737955, row_1224737950[chckIndx(i_1493179006, 0, (row_1224737950).length - 1)], NTI1224736794); - if ((!(isColor_1224737813(p_1224737955, c_1224737929)) && contains_1224737421(getTakesOn_1224737271(p_1224737955, b_1224737928), kingTile_1224737931))) { - F.line = 339; - var Temporary13 = nimCopy(null, p_1224737955.tile, NTI1224736771); - result_1224737930.push(Temporary13);; + p_1476396195 = nimCopy(p_1476396195, row_1476396190[chckIndx(i_1845500565, 0, (row_1476396190).length - 1)], NTI1476395034); + if ((!(isColor_1476396053(p_1476396195, c_1476396169)) && contains_1476395661(getTakesOn_1476395511(p_1476396195, b_1476396168), kingTile_1476396171))) { + var Temporary13 = nimCopy(null, p_1476396195.tile, NTI1476395011); + result_1476396170.push(Temporary13);; } - if ((7 <= i_1493179006)) { - F.line = 46; - F.filename = "iterators.nim"; + if ((7 <= i_1845500565)) { break Label11; } - F.line = 13; - i_1493179006 += 1; + i_1845500565 += 1; } }; }; - if ((7 <= i_1493179008)) { - F.line = 46; + if ((7 <= i_1845500567)) { break Label8; } - F.line = 13; - i_1493179008 += 1; + i_1845500567 += 1; } }; }; - framePtr = F.prev; - return result_1224737930; + return result_1476396170; } -function wouldCheckAt_1224737964(p_1224737965, at_1224737966, b_1224737967) { - var result_1224737968 = false; +function wouldCheckAt_1476396204(p_1476396205, at_1476396206, b_1476396207) { + var result_1476396208 = false; - var F = {procname: "piece.wouldCheckAt", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/piece.nim", line: 0}; - framePtr = F; BeforeRet: { - F.line = 343; - F.filename = "piece.nim"; - var testboard_1224737969 = [nimCopy(null, b_1224737967, NTI1224736773)]; - F.line = 344; - var testpiece_1224737970 = [nimCopy(null, p_1224737965, NTI1224736794)]; - F.line = 345; - var emptyState_1224737971 = [{Field0: ({nextIndex: 0, nextGroup: 0, randSeed: 0, turnNumber: 0}), Field1: [({abilityTakes: 0, hasCastled: false, dna: [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], transforms: [[], [], [], [], [], [], [], []], wallet: ({val: 0, has: false}), buys: [], piecesSold: 0, piecesSoldThisTurn: 0, glass: [({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false})]}), ({abilityTakes: 0, hasCastled: false, dna: [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], transforms: [[], [], [], [], [], [], [], []], wallet: ({val: 0, has: false}), buys: [], piecesSold: 0, piecesSoldThisTurn: 0, glass: [({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false})]})]}]; - F.line = 346; - pieceMove_1224737580(testpiece_1224737970[0], at_1224737966, testboard_1224737969[0], emptyState_1224737971[0]); - F.line = 348; - result_1224737968 = ((getPiecesChecking_1224737927(b_1224737967, otherSide_1224737821(p_1224737965.color))).length < (getPiecesChecking_1224737927(testboard_1224737969[0], otherSide_1224737821(p_1224737965.color))).length); + var testboard_1476396209 = [nimCopy(null, b_1476396207, NTI1476395013)]; + var testpiece_1476396210 = [nimCopy(null, p_1476396205, NTI1476395034)]; + var emptyState_1476396211 = [{Field0: ({nextIndex: 0, nextGroup: 0, randSeed: 0, turnNumber: 0}), Field1: [({abilityTakes: 0, hasCastled: false, dna: [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], transforms: [[], [], [], [], [], [], [], []], wallet: ({val: 0, has: false}), buys: [], piecesSold: 0, piecesSoldThisTurn: 0, glass: [({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false})]}), ({abilityTakes: 0, hasCastled: false, dna: [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], transforms: [[], [], [], [], [], [], [], []], wallet: ({val: 0, has: false}), buys: [], piecesSold: 0, piecesSoldThisTurn: 0, glass: [({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false})]})]}]; + pieceMove_1476395820(testpiece_1476396210[0], at_1476396206, testboard_1476396209[0], emptyState_1476396211[0]); + result_1476396208 = ((getPiecesChecking_1476396167(b_1476396207, otherSide_1476396061(p_1476396205.color))).length < (getPiecesChecking_1476396167(testboard_1476396209[0], otherSide_1476396061(p_1476396205.color))).length); break BeforeRet; }; - framePtr = F.prev; - return result_1224737968; + return result_1476396208; } -function HEX3Aanonymous_1493177916(side_1493177917, piece_1493177918, b_1493177919, __1493177920) { - var result_1493177921 = []; +function HEX3Aanonymous_1845499475(side_1845499476, piece_1845499477, b_1845499478, __1845499479) { + var result_1845499480 = []; - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; BeforeRet: { - if (!((piece_1493177918.color == side_1493177917))) { - F.line = 1914; - F.filename = "powers.nim"; - result_1493177921 = nimCopy(null, [], NTI1291845837); + if (!((piece_1845499477.color == side_1845499476))) { + result_1845499480 = nimCopy(null, [], NTI1543504077); break BeforeRet; } else { Label1: { - F.line = 1916; - var tile_1493177930 = {Field0: 0, Field1: 0}; + var tile_1845499489 = {Field0: 0, Field1: 0}; Label2: { - F.line = 124; - F.filename = "piece.nim"; - var i_1493178989 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_1493178990 = 0; + var i_1845500548 = 0; + var i_1845500549 = 0; Label3: { - F.line = 129; Label4: while (true) { - if (!(i_1493178990 < 8)) break Label4; - F.line = 124; - F.filename = "piece.nim"; - i_1493178989 = i_1493178990; + if (!(i_1845500549 < 8)) break Label4; + i_1845500548 = i_1845500549; Label5: { - F.line = 125; - var j_1493178993 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_1493178994 = 0; + var j_1845500552 = 0; + var i_1845500553 = 0; Label6: { - F.line = 129; Label7: while (true) { - if (!(i_1493178994 < 8)) break Label7; - F.line = 125; - F.filename = "piece.nim"; - j_1493178993 = i_1493178994; - F.line = 1916; - F.filename = "powers.nim"; - tile_1493177930 = nimCopy(tile_1493177930, {Field0: i_1493178989, Field1: j_1493178993}, NTI1224736771); - if (((HEX5BHEX5D_1224737072(b_1493177919, tile_1493177930).item == 6) && !(wouldCheckAt_1224737964(piece_1493177918, tile_1493177930, b_1493177919)))) { - F.line = 1918; - var Temporary8 = nimCopy(null, tile_1493177930, NTI1224736771); - result_1493177921.push(Temporary8);; + if (!(i_1845500553 < 8)) break Label7; + j_1845500552 = i_1845500553; + tile_1845499489 = nimCopy(tile_1845499489, {Field0: i_1845500548, Field1: j_1845500552}, NTI1476395011); + if (((HEX5BHEX5D_1476395312(b_1845499478, tile_1845499489).item == 6) && !(wouldCheckAt_1476396204(piece_1845499477, tile_1845499489, b_1845499478)))) { + var Temporary8 = nimCopy(null, tile_1845499489, NTI1476395011); + result_1845499480.push(Temporary8);; } - F.line = 131; - F.filename = "iterators_1.nim"; - i_1493178994 = addInt(i_1493178994, 1); + i_1845500553 = addInt(i_1845500553, 1); } }; }; - F.line = 131; - i_1493178990 = addInt(i_1493178990, 1); + i_1845500549 = addInt(i_1845500549, 1); } }; }; @@ -7910,3448 +5509,2180 @@ function HEX3Aanonymous_1493177916(side_1493177917, piece_1493177918, b_14931779 } }; - framePtr = F.prev; - return result_1493177921; + return result_1845499480; } -function HEX3Aanonymous_1493178043(side_1493178044, __1493178045, __1493178046, s_1493178047) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 1979; - F.filename = "powers.nim"; - s_1493178047.Field1[chckIndx(side_1493178044, 0, (s_1493178047.Field1).length - 1)].glass[chckIndx(0, 0, (s_1493178047.Field1[chckIndx(side_1493178044, 0, (s_1493178047.Field1).length - 1)].glass).length - 1)] = nimCopy(s_1493178047.Field1[chckIndx(side_1493178044, 0, (s_1493178047.Field1).length - 1)].glass[chckIndx(0, 0, (s_1493178047.Field1[chckIndx(side_1493178044, 0, (s_1493178047.Field1).length - 1)].glass).length - 1)], some_1493178051({Field0: 2, Field1: HEX3Aanonymous_1493177940, Field2: HEX3Aanonymous_1493177916}), NTI1224736839); - framePtr = F.prev; +function HEX3Aanonymous_1845499602(side_1845499603, __1845499604, __1845499605, s_1845499606) { + s_1845499606.Field1[chckIndx(side_1845499603, 0, (s_1845499606.Field1).length - 1)].glass[chckIndx(0, 0, (s_1845499606.Field1[chckIndx(side_1845499603, 0, (s_1845499606.Field1).length - 1)].glass).length - 1)] = nimCopy(s_1845499606.Field1[chckIndx(side_1845499603, 0, (s_1845499606.Field1).length - 1)].glass[chckIndx(0, 0, (s_1845499606.Field1[chckIndx(side_1845499603, 0, (s_1845499606.Field1).length - 1)].glass).length - 1)], some_1845499610({Field0: 2, Field1: HEX3Aanonymous_1845499499, Field2: HEX3Aanonymous_1845499475}), NTI1476395079); } -function createZeroGlassAction_1493177973(side_1493177974) { +function createZeroGlassAction_1845499532(side_1845499533) { -function HEX3Aanonymous_1493177976(__1493177977, to_1493177978, b_1493177979, s_1493177980) { - var F = {procname: "createZeroGlassAction.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; +function HEX3Aanonymous_1845499535(__1845499536, to_1845499537, b_1845499538, s_1845499539) { BeforeRet: { - if ((b_1493177979[chckIndx(to_1493177978.Field1, 0, (b_1493177979).length - 1)][chckIndx(to_1493177978.Field0, 0, (b_1493177979[chckIndx(to_1493177978.Field1, 0, (b_1493177979).length - 1)]).length - 1)].item == 6)) { - F.line = 1940; - F.filename = "powers.nim"; + if ((b_1845499538[chckIndx(to_1845499537.Field1, 0, (b_1845499538).length - 1)][chckIndx(to_1845499537.Field0, 0, (b_1845499538[chckIndx(to_1845499537.Field1, 0, (b_1845499538).length - 1)]).length - 1)].item == 6)) { break BeforeRet; } - F.line = 1941; - b_1493177979[chckIndx(to_1493177978.Field1, 0, (b_1493177979).length - 1)][chckIndx(to_1493177978.Field0, 0, (b_1493177979[chckIndx(to_1493177978.Field1, 0, (b_1493177979).length - 1)]).length - 1)] = nimCopy(b_1493177979[chckIndx(to_1493177978.Field1, 0, (b_1493177979).length - 1)][chckIndx(to_1493177978.Field0, 0, (b_1493177979[chckIndx(to_1493177978.Field1, 0, (b_1493177979).length - 1)]).length - 1)], pieceCopy_1224737660(air_1275068591, HEX5BHEX5D_1224737124(b_1493177979, to_1493177978).index, 6, 1, 0, 0, to_1493177978, [], [], air_1275068591.onMove, air_1275068591.onTake, air_1275068591.whenTaken, [], [], false, [], true, false, false), NTI1224736794); - F.line = 1942; - s_1493177980.Field1[chckIndx(side_1493177974, 0, (s_1493177980.Field1).length - 1)].abilityTakes = addInt(s_1493177980.Field1[chckIndx(side_1493177974, 0, (s_1493177980.Field1).length - 1)].abilityTakes, 1); + b_1845499538[chckIndx(to_1845499537.Field1, 0, (b_1845499538).length - 1)][chckIndx(to_1845499537.Field0, 0, (b_1845499538[chckIndx(to_1845499537.Field1, 0, (b_1845499538).length - 1)]).length - 1)] = nimCopy(b_1845499538[chckIndx(to_1845499537.Field1, 0, (b_1845499538).length - 1)][chckIndx(to_1845499537.Field0, 0, (b_1845499538[chckIndx(to_1845499537.Field1, 0, (b_1845499538).length - 1)]).length - 1)], pieceCopy_1476395900(air_1526726831, HEX5BHEX5D_1476395364(b_1845499538, to_1845499537).index, 6, 1, 0, 0, to_1845499537, [], [], air_1526726831.onMove, air_1526726831.onTake, air_1526726831.whenTaken, [], [], false, [], true, false, false), NTI1476395034); + s_1845499539.Field1[chckIndx(side_1845499533, 0, (s_1845499539.Field1).length - 1)].abilityTakes = addInt(s_1845499539.Field1[chckIndx(side_1845499533, 0, (s_1845499539.Field1).length - 1)].abilityTakes, 1); }; - framePtr = F.prev; } - var result_1493177975 = null; + var result_1845499534 = null; - var F = {procname: "powers.createZeroGlassAction", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 1939; - F.filename = "powers.nim"; - result_1493177975 = HEX3Aanonymous_1493177976; - framePtr = F.prev; + result_1845499534 = HEX3Aanonymous_1845499535; - return result_1493177975; + return result_1845499534; } -function HEX3Aanonymous_1493177952(side_1493177953, piece_1493177954, b_1493177955, s_1493177956) { - var result_1493177957 = []; +function HEX3Aanonymous_1845499511(side_1845499512, piece_1845499513, b_1845499514, s_1845499515) { + var result_1845499516 = []; - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; BeforeRet: { - if ((s_1493177956.Field0.turnNumber <= 1)) { - F.line = 1929; - F.filename = "powers.nim"; - result_1493177957 = nimCopy(null, [], NTI1291845837); + if ((s_1845499515.Field0.turnNumber <= 1)) { + result_1845499516 = nimCopy(null, [], NTI1543504077); break BeforeRet; } Label1: { - F.line = 1931; - var i_1493177962 = 0; - F.line = 1931; - var j_1493177963 = 0; + var i_1845499521 = 0; + var j_1845499522 = 0; Label2: { - F.line = 124; - F.filename = "piece.nim"; - var i_1493179012 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_1493179013 = 0; + var i_1845500571 = 0; + var i_1845500572 = 0; Label3: { - F.line = 129; Label4: while (true) { - if (!(i_1493179013 < 8)) break Label4; - F.line = 124; - F.filename = "piece.nim"; - i_1493179012 = i_1493179013; + if (!(i_1845500572 < 8)) break Label4; + i_1845500571 = i_1845500572; Label5: { - F.line = 125; - var j_1493179016 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_1493179017 = 0; + var j_1845500575 = 0; + var i_1845500576 = 0; Label6: { - F.line = 129; Label7: while (true) { - if (!(i_1493179017 < 8)) break Label7; - F.line = 125; - F.filename = "piece.nim"; - j_1493179016 = i_1493179017; - F.line = 1931; - F.filename = "powers.nim"; - i_1493177962 = i_1493179012; - F.line = 1931; - j_1493177963 = j_1493179016; - if (!((b_1493177955[chckIndx(i_1493177962, 0, (b_1493177955).length - 1)][chckIndx(j_1493177963, 0, (b_1493177955[chckIndx(i_1493177962, 0, (b_1493177955).length - 1)]).length - 1)].item == 0))) { - F.line = 1933; - var Temporary8 = nimCopy(null, b_1493177955[chckIndx(i_1493177962, 0, (b_1493177955).length - 1)][chckIndx(j_1493177963, 0, (b_1493177955[chckIndx(i_1493177962, 0, (b_1493177955).length - 1)]).length - 1)].tile, NTI1224736771); - result_1493177957.push(Temporary8);; + if (!(i_1845500576 < 8)) break Label7; + j_1845500575 = i_1845500576; + i_1845499521 = i_1845500571; + j_1845499522 = j_1845500575; + if (!((b_1845499514[chckIndx(i_1845499521, 0, (b_1845499514).length - 1)][chckIndx(j_1845499522, 0, (b_1845499514[chckIndx(i_1845499521, 0, (b_1845499514).length - 1)]).length - 1)].item == 0))) { + var Temporary8 = nimCopy(null, b_1845499514[chckIndx(i_1845499521, 0, (b_1845499514).length - 1)][chckIndx(j_1845499522, 0, (b_1845499514[chckIndx(i_1845499521, 0, (b_1845499514).length - 1)]).length - 1)].tile, NTI1476395011); + result_1845499516.push(Temporary8);; } - F.line = 131; - F.filename = "iterators_1.nim"; - i_1493179017 = addInt(i_1493179017, 1); + i_1845500576 = addInt(i_1845500576, 1); } }; }; - F.line = 131; - i_1493179013 = addInt(i_1493179013, 1); + i_1845500572 = addInt(i_1845500572, 1); } }; }; }; }; - framePtr = F.prev; - return result_1493177957; + return result_1845499516; } -function HEX3Aanonymous_1493178057(side_1493178058, __1493178059, __1493178060, s_1493178061) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 1998; - F.filename = "powers.nim"; - s_1493178061.Field1[chckIndx(side_1493178058, 0, (s_1493178061.Field1).length - 1)].glass[chckIndx(1, 0, (s_1493178061.Field1[chckIndx(side_1493178058, 0, (s_1493178061.Field1).length - 1)].glass).length - 1)] = nimCopy(s_1493178061.Field1[chckIndx(side_1493178058, 0, (s_1493178061.Field1).length - 1)].glass[chckIndx(1, 0, (s_1493178061.Field1[chckIndx(side_1493178058, 0, (s_1493178061.Field1).length - 1)].glass).length - 1)], some_1493178051({Field0: 2, Field1: createZeroGlassAction_1493177973(side_1493178058), Field2: HEX3Aanonymous_1493177952}), NTI1224736839); - framePtr = F.prev; +function HEX3Aanonymous_1845499616(side_1845499617, __1845499618, __1845499619, s_1845499620) { + s_1845499620.Field1[chckIndx(side_1845499617, 0, (s_1845499620.Field1).length - 1)].glass[chckIndx(1, 0, (s_1845499620.Field1[chckIndx(side_1845499617, 0, (s_1845499620.Field1).length - 1)].glass).length - 1)] = nimCopy(s_1845499620.Field1[chckIndx(side_1845499617, 0, (s_1845499620.Field1).length - 1)].glass[chckIndx(1, 0, (s_1845499620.Field1[chckIndx(side_1845499617, 0, (s_1845499620.Field1).length - 1)].glass).length - 1)], some_1845499610({Field0: 2, Field1: createZeroGlassAction_1845499532(side_1845499617), Field2: HEX3Aanonymous_1845499511}), NTI1476395079); } -function validateUtf8_1040187728(s_1040187729) { - var result_1040187730 = 0; +function validateUtf8_1157628240(s_1157628241) { + var result_1157628242 = 0; - var F = {procname: "unicode.validateUtf8", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/unicode.nim", line: 0}; - framePtr = F; BeforeRet: { - F.line = 184; - F.filename = "unicode.nim"; - var i_1040187731 = 0; - F.line = 185; - var L_1040187735 = (s_1040187729).length; + var i_1157628243 = 0; + var L_1157628247 = (s_1157628241).length; Label1: { - F.line = 186; Label2: while (true) { - if (!(i_1040187731 < L_1040187735)) break Label2; - if ((s_1040187729[chckIndx(i_1040187731, 0, (s_1040187729).length - 1)] <= 127)) { - F.line = 188; - i_1040187731 = addInt(i_1040187731, 1); + if (!(i_1157628243 < L_1157628247)) break Label2; + if ((s_1157628241[chckIndx(i_1157628243, 0, (s_1157628241).length - 1)] <= 127)) { + i_1157628243 = addInt(i_1157628243, 1); } else { - if (((s_1040187729[chckIndx(i_1040187731, 0, (s_1040187729).length - 1)] >>> 5) == 6)) { - if ((s_1040187729[chckIndx(i_1040187731, 0, (s_1040187729).length - 1)] < 194)) { - F.line = 190; - result_1040187730 = i_1040187731; + if (((s_1157628241[chckIndx(i_1157628243, 0, (s_1157628241).length - 1)] >>> 5) == 6)) { + if ((s_1157628241[chckIndx(i_1157628243, 0, (s_1157628241).length - 1)] < 194)) { + result_1157628242 = i_1157628243; break BeforeRet; } - if (((addInt(i_1040187731, 1) < L_1040187735) && ((s_1040187729[chckIndx(addInt(i_1040187731, 1), 0, (s_1040187729).length - 1)] >>> 6) == 2))) { - F.line = 191; - i_1040187731 = addInt(i_1040187731, 2); + if (((addInt(i_1157628243, 1) < L_1157628247) && ((s_1157628241[chckIndx(addInt(i_1157628243, 1), 0, (s_1157628241).length - 1)] >>> 6) == 2))) { + i_1157628243 = addInt(i_1157628243, 2); } else { - F.line = 192; - result_1040187730 = i_1040187731; + result_1157628242 = i_1157628243; break BeforeRet; } } else { - if (((s_1040187729[chckIndx(i_1040187731, 0, (s_1040187729).length - 1)] >>> 4) == 14)) { - if ((((addInt(i_1040187731, 2) < L_1040187735) && ((s_1040187729[chckIndx(addInt(i_1040187731, 1), 0, (s_1040187729).length - 1)] >>> 6) == 2)) && ((s_1040187729[chckIndx(addInt(i_1040187731, 2), 0, (s_1040187729).length - 1)] >>> 6) == 2))) { - F.line = 195; - i_1040187731 = addInt(i_1040187731, 3); + if (((s_1157628241[chckIndx(i_1157628243, 0, (s_1157628241).length - 1)] >>> 4) == 14)) { + if ((((addInt(i_1157628243, 2) < L_1157628247) && ((s_1157628241[chckIndx(addInt(i_1157628243, 1), 0, (s_1157628241).length - 1)] >>> 6) == 2)) && ((s_1157628241[chckIndx(addInt(i_1157628243, 2), 0, (s_1157628241).length - 1)] >>> 6) == 2))) { + i_1157628243 = addInt(i_1157628243, 3); } else { - F.line = 196; - result_1040187730 = i_1040187731; + result_1157628242 = i_1157628243; break BeforeRet; } } else { - if (((s_1040187729[chckIndx(i_1040187731, 0, (s_1040187729).length - 1)] >>> 3) == 30)) { - if (((((addInt(i_1040187731, 3) < L_1040187735) && ((s_1040187729[chckIndx(addInt(i_1040187731, 1), 0, (s_1040187729).length - 1)] >>> 6) == 2)) && ((s_1040187729[chckIndx(addInt(i_1040187731, 2), 0, (s_1040187729).length - 1)] >>> 6) == 2)) && ((s_1040187729[chckIndx(addInt(i_1040187731, 3), 0, (s_1040187729).length - 1)] >>> 6) == 2))) { - F.line = 201; - i_1040187731 = addInt(i_1040187731, 4); + if (((s_1157628241[chckIndx(i_1157628243, 0, (s_1157628241).length - 1)] >>> 3) == 30)) { + if (((((addInt(i_1157628243, 3) < L_1157628247) && ((s_1157628241[chckIndx(addInt(i_1157628243, 1), 0, (s_1157628241).length - 1)] >>> 6) == 2)) && ((s_1157628241[chckIndx(addInt(i_1157628243, 2), 0, (s_1157628241).length - 1)] >>> 6) == 2)) && ((s_1157628241[chckIndx(addInt(i_1157628243, 3), 0, (s_1157628241).length - 1)] >>> 6) == 2))) { + i_1157628243 = addInt(i_1157628243, 4); } else { - F.line = 202; - result_1040187730 = i_1040187731; + result_1157628242 = i_1157628243; break BeforeRet; } } else { - F.line = 204; - result_1040187730 = i_1040187731; + result_1157628242 = i_1157628243; break BeforeRet; } }}} } }; - F.line = 205; - result_1040187730 = (-1); + result_1157628242 = (-1); break BeforeRet; }; - framePtr = F.prev; - return result_1040187730; + return result_1157628242; } -function validateUtf8_1040194753(s_1040194754) { - var result_1040194755 = 0; +function validateUtf8_1157635265(s_1157635266) { + var result_1157635267 = 0; - var F = {procname: "unicode.validateUtf8", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/unicode.nim", line: 0}; - framePtr = F; - F.line = 1191; - F.filename = "unicode.nim"; - result_1040194755 = validateUtf8_1040187728((s_1040194754.slice(0, (s_1040194754).length - 1 + 1))); - framePtr = F.prev; + result_1157635267 = validateUtf8_1157628240((s_1157635266.slice(0, (s_1157635266).length - 1 + 1))); - return result_1040194755; + return result_1157635267; } -function nucruneLen(s_1040187420) { - var result_1040187421 = 0; +function nucruneLen(s_1157627932) { + var result_1157627933 = 0; - var F = {procname: "unicode.runeLen", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/unicode.nim", line: 0}; - framePtr = F; - F.line = 52; - F.filename = "unicode.nim"; - result_1040187421 = 0; - F.line = 53; - var i_1040187422 = 0; + result_1157627933 = 0; + var i_1157627934 = 0; Label1: { - F.line = 54; Label2: while (true) { - if (!(i_1040187422 < (s_1040187420).length)) break Label2; - if ((s_1040187420[chckIndx(i_1040187422, 0, (s_1040187420).length - 1)] <= 127)) { - F.line = 55; - i_1040187422 = addInt(i_1040187422, 1); + if (!(i_1157627934 < (s_1157627932).length)) break Label2; + if ((s_1157627932[chckIndx(i_1157627934, 0, (s_1157627932).length - 1)] <= 127)) { + i_1157627934 = addInt(i_1157627934, 1); } else { - if (((s_1040187420[chckIndx(i_1040187422, 0, (s_1040187420).length - 1)] >>> 5) == 6)) { - F.line = 56; - i_1040187422 = addInt(i_1040187422, 2); + if (((s_1157627932[chckIndx(i_1157627934, 0, (s_1157627932).length - 1)] >>> 5) == 6)) { + i_1157627934 = addInt(i_1157627934, 2); } else { - if (((s_1040187420[chckIndx(i_1040187422, 0, (s_1040187420).length - 1)] >>> 4) == 14)) { - F.line = 57; - i_1040187422 = addInt(i_1040187422, 3); + if (((s_1157627932[chckIndx(i_1157627934, 0, (s_1157627932).length - 1)] >>> 4) == 14)) { + i_1157627934 = addInt(i_1157627934, 3); } else { - if (((s_1040187420[chckIndx(i_1040187422, 0, (s_1040187420).length - 1)] >>> 3) == 30)) { - F.line = 58; - i_1040187422 = addInt(i_1040187422, 4); + if (((s_1157627932[chckIndx(i_1157627934, 0, (s_1157627932).length - 1)] >>> 3) == 30)) { + i_1157627934 = addInt(i_1157627934, 4); } else { - if (((s_1040187420[chckIndx(i_1040187422, 0, (s_1040187420).length - 1)] >>> 2) == 62)) { - F.line = 59; - i_1040187422 = addInt(i_1040187422, 5); + if (((s_1157627932[chckIndx(i_1157627934, 0, (s_1157627932).length - 1)] >>> 2) == 62)) { + i_1157627934 = addInt(i_1157627934, 5); } else { - if (((s_1040187420[chckIndx(i_1040187422, 0, (s_1040187420).length - 1)] >>> 1) == 126)) { - F.line = 60; - i_1040187422 = addInt(i_1040187422, 6); + if (((s_1157627932[chckIndx(i_1157627934, 0, (s_1157627932).length - 1)] >>> 1) == 126)) { + i_1157627934 = addInt(i_1157627934, 6); } else { - F.line = 61; - i_1040187422 = addInt(i_1040187422, 1); + i_1157627934 = addInt(i_1157627934, 1); } }}}}} - F.line = 62; - result_1040187421 = addInt(result_1040187421, 1); + result_1157627933 = addInt(result_1157627933, 1); } }; - framePtr = F.prev; - return result_1040187421; + return result_1157627933; } -function runeLen_1040194581(s_1040194582) { - var result_1040194583 = 0; +function runeLen_1157635093(s_1157635094) { + var result_1157635095 = 0; - var F = {procname: "unicode.runeLen", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/unicode.nim", line: 0}; - framePtr = F; - F.line = 1158; - F.filename = "unicode.nim"; - result_1040194583 = nucruneLen((s_1040194582.slice(0, (s_1040194582).length - 1 + 1))); - framePtr = F.prev; + result_1157635095 = nucruneLen((s_1157635094.slice(0, (s_1157635094).length - 1 + 1))); - return result_1040194583; + return result_1157635095; } -function nsuRepeatChar(c_838861921, count_838861922) { - var result_838861923 = []; +function nsuRepeatChar(c_889193569, count_889193570) { + var result_889193571 = []; - var F = {procname: "strutils.repeat", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/strutils.nim", line: 0}; - framePtr = F; - F.line = 1328; - F.filename = "strutils.nim"; - result_838861923 = nimCopy(null, mnewString(count_838861922), NTI33554449); + result_889193571 = nimCopy(null, mnewString(count_889193570), NTI33554449); Label1: { - F.line = 1329; - var i_838861928 = 0; - F.line = 81; - F.filename = "iterators_1.nim"; - var colontmp__1493179034 = 0; - F.line = 1329; - F.filename = "strutils.nim"; - colontmp__1493179034 = subInt(count_838861922, 1); - F.line = 96; - F.filename = "iterators_1.nim"; - var res_1493179035 = 0; + var i_889193576 = 0; + var colontmp__1845500594 = 0; + colontmp__1845500594 = subInt(count_889193570, 1); + var res_1845500595 = 0; Label2: { - F.line = 97; Label3: while (true) { - if (!(res_1493179035 <= colontmp__1493179034)) break Label3; - F.line = 1329; - F.filename = "strutils.nim"; - i_838861928 = res_1493179035; - F.line = 1329; - result_838861923[chckIndx(i_838861928, 0, (result_838861923).length - 1)] = c_838861921; - F.line = 102; - F.filename = "iterators_1.nim"; - res_1493179035 = addInt(res_1493179035, 1); + if (!(res_1845500595 <= colontmp__1845500594)) break Label3; + i_889193576 = res_1845500595; + result_889193571[chckIndx(i_889193576, 0, (result_889193571).length - 1)] = c_889193569; + res_1845500595 = addInt(res_1845500595, 1); } }; }; - framePtr = F.prev; - return result_838861923; + return result_889193571; } -function alignString_1459617812(s_1459617813, minimumWidth_1459617814, align_1459617815, fill_1459617816) { +function alignString_1744830484(s_1744830485, minimumWidth_1744830486, align_1744830487, fill_1744830488) { var Temporary1; - var result_1459617817 = []; + var result_1744830489 = []; - var F = {procname: "strformat.alignString", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/strformat.nim", line: 0}; - framePtr = F; - if ((minimumWidth_1459617814 == 0)) { - F.line = 335; - F.filename = "strformat.nim"; - result_1459617817 = nimCopy(null, s_1459617813, NTI33554449); + if ((minimumWidth_1744830486 == 0)) { + result_1744830489 = nimCopy(null, s_1744830485, NTI33554449); } else { - F.line = 337; - if ((validateUtf8_1040194753(s_1459617813) == (-1))) { - Temporary1 = runeLen_1040194581(s_1459617813); + if ((validateUtf8_1157635265(s_1744830485) == (-1))) { + Temporary1 = runeLen_1157635093(s_1744830485); } else { - Temporary1 = (s_1459617813).length; + Temporary1 = (s_1744830485).length; } - var sRuneLen_1459617818 = Temporary1; - F.line = 338; - var toFill_1459617819 = subInt(minimumWidth_1459617814, sRuneLen_1459617818); - if ((toFill_1459617819 <= 0)) { - F.line = 340; - result_1459617817 = nimCopy(null, s_1459617813, NTI33554449); + var sRuneLen_1744830490 = Temporary1; + var toFill_1744830491 = subInt(minimumWidth_1744830486, sRuneLen_1744830490); + if ((toFill_1744830491 <= 0)) { + result_1744830489 = nimCopy(null, s_1744830485, NTI33554449); } else { - if (((align_1459617815 == 60) || (align_1459617815 == 0))) { - F.line = 342; - result_1459617817 = nimCopy(null, (s_1459617813 || []).concat(nsuRepeatChar(fill_1459617816, chckRange(toFill_1459617819, 0, 2147483647)) || []), NTI33554449); + if (((align_1744830487 == 60) || (align_1744830487 == 0))) { + result_1744830489 = nimCopy(null, (s_1744830485 || []).concat(nsuRepeatChar(fill_1744830488, chckRange(toFill_1744830491, 0, 2147483647)) || []), NTI33554449); } else { - if ((align_1459617815 == 94)) { - F.line = 344; - var half_1459617820 = divInt(toFill_1459617819, 2); - F.line = 345; - result_1459617817 = nimCopy(null, (nsuRepeatChar(fill_1459617816, chckRange(half_1459617820, 0, 2147483647)) || []).concat(s_1459617813 || [],nsuRepeatChar(fill_1459617816, chckRange(subInt(toFill_1459617819, half_1459617820), 0, 2147483647)) || []), NTI33554449); + if ((align_1744830487 == 94)) { + var half_1744830492 = divInt(toFill_1744830491, 2); + result_1744830489 = nimCopy(null, (nsuRepeatChar(fill_1744830488, chckRange(half_1744830492, 0, 2147483647)) || []).concat(s_1744830485 || [],nsuRepeatChar(fill_1744830488, chckRange(subInt(toFill_1744830491, half_1744830492), 0, 2147483647)) || []), NTI33554449); } else { - F.line = 347; - result_1459617817 = nimCopy(null, (nsuRepeatChar(fill_1459617816, chckRange(toFill_1459617819, 0, 2147483647)) || []).concat(s_1459617813 || []), NTI33554449); + result_1744830489 = nimCopy(null, (nsuRepeatChar(fill_1744830488, chckRange(toFill_1744830491, 0, 2147483647)) || []).concat(s_1744830485 || []), NTI33554449); } }} } - framePtr = F.prev; - return result_1459617817; + return result_1744830489; } -function formatValue_1442840708(result_1442840710, result_1442840710_Idx, value_1442840711) { - var F = {procname: "formatValue.formatValue", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/strformat.nim", line: 0}; - framePtr = F; - F.line = 593; - F.filename = "strformat.nim"; - var value_1442840720 = nimCopy(null, value_1442840711, NTI33554449); - F.line = 604; - result_1442840710[result_1442840710_Idx].push.apply(result_1442840710[result_1442840710_Idx], alignString_1459617812(value_1442840720, 0, 0, 32));; - framePtr = F.prev; +function formatValue_1728053380(result_1728053382, result_1728053382_Idx, value_1728053383) { + var value_1728053392 = nimCopy(null, value_1728053383, NTI33554449); + result_1728053382[result_1728053382_Idx].push.apply(result_1728053382[result_1728053382_Idx], alignString_1744830484(value_1728053392, 0, 0, 32));; } -function registerSynergy_1442840657(s_1442840658, secret_1442840659, secretSecret_1442840660) { +function registerSynergy_1728053329(s_1728053330, secret_1728053331, secretSecret_1728053332) { var Temporary5; var Temporary9; var Temporary12; - var F = {procname: "power.registerSynergy", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/power.nim", line: 0}; - framePtr = F; - if (!((secret_1442840659 || !(secretSecret_1442840660)))) { - F.line = 97; - F.filename = "power.nim"; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/the-playground/chess/src/power.nim(97, 5) `secret or not secretSecret` ")); - } - - F.line = 98; - var x_1442840666 = nimCopy(null, s_1442840658, NTI1442840582); - F.line = 100; - x_1442840666.Field0.rarity = x_1442840666.Field1; - F.line = 101; - x_1442840666.Field0.index = addInt(powers_1442840649[0][chckIndx(subInt((powers_1442840649[0]).length, 1), 0, (powers_1442840649[0]).length - 1)].index, 1); - F.line = 102; - x_1442840666.Field0.synergy = true; - F.line = 104; - F.line = 975; - F.filename = "sequtils.nim"; - var sHEX60gensym2_1442840675 = nimCopy(null, s_1442840658.Field2, NTI1442840587); - F.line = 976; - var nHEX60gensym2_1442840679 = (sHEX60gensym2_1442840675).length; - if (!((0 < nHEX60gensym2_1442840679))) { - F.line = 977; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/collections/sequtils.nim(977, 3) `n`gensym2 > 0` Can\'t fold empty sequences")); - } - - F.line = 978; - var resultHEX60gensym2_1442840685 = nimCopy(null, sHEX60gensym2_1442840675[chckIndx(subInt(nHEX60gensym2_1442840679, 1), 0, (sHEX60gensym2_1442840675).length - 1)], NTI33554449); + if (!((secret_1728053331 || !(secretSecret_1728053332)))) { + failedAssertImpl_268435541([112,111,119,101,114,46,110,105,109,40,57,55,44,32,53,41,32,96,115,101,99,114,101,116,32,111,114,32,110,111,116,32,115,101,99,114,101,116,83,101,99,114,101,116,96,32]); + } + + var x_1728053338 = nimCopy(null, s_1728053330, NTI1728053254); + x_1728053338.Field0.rarity = x_1728053338.Field1; + x_1728053338.Field0.index = addInt(powers_1728053321[0][chckIndx(subInt((powers_1728053321[0]).length, 1), 0, (powers_1728053321[0]).length - 1)].index, 1); + x_1728053338.Field0.synergy = true; + var sHEX60gensym2_1728053347 = nimCopy(null, s_1728053330.Field2, NTI1728053259); + var nHEX60gensym2_1728053351 = (sHEX60gensym2_1728053347).length; + if (!((0 < nHEX60gensym2_1728053351))) { + failedAssertImpl_268435541([115,101,113,117,116,105,108,115,46,110,105,109,40,57,55,55,44,32,51,41,32,96,110,96,103,101,110,115,121,109,50,32,62,32,48,96,32,67,97,110,39,116,32,102,111,108,100,32,101,109,112,116,121,32,115,101,113,117,101,110,99,101,115]); + } + + var resultHEX60gensym2_1728053357 = nimCopy(null, sHEX60gensym2_1728053347[chckIndx(subInt(nHEX60gensym2_1728053351, 1), 0, (sHEX60gensym2_1728053347).length - 1)], NTI33554449); Label1: { - F.line = 979; - var iHEX60gensym2_1442840691 = 0; - F.line = 6; - F.filename = "iterators_1.nim"; - var colontmp__1493179020 = 0; - F.line = 979; - F.filename = "sequtils.nim"; - colontmp__1493179020 = subInt(nHEX60gensym2_1442840679, 2); - F.line = 33; - F.filename = "iterators_1.nim"; - var res_1493179021 = colontmp__1493179020; + var iHEX60gensym2_1728053363 = 0; + var colontmp__1845500579 = 0; + colontmp__1845500579 = subInt(nHEX60gensym2_1728053351, 2); + var res_1845500581 = colontmp__1845500579; Label2: { - F.line = 34; Label3: while (true) { - if (!(0 <= res_1493179021)) break Label3; - F.line = 979; - F.filename = "sequtils.nim"; - iHEX60gensym2_1442840691 = res_1493179021; - F.line = 981; - var a_1442840692 = nimCopy(null, sHEX60gensym2_1442840675[chckIndx(iHEX60gensym2_1442840691, 0, (sHEX60gensym2_1442840675).length - 1)], NTI33554449); - F.line = 982; - var b_1442840693 = nimCopy(null, resultHEX60gensym2_1442840685, NTI33554449); - F.line = 104; - F.filename = "power.nim"; - resultHEX60gensym2_1442840685 = nimCopy(null, (a_1442840692 || []).concat([32,43,32] || [],b_1442840693 || []), NTI33554449); - F.line = 39; - F.filename = "iterators_1.nim"; - res_1493179021 = subInt(res_1493179021, 1); + if (!(0 <= res_1845500581)) break Label3; + iHEX60gensym2_1728053363 = res_1845500581; + var a_1728053364 = nimCopy(null, sHEX60gensym2_1728053347[chckIndx(iHEX60gensym2_1728053363, 0, (sHEX60gensym2_1728053347).length - 1)], NTI33554449); + var b_1728053365 = nimCopy(null, resultHEX60gensym2_1728053357, NTI33554449); + resultHEX60gensym2_1728053357 = nimCopy(null, (a_1728053364 || []).concat([32,43,32] || [],b_1728053365 || []), NTI33554449); + res_1845500581 = subInt(res_1845500581, 1); } }; }; - var requirements_1442840694 = nimCopy(null, resultHEX60gensym2_1442840685, NTI33554449); - if ((secret_1442840659 && !(secretSecret_1442840660))) { - F.line = 108; - F.filename = "power.nim"; + var requirements_1728053366 = nimCopy(null, resultHEX60gensym2_1728053357, NTI33554449); + if ((secret_1728053331 && !(secretSecret_1728053332))) { Label4: { - F.line = 108; - var fmtRes_1442840703 = [mnewString(0)]; - F.line = 108; - fmtRes_1442840703[0].push.apply(fmtRes_1442840703[0], [83,101,99,114,101,116,32,83,121,110,101,114,103,121,33,32,40]);; - F.line = 108; - formatValue_1442840708(fmtRes_1442840703, 0, requirements_1442840694); - F.line = 108; - fmtRes_1442840703[0].push.apply(fmtRes_1442840703[0], [41,32,45,45,32]);; - F.line = 108; - formatValue_1442840708(fmtRes_1442840703, 0, x_1442840666.Field0.description); + var fmtRes_1728053375 = [mnewString(0)]; + fmtRes_1728053375[0].push.apply(fmtRes_1728053375[0], [83,101,99,114,101,116,32,83,121,110,101,114,103,121,33,32,40]);; + formatValue_1728053380(fmtRes_1728053375, 0, requirements_1728053366); + fmtRes_1728053375[0].push.apply(fmtRes_1728053375[0], [41,32,45,45,32]);; + formatValue_1728053380(fmtRes_1728053375, 0, x_1728053338.Field0.description); }; - x_1442840666.Field0.description = nimCopy(null, fmtRes_1442840703[0], NTI33554449); - F.line = 110; - if (eqStrings(x_1442840666.Field0.technicalName, [])) { + x_1728053338.Field0.description = nimCopy(null, fmtRes_1728053375[0], NTI33554449); + if (eqStrings(x_1728053338.Field0.technicalName, [])) { Label6: { - F.line = 110; - var fmtRes_1442840730 = [mnewString(0)]; - F.line = 110; - formatValue_1442840708(fmtRes_1442840730, 0, x_1442840666.Field0.name); - F.line = 110; - fmtRes_1442840730[0].push.apply(fmtRes_1442840730[0], [32,40,83,101,99,114,101,116,32,83,121,110,101,114,103,121,32,111,102,32]);; - F.line = 110; - formatValue_1442840708(fmtRes_1442840730, 0, requirements_1442840694); - F.line = 110; - fmtRes_1442840730[0].push.apply(fmtRes_1442840730[0], [41]);; + var fmtRes_1728053402 = [mnewString(0)]; + formatValue_1728053380(fmtRes_1728053402, 0, x_1728053338.Field0.name); + fmtRes_1728053402[0].push.apply(fmtRes_1728053402[0], [32,40,83,101,99,114,101,116,32,83,121,110,101,114,103,121,32,111,102,32]);; + formatValue_1728053380(fmtRes_1728053402, 0, requirements_1728053366); + fmtRes_1728053402[0].push.apply(fmtRes_1728053402[0], [41]);; }; - Temporary5 = fmtRes_1442840730[0]; + Temporary5 = fmtRes_1728053402[0]; } else { Label7: { - F.line = 111; - var fmtRes_1442840745 = [mnewString(0)]; - F.line = 111; - formatValue_1442840708(fmtRes_1442840745, 0, x_1442840666.Field0.technicalName); - F.line = 111; - fmtRes_1442840745[0].push.apply(fmtRes_1442840745[0], [32,40,83,101,99,114,101,116,32,83,121,110,101,114,103,121,32,111,102,32]);; - F.line = 111; - formatValue_1442840708(fmtRes_1442840745, 0, requirements_1442840694); - F.line = 111; - fmtRes_1442840745[0].push.apply(fmtRes_1442840745[0], [41]);; + var fmtRes_1728053417 = [mnewString(0)]; + formatValue_1728053380(fmtRes_1728053417, 0, x_1728053338.Field0.technicalName); + fmtRes_1728053417[0].push.apply(fmtRes_1728053417[0], [32,40,83,101,99,114,101,116,32,83,121,110,101,114,103,121,32,111,102,32]);; + formatValue_1728053380(fmtRes_1728053417, 0, requirements_1728053366); + fmtRes_1728053417[0].push.apply(fmtRes_1728053417[0], [41]);; }; - Temporary5 = fmtRes_1442840745[0]; + Temporary5 = fmtRes_1728053417[0]; } - x_1442840666.Field0.technicalName = nimCopy(null, Temporary5, NTI33554449); + x_1728053338.Field0.technicalName = nimCopy(null, Temporary5, NTI33554449); } else { - if (!(secret_1442840659)) { - F.line = 113; + if (!(secret_1728053331)) { Label8: { - F.line = 113; - var fmtRes_1442840760 = [mnewString(0)]; - F.line = 113; - fmtRes_1442840760[0].push.apply(fmtRes_1442840760[0], [83,121,110,101,114,103,121,33,32,40]);; - F.line = 113; - formatValue_1442840708(fmtRes_1442840760, 0, requirements_1442840694); - F.line = 113; - fmtRes_1442840760[0].push.apply(fmtRes_1442840760[0], [41,32,45,45,32]);; - F.line = 113; - formatValue_1442840708(fmtRes_1442840760, 0, x_1442840666.Field0.description); + var fmtRes_1728053432 = [mnewString(0)]; + fmtRes_1728053432[0].push.apply(fmtRes_1728053432[0], [83,121,110,101,114,103,121,33,32,40]);; + formatValue_1728053380(fmtRes_1728053432, 0, requirements_1728053366); + fmtRes_1728053432[0].push.apply(fmtRes_1728053432[0], [41,32,45,45,32]);; + formatValue_1728053380(fmtRes_1728053432, 0, x_1728053338.Field0.description); }; - x_1442840666.Field0.description = nimCopy(null, fmtRes_1442840760[0], NTI33554449); - F.line = 115; - if (eqStrings(x_1442840666.Field0.technicalName, [])) { + x_1728053338.Field0.description = nimCopy(null, fmtRes_1728053432[0], NTI33554449); + if (eqStrings(x_1728053338.Field0.technicalName, [])) { Label10: { - F.line = 115; - var fmtRes_1442840775 = [mnewString(0)]; - F.line = 115; - formatValue_1442840708(fmtRes_1442840775, 0, x_1442840666.Field0.name); - F.line = 115; - fmtRes_1442840775[0].push.apply(fmtRes_1442840775[0], [32,40,83,121,110,101,114,103,121,32,111,102,32]);; - F.line = 115; - formatValue_1442840708(fmtRes_1442840775, 0, requirements_1442840694); - F.line = 115; - fmtRes_1442840775[0].push.apply(fmtRes_1442840775[0], [41]);; + var fmtRes_1728053447 = [mnewString(0)]; + formatValue_1728053380(fmtRes_1728053447, 0, x_1728053338.Field0.name); + fmtRes_1728053447[0].push.apply(fmtRes_1728053447[0], [32,40,83,121,110,101,114,103,121,32,111,102,32]);; + formatValue_1728053380(fmtRes_1728053447, 0, requirements_1728053366); + fmtRes_1728053447[0].push.apply(fmtRes_1728053447[0], [41]);; }; - Temporary9 = fmtRes_1442840775[0]; + Temporary9 = fmtRes_1728053447[0]; } else { Label11: { - F.line = 116; - var fmtRes_1442840790 = [mnewString(0)]; - F.line = 116; - formatValue_1442840708(fmtRes_1442840790, 0, x_1442840666.Field0.technicalName); - F.line = 116; - fmtRes_1442840790[0].push.apply(fmtRes_1442840790[0], [32,40,83,121,110,101,114,103,121,32,111,102,32]);; - F.line = 116; - formatValue_1442840708(fmtRes_1442840790, 0, requirements_1442840694); - F.line = 116; - fmtRes_1442840790[0].push.apply(fmtRes_1442840790[0], [41]);; + var fmtRes_1728053462 = [mnewString(0)]; + formatValue_1728053380(fmtRes_1728053462, 0, x_1728053338.Field0.technicalName); + fmtRes_1728053462[0].push.apply(fmtRes_1728053462[0], [32,40,83,121,110,101,114,103,121,32,111,102,32]);; + formatValue_1728053380(fmtRes_1728053462, 0, requirements_1728053366); + fmtRes_1728053462[0].push.apply(fmtRes_1728053462[0], [41]);; }; - Temporary9 = fmtRes_1442840790[0]; + Temporary9 = fmtRes_1728053462[0]; } - x_1442840666.Field0.technicalName = nimCopy(null, Temporary9, NTI33554449); + x_1728053338.Field0.technicalName = nimCopy(null, Temporary9, NTI33554449); } else { - F.line = 119; - if (eqStrings(x_1442840666.Field0.technicalName, [])) { + if (eqStrings(x_1728053338.Field0.technicalName, [])) { Label13: { - F.line = 119; - var fmtRes_1442840805 = [mnewString(0)]; - F.line = 119; - formatValue_1442840708(fmtRes_1442840805, 0, x_1442840666.Field0.name); - F.line = 119; - fmtRes_1442840805[0].push.apply(fmtRes_1442840805[0], [32,40,83,101,99,114,101,116,32,83,101,99,114,101,116,32,83,121,110,101,114,103,121,32,111,102,32]);; - F.line = 119; - formatValue_1442840708(fmtRes_1442840805, 0, requirements_1442840694); - F.line = 119; - fmtRes_1442840805[0].push.apply(fmtRes_1442840805[0], [41]);; + var fmtRes_1728053477 = [mnewString(0)]; + formatValue_1728053380(fmtRes_1728053477, 0, x_1728053338.Field0.name); + fmtRes_1728053477[0].push.apply(fmtRes_1728053477[0], [32,40,83,101,99,114,101,116,32,83,101,99,114,101,116,32,83,121,110,101,114,103,121,32,111,102,32]);; + formatValue_1728053380(fmtRes_1728053477, 0, requirements_1728053366); + fmtRes_1728053477[0].push.apply(fmtRes_1728053477[0], [41]);; }; - Temporary12 = fmtRes_1442840805[0]; + Temporary12 = fmtRes_1728053477[0]; } else { Label14: { - F.line = 120; - var fmtRes_1442840820 = [mnewString(0)]; - F.line = 120; - formatValue_1442840708(fmtRes_1442840820, 0, x_1442840666.Field0.technicalName); - F.line = 120; - fmtRes_1442840820[0].push.apply(fmtRes_1442840820[0], [32,40,83,101,99,114,101,116,32,83,101,99,114,101,116,32,83,121,110,101,114,103,121,32,111,102,32]);; - F.line = 120; - formatValue_1442840708(fmtRes_1442840820, 0, requirements_1442840694); - F.line = 120; - fmtRes_1442840820[0].push.apply(fmtRes_1442840820[0], [41]);; + var fmtRes_1728053492 = [mnewString(0)]; + formatValue_1728053380(fmtRes_1728053492, 0, x_1728053338.Field0.technicalName); + fmtRes_1728053492[0].push.apply(fmtRes_1728053492[0], [32,40,83,101,99,114,101,116,32,83,101,99,114,101,116,32,83,121,110,101,114,103,121,32,111,102,32]);; + formatValue_1728053380(fmtRes_1728053492, 0, requirements_1728053366); + fmtRes_1728053492[0].push.apply(fmtRes_1728053492[0], [41]);; }; - Temporary12 = fmtRes_1442840820[0]; + Temporary12 = fmtRes_1728053492[0]; } - x_1442840666.Field0.technicalName = nimCopy(null, Temporary12, NTI33554449); + x_1728053338.Field0.technicalName = nimCopy(null, Temporary12, NTI33554449); } } - F.line = 122; - var Temporary15 = nimCopy(null, x_1442840666.Field0, NTI1442840581); - powers_1442840649[0].push(Temporary15);; - if (secretSecret_1442840660) { - F.line = 123; - var Temporary16 = nimCopy(null, x_1442840666, NTI1442840582); - secretSecretSynergies_1442840652[0].push(Temporary16);; + var Temporary15 = nimCopy(null, x_1728053338.Field0, NTI1728053253); + powers_1728053321[0].push(Temporary15);; + if (secretSecret_1728053332) { + var Temporary16 = nimCopy(null, x_1728053338, NTI1728053254); + secretSecretSynergies_1728053324[0].push(Temporary16);; } else { - if (secret_1442840659) { - F.line = 124; - var Temporary17 = nimCopy(null, x_1442840666, NTI1442840582); - secretSynergies_1442840651[0].push(Temporary17);; + if (secret_1728053331) { + var Temporary17 = nimCopy(null, x_1728053338, NTI1728053254); + secretSynergies_1728053323[0].push(Temporary17);; } else { - F.line = 125; - var Temporary18 = nimCopy(null, x_1442840666, NTI1442840582); - draftSynergies_1442840650[0].push(Temporary18);; + var Temporary18 = nimCopy(null, x_1728053338, NTI1728053254); + draftSynergies_1728053322[0].push(Temporary18);; } } - framePtr = F.prev; } -function isNone_1409289526(self_1409289528) { - var result_1409289529 = false; +function isNone_1660947766(self_1660947768) { + var result_1660947769 = false; - var F = {procname: "isNone.isNone", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/options.nim", line: 0}; - framePtr = F; - F.line = 176; - F.filename = "options.nim"; - result_1409289529 = !(self_1409289528.has); - framePtr = F.prev; + result_1660947769 = !(self_1660947768.has); - return result_1409289529; + return result_1660947769; } -function get_1409289543(self_1409289545) { - var result_1409289546 = 0; +function get_1660947783(self_1660947785) { + var result_1660947786 = 0; - var F = {procname: "get.get", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/options.nim", line: 0}; - framePtr = F; - if (isNone_1409289526(self_1409289545)) { - F.line = 202; - F.filename = "options.nim"; - raiseException({message: [67,97,110,39,116,32,111,98,116,97,105,110,32,97,32,118,97,108,117,101,32,102,114,111,109,32,97,32,96,110,111,110,101,96], parent: null, m_type: NTI1241514007, name: null, trace: [], up: null}, "UnpackDefect"); + if (isNone_1660947766(self_1660947785)) { + raiseException({message: [67,97,110,39,116,32,111,98,116,97,105,110,32,97,32,118,97,108,117,101,32,102,114,111,109,32,97,32,96,110,111,110,101,96], parent: null, m_type: NTI1493172247, name: null, trace: [], up: null}, "UnpackDefect"); } - F.line = 203; - result_1409289546 = self_1409289545["val"]; - framePtr = F.prev; + result_1660947786 = self_1660947785["val"]; - return result_1409289546; + return result_1660947786; } -function HEX3Aanonymous_1493178124(side_1493178125, piece_1493178126, b_1493178127, s_1493178128) { - var result_1493178129 = []; +function HEX3Aanonymous_1845499683(side_1845499684, piece_1845499685, b_1845499686, s_1845499687) { + var result_1845499688 = []; - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; BeforeRet: { - if (!(isSome_1409289449(s_1493178128.Field1[chckIndx(side_1493178125, 0, (s_1493178128.Field1).length - 1)].wallet))) { - F.line = 2054; - F.filename = "powers.nim"; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/the-playground/chess/src/powers.nim(2054, 9) `s.side[side].wallet.isSome()` ")); + if (!(isSome_1660947689(s_1845499687.Field1[chckIndx(side_1845499684, 0, (s_1845499687.Field1).length - 1)].wallet))) { + failedAssertImpl_268435541([112,111,119,101,114,115,46,110,105,109,40,50,48,55,56,44,32,57,41,32,96,115,46,115,105,100,101,91,115,105,100,101,93,46,119,97,108,108,101,116,46,105,115,83,111,109,101,40,41,96,32]); } - if (((s_1493178128.Field0.turnNumber <= 1) || !((get_1409289543(s_1493178128.Field1[chckIndx(side_1493178125, 0, (s_1493178128.Field1).length - 1)].wallet) == 0)))) { - F.line = 2058; - result_1493178129 = nimCopy(null, [], NTI1291845837); + if (((s_1845499687.Field0.turnNumber <= 1) || !((get_1660947783(s_1845499687.Field1[chckIndx(side_1845499684, 0, (s_1845499687.Field1).length - 1)].wallet) == 0)))) { + result_1845499688 = nimCopy(null, [], NTI1543504077); break BeforeRet; } Label1: { - F.line = 2060; - var i_1493178161 = 0; - F.line = 2060; - var j_1493178162 = 0; + var i_1845499720 = 0; + var j_1845499721 = 0; Label2: { - F.line = 124; - F.filename = "piece.nim"; - var i_1493179039 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_1493179040 = 0; + var i_1845500599 = 0; + var i_1845500600 = 0; Label3: { - F.line = 129; Label4: while (true) { - if (!(i_1493179040 < 8)) break Label4; - F.line = 124; - F.filename = "piece.nim"; - i_1493179039 = i_1493179040; + if (!(i_1845500600 < 8)) break Label4; + i_1845500599 = i_1845500600; Label5: { - F.line = 125; - var j_1493179043 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_1493179044 = 0; + var j_1845500603 = 0; + var i_1845500604 = 0; Label6: { - F.line = 129; Label7: while (true) { - if (!(i_1493179044 < 8)) break Label7; - F.line = 125; - F.filename = "piece.nim"; - j_1493179043 = i_1493179044; - F.line = 2060; - F.filename = "powers.nim"; - i_1493178161 = i_1493179039; - F.line = 2060; - j_1493178162 = j_1493179043; - if (!((b_1493178127[chckIndx(i_1493178161, 0, (b_1493178127).length - 1)][chckIndx(j_1493178162, 0, (b_1493178127[chckIndx(i_1493178161, 0, (b_1493178127).length - 1)]).length - 1)].item == 0))) { - F.line = 2062; - var Temporary8 = nimCopy(null, b_1493178127[chckIndx(i_1493178161, 0, (b_1493178127).length - 1)][chckIndx(j_1493178162, 0, (b_1493178127[chckIndx(i_1493178161, 0, (b_1493178127).length - 1)]).length - 1)].tile, NTI1224736771); - result_1493178129.push(Temporary8);; + if (!(i_1845500604 < 8)) break Label7; + j_1845500603 = i_1845500604; + i_1845499720 = i_1845500599; + j_1845499721 = j_1845500603; + if (!((b_1845499686[chckIndx(i_1845499720, 0, (b_1845499686).length - 1)][chckIndx(j_1845499721, 0, (b_1845499686[chckIndx(i_1845499720, 0, (b_1845499686).length - 1)]).length - 1)].item == 0))) { + var Temporary8 = nimCopy(null, b_1845499686[chckIndx(i_1845499720, 0, (b_1845499686).length - 1)][chckIndx(j_1845499721, 0, (b_1845499686[chckIndx(i_1845499720, 0, (b_1845499686).length - 1)]).length - 1)].tile, NTI1476395011); + result_1845499688.push(Temporary8);; } - F.line = 131; - F.filename = "iterators_1.nim"; - i_1493179044 = addInt(i_1493179044, 1); + i_1845500604 = addInt(i_1845500604, 1); } }; }; - F.line = 131; - i_1493179040 = addInt(i_1493179040, 1); + i_1845500600 = addInt(i_1845500600, 1); } }; }; }; }; - framePtr = F.prev; - return result_1493178129; + return result_1845499688; } -function HEX3Aanonymous_1493178172(side_1493178173, __1493178174, __1493178175, s_1493178176) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 2076; - F.filename = "powers.nim"; - s_1493178176.Field1[chckIndx(side_1493178173, 0, (s_1493178176.Field1).length - 1)].glass[chckIndx(1, 0, (s_1493178176.Field1[chckIndx(side_1493178173, 0, (s_1493178176.Field1).length - 1)].glass).length - 1)] = nimCopy(s_1493178176.Field1[chckIndx(side_1493178173, 0, (s_1493178176.Field1).length - 1)].glass[chckIndx(1, 0, (s_1493178176.Field1[chckIndx(side_1493178173, 0, (s_1493178176.Field1).length - 1)].glass).length - 1)], some_1493178051({Field0: 3, Field1: createZeroGlassAction_1493177973(side_1493178173), Field2: HEX3Aanonymous_1493178124}), NTI1224736839); - framePtr = F.prev; +function HEX3Aanonymous_1845499731(side_1845499732, __1845499733, __1845499734, s_1845499735) { + s_1845499735.Field1[chckIndx(side_1845499732, 0, (s_1845499735.Field1).length - 1)].glass[chckIndx(1, 0, (s_1845499735.Field1[chckIndx(side_1845499732, 0, (s_1845499735.Field1).length - 1)].glass).length - 1)] = nimCopy(s_1845499735.Field1[chckIndx(side_1845499732, 0, (s_1845499735.Field1).length - 1)].glass[chckIndx(1, 0, (s_1845499735.Field1[chckIndx(side_1845499732, 0, (s_1845499735.Field1).length - 1)].glass).length - 1)], some_1845499610({Field0: 3, Field1: createZeroGlassAction_1845499532(side_1845499732), Field2: HEX3Aanonymous_1845499683}), NTI1476395079); } -function HEX3DHEX3D_1224737206(a_1224737207, b_1224737208) { - var result_1224737209 = false; +function HEX3DHEX3D_1476395446(a_1476395447, b_1476395448) { + var result_1476395449 = false; - var F = {procname: "piece.==", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/piece.nim", line: 0}; - framePtr = F; BeforeRet: { - F.line = 161; - F.filename = "piece.nim"; - result_1224737209 = (a_1224737207.index == b_1224737208.index); + result_1476395449 = (a_1476395447.index == b_1476395448.index); break BeforeRet; }; - framePtr = F.prev; - return result_1224737209; + return result_1476395449; } -function HEX3Aanonymous_1493178029(piece_1493178030, to_1493178031, b_1493178032, s_1493178033) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; +function HEX3Aanonymous_1845499588(piece_1845499589, to_1845499590, b_1845499591, s_1845499592) { BeforeRet: { - if (((HEX5BHEX5D_1224737124(b_1493178032, to_1493178031).item == 6) || HEX3DHEX3D_1224737206(HEX5BHEX5D_1224737124(b_1493178032, to_1493178031), piece_1493178030))) { - F.line = 1957; - F.filename = "powers.nim"; + if (((HEX5BHEX5D_1476395364(b_1845499591, to_1845499590).item == 6) || HEX3DHEX3D_1476395446(HEX5BHEX5D_1476395364(b_1845499591, to_1845499590), piece_1845499589))) { break BeforeRet; } - F.line = 1958; - piece_1493178030.onTake(piece_1493178030, to_1493178031, b_1493178032, s_1493178033); + piece_1845499589.onTake(piece_1845499589, to_1845499590, b_1845499591, s_1845499592); }; - framePtr = F.prev; } -function HEX3Aanonymous_1493177990(side_1493177991, piece_1493177992, b_1493177993, __1493177994) { - var result_1493177995 = []; +function HEX3Aanonymous_1845499549(side_1845499550, piece_1845499551, b_1845499552, __1845499553) { + var result_1845499554 = []; - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; BeforeRet: { - if (!(isAtEnd_1224737998(piece_1493177992))) { - if ((piece_1493177992.color == 1)) { - F.line = 1948; - F.filename = "powers.nim"; - result_1493177995 = nimCopy(null, [nimCopy(null, tileAbove_1308622990(piece_1493177992.tile), NTI1224736771)], NTI1493177050); + if (!(isAtEnd_1476396238(piece_1845499551))) { + if ((piece_1845499551.color == 1)) { + result_1845499554 = nimCopy(null, [nimCopy(null, tileAbove_1560281230(piece_1845499551.tile), NTI1476395011)], NTI1845498586); break BeforeRet; } else { - F.line = 1950; - result_1493177995 = nimCopy(null, [nimCopy(null, tileBelow_1308622993(piece_1493177992.tile), NTI1224736771)], NTI1493177050); + result_1845499554 = nimCopy(null, [nimCopy(null, tileBelow_1560281233(piece_1845499551.tile), NTI1476395011)], NTI1845498586); break BeforeRet; } } else { - F.line = 1951; - result_1493177995 = nimCopy(null, [], NTI1291845837); + result_1845499554 = nimCopy(null, [], NTI1543504077); break BeforeRet; } }; - framePtr = F.prev; - return result_1493177995; + return result_1845499554; } -function HEX3Aanonymous_1493178069(side_1493178070, __1493178071, b_1493178072, s_1493178073) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 2017; - F.filename = "powers.nim"; - s_1493178073.Field1[chckIndx(side_1493178070, 0, (s_1493178073.Field1).length - 1)].glass[chckIndx(2, 0, (s_1493178073.Field1[chckIndx(side_1493178070, 0, (s_1493178073.Field1).length - 1)].glass).length - 1)] = nimCopy(s_1493178073.Field1[chckIndx(side_1493178070, 0, (s_1493178073.Field1).length - 1)].glass[chckIndx(2, 0, (s_1493178073.Field1[chckIndx(side_1493178070, 0, (s_1493178073.Field1).length - 1)].glass).length - 1)], some_1493178051({Field0: 5, Field1: HEX3Aanonymous_1493178029, Field2: HEX3Aanonymous_1493177990}), NTI1224736839); - framePtr = F.prev; +function HEX3Aanonymous_1845499628(side_1845499629, __1845499630, b_1845499631, s_1845499632) { + s_1845499632.Field1[chckIndx(side_1845499629, 0, (s_1845499632.Field1).length - 1)].glass[chckIndx(2, 0, (s_1845499632.Field1[chckIndx(side_1845499629, 0, (s_1845499632.Field1).length - 1)].glass).length - 1)] = nimCopy(s_1845499632.Field1[chckIndx(side_1845499629, 0, (s_1845499632.Field1).length - 1)].glass[chckIndx(2, 0, (s_1845499632.Field1[chckIndx(side_1845499629, 0, (s_1845499632.Field1).length - 1)].glass).length - 1)], some_1845499610({Field0: 5, Field1: HEX3Aanonymous_1845499588, Field2: HEX3Aanonymous_1845499549}), NTI1476395079); } -function HEX26_1493178227(x_1493178229, y_1493178230) { - var result_1493178231 = []; +function HEX26_1845499786(x_1845499788, y_1845499789) { + var result_1845499790 = []; - var F = {procname: "&.&", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; - F.line = 1537; - F.filename = "system.nim"; - result_1493178231 = new Array(chckRange(addInt((x_1493178229).length, (y_1493178230).length), 0, 2147483647)); for (var i = 0 ; i < chckRange(addInt((x_1493178229).length, (y_1493178230).length), 0, 2147483647) ; ++i) { result_1493178231[i] = null; } Label1: { - F.line = 1538; - var i_1493178249 = 0; - F.line = 81; - F.filename = "iterators_1.nim"; - var colontmp__1493179047 = 0; - F.line = 1538; - F.filename = "system.nim"; - colontmp__1493179047 = subInt((x_1493178229).length, 1); - F.line = 96; - F.filename = "iterators_1.nim"; - var res_1493179048 = 0; + result_1845499790 = new Array(chckRange(addInt((x_1845499788).length, (y_1845499789).length), 0, 2147483647)); for (var i = 0 ; i < chckRange(addInt((x_1845499788).length, (y_1845499789).length), 0, 2147483647) ; ++i) { result_1845499790[i] = null; } Label1: { + var i_1845499808 = 0; + var colontmp__1845500607 = 0; + colontmp__1845500607 = subInt((x_1845499788).length, 1); + var res_1845500608 = 0; Label2: { - F.line = 97; Label3: while (true) { - if (!(res_1493179048 <= colontmp__1493179047)) break Label3; - F.line = 1538; - F.filename = "system.nim"; - i_1493178249 = res_1493179048; - F.line = 1539; - result_1493178231[chckIndx(i_1493178249, 0, (result_1493178231).length - 1)] = x_1493178229[chckIndx(i_1493178249, 0, (x_1493178229).length - 1)]; - F.line = 102; - F.filename = "iterators_1.nim"; - res_1493179048 = addInt(res_1493179048, 1); + if (!(res_1845500608 <= colontmp__1845500607)) break Label3; + i_1845499808 = res_1845500608; + result_1845499790[chckIndx(i_1845499808, 0, (result_1845499790).length - 1)] = x_1845499788[chckIndx(i_1845499808, 0, (x_1845499788).length - 1)]; + res_1845500608 = addInt(res_1845500608, 1); } }; }; Label4: { - F.line = 1540; - F.filename = "system.nim"; - var i_1493178257 = 0; - F.line = 81; - F.filename = "iterators_1.nim"; - var colontmp__1493179051 = 0; - F.line = 1540; - F.filename = "system.nim"; - colontmp__1493179051 = subInt((y_1493178230).length, 1); - F.line = 96; - F.filename = "iterators_1.nim"; - var res_1493179052 = 0; + var i_1845499816 = 0; + var colontmp__1845500611 = 0; + colontmp__1845500611 = subInt((y_1845499789).length, 1); + var res_1845500612 = 0; Label5: { - F.line = 97; Label6: while (true) { - if (!(res_1493179052 <= colontmp__1493179051)) break Label6; - F.line = 1540; - F.filename = "system.nim"; - i_1493178257 = res_1493179052; - F.line = 1541; - result_1493178231[chckIndx(addInt(i_1493178257, (x_1493178229).length), 0, (result_1493178231).length - 1)] = y_1493178230[chckIndx(i_1493178257, 0, (y_1493178230).length - 1)]; - F.line = 102; - F.filename = "iterators_1.nim"; - res_1493179052 = addInt(res_1493179052, 1); + if (!(res_1845500612 <= colontmp__1845500611)) break Label6; + i_1845499816 = res_1845500612; + result_1845499790[chckIndx(addInt(i_1845499816, (x_1845499788).length), 0, (result_1845499790).length - 1)] = y_1845499789[chckIndx(i_1845499816, 0, (y_1845499789).length - 1)]; + res_1845500612 = addInt(res_1845500612, 1); } }; }; - framePtr = F.prev; - return result_1493178231; + return result_1845499790; } -function shuffle_1493178270(r_1493178272, x_1493178273) { - var F = {procname: "shuffle.shuffle", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/random.nim", line: 0}; - framePtr = F; +function shuffle_1845499829(r_1845499831, x_1845499832) { Label1: { - F.line = 640; - F.filename = "random.nim"; - var i_1493178282 = 0; - F.line = 6; - F.filename = "iterators_1.nim"; - var colontmp__1493179055 = 0; - F.line = 640; - F.filename = "random.nim"; - colontmp__1493179055 = (x_1493178273).length - 1; - F.line = 33; - F.filename = "iterators_1.nim"; - var res_1493179056 = colontmp__1493179055; + var i_1845499841 = 0; + var colontmp__1845500615 = 0; + colontmp__1845500615 = (x_1845499832).length - 1; + var res_1845500616 = colontmp__1845500615; Label2: { - F.line = 34; Label3: while (true) { - if (!(1 <= res_1493179056)) break Label3; - F.line = 640; - F.filename = "random.nim"; - i_1493178282 = res_1493179056; - F.line = 641; - var j_1493178283 = rand_1392509035(r_1493178272, chckRange(i_1493178282, 0, 2147483647)); - F.line = 642; - var Temporary4 = x_1493178273[chckIndx(i_1493178282, 0, (x_1493178273).length - 1)]; x_1493178273[chckIndx(i_1493178282, 0, (x_1493178273).length - 1)] = x_1493178273[chckIndx(j_1493178283, 0, (x_1493178273).length - 1)]; x_1493178273[chckIndx(j_1493178283, 0, (x_1493178273).length - 1)] = Temporary4; F.line = 39; - F.filename = "iterators_1.nim"; - res_1493179056 = subInt(res_1493179056, 1); + if (!(1 <= res_1845500616)) break Label3; + i_1845499841 = res_1845500616; + var j_1845499842 = rand_1644167275(r_1845499831, chckRange(i_1845499841, 0, 2147483647)); + var Temporary4 = x_1845499832[chckIndx(i_1845499841, 0, (x_1845499832).length - 1)]; x_1845499832[chckIndx(i_1845499841, 0, (x_1845499832).length - 1)] = x_1845499832[chckIndx(j_1845499842, 0, (x_1845499832).length - 1)]; x_1845499832[chckIndx(j_1845499842, 0, (x_1845499832).length - 1)] = Temporary4; res_1845500616 = subInt(res_1845500616, 1); } }; }; - framePtr = F.prev; } -function shuffle_1493178267(x_1493178269) { - var F = {procname: "shuffle.shuffle", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/random.nim", line: 0}; - framePtr = F; - F.line = 661; - F.filename = "random.nim"; - shuffle_1493178270(state_1392508942[0], x_1493178269); - framePtr = F.prev; +function shuffle_1845499826(x_1845499828) { + shuffle_1845499829(state_1644167182[0], x_1845499828); } -function HEX5BHEX5D_1493178314(s_1493178318, x_1493178319) { - var result_1493178320 = []; +function HEX5BHEX5D_1845499873(s_1845499877, x_1845499878) { + var result_1845499879 = []; - var F = {procname: "[].[]", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/indices.nim", line: 0}; - framePtr = F; - F.line = 139; - F.filename = "indices.nim"; - var a_1493178322 = x_1493178319.a; - F.line = 140; - var L_1493178324 = addInt(subInt(x_1493178319.b, a_1493178322), 1); - F.line = 141; - result_1493178320 = new Array(chckRange(L_1493178324, 0, 2147483647)); for (var i = 0 ; i < chckRange(L_1493178324, 0, 2147483647) ; ++i) { result_1493178320[i] = null; } Label1: { - F.line = 142; - var i_1493178333 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_1493179059 = 0; + var a_1845499881 = x_1845499878.a; + var L_1845499883 = addInt(subInt(x_1845499878.b, a_1845499881), 1); + result_1845499879 = new Array(chckRange(L_1845499883, 0, 2147483647)); for (var i = 0 ; i < chckRange(L_1845499883, 0, 2147483647) ; ++i) { result_1845499879[i] = null; } Label1: { + var i_1845499892 = 0; + var i_1845500619 = 0; Label2: { - F.line = 129; Label3: while (true) { - if (!(i_1493179059 < L_1493178324)) break Label3; - F.line = 142; - F.filename = "indices.nim"; - i_1493178333 = i_1493179059; - F.line = 142; - result_1493178320[chckIndx(i_1493178333, 0, (result_1493178320).length - 1)] = s_1493178318[chckIndx(addInt(i_1493178333, a_1493178322), 0, (s_1493178318).length - 1)]; - F.line = 131; - F.filename = "iterators_1.nim"; - i_1493179059 = addInt(i_1493179059, 1); + if (!(i_1845500619 < L_1845499883)) break Label3; + i_1845499892 = i_1845500619; + result_1845499879[chckIndx(i_1845499892, 0, (result_1845499879).length - 1)] = s_1845499877[chckIndx(addInt(i_1845499892, a_1845499881), 0, (s_1845499877).length - 1)]; + i_1845500619 = addInt(i_1845500619, 1); } }; }; - framePtr = F.prev; - return result_1493178320; + return result_1845499879; } -function HEX5BHEX5D_1493178343(s_1493178347, x_1493178348) { - var result_1493178349 = []; +function HEX5BHEX5D_1845499902(s_1845499906, x_1845499907) { + var result_1845499908 = []; - var F = {procname: "[].[]", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/indices.nim", line: 0}; - framePtr = F; - F.line = 139; - F.filename = "indices.nim"; - var a_1493178351 = x_1493178348.a; - F.line = 140; - var L_1493178356 = addInt(subInt(subInt((s_1493178347).length, x_1493178348.b), a_1493178351), 1); - F.line = 141; - result_1493178349 = new Array(chckRange(L_1493178356, 0, 2147483647)); for (var i = 0 ; i < chckRange(L_1493178356, 0, 2147483647) ; ++i) { result_1493178349[i] = null; } Label1: { - F.line = 142; - var i_1493178365 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_1493179062 = 0; + var a_1845499910 = x_1845499907.a; + var L_1845499915 = addInt(subInt(subInt((s_1845499906).length, x_1845499907.b), a_1845499910), 1); + result_1845499908 = new Array(chckRange(L_1845499915, 0, 2147483647)); for (var i = 0 ; i < chckRange(L_1845499915, 0, 2147483647) ; ++i) { result_1845499908[i] = null; } Label1: { + var i_1845499924 = 0; + var i_1845500622 = 0; Label2: { - F.line = 129; Label3: while (true) { - if (!(i_1493179062 < L_1493178356)) break Label3; - F.line = 142; - F.filename = "indices.nim"; - i_1493178365 = i_1493179062; - F.line = 142; - result_1493178349[chckIndx(i_1493178365, 0, (result_1493178349).length - 1)] = s_1493178347[chckIndx(addInt(i_1493178365, a_1493178351), 0, (s_1493178347).length - 1)]; - F.line = 131; - F.filename = "iterators_1.nim"; - i_1493179062 = addInt(i_1493179062, 1); + if (!(i_1845500622 < L_1845499915)) break Label3; + i_1845499924 = i_1845500622; + result_1845499908[chckIndx(i_1845499924, 0, (result_1845499908).length - 1)] = s_1845499906[chckIndx(addInt(i_1845499924, a_1845499910), 0, (s_1845499906).length - 1)]; + i_1845500622 = addInt(i_1845500622, 1); } }; }; - framePtr = F.prev; - return result_1493178349; + return result_1845499908; } -function HEX2EHEX2E_1006633065(a_1006633068, b_1006633069) { - var result_1006633072 = ({a: 0, b: 0}); +function HEX2EHEX2E_1090519145(a_1090519148, b_1090519149) { + var result_1090519152 = ({a: 0, b: 0}); - var F = {procname: ".....", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; - F.line = 418; - F.filename = "system.nim"; - result_1006633072 = nimCopy(result_1006633072, {a: a_1006633068, b: b_1006633069}, NTI1006633045); - framePtr = F.prev; + result_1090519152 = nimCopy(result_1090519152, {a: a_1090519148, b: b_1090519149}, NTI1090519125); - return result_1006633072; + return result_1090519152; } -function HEX3Aanonymous_1493178214(piece_1493178215, to_1493178216, b_1493178217, s_1493178218) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; +function HEX3Aanonymous_1845499773(piece_1845499774, to_1845499775, b_1845499776, s_1845499777) { BeforeRet: { - if (((isAir_1224737796(HEX5BHEX5D_1224737124(b_1493178217, to_1493178216)) || (HEX5BHEX5D_1224737124(b_1493178217, to_1493178216).item == 0)) || (piece_1493178215.item == 0))) { - F.line = 2097; - F.filename = "powers.nim"; + if (((isAir_1476396036(HEX5BHEX5D_1476395364(b_1845499776, to_1845499775)) || (HEX5BHEX5D_1476395364(b_1845499776, to_1845499775).item == 0)) || (piece_1845499774.item == 0))) { break BeforeRet; } - F.line = 2099; - randomize_1392509190(BigInt(addInt(addInt(s_1493178218.Field0.randSeed, mulInt(piece_1493178215.tile.Field1, 10)), mulInt(piece_1493178215.tile.Field0, 100)))); - F.line = 2101; - var allMoves_1493178261 = HEX26_1493178227(piece_1493178215.moves, HEX5BHEX5D_1224737124(b_1493178217, to_1493178216).moves); - F.line = 2102; - var allTakes_1493178266 = HEX26_1493178227(piece_1493178215.takes, HEX5BHEX5D_1224737124(b_1493178217, to_1493178216).takes); - F.line = 2104; - shuffle_1493178267(allMoves_1493178261); - F.line = 2105; - shuffle_1493178267(allTakes_1493178266); - F.line = 2107; - var casterMoves_1493178294 = (piece_1493178215.moves).length; - F.line = 2108; - var casterTakes_1493178298 = (piece_1493178215.takes).length; - F.line = 2112; - piece_1493178215.moves = nimCopy(null, HEX5BHEX5D_1493178314(allMoves_1493178261, HEX2EHEX2E_1056964656(0, subInt(casterMoves_1493178294, 1))), NTI1493177323); - F.line = 2113; - HEX5BHEX5D_1224737124(b_1493178217, to_1493178216).moves = nimCopy(null, HEX5BHEX5D_1493178343(allMoves_1493178261, HEX2EHEX2E_1006633065(casterMoves_1493178294, 1)), NTI1493177350); - F.line = 2114; - piece_1493178215.takes = nimCopy(null, HEX5BHEX5D_1493178314(allTakes_1493178266, HEX2EHEX2E_1056964656(0, subInt(casterTakes_1493178298, 1))), NTI1493177323); - F.line = 2115; - HEX5BHEX5D_1224737124(b_1493178217, to_1493178216).takes = nimCopy(null, HEX5BHEX5D_1493178343(allTakes_1493178266, HEX2EHEX2E_1006633065(casterTakes_1493178298, 1)), NTI1493177350); + randomize_1644167430(BigInt(addInt(addInt(s_1845499777.Field0.randSeed, mulInt(piece_1845499774.tile.Field1, 10)), mulInt(piece_1845499774.tile.Field0, 100)))); + var allMoves_1845499820 = HEX26_1845499786(piece_1845499774.moves, HEX5BHEX5D_1476395364(b_1845499776, to_1845499775).moves); + var allTakes_1845499825 = HEX26_1845499786(piece_1845499774.takes, HEX5BHEX5D_1476395364(b_1845499776, to_1845499775).takes); + shuffle_1845499826(allMoves_1845499820); + shuffle_1845499826(allTakes_1845499825); + var casterMoves_1845499853 = (piece_1845499774.moves).length; + var casterTakes_1845499857 = (piece_1845499774.takes).length; + piece_1845499774.moves = nimCopy(null, HEX5BHEX5D_1845499873(allMoves_1845499820, HEX2EHEX2E_1174405168(0, subInt(casterMoves_1845499853, 1))), NTI1845498859); + HEX5BHEX5D_1476395364(b_1845499776, to_1845499775).moves = nimCopy(null, HEX5BHEX5D_1845499902(allMoves_1845499820, HEX2EHEX2E_1090519145(casterMoves_1845499853, 1)), NTI1845498886); + piece_1845499774.takes = nimCopy(null, HEX5BHEX5D_1845499873(allTakes_1845499825, HEX2EHEX2E_1174405168(0, subInt(casterTakes_1845499857, 1))), NTI1845498859); + HEX5BHEX5D_1476395364(b_1845499776, to_1845499775).takes = nimCopy(null, HEX5BHEX5D_1845499902(allTakes_1845499825, HEX2EHEX2E_1090519145(casterTakes_1845499857, 1)), NTI1845498886); }; - framePtr = F.prev; } -function HEX3Aanonymous_1493178197(side_1493178198, piece_1493178199, b_1493178200, s_1493178201) { - var result_1493178202 = []; +function HEX3Aanonymous_1845499756(side_1845499757, piece_1845499758, b_1845499759, s_1845499760) { + var result_1845499761 = []; - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; Label1: { - F.line = 2092; - F.filename = "powers.nim"; - var i_1493178203 = 0; - F.line = 2092; - var j_1493178204 = 0; + var i_1845499762 = 0; + var j_1845499763 = 0; Label2: { - F.line = 124; - F.filename = "piece.nim"; - var i_1493179066 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_1493179067 = 0; + var i_1845500626 = 0; + var i_1845500627 = 0; Label3: { - F.line = 129; Label4: while (true) { - if (!(i_1493179067 < 8)) break Label4; - F.line = 124; - F.filename = "piece.nim"; - i_1493179066 = i_1493179067; + if (!(i_1845500627 < 8)) break Label4; + i_1845500626 = i_1845500627; Label5: { - F.line = 125; - var j_1493179070 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_1493179071 = 0; + var j_1845500630 = 0; + var i_1845500631 = 0; Label6: { - F.line = 129; Label7: while (true) { - if (!(i_1493179071 < 8)) break Label7; - F.line = 125; - F.filename = "piece.nim"; - j_1493179070 = i_1493179071; - F.line = 2092; - F.filename = "powers.nim"; - i_1493178203 = i_1493179066; - F.line = 2092; - j_1493178204 = j_1493179070; - if ((!((b_1493178200[chckIndx(i_1493178203, 0, (b_1493178200).length - 1)][chckIndx(j_1493178204, 0, (b_1493178200[chckIndx(i_1493178203, 0, (b_1493178200).length - 1)]).length - 1)].item == 0)) && !(isAir_1224737796(b_1493178200[chckIndx(i_1493178203, 0, (b_1493178200).length - 1)][chckIndx(j_1493178204, 0, (b_1493178200[chckIndx(i_1493178203, 0, (b_1493178200).length - 1)]).length - 1)])))) { - F.line = 2094; - var Temporary8 = nimCopy(null, b_1493178200[chckIndx(i_1493178203, 0, (b_1493178200).length - 1)][chckIndx(j_1493178204, 0, (b_1493178200[chckIndx(i_1493178203, 0, (b_1493178200).length - 1)]).length - 1)].tile, NTI1224736771); - result_1493178202.push(Temporary8);; + if (!(i_1845500631 < 8)) break Label7; + j_1845500630 = i_1845500631; + i_1845499762 = i_1845500626; + j_1845499763 = j_1845500630; + if ((!((b_1845499759[chckIndx(i_1845499762, 0, (b_1845499759).length - 1)][chckIndx(j_1845499763, 0, (b_1845499759[chckIndx(i_1845499762, 0, (b_1845499759).length - 1)]).length - 1)].item == 0)) && !(isAir_1476396036(b_1845499759[chckIndx(i_1845499762, 0, (b_1845499759).length - 1)][chckIndx(j_1845499763, 0, (b_1845499759[chckIndx(i_1845499762, 0, (b_1845499759).length - 1)]).length - 1)])))) { + var Temporary8 = nimCopy(null, b_1845499759[chckIndx(i_1845499762, 0, (b_1845499759).length - 1)][chckIndx(j_1845499763, 0, (b_1845499759[chckIndx(i_1845499762, 0, (b_1845499759).length - 1)]).length - 1)].tile, NTI1476395011); + result_1845499761.push(Temporary8);; } - F.line = 131; - F.filename = "iterators_1.nim"; - i_1493179071 = addInt(i_1493179071, 1); + i_1845500631 = addInt(i_1845500631, 1); } }; }; - F.line = 131; - i_1493179067 = addInt(i_1493179067, 1); + i_1845500627 = addInt(i_1845500627, 1); } }; }; }; - framePtr = F.prev; - return result_1493178202; + return result_1845499761; } -function HEX3Aanonymous_1493178403(side_1493178404, __1493178405, __1493178406, s_1493178407) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 2131; - F.filename = "powers.nim"; - s_1493178407.Field1[chckIndx(side_1493178404, 0, (s_1493178407.Field1).length - 1)].glass[chckIndx(3, 0, (s_1493178407.Field1[chckIndx(side_1493178404, 0, (s_1493178407.Field1).length - 1)].glass).length - 1)] = nimCopy(s_1493178407.Field1[chckIndx(side_1493178404, 0, (s_1493178407.Field1).length - 1)].glass[chckIndx(3, 0, (s_1493178407.Field1[chckIndx(side_1493178404, 0, (s_1493178407.Field1).length - 1)].glass).length - 1)], some_1493178051({Field0: 3, Field1: HEX3Aanonymous_1493178214, Field2: HEX3Aanonymous_1493178197}), NTI1224736839); - framePtr = F.prev; +function HEX3Aanonymous_1845499962(side_1845499963, __1845499964, __1845499965, s_1845499966) { + s_1845499966.Field1[chckIndx(side_1845499963, 0, (s_1845499966.Field1).length - 1)].glass[chckIndx(3, 0, (s_1845499966.Field1[chckIndx(side_1845499963, 0, (s_1845499966.Field1).length - 1)].glass).length - 1)] = nimCopy(s_1845499966.Field1[chckIndx(side_1845499963, 0, (s_1845499966.Field1).length - 1)].glass[chckIndx(3, 0, (s_1845499966.Field1[chckIndx(side_1845499963, 0, (s_1845499966.Field1).length - 1)].glass).length - 1)], some_1845499610({Field0: 3, Field1: HEX3Aanonymous_1845499773, Field2: HEX3Aanonymous_1845499756}), NTI1476395079); } -function HEX3Aanonymous_1493178436(piece_1493178437, to_1493178438, b_1493178439, s_1493178440) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; +function HEX3Aanonymous_1845499995(piece_1845499996, to_1845499997, b_1845499998, s_1845499999) { BeforeRet: { - if ((isAir_1224737796(HEX5BHEX5D_1224737124(b_1493178439, to_1493178438)) || HEX5BHEX5D_1224737124(b_1493178439, to_1493178438).promoted)) { - F.line = 2147; - F.filename = "powers.nim"; + if ((isAir_1476396036(HEX5BHEX5D_1476395364(b_1845499998, to_1845499997)) || HEX5BHEX5D_1476395364(b_1845499998, to_1845499997).promoted)) { break BeforeRet; } Label1: { - F.line = 181; - F.filename = "piece.nim"; - var xHEX60gensym427_1493178445 = null; - F.line = 247; - F.filename = "iterators.nim"; - var colontmp__1493179074 = []; - F.line = 181; - F.filename = "piece.nim"; - colontmp__1493179074 = HEX5BHEX5D_1224737124(b_1493178439, to_1493178438).onPromote; - F.line = 249; - F.filename = "iterators.nim"; - var i_1493179075 = 0; - F.line = 250; - var L_1493179076 = (colontmp__1493179074).length; + var xHEX60gensym428_1845500004 = null; + var colontmp__1845500634 = []; + colontmp__1845500634 = HEX5BHEX5D_1476395364(b_1845499998, to_1845499997).onPromote; + var i_1845500635 = 0; + var L_1845500636 = (colontmp__1845500634).length; Label2: { - F.line = 251; Label3: while (true) { - if (!(i_1493179075 < L_1493179076)) break Label3; - F.line = 2148; - F.filename = "powers.nim"; - xHEX60gensym427_1493178445 = colontmp__1493179074[chckIndx(i_1493179075, 0, (colontmp__1493179074).length - 1)]; - F.line = 182; - F.filename = "piece.nim"; - xHEX60gensym427_1493178445(HEX5BHEX5D_1224737124(b_1493178439, to_1493178438), b_1493178439, s_1493178440); - if (HEX5BHEX5D_1224737124(b_1493178439, to_1493178438).promoted) { - F.line = 183; + if (!(i_1845500635 < L_1845500636)) break Label3; + xHEX60gensym428_1845500004 = colontmp__1845500634[chckIndx(i_1845500635, 0, (colontmp__1845500634).length - 1)]; + xHEX60gensym428_1845500004(HEX5BHEX5D_1476395364(b_1845499998, to_1845499997), b_1845499998, s_1845499999); + if (HEX5BHEX5D_1476395364(b_1845499998, to_1845499997).promoted) { break Label1; } - F.line = 13; - F.filename = "iterators.nim"; - i_1493179075 += 1; - if (!(((colontmp__1493179074).length == L_1493179076))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + i_1845500635 += 1; + if (!(((colontmp__1845500634).length == L_1845500636))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; }; - framePtr = F.prev; } -function HEX3Aanonymous_1493178415(side_1493178416, piece_1493178417, b_1493178418, s_1493178419) { - var result_1493178420 = []; +function HEX3Aanonymous_1845499974(side_1845499975, piece_1845499976, b_1845499977, s_1845499978) { + var result_1845499979 = []; - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; Label1: { - F.line = 2140; - F.filename = "powers.nim"; - var i_1493178421 = 0; - F.line = 2140; - var j_1493178422 = 0; + var i_1845499980 = 0; + var j_1845499981 = 0; Label2: { - F.line = 124; - F.filename = "piece.nim"; - var i_1493179080 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_1493179081 = 0; + var i_1845500640 = 0; + var i_1845500641 = 0; Label3: { - F.line = 129; Label4: while (true) { - if (!(i_1493179081 < 8)) break Label4; - F.line = 124; - F.filename = "piece.nim"; - i_1493179080 = i_1493179081; + if (!(i_1845500641 < 8)) break Label4; + i_1845500640 = i_1845500641; Label5: { - F.line = 125; - var j_1493179084 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_1493179085 = 0; + var j_1845500644 = 0; + var i_1845500645 = 0; Label6: { - F.line = 129; Label7: while (true) { - if (!(i_1493179085 < 8)) break Label7; - F.line = 125; - F.filename = "piece.nim"; - j_1493179084 = i_1493179085; - F.line = 2140; - F.filename = "powers.nim"; - i_1493178421 = i_1493179080; - F.line = 2140; - j_1493178422 = j_1493179084; - if (((isColor_1224737813(b_1493178418[chckIndx(i_1493178421, 0, (b_1493178418).length - 1)][chckIndx(j_1493178422, 0, (b_1493178418[chckIndx(i_1493178421, 0, (b_1493178418).length - 1)]).length - 1)], side_1493178416) && !(HEX3DHEX3D_1493174615(b_1493178418[chckIndx(i_1493178421, 0, (b_1493178418).length - 1)][chckIndx(j_1493178422, 0, (b_1493178418[chckIndx(i_1493178421, 0, (b_1493178418).length - 1)]).length - 1)].onPromote, [HEX3Aanonymous_1224737210]))) && !(b_1493178418[chckIndx(i_1493178421, 0, (b_1493178418).length - 1)][chckIndx(j_1493178422, 0, (b_1493178418[chckIndx(i_1493178421, 0, (b_1493178418).length - 1)]).length - 1)].promoted))) { - F.line = 2144; - var Temporary8 = nimCopy(null, b_1493178418[chckIndx(i_1493178421, 0, (b_1493178418).length - 1)][chckIndx(j_1493178422, 0, (b_1493178418[chckIndx(i_1493178421, 0, (b_1493178418).length - 1)]).length - 1)].tile, NTI1224736771); - result_1493178420.push(Temporary8);; + if (!(i_1845500645 < 8)) break Label7; + j_1845500644 = i_1845500645; + i_1845499980 = i_1845500640; + j_1845499981 = j_1845500644; + if (((isColor_1476396053(b_1845499977[chckIndx(i_1845499980, 0, (b_1845499977).length - 1)][chckIndx(j_1845499981, 0, (b_1845499977[chckIndx(i_1845499980, 0, (b_1845499977).length - 1)]).length - 1)], side_1845499975) && !(HEX3DHEX3D_1845496135(b_1845499977[chckIndx(i_1845499980, 0, (b_1845499977).length - 1)][chckIndx(j_1845499981, 0, (b_1845499977[chckIndx(i_1845499980, 0, (b_1845499977).length - 1)]).length - 1)].onPromote, [HEX3Aanonymous_1476395450]))) && !(b_1845499977[chckIndx(i_1845499980, 0, (b_1845499977).length - 1)][chckIndx(j_1845499981, 0, (b_1845499977[chckIndx(i_1845499980, 0, (b_1845499977).length - 1)]).length - 1)].promoted))) { + var Temporary8 = nimCopy(null, b_1845499977[chckIndx(i_1845499980, 0, (b_1845499977).length - 1)][chckIndx(j_1845499981, 0, (b_1845499977[chckIndx(i_1845499980, 0, (b_1845499977).length - 1)]).length - 1)].tile, NTI1476395011); + result_1845499979.push(Temporary8);; } - F.line = 131; - F.filename = "iterators_1.nim"; - i_1493179085 = addInt(i_1493179085, 1); + i_1845500645 = addInt(i_1845500645, 1); } }; }; - F.line = 131; - i_1493179081 = addInt(i_1493179081, 1); + i_1845500641 = addInt(i_1845500641, 1); } }; }; }; - framePtr = F.prev; - return result_1493178420; + return result_1845499979; } -function HEX3Aanonymous_1493178449(side_1493178450, __1493178451, __1493178452, s_1493178453) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 2163; - F.filename = "powers.nim"; - s_1493178453.Field1[chckIndx(side_1493178450, 0, (s_1493178453.Field1).length - 1)].glass[chckIndx(4, 0, (s_1493178453.Field1[chckIndx(side_1493178450, 0, (s_1493178453.Field1).length - 1)].glass).length - 1)] = nimCopy(s_1493178453.Field1[chckIndx(side_1493178450, 0, (s_1493178453.Field1).length - 1)].glass[chckIndx(4, 0, (s_1493178453.Field1[chckIndx(side_1493178450, 0, (s_1493178453.Field1).length - 1)].glass).length - 1)], some_1493178051({Field0: 1, Field1: HEX3Aanonymous_1493178436, Field2: HEX3Aanonymous_1493178415}), NTI1224736839); - framePtr = F.prev; +function HEX3Aanonymous_1845500008(side_1845500009, __1845500010, __1845500011, s_1845500012) { + s_1845500012.Field1[chckIndx(side_1845500009, 0, (s_1845500012.Field1).length - 1)].glass[chckIndx(4, 0, (s_1845500012.Field1[chckIndx(side_1845500009, 0, (s_1845500012.Field1).length - 1)].glass).length - 1)] = nimCopy(s_1845500012.Field1[chckIndx(side_1845500009, 0, (s_1845500012.Field1).length - 1)].glass[chckIndx(4, 0, (s_1845500012.Field1[chckIndx(side_1845500009, 0, (s_1845500012.Field1).length - 1)].glass).length - 1)], some_1845499610({Field0: 1, Field1: HEX3Aanonymous_1845499995, Field2: HEX3Aanonymous_1845499974}), NTI1476395079); } -function HEX3Aanonymous_1493173070(side_1493173071, viewerSide_1493173072, b_1493173073, s_1493173074) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 497; - F.filename = "powers.nim"; - HEX3Aanonymous_1493172651(side_1493173071, viewerSide_1493173072, b_1493173073, s_1493173074); - F.line = 498; - HEX3Aanonymous_1493172735(side_1493173071, viewerSide_1493173072, b_1493173073, s_1493173074); - F.line = 499; - HEX3Aanonymous_1493172889(side_1493173071, viewerSide_1493173072, b_1493173073, s_1493173074); - F.line = 500; - HEX3Aanonymous_1493172937(side_1493173071, viewerSide_1493173072, b_1493173073, s_1493173074); - framePtr = F.prev; +function HEX3Aanonymous_1845494606(side_1845494607, viewerSide_1845494608, b_1845494609, s_1845494610) { + HEX3Aanonymous_1845494187(side_1845494607, viewerSide_1845494608, b_1845494609, s_1845494610); + HEX3Aanonymous_1845494271(side_1845494607, viewerSide_1845494608, b_1845494609, s_1845494610); + HEX3Aanonymous_1845494425(side_1845494607, viewerSide_1845494608, b_1845494609, s_1845494610); + HEX3Aanonymous_1845494473(side_1845494607, viewerSide_1845494608, b_1845494609, s_1845494610); } -function HEX3Aanonymous_1493173444(side_1493173445, viewSide_1493173446, b_1493173447, state_1493173448) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 779; - F.filename = "powers.nim"; - HEX3Aanonymous_1493172845(side_1493173445, viewSide_1493173446, b_1493173447, state_1493173448); - F.line = 780; - HEX3Aanonymous_1493172856(side_1493173445, viewSide_1493173446, b_1493173447, state_1493173448); - F.line = 781; - HEX3Aanonymous_1493172823(side_1493173445, viewSide_1493173446, b_1493173447, state_1493173448); - F.line = 782; - HEX3Aanonymous_1493172834(side_1493173445, viewSide_1493173446, b_1493173447, state_1493173448); - framePtr = F.prev; +function HEX3Aanonymous_1845494980(side_1845494981, viewSide_1845494982, b_1845494983, state_1845494984) { + HEX3Aanonymous_1845494381(side_1845494981, viewSide_1845494982, b_1845494983, state_1845494984); + HEX3Aanonymous_1845494392(side_1845494981, viewSide_1845494982, b_1845494983, state_1845494984); + HEX3Aanonymous_1845494359(side_1845494981, viewSide_1845494982, b_1845494983, state_1845494984); + HEX3Aanonymous_1845494370(side_1845494981, viewSide_1845494982, b_1845494983, state_1845494984); } -function HEX3Aanonymous_1493173471(side_1493173472, viewSide_1493173473, b_1493173474, s_1493173475) { +function HEX3Aanonymous_1845495007(side_1845495008, viewSide_1845495009, b_1845495010, s_1845495011) { var Temporary1; - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 801; - F.filename = "powers.nim"; - if ((side_1493173472 == 0)) { - Temporary1 = HEX3Aanonymous_1509949524; + if ((side_1845495008 == 0)) { + Temporary1 = HEX3Aanonymous_1862271060; } else { - Temporary1 = HEX3Aanonymous_1509949519; + Temporary1 = HEX3Aanonymous_1862271055; } - var addedMove_1493173480 = Temporary1; - F.line = 802; - buff_1493172242(3, side_1493173472, b_1493173474, s_1493173475, [addedMove_1493173480], [], [], false, [], null, null, null, false); - framePtr = F.prev; + var addedMove_1845495016 = Temporary1; + buff_1845493778(3, side_1845495008, b_1845495010, s_1845495011, [addedMove_1845495016], [], [], false, [], null, null, null, false); } -function HEX3Aanonymous_1509949728(board_1509949729, p_1509949730) { - var result_1509949731 = [[]]; +function HEX3Aanonymous_1862271264(board_1862271265, p_1862271266) { + var result_1862271267 = [[]]; - var F = {procname: "extramoves.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/extramoves.nim", line: 0}; - framePtr = F; - F.line = 186; - F.filename = "extramoves.nim"; - var _ = addIfFree_1291845640(result_1509949731, 0, board_1509949729, p_1509949730.tile, shooterFactory_1308622968(0, 1)); - F.line = 187; - var _ = addIfFree_1291845640(result_1509949731, 0, board_1509949729, p_1509949730.tile, shooterFactory_1308622968(0, 2)); - framePtr = F.prev; + var _ = addIfFree_1543503880(result_1862271267, 0, board_1862271265, p_1862271266.tile, shooterFactory_1560281208(0, 1)); + var _ = addIfFree_1543503880(result_1862271267, 0, board_1862271265, p_1862271266.tile, shooterFactory_1560281208(0, 2)); - return result_1509949731[0]; + return result_1862271267[0]; } -function HEX3Aanonymous_1509949738(board_1509949739, p_1509949740) { - var result_1509949741 = [[]]; +function HEX3Aanonymous_1862271274(board_1862271275, p_1862271276) { + var result_1862271277 = [[]]; - var F = {procname: "extramoves.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/extramoves.nim", line: 0}; - framePtr = F; - F.line = 194; - F.filename = "extramoves.nim"; - var _ = addIfFree_1291845640(result_1509949741, 0, board_1509949739, p_1509949740.tile, shooterFactory_1308622968(0, (-1))); - F.line = 195; - var _ = addIfFree_1291845640(result_1509949741, 0, board_1509949739, p_1509949740.tile, shooterFactory_1308622968(0, (-2))); - framePtr = F.prev; + var _ = addIfFree_1543503880(result_1862271277, 0, board_1862271275, p_1862271276.tile, shooterFactory_1560281208(0, (-1))); + var _ = addIfFree_1543503880(result_1862271277, 0, board_1862271275, p_1862271276.tile, shooterFactory_1560281208(0, (-2))); - return result_1509949741[0]; + return result_1862271277[0]; } -function HEX3Aanonymous_1493173533(side_1493173534, __1493173535, b_1493173536, s_1493173537) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 853; - F.filename = "powers.nim"; - buff_1493172242(2, side_1493173534, b_1493173536, s_1493173537, [HEX3Aanonymous_1291846082, HEX3Aanonymous_1509949728, HEX3Aanonymous_1509949738], [HEX3Aanonymous_1291846087, HEX3Aanonymous_1509949733, HEX3Aanonymous_1509949743], [], false, [], null, null, null, false); - framePtr = F.prev; +function HEX3Aanonymous_1845495069(side_1845495070, __1845495071, b_1845495072, s_1845495073) { + buff_1845493778(2, side_1845495070, b_1845495072, s_1845495073, [HEX3Aanonymous_1543504322, HEX3Aanonymous_1862271264, HEX3Aanonymous_1862271274], [HEX3Aanonymous_1543504327, HEX3Aanonymous_1862271269, HEX3Aanonymous_1862271279], [], false, [], null, null, null, false); } -function HEX3Aanonymous_1493173648(piece_1493173649, board_1493173650, state_1493173651) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - if ((piece_1493173649.piecesTaken == 3)) { +function HEX3Aanonymous_1845495184(piece_1845495185, board_1845495186, state_1845495187) { + if ((piece_1845495185.piecesTaken == 3)) { Label1: { - F.line = 955; - F.filename = "powers.nim"; - var i_1493173652 = 0; - F.line = 955; - var j_1493173653 = 0; + var i_1845495188 = 0; + var j_1845495189 = 0; Label2: { - F.line = 124; - F.filename = "piece.nim"; - var i_1493179089 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_1493179090 = 0; + var i_1845500649 = 0; + var i_1845500650 = 0; Label3: { - F.line = 129; Label4: while (true) { - if (!(i_1493179090 < 8)) break Label4; - F.line = 124; - F.filename = "piece.nim"; - i_1493179089 = i_1493179090; + if (!(i_1845500650 < 8)) break Label4; + i_1845500649 = i_1845500650; Label5: { - F.line = 125; - var j_1493179093 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_1493179094 = 0; + var j_1845500653 = 0; + var i_1845500654 = 0; Label6: { - F.line = 129; Label7: while (true) { - if (!(i_1493179094 < 8)) break Label7; - F.line = 125; - F.filename = "piece.nim"; - j_1493179093 = i_1493179094; - F.line = 955; - F.filename = "powers.nim"; - i_1493173652 = i_1493179089; - F.line = 955; - j_1493173653 = j_1493179093; - if (((board_1493173650[chckIndx(i_1493173652, 0, (board_1493173650).length - 1)][chckIndx(j_1493173653, 0, (board_1493173650[chckIndx(i_1493173652, 0, (board_1493173650).length - 1)]).length - 1)].item == 0) && !(sameColor_1224737804(board_1493173650[chckIndx(i_1493173652, 0, (board_1493173650).length - 1)][chckIndx(j_1493173653, 0, (board_1493173650[chckIndx(i_1493173652, 0, (board_1493173650).length - 1)]).length - 1)], piece_1493173649)))) { - F.line = 958; - board_1493173650[chckIndx(i_1493173652, 0, (board_1493173650).length - 1)][chckIndx(j_1493173653, 0, (board_1493173650[chckIndx(i_1493173652, 0, (board_1493173650).length - 1)]).length - 1)] = nimCopy(board_1493173650[chckIndx(i_1493173652, 0, (board_1493173650).length - 1)][chckIndx(j_1493173653, 0, (board_1493173650[chckIndx(i_1493173652, 0, (board_1493173650).length - 1)]).length - 1)], pieceCopy_1224737660(air_1275068591, board_1493173650[chckIndx(i_1493173652, 0, (board_1493173650).length - 1)][chckIndx(j_1493173653, 0, (board_1493173650[chckIndx(i_1493173652, 0, (board_1493173650).length - 1)]).length - 1)].index, 6, 1, 0, 0, board_1493173650[chckIndx(i_1493173652, 0, (board_1493173650).length - 1)][chckIndx(j_1493173653, 0, (board_1493173650[chckIndx(i_1493173652, 0, (board_1493173650).length - 1)]).length - 1)].tile, [], [], air_1275068591.onMove, air_1275068591.onTake, air_1275068591.whenTaken, [], [], false, [], true, false, false), NTI1224736794); + if (!(i_1845500654 < 8)) break Label7; + j_1845500653 = i_1845500654; + i_1845495188 = i_1845500649; + j_1845495189 = j_1845500653; + if (((board_1845495186[chckIndx(i_1845495188, 0, (board_1845495186).length - 1)][chckIndx(j_1845495189, 0, (board_1845495186[chckIndx(i_1845495188, 0, (board_1845495186).length - 1)]).length - 1)].item == 0) && !(sameColor_1476396044(board_1845495186[chckIndx(i_1845495188, 0, (board_1845495186).length - 1)][chckIndx(j_1845495189, 0, (board_1845495186[chckIndx(i_1845495188, 0, (board_1845495186).length - 1)]).length - 1)], piece_1845495185)))) { + board_1845495186[chckIndx(i_1845495188, 0, (board_1845495186).length - 1)][chckIndx(j_1845495189, 0, (board_1845495186[chckIndx(i_1845495188, 0, (board_1845495186).length - 1)]).length - 1)] = nimCopy(board_1845495186[chckIndx(i_1845495188, 0, (board_1845495186).length - 1)][chckIndx(j_1845495189, 0, (board_1845495186[chckIndx(i_1845495188, 0, (board_1845495186).length - 1)]).length - 1)], pieceCopy_1476395900(air_1526726831, board_1845495186[chckIndx(i_1845495188, 0, (board_1845495186).length - 1)][chckIndx(j_1845495189, 0, (board_1845495186[chckIndx(i_1845495188, 0, (board_1845495186).length - 1)]).length - 1)].index, 6, 1, 0, 0, board_1845495186[chckIndx(i_1845495188, 0, (board_1845495186).length - 1)][chckIndx(j_1845495189, 0, (board_1845495186[chckIndx(i_1845495188, 0, (board_1845495186).length - 1)]).length - 1)].tile, [], [], air_1526726831.onMove, air_1526726831.onTake, air_1526726831.whenTaken, [], [], false, [], true, false, false), NTI1476395034); } - F.line = 131; - F.filename = "iterators_1.nim"; - i_1493179094 = addInt(i_1493179094, 1); + i_1845500654 = addInt(i_1845500654, 1); } }; }; - F.line = 131; - i_1493179090 = addInt(i_1493179090, 1); + i_1845500650 = addInt(i_1845500650, 1); } }; }; }; } - framePtr = F.prev; - - -} - -function HEX3Aanonymous_1493173659(side_1493173660, __1493173661, b_1493173662, s_1493173663) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 969; - F.filename = "powers.nim"; - buff_1493172242(0, side_1493173660, b_1493173662, s_1493173663, [], [], [HEX3Aanonymous_1493173648], false, [], null, null, null, false); - framePtr = F.prev; } -function HEX3Aanonymous_1493174454(piece_1493174455, taking_1493174456, board_1493174457, state_1493174458) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 1474; - F.filename = "powers.nim"; - randomize_1392509190(BigInt(addInt(addInt(mulInt(10, piece_1493174455.tile.Field1), mulInt(100, piece_1493174455.tile.Field0)), state_1493174458.Field0.randSeed))); - F.line = 1475; - var dice_1493174459 = rand_1392509064(20); - F.line = 1477; - piece_1493174455.timesMoved = addInt(piece_1493174455.timesMoved, 1); - if (((dice_1493174459 <= 6) && !((HEX5BHEX5D_1224737124(board_1493174457, taking_1493174456).item == 0)))) { - F.line = 1479; - HEX5BHEX5D_1224737124(board_1493174457, taking_1493174456).color = piece_1493174455.color; - F.line = 1480; - HEX5BHEX5D_1224737124(board_1493174457, taking_1493174456).index = newIndex_1224737255(state_1493174458); - F.line = 1481; - pieceSwap_1224737595(piece_1493174455, HEX5BHEX5D_1224737124(board_1493174457, taking_1493174456), board_1493174457); - } - else { - F.line = 1483; - var takeResult_1493174469 = board_1493174457[chckIndx(taking_1493174456.Field1, 0, (board_1493174457).length - 1)][chckIndx(taking_1493174456.Field0, 0, (board_1493174457[chckIndx(taking_1493174456.Field1, 0, (board_1493174457).length - 1)]).length - 1)].whenTaken(board_1493174457[chckIndx(taking_1493174456.Field1, 0, (board_1493174457).length - 1)][chckIndx(taking_1493174456.Field0, 0, (board_1493174457[chckIndx(taking_1493174456.Field1, 0, (board_1493174457).length - 1)]).length - 1)], piece_1493174455, board_1493174457, state_1493174458); - if (takeResult_1493174469.Field1) { - F.line = 1485; - HEX5BHEX5D_1224737124(board_1493174457, takeResult_1493174469.Field0).piecesTaken = addInt(HEX5BHEX5D_1224737124(board_1493174457, takeResult_1493174469.Field0).piecesTaken, 1); - } - - } - - framePtr = F.prev; +function HEX3Aanonymous_1845495195(side_1845495196, __1845495197, b_1845495198, s_1845495199) { + buff_1845493778(0, side_1845495196, b_1845495198, s_1845495199, [], [], [HEX3Aanonymous_1845495184], false, [], null, null, null, false); } -function HEX3Aanonymous_1493174477(side_1493174478, __1493174479, b_1493174480, s_1493174481) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 1496; - F.filename = "powers.nim"; - buff_1493172242(2, side_1493174478, b_1493174480, s_1493174481, [], [], [], false, [], null, HEX3Aanonymous_1493174454, null, false); - framePtr = F.prev; +function HEX3Aanonymous_1845495997(side_1845495998, __1845495999, b_1845496000, s_1845496001) { + buff_1845493778(2, side_1845495998, b_1845496000, s_1845496001, [], [], [], false, [], null, createConvertingTake_1845495961(0.3), null, false); } -function nsuFindChar(s_838862499, sub_838862500, start_838862501, last_838862502) { +function nsuFindChar(s_889194147, sub_889194148, start_889194149, last_889194150) { var Temporary1; - var result_838862503 = 0; + var result_889194151 = 0; - var F = {procname: "strutils.find", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/strutils.nim", line: 0}; - framePtr = F; BeforeRet: { - F.line = 1945; - F.filename = "strutils.nim"; - result_838862503 = (-1); - F.line = 1946; - if ((last_838862502 < 0)) { - Temporary1 = (s_838862499).length - 1; + result_889194151 = (-1); + if ((last_889194150 < 0)) { + Temporary1 = (s_889194147).length - 1; } else { - Temporary1 = last_838862502; + Temporary1 = last_889194150; } - var last_838862504 = Temporary1; + var last_889194152 = Temporary1; Label2: { - F.line = 1949; - var iHEX60gensym176_838862518 = 0; - F.line = 81; - F.filename = "iterators_1.nim"; - var colontmp__1493179110 = 0; - F.line = 1949; - F.filename = "strutils.nim"; - colontmp__1493179110 = start_838862501; - F.line = 96; - F.filename = "iterators_1.nim"; - var res_1493179111 = colontmp__1493179110; + var iHEX60gensym176_889194166 = 0; + var colontmp__1845500670 = 0; + colontmp__1845500670 = start_889194149; + var res_1845500671 = colontmp__1845500670; Label3: { - F.line = 97; Label4: while (true) { - if (!(res_1493179111 <= last_838862504)) break Label4; - F.line = 1963; - F.filename = "strutils.nim"; - iHEX60gensym176_838862518 = res_1493179111; - if ((s_838862499[chckIndx(iHEX60gensym176_838862518, 0, (s_838862499).length - 1)] == sub_838862500)) { - F.line = 1951; - result_838862503 = iHEX60gensym176_838862518; + if (!(res_1845500671 <= last_889194152)) break Label4; + iHEX60gensym176_889194166 = res_1845500671; + if ((s_889194147[chckIndx(iHEX60gensym176_889194166, 0, (s_889194147).length - 1)] == sub_889194148)) { + result_889194151 = iHEX60gensym176_889194166; break BeforeRet; } - F.line = 102; - F.filename = "iterators_1.nim"; - res_1493179111 = addInt(res_1493179111, 1); + res_1845500671 = addInt(res_1845500671, 1); } }; }; }; - framePtr = F.prev; - return result_838862503; + return result_889194151; } -function nsuFindStrA(a_838862477, s_838862478, sub_838862479, start_838862480, last_838862481) { +function nsuFindStrA(a_889194125, s_889194126, sub_889194127, start_889194128, last_889194129) { var Temporary1; - var result_838862482 = 0; + var result_889194130 = 0; - var F = {procname: "strutils.find", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/strutils.nim", line: 0}; - framePtr = F; BeforeRet: { - F.line = 1905; - F.filename = "strutils.nim"; - if ((last_838862481 < 0)) { - Temporary1 = (s_838862478).length - 1; + if ((last_889194129 < 0)) { + Temporary1 = (s_889194126).length - 1; } else { - Temporary1 = last_838862481; + Temporary1 = last_889194129; } - var last_838862483 = Temporary1; - F.line = 1906; - var subLast_838862484 = subInt((sub_838862479).length, 1); - if ((subLast_838862484 == (-1))) { - F.line = 1911; - result_838862482 = start_838862480; + var last_889194131 = Temporary1; + var subLast_889194132 = subInt((sub_889194127).length, 1); + if ((subLast_889194132 == (-1))) { + result_889194130 = start_889194128; break BeforeRet; } - F.line = 1915; - result_838862482 = (-1); - F.line = 1916; - var skip_838862485 = start_838862480; + result_889194130 = (-1); + var skip_889194133 = start_889194128; Label2: { - F.line = 1918; Label3: while (true) { - if (!(subLast_838862484 <= subInt(last_838862483, skip_838862485))) break Label3; - F.line = 1919; - var i_838862486 = subLast_838862484; + if (!(subLast_889194132 <= subInt(last_889194131, skip_889194133))) break Label3; + var i_889194134 = subLast_889194132; Label4: { - F.line = 1920; Label5: while (true) { - if (!(s_838862478[chckIndx(addInt(skip_838862485, i_838862486), 0, (s_838862478).length - 1)] == sub_838862479[chckIndx(i_838862486, 0, (sub_838862479).length - 1)])) break Label5; - if ((i_838862486 == 0)) { - F.line = 1922; - result_838862482 = skip_838862485; + if (!(s_889194126[chckIndx(addInt(skip_889194133, i_889194134), 0, (s_889194126).length - 1)] == sub_889194127[chckIndx(i_889194134, 0, (sub_889194127).length - 1)])) break Label5; + if ((i_889194134 == 0)) { + result_889194130 = skip_889194133; break BeforeRet; } - F.line = 1923; - i_838862486 = subInt(i_838862486, 1); + i_889194134 = subInt(i_889194134, 1); } }; - F.line = 1924; - skip_838862485 = addInt(skip_838862485, a_838862477[chckIndx(s_838862478[chckIndx(addInt(skip_838862485, subLast_838862484), 0, (s_838862478).length - 1)], 0, (a_838862477).length - 1)]); + skip_889194133 = addInt(skip_889194133, a_889194125[chckIndx(s_889194126[chckIndx(addInt(skip_889194133, subLast_889194132), 0, (s_889194126).length - 1)], 0, (a_889194125).length - 1)]); } }; }; - framePtr = F.prev; - return result_838862482; + return result_889194130; } -function fill_838862422(a_838862424, value_838862425) { - var F = {procname: "fill.fill", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/algorithm.nim", line: 0}; - framePtr = F; - F.line = 72; - F.filename = "algorithm.nim"; - var xHEX60gensym172_838862431 = 0; +function fill_889194070(a_889194072, value_889194073) { + var xHEX60gensym172_889194079 = 0; Label1: { - F.line = 98; Label2: while (true) { - if (!(xHEX60gensym172_838862431 <= (a_838862424).length - 1)) break Label2; - F.line = 98; - a_838862424[chckIndx(xHEX60gensym172_838862431, 0, (a_838862424).length - 1)] = value_838862425; - F.line = 75; - xHEX60gensym172_838862431 = addInt(xHEX60gensym172_838862431, 1); + if (!(xHEX60gensym172_889194079 <= (a_889194072).length - 1)) break Label2; + a_889194072[chckIndx(xHEX60gensym172_889194079, 0, (a_889194072).length - 1)] = value_889194073; + xHEX60gensym172_889194079 = addInt(xHEX60gensym172_889194079, 1); } }; - framePtr = F.prev; } -function nsuInitSkipTable(a_838862419, sub_838862420) { - var F = {procname: "strutils.initSkipTable", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/strutils.nim", line: 0}; - framePtr = F; - F.line = 1878; - F.filename = "strutils.nim"; - var m_838862421 = (sub_838862420).length; - F.line = 1879; - fill_838862422(a_838862419, m_838862421); +function nsuInitSkipTable(a_889194067, sub_889194068) { + var m_889194069 = (sub_889194068).length; + fill_889194070(a_889194067, m_889194069); Label1: { - F.line = 1881; - var i_838862441 = 0; - F.line = 126; - F.filename = "iterators_1.nim"; - var colontmp__1493179116 = 0; - F.line = 1881; - F.filename = "strutils.nim"; - colontmp__1493179116 = subInt(m_838862421, 1); - F.line = 128; - F.filename = "iterators_1.nim"; - var i_1493179117 = 0; + var i_889194089 = 0; + var colontmp__1845500676 = 0; + colontmp__1845500676 = subInt(m_889194069, 1); + var i_1845500677 = 0; Label2: { - F.line = 129; Label3: while (true) { - if (!(i_1493179117 < colontmp__1493179116)) break Label3; - F.line = 1881; - F.filename = "strutils.nim"; - i_838862441 = i_1493179117; - F.line = 1882; - a_838862419[chckIndx(sub_838862420[chckIndx(i_838862441, 0, (sub_838862420).length - 1)], 0, (a_838862419).length - 1)] = subInt(subInt(m_838862421, 1), i_838862441); - F.line = 131; - F.filename = "iterators_1.nim"; - i_1493179117 = addInt(i_1493179117, 1); + if (!(i_1845500677 < colontmp__1845500676)) break Label3; + i_889194089 = i_1845500677; + a_889194067[chckIndx(sub_889194068[chckIndx(i_889194089, 0, (sub_889194068).length - 1)], 0, (a_889194067).length - 1)] = subInt(subInt(m_889194069, 1), i_889194089); + i_1845500677 = addInt(i_1845500677, 1); } }; }; - framePtr = F.prev; } -function nsuInitNewSkipTable(sub_838862474) { - var result_838862475 = [new Int32Array(256)]; +function nsuInitNewSkipTable(sub_889194122) { + var result_889194123 = [new Int32Array(256)]; - var F = {procname: "strutils.initSkipTable", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/strutils.nim", line: 0}; - framePtr = F; - F.line = 1891; - F.filename = "strutils.nim"; - nsuInitSkipTable(result_838862475[0], sub_838862474); - framePtr = F.prev; + nsuInitSkipTable(result_889194123[0], sub_889194122); - return result_838862475[0]; + return result_889194123[0]; } -function nsuFindStr(s_838862536, sub_838862537, start_838862538, last_838862539) { - var result_838862540 = 0; +function nsuFindStr(s_889194184, sub_889194185, start_889194186, last_889194187) { + var result_889194188 = 0; - var F = {procname: "strutils.find", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/strutils.nim", line: 0}; - framePtr = F; BeforeRet: { - if ((subInt((s_838862536).length, start_838862538) < (sub_838862537).length)) { - F.line = 2003; - F.filename = "strutils.nim"; - result_838862540 = (-1); + if ((subInt((s_889194184).length, start_889194186) < (sub_889194185).length)) { + result_889194188 = (-1); break BeforeRet; } - if (((sub_838862537).length == 1)) { - F.line = 2004; - result_838862540 = nsuFindChar(s_838862536, sub_838862537[chckIndx(0, 0, (sub_838862537).length - 1)], start_838862538, last_838862539); + if (((sub_889194185).length == 1)) { + result_889194188 = nsuFindChar(s_889194184, sub_889194185[chckIndx(0, 0, (sub_889194185).length - 1)], start_889194186, last_889194187); break BeforeRet; } - F.line = 2007; - result_838862540 = nsuFindStrA(nsuInitNewSkipTable(sub_838862537), s_838862536, sub_838862537, start_838862538, last_838862539); + result_889194188 = nsuFindStrA(nsuInitNewSkipTable(sub_889194185), s_889194184, sub_889194185, start_889194186, last_889194187); }; - framePtr = F.prev; - return result_838862540; + return result_889194188; } -function contains_838862678(s_838862679, sub_838862680) { - var result_838862681 = false; +function contains_889194326(s_889194327, sub_889194328) { + var result_889194329 = false; - var F = {procname: "strutils.contains", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/strutils.nim", line: 0}; - framePtr = F; BeforeRet: { - F.line = 2161; - F.filename = "strutils.nim"; - result_838862681 = (0 <= nsuFindStr(s_838862679, sub_838862680, 0, (-1))); + result_889194329 = (0 <= nsuFindStr(s_889194327, sub_889194328, 0, (-1))); break BeforeRet; }; - framePtr = F.prev; - return result_838862681; + return result_889194329; } -function HEX3Aanonymous_1493178081(piece_1493178082, b_1493178083, state_1493178084) { +function HEX3Aanonymous_1845499640(piece_1845499641, b_1845499642, state_1845499643) { var Temporary11; - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; Label1: { - F.line = 2026; - F.filename = "powers.nim"; - var i_1493178085 = 0; - F.line = 2026; - var j_1493178086 = 0; + var i_1845499644 = 0; + var j_1845499645 = 0; Label2: { - F.line = 124; - F.filename = "piece.nim"; - var i_1493179128 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_1493179129 = 0; + var i_1845500688 = 0; + var i_1845500689 = 0; Label3: { - F.line = 129; Label4: while (true) { - if (!(i_1493179129 < 8)) break Label4; - F.line = 124; - F.filename = "piece.nim"; - i_1493179128 = i_1493179129; + if (!(i_1845500689 < 8)) break Label4; + i_1845500688 = i_1845500689; Label5: { - F.line = 125; - var j_1493179132 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_1493179133 = 0; + var j_1845500692 = 0; + var i_1845500693 = 0; Label6: { - F.line = 129; Label7: while (true) { - if (!(i_1493179133 < 8)) break Label7; - F.line = 125; - F.filename = "piece.nim"; - j_1493179132 = i_1493179133; - F.line = 2026; - F.filename = "powers.nim"; - i_1493178085 = i_1493179128; - F.line = 2026; - j_1493178086 = j_1493179132; + if (!(i_1845500693 < 8)) break Label7; + j_1845500692 = i_1845500693; + i_1845499644 = i_1845500688; + j_1845499645 = j_1845500692; Label8: { - F.line = 2027; - var c_1493178090 = {Field0: {Field0: 0, Field1: 0}, Field1: 0, Field2: 0}; - F.line = 247; - F.filename = "iterators.nim"; - var colontmp__1493179122 = []; - F.line = 2027; - F.filename = "powers.nim"; - colontmp__1493179122 = b_1493178083[chckIndx(i_1493178085, 0, (b_1493178083).length - 1)][chckIndx(j_1493178086, 0, (b_1493178083[chckIndx(i_1493178085, 0, (b_1493178083).length - 1)]).length - 1)].casts; - F.line = 249; - F.filename = "iterators.nim"; - var i_1493179124 = 0; - F.line = 250; - var L_1493179125 = (colontmp__1493179122).length; + var c_1845499649 = {Field0: {Field0: 0, Field1: 0}, Field1: 0, Field2: 0}; + var colontmp__1845500682 = []; + colontmp__1845500682 = b_1845499642[chckIndx(i_1845499644, 0, (b_1845499642).length - 1)][chckIndx(j_1845499645, 0, (b_1845499642[chckIndx(i_1845499644, 0, (b_1845499642).length - 1)]).length - 1)].casts; + var i_1845500684 = 0; + var L_1845500685 = (colontmp__1845500682).length; Label9: { - F.line = 251; Label10: while (true) { - if (!(i_1493179124 < L_1493179125)) break Label10; - F.line = 2027; - F.filename = "powers.nim"; - c_1493178090 = colontmp__1493179122[chckIndx(i_1493179124, 0, (colontmp__1493179122).length - 1)]; - if ((c_1493178090.Field2 == 0)) { - F.line = 2029; - piece_1493178082.onTake(piece_1493178082, (Temporary11 = getTakesOn_1224737271(piece_1493178082, b_1493178083), Temporary11)[chckIndx(0, 0, (Temporary11).length - 1)], b_1493178083, state_1493178084); + if (!(i_1845500684 < L_1845500685)) break Label10; + c_1845499649 = colontmp__1845500682[chckIndx(i_1845500684, 0, (colontmp__1845500682).length - 1)]; + if ((c_1845499649.Field2 == 0)) { + piece_1845499641.onTake(piece_1845499641, (Temporary11 = getTakesOn_1476395511(piece_1845499641, b_1845499642), Temporary11)[chckIndx(0, 0, (Temporary11).length - 1)], b_1845499642, state_1845499643); } - F.line = 13; - F.filename = "iterators.nim"; - i_1493179124 += 1; - if (!(((colontmp__1493179122).length == L_1493179125))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + i_1845500684 += 1; + if (!(((colontmp__1845500682).length == L_1845500685))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - F.line = 131; - F.filename = "iterators_1.nim"; - i_1493179133 = addInt(i_1493179133, 1); + i_1845500693 = addInt(i_1845500693, 1); } }; }; - F.line = 131; - i_1493179129 = addInt(i_1493179129, 1); + i_1845500689 = addInt(i_1845500689, 1); } }; }; }; - framePtr = F.prev; } -function HEX3Aanonymous_1493178099(side_1493178100, __1493178101, b_1493178102, s_1493178103) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; +function HEX3Aanonymous_1845499658(side_1845499659, __1845499660, b_1845499661, s_1845499662) { Label1: { - F.line = 2040; - F.filename = "powers.nim"; - var i_1493178104 = 0; - F.line = 2040; - var j_1493178105 = 0; + var i_1845499663 = 0; + var j_1845499664 = 0; Label2: { - F.line = 124; - F.filename = "piece.nim"; - var i_1493179098 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_1493179099 = 0; + var i_1845500658 = 0; + var i_1845500659 = 0; Label3: { - F.line = 129; Label4: while (true) { - if (!(i_1493179099 < 8)) break Label4; - F.line = 124; - F.filename = "piece.nim"; - i_1493179098 = i_1493179099; + if (!(i_1845500659 < 8)) break Label4; + i_1845500658 = i_1845500659; Label5: { - F.line = 125; - var j_1493179102 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_1493179103 = 0; + var j_1845500662 = 0; + var i_1845500663 = 0; Label6: { - F.line = 129; Label7: while (true) { - if (!(i_1493179103 < 8)) break Label7; - F.line = 125; - F.filename = "piece.nim"; - j_1493179102 = i_1493179103; - F.line = 2040; - F.filename = "powers.nim"; - i_1493178104 = i_1493179098; - F.line = 2040; - j_1493178105 = j_1493179102; - if ((isColor_1224737813(b_1493178102[chckIndx(i_1493178104, 0, (b_1493178102).length - 1)][chckIndx(j_1493178105, 0, (b_1493178102[chckIndx(i_1493178104, 0, (b_1493178102).length - 1)]).length - 1)], side_1493178100) && contains_838862678(b_1493178102[chckIndx(i_1493178104, 0, (b_1493178102).length - 1)][chckIndx(j_1493178105, 0, (b_1493178102[chckIndx(i_1493178104, 0, (b_1493178102).length - 1)]).length - 1)].filePath, [108,97,110,99,101]))) { - F.line = 2042; - b_1493178102[chckIndx(i_1493178104, 0, (b_1493178102).length - 1)][chckIndx(j_1493178105, 0, (b_1493178102[chckIndx(i_1493178104, 0, (b_1493178102).length - 1)]).length - 1)].onEndTurn.push(HEX3Aanonymous_1493178081);; + if (!(i_1845500663 < 8)) break Label7; + j_1845500662 = i_1845500663; + i_1845499663 = i_1845500658; + j_1845499664 = j_1845500662; + if ((isColor_1476396053(b_1845499661[chckIndx(i_1845499663, 0, (b_1845499661).length - 1)][chckIndx(j_1845499664, 0, (b_1845499661[chckIndx(i_1845499663, 0, (b_1845499661).length - 1)]).length - 1)], side_1845499659) && contains_889194326(b_1845499661[chckIndx(i_1845499663, 0, (b_1845499661).length - 1)][chckIndx(j_1845499664, 0, (b_1845499661[chckIndx(i_1845499663, 0, (b_1845499661).length - 1)]).length - 1)].filePath, [108,97,110,99,101]))) { + b_1845499661[chckIndx(i_1845499663, 0, (b_1845499661).length - 1)][chckIndx(j_1845499664, 0, (b_1845499661[chckIndx(i_1845499663, 0, (b_1845499661).length - 1)]).length - 1)].onEndTurn.push(HEX3Aanonymous_1845499640);; } - F.line = 131; - F.filename = "iterators_1.nim"; - i_1493179103 = addInt(i_1493179103, 1); + i_1845500663 = addInt(i_1845500663, 1); } }; }; - F.line = 131; - i_1493179099 = addInt(i_1493179099, 1); + i_1845500659 = addInt(i_1845500659, 1); } }; }; }; - framePtr = F.prev; } -function HEX3Aanonymous_1493173213(side_1493173214, viewSide_1493173215, b_1493173216, s_1493173217) { +function HEX3Aanonymous_1845494749(side_1845494750, viewSide_1845494751, b_1845494752, s_1845494753) { var Temporary1; - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 625; - F.filename = "powers.nim"; - HEX3Aanonymous_1493173186(side_1493173214, viewSide_1493173215, b_1493173216, s_1493173217); - F.line = 626; - HEX3Aanonymous_1493173171(side_1493173214, viewSide_1493173215, b_1493173216, s_1493173217); - F.line = 627; - HEX3Aanonymous_1493172879(side_1493173214, viewSide_1493173215, b_1493173216, s_1493173217); - F.line = 628; - if ((side_1493173214 == 0)) { - Temporary1 = HEX3Aanonymous_1509949537; + HEX3Aanonymous_1845494722(side_1845494750, viewSide_1845494751, b_1845494752, s_1845494753); + HEX3Aanonymous_1845494707(side_1845494750, viewSide_1845494751, b_1845494752, s_1845494753); + HEX3Aanonymous_1845494415(side_1845494750, viewSide_1845494751, b_1845494752, s_1845494753); + if ((side_1845494750 == 0)) { + Temporary1 = HEX3Aanonymous_1862271073; } else { - Temporary1 = HEX3Aanonymous_1509949531; + Temporary1 = HEX3Aanonymous_1862271067; } - var addedMove_1493173222 = Temporary1; - F.line = 629; - buff_1493172242(3, side_1493173214, b_1493173216, s_1493173217, [], [addedMove_1493173222], [], false, [], null, null, null, false); - framePtr = F.prev; + var addedMove_1845494758 = Temporary1; + buff_1845493778(3, side_1845494750, b_1845494752, s_1845494753, [], [addedMove_1845494758], [], false, [], null, null, null, false); } -function HEX3Aanonymous_1493173263(side_1493173264, viewSide_1493173265, b_1493173266, __1493173267) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; +function HEX3Aanonymous_1845494799(side_1845494800, viewSide_1845494801, b_1845494802, __1845494803) { Label1: { - F.line = 669; - F.filename = "powers.nim"; - var i_1493173268 = 0; - F.line = 669; - var j_1493173269 = 0; + var i_1845494804 = 0; + var j_1845494805 = 0; Label2: { - F.line = 124; - F.filename = "piece.nim"; - var i_1493179137 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_1493179138 = 0; + var i_1845500697 = 0; + var i_1845500698 = 0; Label3: { - F.line = 129; Label4: while (true) { - if (!(i_1493179138 < 8)) break Label4; - F.line = 124; - F.filename = "piece.nim"; - i_1493179137 = i_1493179138; + if (!(i_1845500698 < 8)) break Label4; + i_1845500697 = i_1845500698; Label5: { - F.line = 125; - var j_1493179141 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_1493179142 = 0; + var j_1845500701 = 0; + var i_1845500702 = 0; Label6: { - F.line = 129; Label7: while (true) { - if (!(i_1493179142 < 8)) break Label7; - F.line = 125; - F.filename = "piece.nim"; - j_1493179141 = i_1493179142; - F.line = 669; - F.filename = "powers.nim"; - i_1493173268 = i_1493179137; - F.line = 669; - j_1493173269 = j_1493179141; - if ((!((b_1493173266[chckIndx(i_1493173268, 0, (b_1493173266).length - 1)][chckIndx(j_1493173269, 0, (b_1493173266[chckIndx(i_1493173268, 0, (b_1493173266).length - 1)]).length - 1)].item == 1)) && isColor_1224737813(b_1493173266[chckIndx(i_1493173268, 0, (b_1493173266).length - 1)][chckIndx(j_1493173269, 0, (b_1493173266[chckIndx(i_1493173268, 0, (b_1493173266).length - 1)]).length - 1)], side_1493173264))) { - F.line = 671; - b_1493173266[chckIndx(i_1493173268, 0, (b_1493173266).length - 1)][chckIndx(j_1493173269, 0, (b_1493173266[chckIndx(i_1493173268, 0, (b_1493173266).length - 1)]).length - 1)] = nimCopy(b_1493173266[chckIndx(i_1493173268, 0, (b_1493173266).length - 1)][chckIndx(j_1493173269, 0, (b_1493173266[chckIndx(i_1493173268, 0, (b_1493173266).length - 1)]).length - 1)], pieceCopy_1224737660(air_1275068591, b_1493173266[chckIndx(i_1493173268, 0, (b_1493173266).length - 1)][chckIndx(j_1493173269, 0, (b_1493173266[chckIndx(i_1493173268, 0, (b_1493173266).length - 1)]).length - 1)].index, 6, 1, 0, 0, b_1493173266[chckIndx(i_1493173268, 0, (b_1493173266).length - 1)][chckIndx(j_1493173269, 0, (b_1493173266[chckIndx(i_1493173268, 0, (b_1493173266).length - 1)]).length - 1)].tile, [], [], air_1275068591.onMove, air_1275068591.onTake, air_1275068591.whenTaken, [], [], false, [], true, false, false), NTI1224736794); + if (!(i_1845500702 < 8)) break Label7; + j_1845500701 = i_1845500702; + i_1845494804 = i_1845500697; + j_1845494805 = j_1845500701; + if ((!((b_1845494802[chckIndx(i_1845494804, 0, (b_1845494802).length - 1)][chckIndx(j_1845494805, 0, (b_1845494802[chckIndx(i_1845494804, 0, (b_1845494802).length - 1)]).length - 1)].item == 1)) && isColor_1476396053(b_1845494802[chckIndx(i_1845494804, 0, (b_1845494802).length - 1)][chckIndx(j_1845494805, 0, (b_1845494802[chckIndx(i_1845494804, 0, (b_1845494802).length - 1)]).length - 1)], side_1845494800))) { + b_1845494802[chckIndx(i_1845494804, 0, (b_1845494802).length - 1)][chckIndx(j_1845494805, 0, (b_1845494802[chckIndx(i_1845494804, 0, (b_1845494802).length - 1)]).length - 1)] = nimCopy(b_1845494802[chckIndx(i_1845494804, 0, (b_1845494802).length - 1)][chckIndx(j_1845494805, 0, (b_1845494802[chckIndx(i_1845494804, 0, (b_1845494802).length - 1)]).length - 1)], pieceCopy_1476395900(air_1526726831, b_1845494802[chckIndx(i_1845494804, 0, (b_1845494802).length - 1)][chckIndx(j_1845494805, 0, (b_1845494802[chckIndx(i_1845494804, 0, (b_1845494802).length - 1)]).length - 1)].index, 6, 1, 0, 0, b_1845494802[chckIndx(i_1845494804, 0, (b_1845494802).length - 1)][chckIndx(j_1845494805, 0, (b_1845494802[chckIndx(i_1845494804, 0, (b_1845494802).length - 1)]).length - 1)].tile, [], [], air_1526726831.onMove, air_1526726831.onTake, air_1526726831.whenTaken, [], [], false, [], true, false, false), NTI1476395034); } else { - if (((b_1493173266[chckIndx(i_1493173268, 0, (b_1493173266).length - 1)][chckIndx(j_1493173269, 0, (b_1493173266[chckIndx(i_1493173268, 0, (b_1493173266).length - 1)]).length - 1)].item == 1) && isColor_1224737813(b_1493173266[chckIndx(i_1493173268, 0, (b_1493173266).length - 1)][chckIndx(j_1493173269, 0, (b_1493173266[chckIndx(i_1493173268, 0, (b_1493173266).length - 1)]).length - 1)], side_1493173264))) { - F.line = 673; - add_1493172278(b_1493173266[chckIndx(i_1493173268, 0, (b_1493173266).length - 1)][chckIndx(j_1493173269, 0, (b_1493173266[chckIndx(i_1493173268, 0, (b_1493173266).length - 1)]).length - 1)], "moves", [HEX3Aanonymous_1291846082, HEX3Aanonymous_1509949640]); - F.line = 674; - add_1493172278(b_1493173266[chckIndx(i_1493173268, 0, (b_1493173266).length - 1)][chckIndx(j_1493173269, 0, (b_1493173266[chckIndx(i_1493173268, 0, (b_1493173266).length - 1)]).length - 1)], "takes", [HEX3Aanonymous_1291846087, HEX3Aanonymous_1509949635]); - F.line = 675; - b_1493173266[chckIndx(i_1493173268, 0, (b_1493173266).length - 1)][chckIndx(j_1493173269, 0, (b_1493173266[chckIndx(i_1493173268, 0, (b_1493173266).length - 1)]).length - 1)].item = 0; + if (((b_1845494802[chckIndx(i_1845494804, 0, (b_1845494802).length - 1)][chckIndx(j_1845494805, 0, (b_1845494802[chckIndx(i_1845494804, 0, (b_1845494802).length - 1)]).length - 1)].item == 1) && isColor_1476396053(b_1845494802[chckIndx(i_1845494804, 0, (b_1845494802).length - 1)][chckIndx(j_1845494805, 0, (b_1845494802[chckIndx(i_1845494804, 0, (b_1845494802).length - 1)]).length - 1)], side_1845494800))) { + add_1845493814(b_1845494802[chckIndx(i_1845494804, 0, (b_1845494802).length - 1)][chckIndx(j_1845494805, 0, (b_1845494802[chckIndx(i_1845494804, 0, (b_1845494802).length - 1)]).length - 1)], "moves", [HEX3Aanonymous_1543504322, HEX3Aanonymous_1862271176]); + add_1845493814(b_1845494802[chckIndx(i_1845494804, 0, (b_1845494802).length - 1)][chckIndx(j_1845494805, 0, (b_1845494802[chckIndx(i_1845494804, 0, (b_1845494802).length - 1)]).length - 1)], "takes", [HEX3Aanonymous_1543504327, HEX3Aanonymous_1862271171]); + b_1845494802[chckIndx(i_1845494804, 0, (b_1845494802).length - 1)][chckIndx(j_1845494805, 0, (b_1845494802[chckIndx(i_1845494804, 0, (b_1845494802).length - 1)]).length - 1)].item = 0; } } - F.line = 131; - F.filename = "iterators_1.nim"; - i_1493179142 = addInt(i_1493179142, 1); + i_1845500702 = addInt(i_1845500702, 1); } }; }; - F.line = 131; - i_1493179138 = addInt(i_1493179138, 1); + i_1845500698 = addInt(i_1845500698, 1); } }; }; }; - framePtr = F.prev; } -function HEX3Aanonymous_1493173421(side_1493173422, viewSide_1493173423, b_1493173424, s_1493173425) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - if ((side_1493173422 == 0)) { - F.line = 756; - F.filename = "powers.nim"; - pieceMove_1224737556(b_1493173424[chckIndx(1, 0, (b_1493173424).length - 1)][chckIndx(3, 0, (b_1493173424[chckIndx(1, 0, (b_1493173424).length - 1)]).length - 1)], 3, 3, b_1493173424, s_1493173425); - F.line = 757; - pieceMove_1224737556(b_1493173424[chckIndx(1, 0, (b_1493173424).length - 1)][chckIndx(4, 0, (b_1493173424[chckIndx(1, 0, (b_1493173424).length - 1)]).length - 1)], 3, 4, b_1493173424, s_1493173425); +function HEX3Aanonymous_1845494957(side_1845494958, viewSide_1845494959, b_1845494960, s_1845494961) { + if ((side_1845494958 == 0)) { + pieceMove_1476395796(b_1845494960[chckIndx(1, 0, (b_1845494960).length - 1)][chckIndx(3, 0, (b_1845494960[chckIndx(1, 0, (b_1845494960).length - 1)]).length - 1)], 3, 3, b_1845494960, s_1845494961); + pieceMove_1476395796(b_1845494960[chckIndx(1, 0, (b_1845494960).length - 1)][chckIndx(4, 0, (b_1845494960[chckIndx(1, 0, (b_1845494960).length - 1)]).length - 1)], 3, 4, b_1845494960, s_1845494961); } else { - F.line = 759; - pieceMove_1224737556(b_1493173424[chckIndx(6, 0, (b_1493173424).length - 1)][chckIndx(3, 0, (b_1493173424[chckIndx(6, 0, (b_1493173424).length - 1)]).length - 1)], 4, 3, b_1493173424, s_1493173425); - F.line = 760; - pieceMove_1224737556(b_1493173424[chckIndx(6, 0, (b_1493173424).length - 1)][chckIndx(4, 0, (b_1493173424[chckIndx(6, 0, (b_1493173424).length - 1)]).length - 1)], 4, 4, b_1493173424, s_1493173425); + pieceMove_1476395796(b_1845494960[chckIndx(6, 0, (b_1845494960).length - 1)][chckIndx(3, 0, (b_1845494960[chckIndx(6, 0, (b_1845494960).length - 1)]).length - 1)], 4, 3, b_1845494960, s_1845494961); + pieceMove_1476395796(b_1845494960[chckIndx(6, 0, (b_1845494960).length - 1)][chckIndx(4, 0, (b_1845494960[chckIndx(6, 0, (b_1845494960).length - 1)]).length - 1)], 4, 4, b_1845494960, s_1845494961); } - framePtr = F.prev; } -function HEX3Aanonymous_1493173295(side_1493173296, viewSide_1493173297, b_1493173298, __1493173299) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; +function HEX3Aanonymous_1845494831(side_1845494832, viewSide_1845494833, b_1845494834, __1845494835) { Label1: { - F.line = 691; - F.filename = "powers.nim"; - var i_1493173300 = 0; - F.line = 691; - var j_1493173301 = 0; + var i_1845494836 = 0; + var j_1845494837 = 0; Label2: { - F.line = 124; - F.filename = "piece.nim"; - var i_1493179146 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_1493179147 = 0; + var i_1845500706 = 0; + var i_1845500707 = 0; Label3: { - F.line = 129; Label4: while (true) { - if (!(i_1493179147 < 8)) break Label4; - F.line = 124; - F.filename = "piece.nim"; - i_1493179146 = i_1493179147; + if (!(i_1845500707 < 8)) break Label4; + i_1845500706 = i_1845500707; Label5: { - F.line = 125; - var j_1493179150 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_1493179151 = 0; + var j_1845500710 = 0; + var i_1845500711 = 0; Label6: { - F.line = 129; Label7: while (true) { - if (!(i_1493179151 < 8)) break Label7; - F.line = 125; - F.filename = "piece.nim"; - j_1493179150 = i_1493179151; - F.line = 691; - F.filename = "powers.nim"; - i_1493173300 = i_1493179146; - F.line = 691; - j_1493173301 = j_1493179150; - if ((!((b_1493173298[chckIndx(i_1493173300, 0, (b_1493173298).length - 1)][chckIndx(j_1493173301, 0, (b_1493173298[chckIndx(i_1493173300, 0, (b_1493173298).length - 1)]).length - 1)].item == 1)) && isColor_1224737813(b_1493173298[chckIndx(i_1493173300, 0, (b_1493173298).length - 1)][chckIndx(j_1493173301, 0, (b_1493173298[chckIndx(i_1493173300, 0, (b_1493173298).length - 1)]).length - 1)], side_1493173296))) { - F.line = 693; - b_1493173298[chckIndx(i_1493173300, 0, (b_1493173298).length - 1)][chckIndx(j_1493173301, 0, (b_1493173298[chckIndx(i_1493173300, 0, (b_1493173298).length - 1)]).length - 1)] = nimCopy(b_1493173298[chckIndx(i_1493173300, 0, (b_1493173298).length - 1)][chckIndx(j_1493173301, 0, (b_1493173298[chckIndx(i_1493173300, 0, (b_1493173298).length - 1)]).length - 1)], pieceCopy_1224737660(air_1275068591, b_1493173298[chckIndx(i_1493173300, 0, (b_1493173298).length - 1)][chckIndx(j_1493173301, 0, (b_1493173298[chckIndx(i_1493173300, 0, (b_1493173298).length - 1)]).length - 1)].index, 6, 1, 0, 0, b_1493173298[chckIndx(i_1493173300, 0, (b_1493173298).length - 1)][chckIndx(j_1493173301, 0, (b_1493173298[chckIndx(i_1493173300, 0, (b_1493173298).length - 1)]).length - 1)].tile, [], [], air_1275068591.onMove, air_1275068591.onTake, air_1275068591.whenTaken, [], [], false, [], true, false, false), NTI1224736794); + if (!(i_1845500711 < 8)) break Label7; + j_1845500710 = i_1845500711; + i_1845494836 = i_1845500706; + j_1845494837 = j_1845500710; + if ((!((b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)][chckIndx(j_1845494837, 0, (b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)]).length - 1)].item == 1)) && isColor_1476396053(b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)][chckIndx(j_1845494837, 0, (b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)]).length - 1)], side_1845494832))) { + b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)][chckIndx(j_1845494837, 0, (b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)]).length - 1)] = nimCopy(b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)][chckIndx(j_1845494837, 0, (b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)]).length - 1)], pieceCopy_1476395900(air_1526726831, b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)][chckIndx(j_1845494837, 0, (b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)]).length - 1)].index, 6, 1, 0, 0, b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)][chckIndx(j_1845494837, 0, (b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)]).length - 1)].tile, [], [], air_1526726831.onMove, air_1526726831.onTake, air_1526726831.whenTaken, [], [], false, [], true, false, false), NTI1476395034); } else { - if (((b_1493173298[chckIndx(i_1493173300, 0, (b_1493173298).length - 1)][chckIndx(j_1493173301, 0, (b_1493173298[chckIndx(i_1493173300, 0, (b_1493173298).length - 1)]).length - 1)].item == 1) && isColor_1224737813(b_1493173298[chckIndx(i_1493173300, 0, (b_1493173298).length - 1)][chckIndx(j_1493173301, 0, (b_1493173298[chckIndx(i_1493173300, 0, (b_1493173298).length - 1)]).length - 1)], side_1493173296))) { - F.line = 695; - add_1493172278(b_1493173298[chckIndx(i_1493173300, 0, (b_1493173298).length - 1)][chckIndx(j_1493173301, 0, (b_1493173298[chckIndx(i_1493173300, 0, (b_1493173298).length - 1)]).length - 1)], "moves", [HEX3Aanonymous_1291846082, HEX3Aanonymous_1509949640, HEX3Aanonymous_1509949738, HEX3Aanonymous_1509949728]); - F.line = 696; - add_1493172278(b_1493173298[chckIndx(i_1493173300, 0, (b_1493173298).length - 1)][chckIndx(j_1493173301, 0, (b_1493173298[chckIndx(i_1493173300, 0, (b_1493173298).length - 1)]).length - 1)], "takes", [HEX3Aanonymous_1291846087, HEX3Aanonymous_1509949635, HEX3Aanonymous_1509949743, HEX3Aanonymous_1509949733]); - F.line = 697; - b_1493173298[chckIndx(i_1493173300, 0, (b_1493173298).length - 1)][chckIndx(j_1493173301, 0, (b_1493173298[chckIndx(i_1493173300, 0, (b_1493173298).length - 1)]).length - 1)].item = 0; + if (((b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)][chckIndx(j_1845494837, 0, (b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)]).length - 1)].item == 1) && isColor_1476396053(b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)][chckIndx(j_1845494837, 0, (b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)]).length - 1)], side_1845494832))) { + add_1845493814(b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)][chckIndx(j_1845494837, 0, (b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)]).length - 1)], "moves", [HEX3Aanonymous_1543504322, HEX3Aanonymous_1862271176, HEX3Aanonymous_1862271274, HEX3Aanonymous_1862271264]); + add_1845493814(b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)][chckIndx(j_1845494837, 0, (b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)]).length - 1)], "takes", [HEX3Aanonymous_1543504327, HEX3Aanonymous_1862271171, HEX3Aanonymous_1862271279, HEX3Aanonymous_1862271269]); + b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)][chckIndx(j_1845494837, 0, (b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)]).length - 1)].item = 0; } else { - if (((b_1493173298[chckIndx(i_1493173300, 0, (b_1493173298).length - 1)][chckIndx(j_1493173301, 0, (b_1493173298[chckIndx(i_1493173300, 0, (b_1493173298).length - 1)]).length - 1)].item == 2) && !(isColor_1224737813(b_1493173298[chckIndx(i_1493173300, 0, (b_1493173298).length - 1)][chckIndx(j_1493173301, 0, (b_1493173298[chckIndx(i_1493173300, 0, (b_1493173298).length - 1)]).length - 1)], side_1493173296)))) { - F.line = 699; - b_1493173298[chckIndx(i_1493173300, 0, (b_1493173298).length - 1)][chckIndx(j_1493173301, 0, (b_1493173298[chckIndx(i_1493173300, 0, (b_1493173298).length - 1)]).length - 1)] = nimCopy(b_1493173298[chckIndx(i_1493173300, 0, (b_1493173298).length - 1)][chckIndx(j_1493173301, 0, (b_1493173298[chckIndx(i_1493173300, 0, (b_1493173298).length - 1)]).length - 1)], pieceCopy_1224737660(air_1275068591, b_1493173298[chckIndx(i_1493173300, 0, (b_1493173298).length - 1)][chckIndx(j_1493173301, 0, (b_1493173298[chckIndx(i_1493173300, 0, (b_1493173298).length - 1)]).length - 1)].index, 6, 1, 0, 0, b_1493173298[chckIndx(i_1493173300, 0, (b_1493173298).length - 1)][chckIndx(j_1493173301, 0, (b_1493173298[chckIndx(i_1493173300, 0, (b_1493173298).length - 1)]).length - 1)].tile, [], [], air_1275068591.onMove, air_1275068591.onTake, air_1275068591.whenTaken, [], [], false, [], true, false, false), NTI1224736794); + if (((b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)][chckIndx(j_1845494837, 0, (b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)]).length - 1)].item == 2) && !(isColor_1476396053(b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)][chckIndx(j_1845494837, 0, (b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)]).length - 1)], side_1845494832)))) { + b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)][chckIndx(j_1845494837, 0, (b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)]).length - 1)] = nimCopy(b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)][chckIndx(j_1845494837, 0, (b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)]).length - 1)], pieceCopy_1476395900(air_1526726831, b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)][chckIndx(j_1845494837, 0, (b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)]).length - 1)].index, 6, 1, 0, 0, b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)][chckIndx(j_1845494837, 0, (b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)]).length - 1)].tile, [], [], air_1526726831.onMove, air_1526726831.onTake, air_1526726831.whenTaken, [], [], false, [], true, false, false), NTI1476395034); } }} - F.line = 131; - F.filename = "iterators_1.nim"; - i_1493179151 = addInt(i_1493179151, 1); + i_1845500711 = addInt(i_1845500711, 1); } }; }; - F.line = 131; - i_1493179147 = addInt(i_1493179147, 1); + i_1845500707 = addInt(i_1845500707, 1); } }; }; }; - framePtr = F.prev; } -function HEX3Aanonymous_1493174282(side_1493174283, __1493174284, b_1493174285, s_1493174286) { +function HEX3Aanonymous_1845495818(side_1845495819, __1845495820, b_1845495821, s_1845495822) { var Temporary8; - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; Label1: { - F.line = 1349; - F.filename = "powers.nim"; - var i_1493174287 = 0; - F.line = 1349; - var j_1493174288 = 0; + var i_1845495823 = 0; + var j_1845495824 = 0; Label2: { - F.line = 124; - F.filename = "piece.nim"; - var i_1493179155 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_1493179156 = 0; + var i_1845500715 = 0; + var i_1845500716 = 0; Label3: { - F.line = 129; Label4: while (true) { - if (!(i_1493179156 < 8)) break Label4; - F.line = 124; - F.filename = "piece.nim"; - i_1493179155 = i_1493179156; + if (!(i_1845500716 < 8)) break Label4; + i_1845500715 = i_1845500716; Label5: { - F.line = 125; - var j_1493179159 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_1493179160 = 0; + var j_1845500719 = 0; + var i_1845500720 = 0; Label6: { - F.line = 129; Label7: while (true) { - if (!(i_1493179160 < 8)) break Label7; - F.line = 125; - F.filename = "piece.nim"; - j_1493179159 = i_1493179160; - F.line = 1349; - F.filename = "powers.nim"; - i_1493174287 = i_1493179155; - F.line = 1349; - j_1493174288 = j_1493179159; - if ((((b_1493174285[chckIndx(i_1493174287, 0, (b_1493174285).length - 1)][chckIndx(j_1493174288, 0, (b_1493174285[chckIndx(i_1493174287, 0, (b_1493174285).length - 1)]).length - 1)].item == 5) && isColor_1224737813(b_1493174285[chckIndx(i_1493174287, 0, (b_1493174285).length - 1)][chckIndx(j_1493174288, 0, (b_1493174285[chckIndx(i_1493174287, 0, (b_1493174285).length - 1)]).length - 1)], side_1493174283)) && (b_1493174285[chckIndx(i_1493174287, 0, (b_1493174285).length - 1)][chckIndx(j_1493174288, 0, (b_1493174285[chckIndx(i_1493174287, 0, (b_1493174285).length - 1)]).length - 1)].timesMoved == 1))) { - F.line = 1353; - if ((side_1493174283 == 0)) { + if (!(i_1845500720 < 8)) break Label7; + j_1845500719 = i_1845500720; + i_1845495823 = i_1845500715; + j_1845495824 = j_1845500719; + if ((((b_1845495821[chckIndx(i_1845495823, 0, (b_1845495821).length - 1)][chckIndx(j_1845495824, 0, (b_1845495821[chckIndx(i_1845495823, 0, (b_1845495821).length - 1)]).length - 1)].item == 5) && isColor_1476396053(b_1845495821[chckIndx(i_1845495823, 0, (b_1845495821).length - 1)][chckIndx(j_1845495824, 0, (b_1845495821[chckIndx(i_1845495823, 0, (b_1845495821).length - 1)]).length - 1)], side_1845495819)) && (b_1845495821[chckIndx(i_1845495823, 0, (b_1845495821).length - 1)][chckIndx(j_1845495824, 0, (b_1845495821[chckIndx(i_1845495823, 0, (b_1845495821).length - 1)]).length - 1)].timesMoved == 1))) { + if ((side_1845495819 == 0)) { Temporary8 = (-1); } else { Temporary8 = 1; } - var back_1493174297 = Temporary8; - F.line = 1354; - b_1493174285[chckIndx(i_1493174287, 0, (b_1493174285).length - 1)][chckIndx(j_1493174288, 0, (b_1493174285[chckIndx(i_1493174287, 0, (b_1493174285).length - 1)]).length - 1)].timesMoved = addInt(b_1493174285[chckIndx(i_1493174287, 0, (b_1493174285).length - 1)][chckIndx(j_1493174288, 0, (b_1493174285[chckIndx(i_1493174287, 0, (b_1493174285).length - 1)]).length - 1)].timesMoved, 1); - F.line = 1355; - pieceMove_1224737556(b_1493174285[chckIndx(i_1493174287, 0, (b_1493174285).length - 1)][chckIndx(j_1493174288, 0, (b_1493174285[chckIndx(i_1493174287, 0, (b_1493174285).length - 1)]).length - 1)], addInt(b_1493174285[chckIndx(i_1493174287, 0, (b_1493174285).length - 1)][chckIndx(j_1493174288, 0, (b_1493174285[chckIndx(i_1493174287, 0, (b_1493174285).length - 1)]).length - 1)].tile.Field1, back_1493174297), b_1493174285[chckIndx(i_1493174287, 0, (b_1493174285).length - 1)][chckIndx(j_1493174288, 0, (b_1493174285[chckIndx(i_1493174287, 0, (b_1493174285).length - 1)]).length - 1)].tile.Field0, b_1493174285, s_1493174286); + var back_1845495833 = Temporary8; + b_1845495821[chckIndx(i_1845495823, 0, (b_1845495821).length - 1)][chckIndx(j_1845495824, 0, (b_1845495821[chckIndx(i_1845495823, 0, (b_1845495821).length - 1)]).length - 1)].timesMoved = addInt(b_1845495821[chckIndx(i_1845495823, 0, (b_1845495821).length - 1)][chckIndx(j_1845495824, 0, (b_1845495821[chckIndx(i_1845495823, 0, (b_1845495821).length - 1)]).length - 1)].timesMoved, 1); + pieceMove_1476395796(b_1845495821[chckIndx(i_1845495823, 0, (b_1845495821).length - 1)][chckIndx(j_1845495824, 0, (b_1845495821[chckIndx(i_1845495823, 0, (b_1845495821).length - 1)]).length - 1)], addInt(b_1845495821[chckIndx(i_1845495823, 0, (b_1845495821).length - 1)][chckIndx(j_1845495824, 0, (b_1845495821[chckIndx(i_1845495823, 0, (b_1845495821).length - 1)]).length - 1)].tile.Field1, back_1845495833), b_1845495821[chckIndx(i_1845495823, 0, (b_1845495821).length - 1)][chckIndx(j_1845495824, 0, (b_1845495821[chckIndx(i_1845495823, 0, (b_1845495821).length - 1)]).length - 1)].tile.Field0, b_1845495821, s_1845495822); } - F.line = 131; - F.filename = "iterators_1.nim"; - i_1493179160 = addInt(i_1493179160, 1); + i_1845500720 = addInt(i_1845500720, 1); } }; }; - F.line = 131; - i_1493179156 = addInt(i_1493179156, 1); + i_1845500716 = addInt(i_1845500716, 1); } }; }; }; - framePtr = F.prev; } -function HEX3Aanonymous_1493174317(piece_1493174318, board_1493174319, state_1493174320) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - if ((piece_1493174318.piecesTaken == 7)) { +function HEX3Aanonymous_1845495853(piece_1845495854, board_1845495855, state_1845495856) { + if ((piece_1845495854.piecesTaken == 7)) { Label1: { - F.line = 1368; - F.filename = "powers.nim"; - var i_1493174321 = 0; - F.line = 1368; - var j_1493174322 = 0; + var i_1845495857 = 0; + var j_1845495858 = 0; Label2: { - F.line = 124; - F.filename = "piece.nim"; - var i_1493179164 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_1493179165 = 0; + var i_1845500724 = 0; + var i_1845500725 = 0; Label3: { - F.line = 129; Label4: while (true) { - if (!(i_1493179165 < 8)) break Label4; - F.line = 124; - F.filename = "piece.nim"; - i_1493179164 = i_1493179165; + if (!(i_1845500725 < 8)) break Label4; + i_1845500724 = i_1845500725; Label5: { - F.line = 125; - var j_1493179168 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_1493179169 = 0; + var j_1845500728 = 0; + var i_1845500729 = 0; Label6: { - F.line = 129; Label7: while (true) { - if (!(i_1493179169 < 8)) break Label7; - F.line = 125; - F.filename = "piece.nim"; - j_1493179168 = i_1493179169; - F.line = 1368; - F.filename = "powers.nim"; - i_1493174321 = i_1493179164; - F.line = 1368; - j_1493174322 = j_1493179168; - if (((board_1493174319[chckIndx(i_1493174321, 0, (board_1493174319).length - 1)][chckIndx(j_1493174322, 0, (board_1493174319[chckIndx(i_1493174321, 0, (board_1493174319).length - 1)]).length - 1)].item == 0) && !(sameColor_1224737804(board_1493174319[chckIndx(i_1493174321, 0, (board_1493174319).length - 1)][chckIndx(j_1493174322, 0, (board_1493174319[chckIndx(i_1493174321, 0, (board_1493174319).length - 1)]).length - 1)], piece_1493174318)))) { - F.line = 1371; - board_1493174319[chckIndx(i_1493174321, 0, (board_1493174319).length - 1)][chckIndx(j_1493174322, 0, (board_1493174319[chckIndx(i_1493174321, 0, (board_1493174319).length - 1)]).length - 1)] = nimCopy(board_1493174319[chckIndx(i_1493174321, 0, (board_1493174319).length - 1)][chckIndx(j_1493174322, 0, (board_1493174319[chckIndx(i_1493174321, 0, (board_1493174319).length - 1)]).length - 1)], pieceCopy_1224737660(air_1275068591, board_1493174319[chckIndx(i_1493174321, 0, (board_1493174319).length - 1)][chckIndx(j_1493174322, 0, (board_1493174319[chckIndx(i_1493174321, 0, (board_1493174319).length - 1)]).length - 1)].index, 6, 1, 0, 0, board_1493174319[chckIndx(i_1493174321, 0, (board_1493174319).length - 1)][chckIndx(j_1493174322, 0, (board_1493174319[chckIndx(i_1493174321, 0, (board_1493174319).length - 1)]).length - 1)].tile, [], [], air_1275068591.onMove, air_1275068591.onTake, air_1275068591.whenTaken, [], [], false, [], true, false, false), NTI1224736794); + if (!(i_1845500729 < 8)) break Label7; + j_1845500728 = i_1845500729; + i_1845495857 = i_1845500724; + j_1845495858 = j_1845500728; + if (((board_1845495855[chckIndx(i_1845495857, 0, (board_1845495855).length - 1)][chckIndx(j_1845495858, 0, (board_1845495855[chckIndx(i_1845495857, 0, (board_1845495855).length - 1)]).length - 1)].item == 0) && !(sameColor_1476396044(board_1845495855[chckIndx(i_1845495857, 0, (board_1845495855).length - 1)][chckIndx(j_1845495858, 0, (board_1845495855[chckIndx(i_1845495857, 0, (board_1845495855).length - 1)]).length - 1)], piece_1845495854)))) { + board_1845495855[chckIndx(i_1845495857, 0, (board_1845495855).length - 1)][chckIndx(j_1845495858, 0, (board_1845495855[chckIndx(i_1845495857, 0, (board_1845495855).length - 1)]).length - 1)] = nimCopy(board_1845495855[chckIndx(i_1845495857, 0, (board_1845495855).length - 1)][chckIndx(j_1845495858, 0, (board_1845495855[chckIndx(i_1845495857, 0, (board_1845495855).length - 1)]).length - 1)], pieceCopy_1476395900(air_1526726831, board_1845495855[chckIndx(i_1845495857, 0, (board_1845495855).length - 1)][chckIndx(j_1845495858, 0, (board_1845495855[chckIndx(i_1845495857, 0, (board_1845495855).length - 1)]).length - 1)].index, 6, 1, 0, 0, board_1845495855[chckIndx(i_1845495857, 0, (board_1845495855).length - 1)][chckIndx(j_1845495858, 0, (board_1845495855[chckIndx(i_1845495857, 0, (board_1845495855).length - 1)]).length - 1)].tile, [], [], air_1526726831.onMove, air_1526726831.onTake, air_1526726831.whenTaken, [], [], false, [], true, false, false), NTI1476395034); } - F.line = 131; - F.filename = "iterators_1.nim"; - i_1493179169 = addInt(i_1493179169, 1); + i_1845500729 = addInt(i_1845500729, 1); } }; }; - F.line = 131; - i_1493179165 = addInt(i_1493179165, 1); + i_1845500725 = addInt(i_1845500725, 1); } }; }; }; } - framePtr = F.prev; } -function HEX3Aanonymous_1493174328(side_1493174329, __1493174330, b_1493174331, s_1493174332) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 1382; - F.filename = "powers.nim"; - buff_1493172242(1, side_1493174329, b_1493174331, s_1493174332, [], [], [HEX3Aanonymous_1493174317], false, [], null, null, null, false); - framePtr = F.prev; +function HEX3Aanonymous_1845495864(side_1845495865, __1845495866, b_1845495867, s_1845495868) { + buff_1845493778(1, side_1845495865, b_1845495867, s_1845495868, [], [], [HEX3Aanonymous_1845495853], false, [], null, null, null, false); } -function newSeq_1493174041(len_1493174043) { - var result_1493174044 = []; - - var F = {procname: "newSeq.newSeq", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; - F.line = 633; - F.filename = "system.nim"; - result_1493174044 = new Array(len_1493174043); for (var i = 0 ; i < len_1493174043 ; ++i) { result_1493174044[i] = null; } framePtr = F.prev; +function newSeq_1845495577(len_1845495579) { + var result_1845495580 = []; - return result_1493174044; + result_1845495580 = new Array(len_1845495579); for (var i = 0 ; i < len_1845495579 ; ++i) { result_1845495580[i] = null; } + return result_1845495580; } -function HEX26_1493173955(x_1493173957, y_1493173958) { - var result_1493173959 = []; +function HEX26_1845495491(x_1845495493, y_1845495494) { + var result_1845495495 = []; - var F = {procname: "&.&", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; - F.line = 1537; - F.filename = "system.nim"; - result_1493173959 = new Array(chckRange(addInt((x_1493173957).length, (y_1493173958).length), 0, 2147483647)); for (var i = 0 ; i < chckRange(addInt((x_1493173957).length, (y_1493173958).length), 0, 2147483647) ; ++i) { result_1493173959[i] = {Field0: 0, Field1: 0}; } Label1: { - F.line = 1538; - var i_1493173977 = 0; - F.line = 81; - F.filename = "iterators_1.nim"; - var colontmp__1493179186 = 0; - F.line = 1538; - F.filename = "system.nim"; - colontmp__1493179186 = subInt((x_1493173957).length, 1); - F.line = 96; - F.filename = "iterators_1.nim"; - var res_1493179187 = 0; + result_1845495495 = new Array(chckRange(addInt((x_1845495493).length, (y_1845495494).length), 0, 2147483647)); for (var i = 0 ; i < chckRange(addInt((x_1845495493).length, (y_1845495494).length), 0, 2147483647) ; ++i) { result_1845495495[i] = {Field0: 0, Field1: 0}; } Label1: { + var i_1845495513 = 0; + var colontmp__1845500746 = 0; + colontmp__1845500746 = subInt((x_1845495493).length, 1); + var res_1845500747 = 0; Label2: { - F.line = 97; Label3: while (true) { - if (!(res_1493179187 <= colontmp__1493179186)) break Label3; - F.line = 1538; - F.filename = "system.nim"; - i_1493173977 = res_1493179187; - F.line = 1539; - result_1493173959[chckIndx(i_1493173977, 0, (result_1493173959).length - 1)] = nimCopy(result_1493173959[chckIndx(i_1493173977, 0, (result_1493173959).length - 1)], x_1493173957[chckIndx(i_1493173977, 0, (x_1493173957).length - 1)], NTI1224736771); - F.line = 102; - F.filename = "iterators_1.nim"; - res_1493179187 = addInt(res_1493179187, 1); + if (!(res_1845500747 <= colontmp__1845500746)) break Label3; + i_1845495513 = res_1845500747; + result_1845495495[chckIndx(i_1845495513, 0, (result_1845495495).length - 1)] = nimCopy(result_1845495495[chckIndx(i_1845495513, 0, (result_1845495495).length - 1)], x_1845495493[chckIndx(i_1845495513, 0, (x_1845495493).length - 1)], NTI1476395011); + res_1845500747 = addInt(res_1845500747, 1); } }; }; Label4: { - F.line = 1540; - F.filename = "system.nim"; - var i_1493173985 = 0; - F.line = 81; - F.filename = "iterators_1.nim"; - var colontmp__1493179190 = 0; - F.line = 1540; - F.filename = "system.nim"; - colontmp__1493179190 = subInt((y_1493173958).length, 1); - F.line = 96; - F.filename = "iterators_1.nim"; - var res_1493179191 = 0; + var i_1845495521 = 0; + var colontmp__1845500750 = 0; + colontmp__1845500750 = subInt((y_1845495494).length, 1); + var res_1845500751 = 0; Label5: { - F.line = 97; Label6: while (true) { - if (!(res_1493179191 <= colontmp__1493179190)) break Label6; - F.line = 1540; - F.filename = "system.nim"; - i_1493173985 = res_1493179191; - F.line = 1541; - result_1493173959[chckIndx(addInt(i_1493173985, (x_1493173957).length), 0, (result_1493173959).length - 1)] = nimCopy(result_1493173959[chckIndx(addInt(i_1493173985, (x_1493173957).length), 0, (result_1493173959).length - 1)], y_1493173958[chckIndx(i_1493173985, 0, (y_1493173958).length - 1)], NTI1224736771); - F.line = 102; - F.filename = "iterators_1.nim"; - res_1493179191 = addInt(res_1493179191, 1); + if (!(res_1845500751 <= colontmp__1845500750)) break Label6; + i_1845495521 = res_1845500751; + result_1845495495[chckIndx(addInt(i_1845495521, (x_1845495493).length), 0, (result_1845495495).length - 1)] = nimCopy(result_1845495495[chckIndx(addInt(i_1845495521, (x_1845495493).length), 0, (result_1845495495).length - 1)], y_1845495494[chckIndx(i_1845495521, 0, (y_1845495494).length - 1)], NTI1476395011); + res_1845500751 = addInt(res_1845500751, 1); } }; }; - framePtr = F.prev; - return result_1493173959; + return result_1845495495; } -function HEX3Aanonymous_1493173949(piece_1493173950, board_1493173951, state_1493173952) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; +function HEX3Aanonymous_1845495485(piece_1845495486, board_1845495487, state_1845495488) { BeforeRet: { - if (!(piece_1493173950.drunk)) { - F.line = 1142; - F.filename = "powers.nim"; - piece_1493173950.drunk = true; - F.line = 1147; - randomize_1392509190(BigInt(addInt(addInt(mulInt(10, piece_1493173950.tile.Field1), mulInt(100, piece_1493173950.tile.Field0)), state_1493173952.Field0.randSeed))); - F.line = 1148; - var takes_1493173953 = getTakesOn_1224737271(piece_1493173950, board_1493173951); - F.line = 1149; - var moves_1493173954 = getMovesOn_1224737386(piece_1493173950, board_1493173951); - if (((HEX26_1493173955(moves_1493173954, takes_1493173953)).length == 0)) { - F.line = 1150; + if (!(piece_1845495486.drunk)) { + piece_1845495486.drunk = true; + randomize_1644167430(BigInt(addInt(addInt(mulInt(10, piece_1845495486.tile.Field1), mulInt(100, piece_1845495486.tile.Field0)), state_1845495488.Field0.randSeed))); + var takes_1845495489 = getTakesOn_1476395511(piece_1845495486, board_1845495487); + var moves_1845495490 = getMovesOn_1476395626(piece_1845495486, board_1845495487); + if (((HEX26_1845495491(moves_1845495490, takes_1845495489)).length == 0)) { break BeforeRet; } - F.line = 1153; - var randomAction_1493173999 = nimCopy(null, sample_1493173919(HEX26_1493173955(moves_1493173954, takes_1493173953)), NTI1224736771); - if (contains_1224737421(takes_1493173953, randomAction_1493173999)) { - F.line = 1157; - piece_1493173950.onTake(piece_1493173950, randomAction_1493173999, board_1493173951, state_1493173952); + var randomAction_1845495535 = nimCopy(null, sample_1845495455(HEX26_1845495491(moves_1845495490, takes_1845495489)), NTI1476395011); + if (contains_1476395661(takes_1845495489, randomAction_1845495535)) { + piece_1845495486.onTake(piece_1845495486, randomAction_1845495535, board_1845495487, state_1845495488); } else { - if (contains_1224737421(moves_1493173954, randomAction_1493173999)) { - F.line = 1159; - piece_1493173950.onMove(piece_1493173950, randomAction_1493173999, board_1493173951, state_1493173952); + if (contains_1476395661(moves_1845495490, randomAction_1845495535)) { + piece_1845495486.onMove(piece_1845495486, randomAction_1845495535, board_1845495487, state_1845495488); } } } }; - framePtr = F.prev; } -function HEX3Aanonymous_1493174033(side_1493174034, __1493174035, b_1493174036, __1493174037) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; +function HEX3Aanonymous_1845495569(side_1845495570, __1845495571, b_1845495572, __1845495573) { Label1: { - F.line = 1203; - F.filename = "powers.nim"; - var i_1493174038 = 0; - F.line = 1203; - var j_1493174039 = 0; + var i_1845495574 = 0; + var j_1845495575 = 0; Label2: { - F.line = 124; - F.filename = "piece.nim"; - var i_1493179178 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_1493179179 = 0; + var i_1845500738 = 0; + var i_1845500739 = 0; Label3: { - F.line = 129; Label4: while (true) { - if (!(i_1493179179 < 8)) break Label4; - F.line = 124; - F.filename = "piece.nim"; - i_1493179178 = i_1493179179; + if (!(i_1845500739 < 8)) break Label4; + i_1845500738 = i_1845500739; Label5: { - F.line = 125; - var j_1493179182 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_1493179183 = 0; + var j_1845500742 = 0; + var i_1845500743 = 0; Label6: { - F.line = 129; Label7: while (true) { - if (!(i_1493179183 < 8)) break Label7; - F.line = 125; - F.filename = "piece.nim"; - j_1493179182 = i_1493179183; - F.line = 1203; - F.filename = "powers.nim"; - i_1493174038 = i_1493179178; - F.line = 1203; - j_1493174039 = j_1493179182; - if ((contains_838862678(b_1493174036[chckIndx(i_1493174038, 0, (b_1493174036).length - 1)][chckIndx(j_1493174039, 0, (b_1493174036[chckIndx(i_1493174038, 0, (b_1493174036).length - 1)]).length - 1)].filePath, [110,105,103,104,116,114,105,100,101,114]) && isColor_1224737813(b_1493174036[chckIndx(i_1493174038, 0, (b_1493174036).length - 1)][chckIndx(j_1493174039, 0, (b_1493174036[chckIndx(i_1493174038, 0, (b_1493174036).length - 1)]).length - 1)], side_1493174034))) { - F.line = 1207; - F.line = 652; - F.filename = "sequtils.nim"; - var resultHEX60gensym76_1493174049 = newSeq_1493174041(0); + if (!(i_1845500743 < 8)) break Label7; + j_1845500742 = i_1845500743; + i_1845495574 = i_1845500738; + j_1845495575 = j_1845500742; + if ((contains_889194326(b_1845495572[chckIndx(i_1845495574, 0, (b_1845495572).length - 1)][chckIndx(j_1845495575, 0, (b_1845495572[chckIndx(i_1845495574, 0, (b_1845495572).length - 1)]).length - 1)].filePath, [110,105,103,104,116,114,105,100,101,114]) && isColor_1476396053(b_1845495572[chckIndx(i_1845495574, 0, (b_1845495572).length - 1)][chckIndx(j_1845495575, 0, (b_1845495572[chckIndx(i_1845495574, 0, (b_1845495572).length - 1)]).length - 1)], side_1845495570))) { + var resultHEX60gensym76_1845495585 = newSeq_1845495577(0); Label8: { - F.line = 653; - var it_1493174053 = null; - F.line = 247; - F.filename = "iterators.nim"; - var colontmp__1493179173 = []; - F.line = 1207; - F.filename = "powers.nim"; - colontmp__1493179173 = b_1493174036[chckIndx(i_1493174038, 0, (b_1493174036).length - 1)][chckIndx(j_1493174039, 0, (b_1493174036[chckIndx(i_1493174038, 0, (b_1493174036).length - 1)]).length - 1)].onEndTurn; - F.line = 249; - F.filename = "iterators.nim"; - var i_1493179174 = 0; - F.line = 250; - var L_1493179175 = (colontmp__1493179173).length; + var it_1845495589 = null; + var colontmp__1845500733 = []; + colontmp__1845500733 = b_1845495572[chckIndx(i_1845495574, 0, (b_1845495572).length - 1)][chckIndx(j_1845495575, 0, (b_1845495572[chckIndx(i_1845495574, 0, (b_1845495572).length - 1)]).length - 1)].onEndTurn; + var i_1845500734 = 0; + var L_1845500735 = (colontmp__1845500733).length; Label9: { - F.line = 251; Label10: while (true) { - if (!(i_1493179174 < L_1493179175)) break Label10; - F.line = 653; - F.filename = "sequtils.nim"; - it_1493174053 = colontmp__1493179173[chckIndx(i_1493179174, 0, (colontmp__1493179173).length - 1)]; - if (!((it_1493174053 == HEX3Aanonymous_1493173893))) { - F.line = 654; - resultHEX60gensym76_1493174049.push(it_1493174053);; + if (!(i_1845500734 < L_1845500735)) break Label10; + it_1845495589 = colontmp__1845500733[chckIndx(i_1845500734, 0, (colontmp__1845500733).length - 1)]; + if (!((it_1845495589 == HEX3Aanonymous_1845495429))) { + resultHEX60gensym76_1845495585.push(it_1845495589);; } - F.line = 13; - F.filename = "iterators.nim"; - i_1493179174 += 1; - if (!(((colontmp__1493179173).length == L_1493179175))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + i_1845500734 += 1; + if (!(((colontmp__1845500733).length == L_1845500735))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - b_1493174036[chckIndx(i_1493174038, 0, (b_1493174036).length - 1)][chckIndx(j_1493174039, 0, (b_1493174036[chckIndx(i_1493174038, 0, (b_1493174036).length - 1)]).length - 1)].onEndTurn = nimCopy(null, resultHEX60gensym76_1493174049, NTI1493173955); - F.line = 1208; - F.filename = "powers.nim"; - b_1493174036[chckIndx(i_1493174038, 0, (b_1493174036).length - 1)][chckIndx(j_1493174039, 0, (b_1493174036[chckIndx(i_1493174038, 0, (b_1493174036).length - 1)]).length - 1)].onEndTurn.push(HEX3Aanonymous_1493173949);; + b_1845495572[chckIndx(i_1845495574, 0, (b_1845495572).length - 1)][chckIndx(j_1845495575, 0, (b_1845495572[chckIndx(i_1845495574, 0, (b_1845495572).length - 1)]).length - 1)].onEndTurn = nimCopy(null, resultHEX60gensym76_1845495585, NTI1845495491); + b_1845495572[chckIndx(i_1845495574, 0, (b_1845495572).length - 1)][chckIndx(j_1845495575, 0, (b_1845495572[chckIndx(i_1845495574, 0, (b_1845495572).length - 1)]).length - 1)].onEndTurn.push(HEX3Aanonymous_1845495485);; } - F.line = 131; - F.filename = "iterators_1.nim"; - i_1493179183 = addInt(i_1493179183, 1); + i_1845500743 = addInt(i_1845500743, 1); } }; }; - F.line = 131; - i_1493179179 = addInt(i_1493179179, 1); + i_1845500739 = addInt(i_1845500739, 1); } }; }; }; - framePtr = F.prev; } -function delete_1493178487(x_1493178489, x_1493178489_Idx, i_1493178490) { - var F = {procname: "delete.delete", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; - F.line = 1972; - F.filename = "system.nim"; - x_1493178489[x_1493178489_Idx].splice(i_1493178490, 1); - framePtr = F.prev; +function delete_1845500046(x_1845500048, x_1845500048_Idx, i_1845500049) { + x_1845500048[x_1845500048_Idx].splice(i_1845500049, 1); } -function find_1493178468(a_1493178471, item_1493178472) { - var result_1493178473 = 0; +function find_1845500027(a_1845500030, item_1845500031) { + var result_1845500032 = 0; - var F = {procname: "find.find", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; BeforeRet: { - F.line = 1671; - F.filename = "system.nim"; - result_1493178473 = 0; + result_1845500032 = 0; Label1: { - F.line = 1672; - var i_1493178477 = null; - F.line = 249; - F.filename = "iterators.nim"; - var i_1493179199 = 0; - F.line = 250; - var L_1493179200 = (a_1493178471).length; + var i_1845500036 = null; + var i_1845500759 = 0; + var L_1845500760 = (a_1845500030).length; Label2: { - F.line = 251; Label3: while (true) { - if (!(i_1493179199 < L_1493179200)) break Label3; - F.line = 1672; - F.filename = "system.nim"; - i_1493178477 = a_1493178471[chckIndx(i_1493179199, 0, (a_1493178471).length - 1)]; - if ((i_1493178477 == item_1493178472)) { - F.line = 1673; + if (!(i_1845500759 < L_1845500760)) break Label3; + i_1845500036 = a_1845500030[chckIndx(i_1845500759, 0, (a_1845500030).length - 1)]; + if ((i_1845500036 == item_1845500031)) { break BeforeRet; } - F.line = 1674; - result_1493178473 = addInt(result_1493178473, 1); - F.line = 13; - F.filename = "iterators.nim"; - i_1493179199 += 1; - if (!(((a_1493178471).length == L_1493179200))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + result_1845500032 = addInt(result_1845500032, 1); + i_1845500759 += 1; + if (!(((a_1845500030).length == L_1845500760))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - F.line = 1675; - F.filename = "system.nim"; - result_1493178473 = (-1); + result_1845500032 = (-1); }; - framePtr = F.prev; - return result_1493178473; + return result_1845500032; } -function HEX3Aanonymous_1509949480(board_1509949481, p_1509949482) { - var result_1509949483 = [[]]; +function HEX3Aanonymous_1862271016(board_1862271017, p_1862271018) { + var result_1862271019 = [[]]; - var F = {procname: "extramoves.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/extramoves.nim", line: 0}; - framePtr = F; - F.line = 45; - F.filename = "extramoves.nim"; - var next_1509949484 = addIfFree_1291845640(result_1509949483, 0, board_1509949481, p_1509949482.tile, tileLeft_1308622996); - if (next_1509949484) { - F.line = 47; - var _ = addIfFree_1291845640(result_1509949483, 0, board_1509949481, tileLeft_1308622996(p_1509949482.tile), tileLeft_1308622996); + var next_1862271020 = addIfFree_1543503880(result_1862271019, 0, board_1862271017, p_1862271018.tile, tileLeft_1560281236); + if (next_1862271020) { + var _ = addIfFree_1543503880(result_1862271019, 0, board_1862271017, tileLeft_1560281236(p_1862271018.tile), tileLeft_1560281236); } - framePtr = F.prev; - return result_1509949483[0]; + return result_1862271019[0]; } -function HEX3Aanonymous_1509949486(board_1509949487, p_1509949488) { - var result_1509949489 = [[]]; +function HEX3Aanonymous_1862271022(board_1862271023, p_1862271024) { + var result_1862271025 = [[]]; - var F = {procname: "extramoves.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/extramoves.nim", line: 0}; - framePtr = F; - F.line = 50; - F.filename = "extramoves.nim"; - var next_1509949490 = addIfFree_1291845640(result_1509949489, 0, board_1509949487, p_1509949488.tile, tileRight_1308622999); - if (next_1509949490) { - F.line = 52; - var _ = addIfFree_1291845640(result_1509949489, 0, board_1509949487, tileRight_1308622999(p_1509949488.tile), tileRight_1308622999); + var next_1862271026 = addIfFree_1543503880(result_1862271025, 0, board_1862271023, p_1862271024.tile, tileRight_1560281239); + if (next_1862271026) { + var _ = addIfFree_1543503880(result_1862271025, 0, board_1862271023, tileRight_1560281239(p_1862271024.tile), tileRight_1560281239); } - framePtr = F.prev; - return result_1509949489[0]; + return result_1862271025[0]; } -function HEX3Aanonymous_1509949799(board_1509949800, p_1509949801) { - var result_1509949802 = [[]]; +function HEX3Aanonymous_1862271335(board_1862271336, p_1862271337) { + var result_1862271338 = [[]]; - var F = {procname: "extramoves.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/extramoves.nim", line: 0}; - framePtr = F; - F.line = 234; - F.filename = "extramoves.nim"; - add_1224737298(result_1509949802, 0, HEX3Aanonymous_1509949480(board_1509949800, p_1509949801)); - F.line = 235; - add_1224737298(result_1509949802, 0, HEX3Aanonymous_1509949486(board_1509949800, p_1509949801)); - F.line = 236; - add_1224737298(result_1509949802, 0, HEX3Aanonymous_1509949543(board_1509949800, p_1509949801)); - F.line = 237; - add_1224737298(result_1509949802, 0, HEX3Aanonymous_1509949549(board_1509949800, p_1509949801)); - framePtr = F.prev; + add_1476395538(result_1862271338, 0, HEX3Aanonymous_1862271016(board_1862271336, p_1862271337)); + add_1476395538(result_1862271338, 0, HEX3Aanonymous_1862271022(board_1862271336, p_1862271337)); + add_1476395538(result_1862271338, 0, HEX3Aanonymous_1862271079(board_1862271336, p_1862271337)); + add_1476395538(result_1862271338, 0, HEX3Aanonymous_1862271085(board_1862271336, p_1862271337)); - return result_1509949802[0]; + return result_1862271338[0]; } -function HEX3Aanonymous_1509949492(board_1509949493, p_1509949494) { - var result_1509949495 = [[]]; +function HEX3Aanonymous_1862271028(board_1862271029, p_1862271030) { + var result_1862271031 = [[]]; - var F = {procname: "extramoves.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/extramoves.nim", line: 0}; - framePtr = F; - F.line = 55; - F.filename = "extramoves.nim"; - var next_1509949496 = addIfTake_1291845739(result_1509949495, 0, board_1509949493, p_1509949494, p_1509949494.tile, tileLeft_1308622996, false, false); - if (next_1509949496) { - F.line = 57; - var _ = addIfTake_1291845739(result_1509949495, 0, board_1509949493, p_1509949494, tileLeft_1308622996(p_1509949494.tile), tileLeft_1308622996, false, false); + var next_1862271032 = addIfTake_1543503979(result_1862271031, 0, board_1862271029, p_1862271030, p_1862271030.tile, tileLeft_1560281236, false, false); + if (next_1862271032) { + var _ = addIfTake_1543503979(result_1862271031, 0, board_1862271029, p_1862271030, tileLeft_1560281236(p_1862271030.tile), tileLeft_1560281236, false, false); } - framePtr = F.prev; - return result_1509949495[0]; + return result_1862271031[0]; } -function HEX3Aanonymous_1509949498(board_1509949499, p_1509949500) { - var result_1509949501 = [[]]; +function HEX3Aanonymous_1862271034(board_1862271035, p_1862271036) { + var result_1862271037 = [[]]; - var F = {procname: "extramoves.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/extramoves.nim", line: 0}; - framePtr = F; - F.line = 60; - F.filename = "extramoves.nim"; - var next_1509949502 = addIfTake_1291845739(result_1509949501, 0, board_1509949499, p_1509949500, p_1509949500.tile, tileRight_1308622999, false, false); - if (next_1509949502) { - F.line = 62; - var _ = addIfTake_1291845739(result_1509949501, 0, board_1509949499, p_1509949500, tileRight_1308622999(p_1509949500.tile), tileRight_1308622999, false, false); + var next_1862271038 = addIfTake_1543503979(result_1862271037, 0, board_1862271035, p_1862271036, p_1862271036.tile, tileRight_1560281239, false, false); + if (next_1862271038) { + var _ = addIfTake_1543503979(result_1862271037, 0, board_1862271035, p_1862271036, tileRight_1560281239(p_1862271036.tile), tileRight_1560281239, false, false); } - framePtr = F.prev; - return result_1509949501[0]; + return result_1862271037[0]; } -function HEX3Aanonymous_1509949820(board_1509949821, p_1509949822) { - var result_1509949823 = [[]]; +function HEX3Aanonymous_1862271356(board_1862271357, p_1862271358) { + var result_1862271359 = [[]]; - var F = {procname: "extramoves.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/extramoves.nim", line: 0}; - framePtr = F; - F.line = 240; - F.filename = "extramoves.nim"; - add_1224737298(result_1509949823, 0, HEX3Aanonymous_1509949492(board_1509949821, p_1509949822)); - F.line = 241; - add_1224737298(result_1509949823, 0, HEX3Aanonymous_1509949498(board_1509949821, p_1509949822)); - F.line = 242; - add_1224737298(result_1509949823, 0, HEX3Aanonymous_1509949531(board_1509949821, p_1509949822)); - F.line = 243; - add_1224737298(result_1509949823, 0, HEX3Aanonymous_1509949537(board_1509949821, p_1509949822)); - framePtr = F.prev; + add_1476395538(result_1862271359, 0, HEX3Aanonymous_1862271028(board_1862271357, p_1862271358)); + add_1476395538(result_1862271359, 0, HEX3Aanonymous_1862271034(board_1862271357, p_1862271358)); + add_1476395538(result_1862271359, 0, HEX3Aanonymous_1862271067(board_1862271357, p_1862271358)); + add_1476395538(result_1862271359, 0, HEX3Aanonymous_1862271073(board_1862271357, p_1862271358)); - return result_1509949823[0]; + return result_1862271359[0]; } -function createWithClarity_1493178461() { +function createWithClarity_1845500020() { -function HEX3Aanonymous_1493178464(piece_1493178465, board_1493178466, state_1493178467) { - var F = {procname: "createWithClarity.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - if (clarity_1493178463) { - F.line = 2175; - F.filename = "powers.nim"; - delete_1493178487(piece_1493178465, "moves", chckRange(find_1493178468(piece_1493178465.moves, HEX3Aanonymous_1509949799), 0, 2147483647)); - F.line = 2176; - delete_1493178487(piece_1493178465, "takes", chckRange(find_1493178468(piece_1493178465.takes, HEX3Aanonymous_1509949820), 0, 2147483647)); +function HEX3Aanonymous_1845500023(piece_1845500024, board_1845500025, state_1845500026) { + if (clarity_1845500022) { + delete_1845500046(piece_1845500024, "moves", chckRange(find_1845500027(piece_1845500024.moves, HEX3Aanonymous_1862271335), 0, 2147483647)); + delete_1845500046(piece_1845500024, "takes", chckRange(find_1845500027(piece_1845500024.takes, HEX3Aanonymous_1862271356), 0, 2147483647)); } - if ((state_1493178467.Field1[chckIndx(piece_1493178465.color, 0, (state_1493178467.Field1).length - 1)].hasCastled && !(clarity_1493178463))) { - F.line = 2178; - piece_1493178465.moves.push(HEX3Aanonymous_1509949799);; - F.line = 2179; - piece_1493178465.takes.push(HEX3Aanonymous_1509949820);; - F.line = 2180; - clarity_1493178463 = true; + if ((state_1845500026.Field1[chckIndx(piece_1845500024.color, 0, (state_1845500026.Field1).length - 1)].hasCastled && !(clarity_1845500022))) { + piece_1845500024.moves.push(HEX3Aanonymous_1862271335);; + piece_1845500024.takes.push(HEX3Aanonymous_1862271356);; + clarity_1845500022 = true; } - framePtr = F.prev; } - var result_1493178462 = null; + var result_1845500021 = null; - var F = {procname: "powers.createWithClarity", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 2171; - F.filename = "powers.nim"; - var clarity_1493178463 = false; - F.line = 2172; - result_1493178462 = HEX3Aanonymous_1493178464; - framePtr = F.prev; + var clarity_1845500022 = false; + result_1845500021 = HEX3Aanonymous_1845500023; - return result_1493178462; + return result_1845500021; } -function HEX3Aanonymous_1493178526(side_1493178527, __1493178528, b_1493178529, s_1493178530) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 2192; - F.filename = "powers.nim"; - addOnEndTurnTransform_1493172461(0, side_1493178527, b_1493178529, s_1493178530, createWithClarity_1493178461, false); - framePtr = F.prev; +function HEX3Aanonymous_1845500085(side_1845500086, __1845500087, b_1845500088, s_1845500089) { + addOnEndTurnTransform_1845493997(0, side_1845500086, b_1845500088, s_1845500089, createWithClarity_1845500020, false); } -function isSome_1493177705(self_1493177707) { - var result_1493177708 = false; +function isSome_1845499264(self_1845499266) { + var result_1845499267 = false; - var F = {procname: "isSome.isSome", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/options.nim", line: 0}; - framePtr = F; - F.line = 161; - F.filename = "options.nim"; - result_1493177708 = self_1493177707.has; - framePtr = F.prev; + result_1845499267 = self_1845499266.has; - return result_1493177708; + return result_1845499267; } -function none_1224736932() { - var result_1224736939 = ({val: {Field0: 0, Field1: null, Field2: null}, has: false}); +function none_1476395172() { + var result_1476395179 = ({val: {Field0: 0, Field1: null, Field2: null}, has: false}); - var F = {procname: "none.none", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/options.nim", line: 0}; - framePtr = F; - framePtr = F.prev; - - return result_1224736939; + return result_1476395179; } -function map_1493178608(self_1493178611, callback_1493178613) { +function map_1845500167(self_1845500170, callback_1845500172) { var Temporary1; - var result_1493178614 = ({val: {Field0: 0, Field1: null, Field2: null}, has: false}); + var result_1845500173 = ({val: {Field0: 0, Field1: null, Field2: null}, has: false}); - var F = {procname: "map.map", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/options.nim", line: 0}; - framePtr = F; - F.line = 253; - F.filename = "options.nim"; - if (isSome_1493177705(self_1493178611)) { - Temporary1 = some_1493178051(callback_1493178613(self_1493178611.val)); + if (isSome_1845499264(self_1845500170)) { + Temporary1 = some_1845499610(callback_1845500172(self_1845500170.val)); } else { - Temporary1 = none_1224736932(); + Temporary1 = none_1476395172(); } - result_1493178614 = nimCopy(result_1493178614, Temporary1, NTI1224736839); - framePtr = F.prev; + result_1845500173 = nimCopy(result_1845500173, Temporary1, NTI1476395079); - return result_1493178614; + return result_1845500173; } -function HEX3Aanonymous_1493178545(side_1493178546, __1493178547, __1493178548, s_1493178549) { +function HEX3Aanonymous_1845500104(side_1845500105, __1845500106, __1845500107, s_1845500108) { -function HEX3Aanonymous_1493178591(x_1493178592) { - var result_1493178593 = {Field0: 0, Field1: null, Field2: null}; +function HEX3Aanonymous_1845500150(x_1845500151) { + var result_1845500152 = {Field0: 0, Field1: null, Field2: null}; - var F = {procname: ":anonymous.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 2217; - F.filename = "powers.nim"; - result_1493178593 = nimCopy(result_1493178593, x_1493178592, NTI1224736792); - F.line = 2218; - result_1493178593.Field0 = addInt(result_1493178593.Field0, 1); - framePtr = F.prev; + result_1845500152 = nimCopy(result_1845500152, x_1845500151, NTI1476395032); + result_1845500152.Field0 = addInt(result_1845500152.Field0, 1); - return result_1493178593; + return result_1845500152; } - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; Label1: { - F.line = 2213; - F.filename = "powers.nim"; - var c_1493178579 = null; - F.line = 52; - F.filename = "iterators.nim"; - var i_1493179204 = 0; + var c_1845500138 = null; + var i_1845500764 = 0; Label2: { - F.line = 53; Label3: while (true) { if (!true) break Label3; - F.line = 2213; - F.filename = "powers.nim"; - c_1493178579 = s_1493178549.Field1[chckIndx(side_1493178546, 0, (s_1493178549.Field1).length - 1)].glass[chckIndx(i_1493179204, 0, (s_1493178549.Field1[chckIndx(side_1493178546, 0, (s_1493178549.Field1).length - 1)].glass).length - 1)]; - if (isSome_1493177705(c_1493178579)) { - F.line = 2215; - c_1493178579 = nimCopy(c_1493178579, map_1493178608(c_1493178579, HEX3Aanonymous_1493178591), NTI1224736839); + c_1845500138 = s_1845500108.Field1[chckIndx(side_1845500105, 0, (s_1845500108.Field1).length - 1)].glass[chckIndx(i_1845500764, 0, (s_1845500108.Field1[chckIndx(side_1845500105, 0, (s_1845500108.Field1).length - 1)].glass).length - 1)]; + if (isSome_1845499264(c_1845500138)) { + c_1845500138 = nimCopy(c_1845500138, map_1845500167(c_1845500138, HEX3Aanonymous_1845500150), NTI1476395079); } - if ((4 <= i_1493179204)) { - F.line = 55; - F.filename = "iterators.nim"; + if ((4 <= i_1845500764)) { break Label2; } - F.line = 13; - i_1493179204 += 1; + i_1845500764 += 1; } }; }; - framePtr = F.prev; } -function HEX3Aanonymous_1493174770(piece_1493174771, board_1493174772, state_1493174773) { +function moneyForTakeSingle_1845496184() { + +function HEX3Aanonymous_1845496187(piece_1845496188, b_1845496189, state_1845496190) { + if ((lastPiecesTaken_1845496186 < piece_1845496188.piecesTaken)) { + addMoney_1879048234(piece_1845496188.color, mulInt(subInt(piece_1845496188.piecesTaken, lastPiecesTaken_1845496186), 3), state_1845496190); + } + + lastPiecesTaken_1845496186 = piece_1845496188.piecesTaken; + + + } + + var result_1845496185 = null; + + var lastPiecesTaken_1845496186 = 0; + result_1845496185 = HEX3Aanonymous_1845496187; + + return result_1845496185; + +} + +function HEX3Aanonymous_1845496221(side_1845496222, __1845496223, b_1845496224, s_1845496225) { + addOnEndTurnTransform_1845493997(0, side_1845496222, b_1845496224, s_1845496225, moneyForTakeSingle_1845496184, false); + addOnEndTurnTransform_1845493997(0, side_1845496222, b_1845496224, s_1845496225, moneyForTakeSingle_1845496184, false); + + +} + +function HEX3Aanonymous_1845496329(piece_1845496330, board_1845496331, state_1845496332) { var Temporary2; var Temporary5; - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 1633; - F.filename = "powers.nim"; - piece_1493174771.onMove(piece_1493174771, tileBelow_1308622993(piece_1493174771.tile), board_1493174772, state_1493174773); + piece_1845496330.onMove(piece_1845496330, tileBelow_1560281233(piece_1845496330.tile), board_1845496331, state_1845496332); Label1: { - F.line = 186; - F.filename = "piece.nim"; - var xHEX60gensym108_1493174778 = null; - F.line = 247; - F.filename = "iterators.nim"; - var colontmp__1493179207 = []; - F.line = 186; - F.filename = "piece.nim"; - colontmp__1493179207 = (Temporary2 = board_1493174772[chckIndx(tileBelow_1308622993(piece_1493174771.tile).Field1, 0, (board_1493174772).length - 1)], Temporary2)[chckIndx(piece_1493174771.tile.Field0, 0, (Temporary2).length - 1)].onEndTurn; - F.line = 249; - F.filename = "iterators.nim"; - var i_1493179208 = 0; - F.line = 250; - var L_1493179209 = (colontmp__1493179207).length; + var xHEX60gensym109_1845496337 = null; + var colontmp__1845500767 = []; + colontmp__1845500767 = (Temporary2 = board_1845496331[chckIndx(tileBelow_1560281233(piece_1845496330.tile).Field1, 0, (board_1845496331).length - 1)], Temporary2)[chckIndx(piece_1845496330.tile.Field0, 0, (Temporary2).length - 1)].onEndTurn; + var i_1845500768 = 0; + var L_1845500769 = (colontmp__1845500767).length; Label3: { - F.line = 251; Label4: while (true) { - if (!(i_1493179208 < L_1493179209)) break Label4; - F.line = 1634; - F.filename = "powers.nim"; - xHEX60gensym108_1493174778 = colontmp__1493179207[chckIndx(i_1493179208, 0, (colontmp__1493179207).length - 1)]; - F.line = 187; - F.filename = "piece.nim"; - xHEX60gensym108_1493174778((Temporary5 = board_1493174772[chckIndx(tileBelow_1308622993(piece_1493174771.tile).Field1, 0, (board_1493174772).length - 1)], Temporary5)[chckIndx(piece_1493174771.tile.Field0, 0, (Temporary5).length - 1)], board_1493174772, state_1493174773); - F.line = 13; - F.filename = "iterators.nim"; - i_1493179208 += 1; - if (!(((colontmp__1493179207).length == L_1493179209))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + if (!(i_1845500768 < L_1845500769)) break Label4; + xHEX60gensym109_1845496337 = colontmp__1845500767[chckIndx(i_1845500768, 0, (colontmp__1845500767).length - 1)]; + xHEX60gensym109_1845496337((Temporary5 = board_1845496331[chckIndx(tileBelow_1560281233(piece_1845496330.tile).Field1, 0, (board_1845496331).length - 1)], Temporary5)[chckIndx(piece_1845496330.tile.Field0, 0, (Temporary5).length - 1)], board_1845496331, state_1845496332); + i_1845500768 += 1; + if (!(((colontmp__1845500767).length == L_1845500769))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - framePtr = F.prev; } -function HEX3Aanonymous_1493174784(piece_1493174785, board_1493174786, s_1493174787) { +function HEX3Aanonymous_1845496343(piece_1845496344, board_1845496345, s_1845496346) { var Temporary1; - var result_1493174788 = false; + var result_1845496347 = false; - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; BeforeRet: { - F.line = 1637; - F.filename = "powers.nim"; - result_1493174788 = (!((piece_1493174785.tile.Field1 == 7)) && isAir_1224737796((Temporary1 = board_1493174786[chckIndx(tileBelow_1308622993(piece_1493174785.tile).Field1, 0, (board_1493174786).length - 1)], Temporary1)[chckIndx(piece_1493174785.tile.Field0, 0, (Temporary1).length - 1)])); + result_1845496347 = (!((piece_1845496344.tile.Field1 == 7)) && isAir_1476396036((Temporary1 = board_1845496345[chckIndx(tileBelow_1560281233(piece_1845496344.tile).Field1, 0, (board_1845496345).length - 1)], Temporary1)[chckIndx(piece_1845496344.tile.Field0, 0, (Temporary1).length - 1)])); break BeforeRet; }; - framePtr = F.prev; - return result_1493174788; + return result_1845496347; } -function HEX3Aanonymous_1493174750(piece_1493174751, board_1493174752, state_1493174753) { +function HEX3Aanonymous_1845496309(piece_1845496310, board_1845496311, state_1845496312) { var Temporary2; var Temporary5; - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 1626; - F.filename = "powers.nim"; - piece_1493174751.onMove(piece_1493174751, tileAbove_1308622990(piece_1493174751.tile), board_1493174752, state_1493174753); + piece_1845496310.onMove(piece_1845496310, tileAbove_1560281230(piece_1845496310.tile), board_1845496311, state_1845496312); Label1: { - F.line = 186; - F.filename = "piece.nim"; - var xHEX60gensym105_1493174758 = null; - F.line = 247; - F.filename = "iterators.nim"; - var colontmp__1493179212 = []; - F.line = 186; - F.filename = "piece.nim"; - colontmp__1493179212 = (Temporary2 = board_1493174752[chckIndx(tileAbove_1308622990(piece_1493174751.tile).Field1, 0, (board_1493174752).length - 1)], Temporary2)[chckIndx(piece_1493174751.tile.Field0, 0, (Temporary2).length - 1)].onEndTurn; - F.line = 249; - F.filename = "iterators.nim"; - var i_1493179213 = 0; - F.line = 250; - var L_1493179214 = (colontmp__1493179212).length; + var xHEX60gensym106_1845496317 = null; + var colontmp__1845500772 = []; + colontmp__1845500772 = (Temporary2 = board_1845496311[chckIndx(tileAbove_1560281230(piece_1845496310.tile).Field1, 0, (board_1845496311).length - 1)], Temporary2)[chckIndx(piece_1845496310.tile.Field0, 0, (Temporary2).length - 1)].onEndTurn; + var i_1845500773 = 0; + var L_1845500774 = (colontmp__1845500772).length; Label3: { - F.line = 251; Label4: while (true) { - if (!(i_1493179213 < L_1493179214)) break Label4; - F.line = 1627; - F.filename = "powers.nim"; - xHEX60gensym105_1493174758 = colontmp__1493179212[chckIndx(i_1493179213, 0, (colontmp__1493179212).length - 1)]; - F.line = 187; - F.filename = "piece.nim"; - xHEX60gensym105_1493174758((Temporary5 = board_1493174752[chckIndx(tileAbove_1308622990(piece_1493174751.tile).Field1, 0, (board_1493174752).length - 1)], Temporary5)[chckIndx(piece_1493174751.tile.Field0, 0, (Temporary5).length - 1)], board_1493174752, state_1493174753); - F.line = 13; - F.filename = "iterators.nim"; - i_1493179213 += 1; - if (!(((colontmp__1493179212).length == L_1493179214))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + if (!(i_1845500773 < L_1845500774)) break Label4; + xHEX60gensym106_1845496317 = colontmp__1845500772[chckIndx(i_1845500773, 0, (colontmp__1845500772).length - 1)]; + xHEX60gensym106_1845496317((Temporary5 = board_1845496311[chckIndx(tileAbove_1560281230(piece_1845496310.tile).Field1, 0, (board_1845496311).length - 1)], Temporary5)[chckIndx(piece_1845496310.tile.Field0, 0, (Temporary5).length - 1)], board_1845496311, state_1845496312); + i_1845500773 += 1; + if (!(((colontmp__1845500772).length == L_1845500774))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - framePtr = F.prev; } -function HEX3Aanonymous_1493174764(piece_1493174765, board_1493174766, s_1493174767) { +function HEX3Aanonymous_1845496323(piece_1845496324, board_1845496325, s_1845496326) { var Temporary1; - var result_1493174768 = false; + var result_1845496327 = false; - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; BeforeRet: { - F.line = 1630; - F.filename = "powers.nim"; - result_1493174768 = (!((piece_1493174765.tile.Field1 == 0)) && isAir_1224737796((Temporary1 = board_1493174766[chckIndx(tileAbove_1308622990(piece_1493174765.tile).Field1, 0, (board_1493174766).length - 1)], Temporary1)[chckIndx(piece_1493174765.tile.Field0, 0, (Temporary1).length - 1)])); + result_1845496327 = (!((piece_1845496324.tile.Field1 == 0)) && isAir_1476396036((Temporary1 = board_1845496325[chckIndx(tileAbove_1560281230(piece_1845496324.tile).Field1, 0, (board_1845496325).length - 1)], Temporary1)[chckIndx(piece_1845496324.tile.Field0, 0, (Temporary1).length - 1)])); break BeforeRet; }; - framePtr = F.prev; - return result_1493174768; + return result_1845496327; } -function HEX3Aanonymous_1493174790(side_1493174791, __1493174792, b_1493174793, s_1493174794) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - if ((side_1493174791 == 0)) { - F.line = 1651; - F.filename = "powers.nim"; - s_1493174794.Field1[chckIndx(side_1493174791, 0, (s_1493174794.Field1).length - 1)].buys.push({Field0: [77,111,118,101,32,85,112], Field1: alwaysCost_1526726885(7), Field2: HEX3Aanonymous_1493174770, Field3: HEX3Aanonymous_1493174784});; +function HEX3Aanonymous_1845496349(side_1845496350, __1845496351, b_1845496352, s_1845496353) { + if ((side_1845496350 == 0)) { + s_1845496353.Field1[chckIndx(side_1845496350, 0, (s_1845496353.Field1).length - 1)].buys.push({Field0: [77,111,118,101,32,85,112], Field1: alwaysCost_1879048421(7), Field2: HEX3Aanonymous_1845496329, Field3: HEX3Aanonymous_1845496343});; } else { - F.line = 1653; - s_1493174794.Field1[chckIndx(side_1493174791, 0, (s_1493174794.Field1).length - 1)].buys.push({Field0: [77,111,118,101,32,85,112], Field1: alwaysCost_1526726885(7), Field2: HEX3Aanonymous_1493174750, Field3: HEX3Aanonymous_1493174764});; + s_1845496353.Field1[chckIndx(side_1845496350, 0, (s_1845496353.Field1).length - 1)].buys.push({Field0: [77,111,118,101,32,85,112], Field1: alwaysCost_1879048421(7), Field2: HEX3Aanonymous_1845496309, Field3: HEX3Aanonymous_1845496323});; } - framePtr = F.prev; } -function HEX3Aanonymous_1493174833(side_1493174834, __1493174835, b_1493174836, s_1493174837) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - if ((side_1493174834 == 0)) { - F.line = 1677; - F.filename = "powers.nim"; - s_1493174837.Field1[chckIndx(side_1493174834, 0, (s_1493174837.Field1).length - 1)].buys.push({Field0: [77,111,118,101,32,66,97,99,107], Field1: alwaysCost_1526726885(7), Field2: HEX3Aanonymous_1493174750, Field3: HEX3Aanonymous_1493174764});; +function HEX3Aanonymous_1845496392(side_1845496393, __1845496394, b_1845496395, s_1845496396) { + if ((side_1845496393 == 0)) { + s_1845496396.Field1[chckIndx(side_1845496393, 0, (s_1845496396.Field1).length - 1)].buys.push({Field0: [77,111,118,101,32,66,97,99,107], Field1: alwaysCost_1879048421(7), Field2: HEX3Aanonymous_1845496309, Field3: HEX3Aanonymous_1845496323});; } else { - F.line = 1679; - s_1493174837.Field1[chckIndx(side_1493174834, 0, (s_1493174837.Field1).length - 1)].buys.push({Field0: [77,111,118,101,32,66,97,99,107], Field1: alwaysCost_1526726885(7), Field2: HEX3Aanonymous_1493174770, Field3: HEX3Aanonymous_1493174784});; + s_1845496396.Field1[chckIndx(side_1845496393, 0, (s_1845496396.Field1).length - 1)].buys.push({Field0: [77,111,118,101,32,66,97,99,107], Field1: alwaysCost_1879048421(7), Field2: HEX3Aanonymous_1845496329, Field3: HEX3Aanonymous_1845496343});; } - framePtr = F.prev; } -function HEX3Aanonymous_1493174860(side_1493174861, __1493174862, b_1493174863, s_1493174864) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 1695; - F.filename = "powers.nim"; - addMoney_1526726698(side_1493174861, 10, s_1493174864); - framePtr = F.prev; +function HEX3Aanonymous_1845496419(side_1845496420, __1845496421, b_1845496422, s_1845496423) { + addMoney_1879048234(side_1845496420, 10, s_1845496423); } -function buyMoveUpgrade_1526726781(move_1526726782) { +function buyMoveUpgrade_1879048317(move_1879048318) { -function HEX3Aanonymous_1526726784(piece_1526726785, board_1526726786, __1526726787) { - var F = {procname: "buyMoveUpgrade.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/capitalism.nim", line: 0}; - framePtr = F; - F.line = 34; - F.filename = "capitalism.nim"; - piece_1526726785.moves.push(move_1526726782);; - framePtr = F.prev; +function HEX3Aanonymous_1879048320(piece_1879048321, board_1879048322, __1879048323) { + piece_1879048321.moves.push(move_1879048318);; } - var result_1526726783 = null; + var result_1879048319 = null; - var F = {procname: "capitalism.buyMoveUpgrade", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/capitalism.nim", line: 0}; - framePtr = F; - F.line = 33; - F.filename = "capitalism.nim"; - result_1526726783 = HEX3Aanonymous_1526726784; - framePtr = F.prev; + result_1879048319 = HEX3Aanonymous_1879048320; - return result_1526726783; + return result_1879048319; } -function find_1526726820(a_1526726823, item_1526726824) { - var result_1526726825 = 0; +function find_1879048356(a_1879048359, item_1879048360) { + var result_1879048361 = 0; - var F = {procname: "find.find", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; BeforeRet: { - F.line = 1671; - F.filename = "system.nim"; - result_1526726825 = 0; + result_1879048361 = 0; Label1: { - F.line = 1672; - var i_1526726839 = null; - F.line = 18; - F.filename = "iterators.nim"; - var i_1493179218 = 0; + var i_1879048375 = null; + var i_1845500778 = 0; Label2: { - F.line = 19; Label3: while (true) { - if (!(i_1493179218 < (a_1526726823).length)) break Label3; - F.line = 1672; - F.filename = "system.nim"; - i_1526726839 = a_1526726823[chckIndx(i_1493179218, 0, (a_1526726823).length - 1)]; - if ((i_1526726839 == item_1526726824)) { - F.line = 1673; + if (!(i_1845500778 < (a_1879048359).length)) break Label3; + i_1879048375 = a_1879048359[chckIndx(i_1845500778, 0, (a_1879048359).length - 1)]; + if ((i_1879048375 == item_1879048360)) { break BeforeRet; } - F.line = 1674; - result_1526726825 = addInt(result_1526726825, 1); - F.line = 13; - F.filename = "iterators.nim"; - i_1493179218 += 1; + result_1879048361 = addInt(result_1879048361, 1); + i_1845500778 += 1; } }; }; - F.line = 1675; - F.filename = "system.nim"; - result_1526726825 = (-1); + result_1879048361 = (-1); }; - framePtr = F.prev; - return result_1526726825; + return result_1879048361; } -function contains_1526726815(a_1526726817, item_1526726818) { - var result_1526726819 = false; +function contains_1879048351(a_1879048353, item_1879048354) { + var result_1879048355 = false; - var F = {procname: "contains.contains", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; BeforeRet: { - F.line = 1689; - F.filename = "system.nim"; - result_1526726819 = (0 <= find_1526726820(a_1526726817, item_1526726818)); + result_1879048355 = (0 <= find_1879048356(a_1879048353, item_1879048354)); break BeforeRet; }; - framePtr = F.prev; - return result_1526726819; + return result_1879048355; } -function buyMoveUpgradeCondition_1526726807(move_1526726808) { +function buyMoveUpgradeCondition_1879048343(move_1879048344) { -function HEX3Aanonymous_1526726810(piece_1526726811, board_1526726812, s_1526726813) { - var result_1526726814 = false; +function HEX3Aanonymous_1879048346(piece_1879048347, board_1879048348, s_1879048349) { + var result_1879048350 = false; - var F = {procname: "buyMoveUpgradeCondition.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/capitalism.nim", line: 0}; - framePtr = F; BeforeRet: { - F.line = 38; - F.filename = "capitalism.nim"; - result_1526726814 = !(contains_1526726815(piece_1526726811.moves, move_1526726808)); + result_1879048350 = !(contains_1879048351(piece_1879048347.moves, move_1879048344)); break BeforeRet; }; - framePtr = F.prev; - return result_1526726814; + return result_1879048350; } - var result_1526726809 = null; + var result_1879048345 = null; - var F = {procname: "capitalism.buyMoveUpgradeCondition", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/capitalism.nim", line: 0}; - framePtr = F; - F.line = 37; - F.filename = "capitalism.nim"; - result_1526726809 = HEX3Aanonymous_1526726810; - framePtr = F.prev; + result_1879048345 = HEX3Aanonymous_1879048346; - return result_1526726809; + return result_1879048345; } -function exceptCost_1526726908(normalCost_1526726909, exceptPiece_1526726910, exceptCost_1526726911) { +function exceptCost_1879048444(normalCost_1879048445, exceptPiece_1879048446, exceptCost_1879048447) { -function HEX3Aanonymous_1526726913(piece_1526726914, b_1526726915, s_1526726916) { +function HEX3Aanonymous_1879048449(piece_1879048450, b_1879048451, s_1879048452) { var Temporary1; - var result_1526726917 = 0; + var result_1879048453 = 0; - var F = {procname: "exceptCost.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/capitalism.nim", line: 0}; - framePtr = F; BeforeRet: { - F.line = 49; - F.filename = "capitalism.nim"; - if (!((piece_1526726914.item == exceptPiece_1526726910))) { - Temporary1 = normalCost_1526726909; + if (!((piece_1879048450.item == exceptPiece_1879048446))) { + Temporary1 = normalCost_1879048445; } else { - Temporary1 = exceptCost_1526726911; + Temporary1 = exceptCost_1879048447; } - result_1526726917 = Temporary1; + result_1879048453 = Temporary1; break BeforeRet; }; - framePtr = F.prev; - return result_1526726917; + return result_1879048453; } - var result_1526726912 = null; + var result_1879048448 = null; - var F = {procname: "capitalism.exceptCost", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/capitalism.nim", line: 0}; - framePtr = F; - F.line = 48; - F.filename = "capitalism.nim"; - result_1526726912 = HEX3Aanonymous_1526726913; - framePtr = F.prev; + result_1879048448 = HEX3Aanonymous_1879048449; - return result_1526726912; + return result_1879048448; } -function HEX3Aanonymous_1493174867(side_1493174868, __1493174869, b_1493174870, s_1493174871) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 1712; - F.filename = "powers.nim"; - var action_1493174872 = buyMoveUpgrade_1526726781(HEX3Aanonymous_1291846082); - F.line = 1713; - var condition_1493174873 = buyMoveUpgradeCondition_1526726807(HEX3Aanonymous_1291846082); - F.line = 1714; - s_1493174871.Field1[chckIndx(side_1493174868, 0, (s_1493174871.Field1).length - 1)].buys.push({Field0: [85,112,103,114,97,100,101], Field1: exceptCost_1526726908(8, 0, 38), Field2: action_1493174872, Field3: condition_1493174873});; - framePtr = F.prev; +function HEX3Aanonymous_1845496426(side_1845496427, __1845496428, b_1845496429, s_1845496430) { + var action_1845496431 = buyMoveUpgrade_1879048317(HEX3Aanonymous_1543504322); + var condition_1845496432 = buyMoveUpgradeCondition_1879048343(HEX3Aanonymous_1543504322); + s_1845496430.Field1[chckIndx(side_1845496427, 0, (s_1845496430.Field1).length - 1)].buys.push({Field0: [85,112,103,114,97,100,101], Field1: exceptCost_1879048444(8, 0, 38), Field2: action_1845496431, Field3: condition_1845496432});; } -function HEX3Aanonymous_1493174884(side_1493174885, __1493174886, b_1493174887, s_1493174888) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 1731; - F.filename = "powers.nim"; - var action_1493174889 = buyMoveUpgrade_1526726781(HEX3Aanonymous_1509949640); - F.line = 1732; - var condition_1493174890 = buyMoveUpgradeCondition_1526726807(HEX3Aanonymous_1509949640); - F.line = 1733; - s_1493174888.Field1[chckIndx(side_1493174885, 0, (s_1493174888.Field1).length - 1)].buys.push({Field0: [85,112,103,114,97,100,101], Field1: exceptCost_1526726908(8, 0, 38), Field2: action_1493174889, Field3: condition_1493174890});; - framePtr = F.prev; +function HEX3Aanonymous_1845496443(side_1845496444, __1845496445, b_1845496446, s_1845496447) { + var action_1845496448 = buyMoveUpgrade_1879048317(HEX3Aanonymous_1862271176); + var condition_1845496449 = buyMoveUpgradeCondition_1879048343(HEX3Aanonymous_1862271176); + s_1845496447.Field1[chckIndx(side_1845496444, 0, (s_1845496447.Field1).length - 1)].buys.push({Field0: [85,112,103,114,97,100,101], Field1: exceptCost_1879048444(8, 0, 38), Field2: action_1845496448, Field3: condition_1845496449});; } -function HEX3Aanonymous_1493177828(side_1493177829, __1493177830, b_1493177831, s_1493177832) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 1815; - F.filename = "powers.nim"; - addOnEndTurnTransform_1493172461(0, side_1493177829, b_1493177831, s_1493177832, moneyForTake_1493174646, false); - framePtr = F.prev; +function HEX3Aanonymous_1845499387(side_1845499388, __1845499389, b_1845499390, s_1845499391) { + addOnEndTurnTransform_1845493997(0, side_1845499388, b_1845499390, s_1845499391, moneyForTakeAll_1845496166, false); } -function moneyForMove_1493177835() { +function moneyForMove_1845499394() { -function HEX3Aanonymous_1493177838(piece_1493177839, b_1493177840, state_1493177841) { - var F = {procname: "moneyForMove.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 1826; - F.filename = "powers.nim"; - var allTimesMoved_1493177842 = 0; +function HEX3Aanonymous_1845499397(piece_1845499398, b_1845499399, state_1845499400) { + var allTimesMoved_1845499401 = 0; Label1: { - F.line = 1827; - var i_1493177843 = 0; - F.line = 1827; - var j_1493177844 = 0; + var i_1845499402 = 0; + var j_1845499403 = 0; Label2: { - F.line = 124; - F.filename = "piece.nim"; - var i_1493179222 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_1493179223 = 0; + var i_1845500782 = 0; + var i_1845500783 = 0; Label3: { - F.line = 129; Label4: while (true) { - if (!(i_1493179223 < 8)) break Label4; - F.line = 124; - F.filename = "piece.nim"; - i_1493179222 = i_1493179223; + if (!(i_1845500783 < 8)) break Label4; + i_1845500782 = i_1845500783; Label5: { - F.line = 125; - var j_1493179226 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_1493179227 = 0; + var j_1845500786 = 0; + var i_1845500787 = 0; Label6: { - F.line = 129; Label7: while (true) { - if (!(i_1493179227 < 8)) break Label7; - F.line = 125; - F.filename = "piece.nim"; - j_1493179226 = i_1493179227; - F.line = 1827; - F.filename = "powers.nim"; - i_1493177843 = i_1493179222; - F.line = 1827; - j_1493177844 = j_1493179226; - if (sameColor_1224737804(b_1493177840[chckIndx(i_1493177843, 0, (b_1493177840).length - 1)][chckIndx(j_1493177844, 0, (b_1493177840[chckIndx(i_1493177843, 0, (b_1493177840).length - 1)]).length - 1)], piece_1493177839)) { - F.line = 1829; - allTimesMoved_1493177842 = addInt(allTimesMoved_1493177842, b_1493177840[chckIndx(i_1493177843, 0, (b_1493177840).length - 1)][chckIndx(j_1493177844, 0, (b_1493177840[chckIndx(i_1493177843, 0, (b_1493177840).length - 1)]).length - 1)].timesMoved); + if (!(i_1845500787 < 8)) break Label7; + j_1845500786 = i_1845500787; + i_1845499402 = i_1845500782; + j_1845499403 = j_1845500786; + if (sameColor_1476396044(b_1845499399[chckIndx(i_1845499402, 0, (b_1845499399).length - 1)][chckIndx(j_1845499403, 0, (b_1845499399[chckIndx(i_1845499402, 0, (b_1845499399).length - 1)]).length - 1)], piece_1845499398)) { + allTimesMoved_1845499401 = addInt(allTimesMoved_1845499401, b_1845499399[chckIndx(i_1845499402, 0, (b_1845499399).length - 1)][chckIndx(j_1845499403, 0, (b_1845499399[chckIndx(i_1845499402, 0, (b_1845499399).length - 1)]).length - 1)].timesMoved); } - F.line = 131; - F.filename = "iterators_1.nim"; - i_1493179227 = addInt(i_1493179227, 1); + i_1845500787 = addInt(i_1845500787, 1); } }; }; - F.line = 131; - i_1493179223 = addInt(i_1493179223, 1); + i_1845500783 = addInt(i_1845500783, 1); } }; }; }; - if ((lastTimesMoved_1493177837 < allTimesMoved_1493177842)) { - F.line = 1832; - F.filename = "powers.nim"; - addMoney_1526726698(piece_1493177839.color, mulInt(subInt(allTimesMoved_1493177842, lastTimesMoved_1493177837), 1), state_1493177841); + if ((lastTimesMoved_1845499396 < allTimesMoved_1845499401)) { + addMoney_1879048234(piece_1845499398.color, mulInt(subInt(allTimesMoved_1845499401, lastTimesMoved_1845499396), 1), state_1845499400); } - F.line = 1833; - lastTimesMoved_1493177837 = allTimesMoved_1493177842; - framePtr = F.prev; + lastTimesMoved_1845499396 = allTimesMoved_1845499401; } - var result_1493177836 = null; + var result_1845499395 = null; - var F = {procname: "powers.moneyForMove", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 1821; - F.filename = "powers.nim"; - var lastTimesMoved_1493177837 = 0; - F.line = 1825; - result_1493177836 = HEX3Aanonymous_1493177838; - framePtr = F.prev; + var lastTimesMoved_1845499396 = 0; + result_1845499395 = HEX3Aanonymous_1845499397; - return result_1493177836; + return result_1845499395; } -function HEX3Aanonymous_1493177849(side_1493177850, __1493177851, b_1493177852, s_1493177853) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 1847; - F.filename = "powers.nim"; - addOnEndTurnTransform_1493172461(0, side_1493177850, b_1493177852, s_1493177853, moneyForMove_1493177835, false); - framePtr = F.prev; +function HEX3Aanonymous_1845499408(side_1845499409, __1845499410, b_1845499411, s_1845499412) { + addOnEndTurnTransform_1845493997(0, side_1845499409, b_1845499411, s_1845499412, moneyForMove_1845499394, false); } -function createPieceMarket_1493177776(cost_1493177777, rate_1493177778) { +function createPieceMarket_1845499335(cost_1845499336, rate_1845499337) { -function HEX3Aanonymous_1493177780(piece_1493177781, b_1493177782, s_1493177783) { - var result_1493177784 = 0; +function HEX3Aanonymous_1845499339(piece_1845499340, b_1845499341, s_1845499342) { + var result_1845499343 = 0; - var F = {procname: "createPieceMarket.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 1754; - F.filename = "powers.nim"; - result_1493177784 = addInt(cost_1493177777, mulInt(rate_1493177778, s_1493177783.Field1[chckIndx(piece_1493177781.color, 0, (s_1493177783.Field1).length - 1)].piecesSoldThisTurn)); - framePtr = F.prev; + result_1845499343 = addInt(cost_1845499336, mulInt(rate_1845499337, s_1845499342.Field1[chckIndx(piece_1845499340.color, 0, (s_1845499342.Field1).length - 1)].piecesSoldThisTurn)); - return result_1493177784; + return result_1845499343; } - var result_1493177779 = null; + var result_1845499338 = null; - var F = {procname: "powers.createPieceMarket", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 1753; - F.filename = "powers.nim"; - result_1493177779 = HEX3Aanonymous_1493177780; - framePtr = F.prev; + result_1845499338 = HEX3Aanonymous_1845499339; - return result_1493177779; + return result_1845499338; } -function addQuoted_1493175983(s_1493175985, s_1493175985_Idx, x_1493175986) { - var F = {procname: "addQuoted.addQuoted", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; - F.line = 2539; - F.filename = "system.nim"; - s_1493175985[s_1493175985_Idx].push.apply(s_1493175985[s_1493175985_Idx], nimBoolToStr(x_1493175986));; - framePtr = F.prev; +function addQuoted_1845497542(s_1845497544, s_1845497544_Idx, x_1845497545) { + s_1845497544[s_1845497544_Idx].push.apply(s_1845497544[s_1845497544_Idx], nimBoolToStr(x_1845497545));; } -function addQuoted_1493176578(s_1493176580, s_1493176580_Idx, x_1493176581) { - var F = {procname: "addQuoted.addQuoted", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; - F.line = 2539; - F.filename = "system.nim"; - s_1493176580[s_1493176580_Idx].push.apply(s_1493176580[s_1493176580_Idx], reprEnum(x_1493176581, NTI1224736776));; - framePtr = F.prev; +function addQuoted_1845498137(s_1845498139, s_1845498139_Idx, x_1845498140) { + s_1845498139[s_1845498139_Idx].push.apply(s_1845498139[s_1845498139_Idx], reprEnum(x_1845498140, NTI1476395016));; } -function addQuoted_1493176598(s_1493176600, s_1493176600_Idx, x_1493176601) { - var F = {procname: "addQuoted.addQuoted", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; - F.line = 2539; - F.filename = "system.nim"; - s_1493176600[s_1493176600_Idx].push.apply(s_1493176600[s_1493176600_Idx], reprEnum(x_1493176601, NTI1224736777));; - framePtr = F.prev; +function addQuoted_1845498157(s_1845498159, s_1845498159_Idx, x_1845498160) { + s_1845498159[s_1845498159_Idx].push.apply(s_1845498159[s_1845498159_Idx], reprEnum(x_1845498160, NTI1476395017));; } -function addQuoted_1493176654(s_1493176656, s_1493176656_Idx, x_1493176657) { - var F = {procname: "addQuoted.addQuoted", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; - F.line = 2539; - F.filename = "system.nim"; - s_1493176656[s_1493176656_Idx].push.apply(s_1493176656[s_1493176656_Idx], HEX24_1224737476(x_1493176657));; - framePtr = F.prev; +function addQuoted_1845498213(s_1845498215, s_1845498215_Idx, x_1845498216) { + s_1845498215[s_1845498215_Idx].push.apply(s_1845498215[s_1845498215_Idx], HEX24_1476395716(x_1845498216));; } function addEscapedChar_33558024(s_33558025, s_33558025_Idx, c_33558026) { - var F = {procname: "system.addEscapedChar", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; - F.line = 2472; - F.filename = "system.nim"; switch (c_33558026) { case 7: - F.line = 2473; s_33558025[s_33558025_Idx].push.apply(s_33558025[s_33558025_Idx], [92,97]);; break; case 8: - F.line = 2474; s_33558025[s_33558025_Idx].push.apply(s_33558025[s_33558025_Idx], [92,98]);; break; case 9: - F.line = 2475; s_33558025[s_33558025_Idx].push.apply(s_33558025[s_33558025_Idx], [92,116]);; break; case 10: - F.line = 2476; s_33558025[s_33558025_Idx].push.apply(s_33558025[s_33558025_Idx], [92,110]);; break; case 11: - F.line = 2477; s_33558025[s_33558025_Idx].push.apply(s_33558025[s_33558025_Idx], [92,118]);; break; case 12: - F.line = 2478; s_33558025[s_33558025_Idx].push.apply(s_33558025[s_33558025_Idx], [92,102]);; break; case 13: - F.line = 2479; s_33558025[s_33558025_Idx].push.apply(s_33558025[s_33558025_Idx], [92,114]);; break; case 27: - F.line = 2480; s_33558025[s_33558025_Idx].push.apply(s_33558025[s_33558025_Idx], [92,101]);; break; case 92: - F.line = 2481; s_33558025[s_33558025_Idx].push.apply(s_33558025[s_33558025_Idx], [92,92]);; break; case 39: - F.line = 2482; s_33558025[s_33558025_Idx].push.apply(s_33558025[s_33558025_Idx], [92,39]);; break; case 34: - F.line = 2483; s_33558025[s_33558025_Idx].push.apply(s_33558025[s_33558025_Idx], [92,34]);; break; case 32: @@ -11446,1310 +7777,804 @@ function addEscapedChar_33558024(s_33558025, s_33558025_Idx, c_33558026) { case 124: case 125: case 126: - F.line = 2484; addChar(s_33558025[s_33558025_Idx], c_33558026);; break; default: - F.line = 2486; s_33558025[s_33558025_Idx].push.apply(s_33558025[s_33558025_Idx], [92,120]);; - F.line = 2488; var n_33558036 = c_33558026; - F.line = 2489; addChar(s_33558025[s_33558025_Idx], [48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70][chckIndx(((n_33558036 & 240) >> 4), 0, ([48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70]).length - 1)]);; - F.line = 2490; addChar(s_33558025[s_33558025_Idx], [48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70][chckIndx((n_33558036 & 15), 0, ([48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70]).length - 1)]);; break; } - framePtr = F.prev; - - -} - -function addQuoted_1493176842(s_1493176844, s_1493176844_Idx, x_1493176845) { - var F = {procname: "addQuoted.addQuoted", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; - F.line = 2518; - F.filename = "system.nim"; - s_1493176844[s_1493176844_Idx].push.apply(s_1493176844[s_1493176844_Idx], [34]);; - Label1: { - F.line = 2519; - var c_1493176846 = 0; - F.line = 267; - F.filename = "iterators.nim"; - var i_1493179234 = 0; - F.line = 268; - var L_1493179235 = (x_1493176845).length; - Label2: { - F.line = 269; - Label3: while (true) { - if (!(i_1493179234 < L_1493179235)) break Label3; - F.line = 2519; - F.filename = "system.nim"; - c_1493176846 = x_1493176845[chckIndx(i_1493179234, 0, (x_1493176845).length - 1)]; - if ((c_1493176846 <= 127)) { - F.line = 2523; - addEscapedChar_33558024(s_1493176844, s_1493176844_Idx, c_1493176846); - } - else { - F.line = 2525; - addChar(s_1493176844[s_1493176844_Idx], c_1493176846);; - } - - F.line = 13; - F.filename = "iterators.nim"; - i_1493179234 += 1; - if (!(((x_1493176845).length == L_1493179235))) { - F.line = 272; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(272, 11) `len(a) == L` the length of the string changed while iterating over it")); - } - - } - }; - }; - F.line = 2526; - F.filename = "system.nim"; - s_1493176844[s_1493176844_Idx].push.apply(s_1493176844[s_1493176844_Idx], [34]);; - framePtr = F.prev; - - -} - -function addQuoted_1493177106(s_1493177108, s_1493177108_Idx, x_1493177109) { - var F = {procname: "addQuoted.addQuoted", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; - F.line = 2539; - F.filename = "system.nim"; - s_1493177108[s_1493177108_Idx].push.apply(s_1493177108[s_1493177108_Idx], reprEnum(x_1493177109, NTI1224736789));; - framePtr = F.prev; - - -} - -function HEX24_1493177050(x_1493177052) { - var result_1493177053 = [[]]; - - var F = {procname: "$.$", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/dollars.nim", line: 0}; - framePtr = F; - F.line = 19; - F.filename = "miscdollars.nim"; - result_1493177053[0] = nimCopy(null, [40], NTI33554449); - F.line = 21; - var countHEX60gensym347_1493177064 = 0; - if ((0 < countHEX60gensym347_1493177064)) { - F.line = 23; - result_1493177053[0].push.apply(result_1493177053[0], [44,32]);; + + +} + +function addQuoted_1845498401(s_1845498403, s_1845498403_Idx, x_1845498404) { + s_1845498403[s_1845498403_Idx].push.apply(s_1845498403[s_1845498403_Idx], [34]);; + Label1: { + var c_1845498405 = 0; + var i_1845500794 = 0; + var L_1845500795 = (x_1845498404).length; + Label2: { + Label3: while (true) { + if (!(i_1845500794 < L_1845500795)) break Label3; + c_1845498405 = x_1845498404[chckIndx(i_1845500794, 0, (x_1845498404).length - 1)]; + if ((c_1845498405 <= 127)) { + addEscapedChar_33558024(s_1845498403, s_1845498403_Idx, c_1845498405); + } + else { + addChar(s_1845498403[s_1845498403_Idx], c_1845498405);; + } + + i_1845500794 += 1; + if (!(((x_1845498404).length == L_1845500795))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(272, 11) `len(a) == L` the length of the string changed while iterating over it")); + } + + } + }; + }; + s_1845498403[s_1845498403_Idx].push.apply(s_1845498403[s_1845498403_Idx], [34]);; + + +} + +function addQuoted_1845498665(s_1845498667, s_1845498667_Idx, x_1845498668) { + s_1845498667[s_1845498667_Idx].push.apply(s_1845498667[s_1845498667_Idx], reprEnum(x_1845498668, NTI1476395029));; + + +} + +function HEX24_1845498609(x_1845498611) { + var result_1845498612 = [[]]; + + result_1845498612[0] = nimCopy(null, [40], NTI33554449); + var countHEX60gensym348_1845498623 = 0; + if ((0 < countHEX60gensym348_1845498623)) { + result_1845498612[0].push.apply(result_1845498612[0], [44,32]);; + } + + result_1845498612[0].push.apply(result_1845498612[0], [111,110]);; + result_1845498612[0].push.apply(result_1845498612[0], [58,32]);; + countHEX60gensym348_1845498623 += 1; + addQuoted_1845498213(result_1845498612, 0, x_1845498611["Field0"]); + if ((0 < countHEX60gensym348_1845498623)) { + result_1845498612[0].push.apply(result_1845498612[0], [44,32]);; + } + + result_1845498612[0].push.apply(result_1845498612[0], [103,114,111,117,112]);; + result_1845498612[0].push.apply(result_1845498612[0], [58,32]);; + countHEX60gensym348_1845498623 += 1; + addQuoted_889193861(result_1845498612, 0, x_1845498611["Field1"]); + if ((0 < countHEX60gensym348_1845498623)) { + result_1845498612[0].push.apply(result_1845498612[0], [44,32]);; + } + + result_1845498612[0].push.apply(result_1845498612[0], [103,108,97,115,115]);; + result_1845498612[0].push.apply(result_1845498612[0], [58,32]);; + countHEX60gensym348_1845498623 += 1; + addQuoted_1845498665(result_1845498612, 0, x_1845498611["Field2"]); + result_1845498612[0].push.apply(result_1845498612[0], [41]);; + + return result_1845498612[0]; + +} + +function addQuoted_1845498603(s_1845498605, s_1845498605_Idx, x_1845498606) { + s_1845498605[s_1845498605_Idx].push.apply(s_1845498605[s_1845498605_Idx], HEX24_1845498609(x_1845498606));; + + +} + +function collectionToString_1845498569(x_1845498571, prefix_1845498572, separator_1845498573, suffix_1845498574) { + var result_1845498575 = [[]]; + + result_1845498575[0] = nimCopy(null, prefix_1845498572, NTI33554449); + var firstElement_1845498576 = true; + Label1: { + var value_1845498599 = {Field0: {Field0: 0, Field1: 0}, Field1: 0, Field2: 0}; + var i_1845500798 = 0; + var L_1845500799 = (x_1845498571).length; + Label2: { + Label3: while (true) { + if (!(i_1845500798 < L_1845500799)) break Label3; + value_1845498599 = x_1845498571[i_1845500798]; + if (firstElement_1845498576) { + firstElement_1845498576 = false; + } + else { + result_1845498575[0].push.apply(result_1845498575[0], separator_1845498573);; + } + + addQuoted_1845498603(result_1845498575, 0, value_1845498599); + i_1845500798 += 1; + if (!(((x_1845498571).length == L_1845500799))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + } + + } + }; + }; + result_1845498575[0].push.apply(result_1845498575[0], suffix_1845498574);; + + return result_1845498575[0]; + +} + +function HEX24_1845498565(x_1845498567) { + var result_1845498568 = []; + + result_1845498568 = nimCopy(null, collectionToString_1845498569(x_1845498567, [64,91], [44,32], [93]), NTI33554449); + + return result_1845498568; + +} + +function addQuoted_1845498559(s_1845498561, s_1845498561_Idx, x_1845498562) { + s_1845498561[s_1845498561_Idx].push.apply(s_1845498561[s_1845498561_Idx], HEX24_1845498565(x_1845498562));; + + +} + +function HEX24_1845498108(x_1845498110) { + var result_1845498111 = [[]]; + + result_1845498111[0] = nimCopy(null, [40], NTI33554449); + var countHEX60gensym290_1845498122 = 0; + if ((0 < countHEX60gensym290_1845498122)) { + result_1845498111[0].push.apply(result_1845498111[0], [44,32]);; + } + + result_1845498111[0].push.apply(result_1845498111[0], [105,116,101,109]);; + result_1845498111[0].push.apply(result_1845498111[0], [58,32]);; + countHEX60gensym290_1845498122 += 1; + addQuoted_1845498137(result_1845498111, 0, x_1845498110.item); + if ((0 < countHEX60gensym290_1845498122)) { + result_1845498111[0].push.apply(result_1845498111[0], [44,32]);; + } + + result_1845498111[0].push.apply(result_1845498111[0], [99,111,108,111,114]);; + result_1845498111[0].push.apply(result_1845498111[0], [58,32]);; + countHEX60gensym290_1845498122 += 1; + addQuoted_1845498157(result_1845498111, 0, x_1845498110.color); + if ((0 < countHEX60gensym290_1845498122)) { + result_1845498111[0].push.apply(result_1845498111[0], [44,32]);; + } + + result_1845498111[0].push.apply(result_1845498111[0], [105,110,100,101,120]);; + result_1845498111[0].push.apply(result_1845498111[0], [58,32]);; + countHEX60gensym290_1845498122 += 1; + addQuoted_889193861(result_1845498111, 0, x_1845498110.index); + if ((0 < countHEX60gensym290_1845498122)) { + result_1845498111[0].push.apply(result_1845498111[0], [44,32]);; + } + + result_1845498111[0].push.apply(result_1845498111[0], [116,105,109,101,115,77,111,118,101,100]);; + result_1845498111[0].push.apply(result_1845498111[0], [58,32]);; + countHEX60gensym290_1845498122 += 1; + addQuoted_889193861(result_1845498111, 0, x_1845498110.timesMoved); + if ((0 < countHEX60gensym290_1845498122)) { + result_1845498111[0].push.apply(result_1845498111[0], [44,32]);; + } + + result_1845498111[0].push.apply(result_1845498111[0], [112,105,101,99,101,115,84,97,107,101,110]);; + result_1845498111[0].push.apply(result_1845498111[0], [58,32]);; + countHEX60gensym290_1845498122 += 1; + addQuoted_889193861(result_1845498111, 0, x_1845498110.piecesTaken); + if ((0 < countHEX60gensym290_1845498122)) { + result_1845498111[0].push.apply(result_1845498111[0], [44,32]);; + } + + result_1845498111[0].push.apply(result_1845498111[0], [116,105,108,101]);; + result_1845498111[0].push.apply(result_1845498111[0], [58,32]);; + countHEX60gensym290_1845498122 += 1; + addQuoted_1845498213(result_1845498111, 0, x_1845498110.tile); + if ((0 < countHEX60gensym290_1845498122)) { + result_1845498111[0].push.apply(result_1845498111[0], [44,32]);; + } + + result_1845498111[0].push.apply(result_1845498111[0], [109,111,118,101,115]);; + result_1845498111[0].push.apply(result_1845498111[0], [58,32]);; + countHEX60gensym290_1845498122 += 1; + result_1845498111[0].push.apply(result_1845498111[0], [46,46,46]);; + if ((0 < countHEX60gensym290_1845498122)) { + result_1845498111[0].push.apply(result_1845498111[0], [44,32]);; + } + + result_1845498111[0].push.apply(result_1845498111[0], [116,97,107,101,115]);; + result_1845498111[0].push.apply(result_1845498111[0], [58,32]);; + countHEX60gensym290_1845498122 += 1; + result_1845498111[0].push.apply(result_1845498111[0], [46,46,46]);; + if ((0 < countHEX60gensym290_1845498122)) { + result_1845498111[0].push.apply(result_1845498111[0], [44,32]);; + } + + result_1845498111[0].push.apply(result_1845498111[0], [111,110,77,111,118,101]);; + result_1845498111[0].push.apply(result_1845498111[0], [58,32]);; + countHEX60gensym290_1845498122 += 1; + result_1845498111[0].push.apply(result_1845498111[0], [46,46,46]);; + if ((0 < countHEX60gensym290_1845498122)) { + result_1845498111[0].push.apply(result_1845498111[0], [44,32]);; + } + + result_1845498111[0].push.apply(result_1845498111[0], [111,110,84,97,107,101]);; + result_1845498111[0].push.apply(result_1845498111[0], [58,32]);; + countHEX60gensym290_1845498122 += 1; + result_1845498111[0].push.apply(result_1845498111[0], [46,46,46]);; + if ((0 < countHEX60gensym290_1845498122)) { + result_1845498111[0].push.apply(result_1845498111[0], [44,32]);; + } + + result_1845498111[0].push.apply(result_1845498111[0], [119,104,101,110,84,97,107,101,110]);; + result_1845498111[0].push.apply(result_1845498111[0], [58,32]);; + countHEX60gensym290_1845498122 += 1; + result_1845498111[0].push.apply(result_1845498111[0], [46,46,46]);; + if ((0 < countHEX60gensym290_1845498122)) { + result_1845498111[0].push.apply(result_1845498111[0], [44,32]);; + } + + result_1845498111[0].push.apply(result_1845498111[0], [111,110,69,110,100,84,117,114,110]);; + result_1845498111[0].push.apply(result_1845498111[0], [58,32]);; + countHEX60gensym290_1845498122 += 1; + result_1845498111[0].push.apply(result_1845498111[0], [46,46,46]);; + if ((0 < countHEX60gensym290_1845498122)) { + result_1845498111[0].push.apply(result_1845498111[0], [44,32]);; + } + + result_1845498111[0].push.apply(result_1845498111[0], [111,110,80,114,111,109,111,116,101]);; + result_1845498111[0].push.apply(result_1845498111[0], [58,32]);; + countHEX60gensym290_1845498122 += 1; + result_1845498111[0].push.apply(result_1845498111[0], [46,46,46]);; + if ((0 < countHEX60gensym290_1845498122)) { + result_1845498111[0].push.apply(result_1845498111[0], [44,32]);; + } + + result_1845498111[0].push.apply(result_1845498111[0], [112,114,111,109,111,116,101,100]);; + result_1845498111[0].push.apply(result_1845498111[0], [58,32]);; + countHEX60gensym290_1845498122 += 1; + addQuoted_1845497542(result_1845498111, 0, x_1845498110.promoted); + if ((0 < countHEX60gensym290_1845498122)) { + result_1845498111[0].push.apply(result_1845498111[0], [44,32]);; + } + + result_1845498111[0].push.apply(result_1845498111[0], [102,105,108,101,80,97,116,104]);; + result_1845498111[0].push.apply(result_1845498111[0], [58,32]);; + countHEX60gensym290_1845498122 += 1; + addQuoted_1845498401(result_1845498111, 0, x_1845498110.filePath); + if ((0 < countHEX60gensym290_1845498122)) { + result_1845498111[0].push.apply(result_1845498111[0], [44,32]);; + } + + result_1845498111[0].push.apply(result_1845498111[0], [99,111,108,111,114,97,98,108,101]);; + result_1845498111[0].push.apply(result_1845498111[0], [58,32]);; + countHEX60gensym290_1845498122 += 1; + addQuoted_1845497542(result_1845498111, 0, x_1845498110.colorable); + if ((0 < countHEX60gensym290_1845498122)) { + result_1845498111[0].push.apply(result_1845498111[0], [44,32]);; } - F.line = 25; - result_1493177053[0].push.apply(result_1493177053[0], [111,110]);; - F.line = 26; - result_1493177053[0].push.apply(result_1493177053[0], [58,32]);; - F.line = 27; - countHEX60gensym347_1493177064 += 1; - F.line = 33; - addQuoted_1493176654(result_1493177053, 0, x_1493177052["Field0"]); - if ((0 < countHEX60gensym347_1493177064)) { - F.line = 23; - result_1493177053[0].push.apply(result_1493177053[0], [44,32]);; + result_1845498111[0].push.apply(result_1845498111[0], [114,111,116,97,116,101]);; + result_1845498111[0].push.apply(result_1845498111[0], [58,32]);; + countHEX60gensym290_1845498122 += 1; + addQuoted_1845497542(result_1845498111, 0, x_1845498110.rotate); + if ((0 < countHEX60gensym290_1845498122)) { + result_1845498111[0].push.apply(result_1845498111[0], [44,32]);; } - F.line = 25; - result_1493177053[0].push.apply(result_1493177053[0], [103,114,111,117,112]);; - F.line = 26; - result_1493177053[0].push.apply(result_1493177053[0], [58,32]);; - F.line = 27; - countHEX60gensym347_1493177064 += 1; - F.line = 33; - addQuoted_838862213(result_1493177053, 0, x_1493177052["Field1"]); - if ((0 < countHEX60gensym347_1493177064)) { - F.line = 23; - result_1493177053[0].push.apply(result_1493177053[0], [44,32]);; + result_1845498111[0].push.apply(result_1845498111[0], [100,114,117,110,107]);; + result_1845498111[0].push.apply(result_1845498111[0], [58,32]);; + countHEX60gensym290_1845498122 += 1; + addQuoted_1845497542(result_1845498111, 0, x_1845498110.drunk); + if ((0 < countHEX60gensym290_1845498122)) { + result_1845498111[0].push.apply(result_1845498111[0], [44,32]);; } - F.line = 25; - result_1493177053[0].push.apply(result_1493177053[0], [103,108,97,115,115]);; - F.line = 26; - result_1493177053[0].push.apply(result_1493177053[0], [58,32]);; - F.line = 27; - countHEX60gensym347_1493177064 += 1; - F.line = 33; - addQuoted_1493177106(result_1493177053, 0, x_1493177052["Field2"]); - F.line = 39; - result_1493177053[0].push.apply(result_1493177053[0], [41]);; - framePtr = F.prev; + result_1845498111[0].push.apply(result_1845498111[0], [99,97,115,116,115]);; + result_1845498111[0].push.apply(result_1845498111[0], [58,32]);; + countHEX60gensym290_1845498122 += 1; + addQuoted_1845498559(result_1845498111, 0, x_1845498110.casts); + result_1845498111[0].push.apply(result_1845498111[0], [41]);; - return result_1493177053[0]; + return result_1845498111[0]; } -function addQuoted_1493177044(s_1493177046, s_1493177046_Idx, x_1493177047) { - var F = {procname: "addQuoted.addQuoted", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; - F.line = 2539; - F.filename = "system.nim"; - s_1493177046[s_1493177046_Idx].push.apply(s_1493177046[s_1493177046_Idx], HEX24_1493177050(x_1493177047));; - framePtr = F.prev; +function addQuoted_1845498102(s_1845498104, s_1845498104_Idx, x_1845498105) { + s_1845498104[s_1845498104_Idx].push.apply(s_1845498104[s_1845498104_Idx], HEX24_1845498108(x_1845498105));; } -function collectionToString_1493177010(x_1493177012, prefix_1493177013, separator_1493177014, suffix_1493177015) { - var result_1493177016 = [[]]; +function collectionToString_1845498060(x_1845498062, prefix_1845498063, separator_1845498064, suffix_1845498065) { + var result_1845498066 = [[]]; - var F = {procname: "collectionToString.collectionToString", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/dollars.nim", line: 0}; - framePtr = F; - F.line = 90; - F.filename = "dollars.nim"; - result_1493177016[0] = nimCopy(null, prefix_1493177013, NTI33554449); - F.line = 91; - var firstElement_1493177017 = true; - Label1: { - F.line = 92; - var value_1493177040 = {Field0: {Field0: 0, Field1: 0}, Field1: 0, Field2: 0}; - F.line = 249; - F.filename = "iterators.nim"; - var i_1493179238 = 0; - F.line = 250; - var L_1493179239 = (x_1493177012).length; - Label2: { - F.line = 251; - Label3: while (true) { - if (!(i_1493179238 < L_1493179239)) break Label3; - F.line = 92; - F.filename = "dollars.nim"; - value_1493177040 = x_1493177012[i_1493179238]; - if (firstElement_1493177017) { - F.line = 94; - firstElement_1493177017 = false; - } - else { - F.line = 96; - result_1493177016[0].push.apply(result_1493177016[0], separator_1493177014);; - } - - F.line = 105; - addQuoted_1493177044(result_1493177016, 0, value_1493177040); - F.line = 13; - F.filename = "iterators.nim"; - i_1493179238 += 1; - if (!(((x_1493177012).length == L_1493179239))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); - } - - } - }; - }; - F.line = 106; - F.filename = "dollars.nim"; - result_1493177016[0].push.apply(result_1493177016[0], suffix_1493177015);; - framePtr = F.prev; - - return result_1493177016[0]; - -} - -function HEX24_1493177006(x_1493177008) { - var result_1493177009 = []; - - var F = {procname: "$.$", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/dollars.nim", line: 0}; - framePtr = F; - F.line = 117; - F.filename = "dollars.nim"; - result_1493177009 = nimCopy(null, collectionToString_1493177010(x_1493177008, [64,91], [44,32], [93]), NTI33554449); - framePtr = F.prev; - - return result_1493177009; - -} - -function addQuoted_1493177000(s_1493177002, s_1493177002_Idx, x_1493177003) { - var F = {procname: "addQuoted.addQuoted", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; - F.line = 2539; - F.filename = "system.nim"; - s_1493177002[s_1493177002_Idx].push.apply(s_1493177002[s_1493177002_Idx], HEX24_1493177006(x_1493177003));; - framePtr = F.prev; - - -} - -function HEX24_1493176549(x_1493176551) { - var result_1493176552 = [[]]; - - var F = {procname: "$.$", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/std/objectdollar.nim", line: 0}; - framePtr = F; - F.line = 19; - F.filename = "miscdollars.nim"; - result_1493176552[0] = nimCopy(null, [40], NTI33554449); - F.line = 21; - var countHEX60gensym289_1493176563 = 0; - if ((0 < countHEX60gensym289_1493176563)) { - F.line = 23; - result_1493176552[0].push.apply(result_1493176552[0], [44,32]);; - } - - F.line = 25; - result_1493176552[0].push.apply(result_1493176552[0], [105,116,101,109]);; - F.line = 26; - result_1493176552[0].push.apply(result_1493176552[0], [58,32]);; - F.line = 27; - countHEX60gensym289_1493176563 += 1; - F.line = 33; - addQuoted_1493176578(result_1493176552, 0, x_1493176551.item); - if ((0 < countHEX60gensym289_1493176563)) { - F.line = 23; - result_1493176552[0].push.apply(result_1493176552[0], [44,32]);; - } - - F.line = 25; - result_1493176552[0].push.apply(result_1493176552[0], [99,111,108,111,114]);; - F.line = 26; - result_1493176552[0].push.apply(result_1493176552[0], [58,32]);; - F.line = 27; - countHEX60gensym289_1493176563 += 1; - F.line = 33; - addQuoted_1493176598(result_1493176552, 0, x_1493176551.color); - if ((0 < countHEX60gensym289_1493176563)) { - F.line = 23; - result_1493176552[0].push.apply(result_1493176552[0], [44,32]);; - } - - F.line = 25; - result_1493176552[0].push.apply(result_1493176552[0], [105,110,100,101,120]);; - F.line = 26; - result_1493176552[0].push.apply(result_1493176552[0], [58,32]);; - F.line = 27; - countHEX60gensym289_1493176563 += 1; - F.line = 33; - addQuoted_838862213(result_1493176552, 0, x_1493176551.index); - if ((0 < countHEX60gensym289_1493176563)) { - F.line = 23; - result_1493176552[0].push.apply(result_1493176552[0], [44,32]);; - } - - F.line = 25; - result_1493176552[0].push.apply(result_1493176552[0], [116,105,109,101,115,77,111,118,101,100]);; - F.line = 26; - result_1493176552[0].push.apply(result_1493176552[0], [58,32]);; - F.line = 27; - countHEX60gensym289_1493176563 += 1; - F.line = 33; - addQuoted_838862213(result_1493176552, 0, x_1493176551.timesMoved); - if ((0 < countHEX60gensym289_1493176563)) { - F.line = 23; - result_1493176552[0].push.apply(result_1493176552[0], [44,32]);; - } - - F.line = 25; - result_1493176552[0].push.apply(result_1493176552[0], [112,105,101,99,101,115,84,97,107,101,110]);; - F.line = 26; - result_1493176552[0].push.apply(result_1493176552[0], [58,32]);; - F.line = 27; - countHEX60gensym289_1493176563 += 1; - F.line = 33; - addQuoted_838862213(result_1493176552, 0, x_1493176551.piecesTaken); - if ((0 < countHEX60gensym289_1493176563)) { - F.line = 23; - result_1493176552[0].push.apply(result_1493176552[0], [44,32]);; - } - - F.line = 25; - result_1493176552[0].push.apply(result_1493176552[0], [116,105,108,101]);; - F.line = 26; - result_1493176552[0].push.apply(result_1493176552[0], [58,32]);; - F.line = 27; - countHEX60gensym289_1493176563 += 1; - F.line = 33; - addQuoted_1493176654(result_1493176552, 0, x_1493176551.tile); - if ((0 < countHEX60gensym289_1493176563)) { - F.line = 23; - result_1493176552[0].push.apply(result_1493176552[0], [44,32]);; - } - - F.line = 25; - result_1493176552[0].push.apply(result_1493176552[0], [109,111,118,101,115]);; - F.line = 26; - result_1493176552[0].push.apply(result_1493176552[0], [58,32]);; - F.line = 27; - countHEX60gensym289_1493176563 += 1; - F.line = 35; - result_1493176552[0].push.apply(result_1493176552[0], [46,46,46]);; - if ((0 < countHEX60gensym289_1493176563)) { - F.line = 23; - result_1493176552[0].push.apply(result_1493176552[0], [44,32]);; - } - - F.line = 25; - result_1493176552[0].push.apply(result_1493176552[0], [116,97,107,101,115]);; - F.line = 26; - result_1493176552[0].push.apply(result_1493176552[0], [58,32]);; - F.line = 27; - countHEX60gensym289_1493176563 += 1; - F.line = 35; - result_1493176552[0].push.apply(result_1493176552[0], [46,46,46]);; - if ((0 < countHEX60gensym289_1493176563)) { - F.line = 23; - result_1493176552[0].push.apply(result_1493176552[0], [44,32]);; - } - - F.line = 25; - result_1493176552[0].push.apply(result_1493176552[0], [111,110,77,111,118,101]);; - F.line = 26; - result_1493176552[0].push.apply(result_1493176552[0], [58,32]);; - F.line = 27; - countHEX60gensym289_1493176563 += 1; - F.line = 35; - result_1493176552[0].push.apply(result_1493176552[0], [46,46,46]);; - if ((0 < countHEX60gensym289_1493176563)) { - F.line = 23; - result_1493176552[0].push.apply(result_1493176552[0], [44,32]);; - } - - F.line = 25; - result_1493176552[0].push.apply(result_1493176552[0], [111,110,84,97,107,101]);; - F.line = 26; - result_1493176552[0].push.apply(result_1493176552[0], [58,32]);; - F.line = 27; - countHEX60gensym289_1493176563 += 1; - F.line = 35; - result_1493176552[0].push.apply(result_1493176552[0], [46,46,46]);; - if ((0 < countHEX60gensym289_1493176563)) { - F.line = 23; - result_1493176552[0].push.apply(result_1493176552[0], [44,32]);; - } - - F.line = 25; - result_1493176552[0].push.apply(result_1493176552[0], [119,104,101,110,84,97,107,101,110]);; - F.line = 26; - result_1493176552[0].push.apply(result_1493176552[0], [58,32]);; - F.line = 27; - countHEX60gensym289_1493176563 += 1; - F.line = 35; - result_1493176552[0].push.apply(result_1493176552[0], [46,46,46]);; - if ((0 < countHEX60gensym289_1493176563)) { - F.line = 23; - result_1493176552[0].push.apply(result_1493176552[0], [44,32]);; - } - - F.line = 25; - result_1493176552[0].push.apply(result_1493176552[0], [111,110,69,110,100,84,117,114,110]);; - F.line = 26; - result_1493176552[0].push.apply(result_1493176552[0], [58,32]);; - F.line = 27; - countHEX60gensym289_1493176563 += 1; - F.line = 35; - result_1493176552[0].push.apply(result_1493176552[0], [46,46,46]);; - if ((0 < countHEX60gensym289_1493176563)) { - F.line = 23; - result_1493176552[0].push.apply(result_1493176552[0], [44,32]);; - } - - F.line = 25; - result_1493176552[0].push.apply(result_1493176552[0], [111,110,80,114,111,109,111,116,101]);; - F.line = 26; - result_1493176552[0].push.apply(result_1493176552[0], [58,32]);; - F.line = 27; - countHEX60gensym289_1493176563 += 1; - F.line = 35; - result_1493176552[0].push.apply(result_1493176552[0], [46,46,46]);; - if ((0 < countHEX60gensym289_1493176563)) { - F.line = 23; - result_1493176552[0].push.apply(result_1493176552[0], [44,32]);; - } - - F.line = 25; - result_1493176552[0].push.apply(result_1493176552[0], [112,114,111,109,111,116,101,100]);; - F.line = 26; - result_1493176552[0].push.apply(result_1493176552[0], [58,32]);; - F.line = 27; - countHEX60gensym289_1493176563 += 1; - F.line = 33; - addQuoted_1493175983(result_1493176552, 0, x_1493176551.promoted); - if ((0 < countHEX60gensym289_1493176563)) { - F.line = 23; - result_1493176552[0].push.apply(result_1493176552[0], [44,32]);; - } - - F.line = 25; - result_1493176552[0].push.apply(result_1493176552[0], [102,105,108,101,80,97,116,104]);; - F.line = 26; - result_1493176552[0].push.apply(result_1493176552[0], [58,32]);; - F.line = 27; - countHEX60gensym289_1493176563 += 1; - F.line = 33; - addQuoted_1493176842(result_1493176552, 0, x_1493176551.filePath); - if ((0 < countHEX60gensym289_1493176563)) { - F.line = 23; - result_1493176552[0].push.apply(result_1493176552[0], [44,32]);; - } - - F.line = 25; - result_1493176552[0].push.apply(result_1493176552[0], [99,111,108,111,114,97,98,108,101]);; - F.line = 26; - result_1493176552[0].push.apply(result_1493176552[0], [58,32]);; - F.line = 27; - countHEX60gensym289_1493176563 += 1; - F.line = 33; - addQuoted_1493175983(result_1493176552, 0, x_1493176551.colorable); - if ((0 < countHEX60gensym289_1493176563)) { - F.line = 23; - result_1493176552[0].push.apply(result_1493176552[0], [44,32]);; - } - - F.line = 25; - result_1493176552[0].push.apply(result_1493176552[0], [114,111,116,97,116,101]);; - F.line = 26; - result_1493176552[0].push.apply(result_1493176552[0], [58,32]);; - F.line = 27; - countHEX60gensym289_1493176563 += 1; - F.line = 33; - addQuoted_1493175983(result_1493176552, 0, x_1493176551.rotate); - if ((0 < countHEX60gensym289_1493176563)) { - F.line = 23; - result_1493176552[0].push.apply(result_1493176552[0], [44,32]);; - } - - F.line = 25; - result_1493176552[0].push.apply(result_1493176552[0], [100,114,117,110,107]);; - F.line = 26; - result_1493176552[0].push.apply(result_1493176552[0], [58,32]);; - F.line = 27; - countHEX60gensym289_1493176563 += 1; - F.line = 33; - addQuoted_1493175983(result_1493176552, 0, x_1493176551.drunk); - if ((0 < countHEX60gensym289_1493176563)) { - F.line = 23; - result_1493176552[0].push.apply(result_1493176552[0], [44,32]);; - } - - F.line = 25; - result_1493176552[0].push.apply(result_1493176552[0], [99,97,115,116,115]);; - F.line = 26; - result_1493176552[0].push.apply(result_1493176552[0], [58,32]);; - F.line = 27; - countHEX60gensym289_1493176563 += 1; - F.line = 33; - addQuoted_1493177000(result_1493176552, 0, x_1493176551.casts); - F.line = 39; - result_1493176552[0].push.apply(result_1493176552[0], [41]);; - framePtr = F.prev; - - return result_1493176552[0]; - -} - -function addQuoted_1493176543(s_1493176545, s_1493176545_Idx, x_1493176546) { - var F = {procname: "addQuoted.addQuoted", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; - F.line = 2539; - F.filename = "system.nim"; - s_1493176545[s_1493176545_Idx].push.apply(s_1493176545[s_1493176545_Idx], HEX24_1493176549(x_1493176546));; - framePtr = F.prev; - - -} - -function collectionToString_1493176501(x_1493176503, prefix_1493176504, separator_1493176505, suffix_1493176506) { - var result_1493176507 = [[]]; - - var F = {procname: "collectionToString.collectionToString", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/dollars.nim", line: 0}; - framePtr = F; - F.line = 90; - F.filename = "dollars.nim"; - result_1493176507[0] = nimCopy(null, prefix_1493176504, NTI33554449); - F.line = 91; - var firstElement_1493176508 = true; + result_1845498066[0] = nimCopy(null, prefix_1845498063, NTI33554449); + var firstElement_1845498067 = true; Label1: { - F.line = 92; - var value_1493176539 = ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}); - F.line = 43; - F.filename = "iterators.nim"; - var i_1493179231 = 0; + var value_1845498098 = ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}); + var i_1845500791 = 0; Label2: { - F.line = 44; Label3: while (true) { if (!true) break Label3; - F.line = 92; - F.filename = "dollars.nim"; - value_1493176539 = nimCopy(value_1493176539, x_1493176503[i_1493179231], NTI1224736794); - if (firstElement_1493176508) { - F.line = 94; - firstElement_1493176508 = false; + value_1845498098 = nimCopy(value_1845498098, x_1845498062[i_1845500791], NTI1476395034); + if (firstElement_1845498067) { + firstElement_1845498067 = false; } else { - F.line = 96; - result_1493176507[0].push.apply(result_1493176507[0], separator_1493176505);; + result_1845498066[0].push.apply(result_1845498066[0], separator_1845498064);; } - F.line = 105; - addQuoted_1493176543(result_1493176507, 0, value_1493176539); - if ((7 <= i_1493179231)) { - F.line = 46; - F.filename = "iterators.nim"; + addQuoted_1845498102(result_1845498066, 0, value_1845498098); + if ((7 <= i_1845500791)) { break Label2; } - F.line = 13; - i_1493179231 += 1; + i_1845500791 += 1; } }; }; - F.line = 106; - F.filename = "dollars.nim"; - result_1493176507[0].push.apply(result_1493176507[0], suffix_1493176506);; - framePtr = F.prev; + result_1845498066[0].push.apply(result_1845498066[0], suffix_1845498065);; - return result_1493176507[0]; + return result_1845498066[0]; } -function HEX24_1493176496(x_1493176499) { - var result_1493176500 = []; +function HEX24_1845498055(x_1845498058) { + var result_1845498059 = []; - var F = {procname: "$.$", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/dollars.nim", line: 0}; - framePtr = F; - F.line = 137; - F.filename = "dollars.nim"; - result_1493176500 = nimCopy(null, collectionToString_1493176501(x_1493176499, [91], [44,32], [93]), NTI33554449); - framePtr = F.prev; + result_1845498059 = nimCopy(null, collectionToString_1845498060(x_1845498058, [91], [44,32], [93]), NTI33554449); - return result_1493176500; + return result_1845498059; } -function addQuoted_1493176484(s_1493176486, s_1493176486_Idx, x_1493176487) { - var F = {procname: "addQuoted.addQuoted", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; - F.line = 2539; - F.filename = "system.nim"; - s_1493176486[s_1493176486_Idx].push.apply(s_1493176486[s_1493176486_Idx], HEX24_1493176496(x_1493176487));; - framePtr = F.prev; +function addQuoted_1845498043(s_1845498045, s_1845498045_Idx, x_1845498046) { + s_1845498045[s_1845498045_Idx].push.apply(s_1845498045[s_1845498045_Idx], HEX24_1845498055(x_1845498046));; } -function HEX24_1493177255(self_1493177257) { - var result_1493177258 = [[]]; +function HEX24_1845498814(self_1845498816) { + var result_1845498817 = [[]]; - var F = {procname: "$.$", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/options.nim", line: 0}; - framePtr = F; - if (isSome_1409289449(self_1493177257)) { - F.line = 364; - F.filename = "options.nim"; - result_1493177258[0] = nimCopy(null, [115,111,109,101,40], NTI33554449); - F.line = 365; - addQuoted_838862213(result_1493177258, 0, self_1493177257.val); - F.line = 366; - result_1493177258[0].push.apply(result_1493177258[0], [41]);; + if (isSome_1660947689(self_1845498816)) { + result_1845498817[0] = nimCopy(null, [115,111,109,101,40], NTI33554449); + addQuoted_889193861(result_1845498817, 0, self_1845498816.val); + result_1845498817[0].push.apply(result_1845498817[0], [41]);; } else { - F.line = 371; - result_1493177258[0] = nimCopy(null, [110,111,110,101,40,105,110,116,41], NTI33554449); + result_1845498817[0] = nimCopy(null, [110,111,110,101,40,105,110,116,41], NTI33554449); } - framePtr = F.prev; - return result_1493177258[0]; + return result_1845498817[0]; } -function addQuoted_1493177243(s_1493177245, s_1493177245_Idx, x_1493177246) { - var F = {procname: "addQuoted.addQuoted", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; - F.line = 2539; - F.filename = "system.nim"; - s_1493177245[s_1493177245_Idx].push.apply(s_1493177245[s_1493177245_Idx], HEX24_1493177255(x_1493177246));; - framePtr = F.prev; +function addQuoted_1845498802(s_1845498804, s_1845498804_Idx, x_1845498805) { + s_1845498804[s_1845498804_Idx].push.apply(s_1845498804[s_1845498804_Idx], HEX24_1845498814(x_1845498805));; } -function HEX24_1493177421(x_1493177423) { - var result_1493177424 = [[]]; +function HEX24_1845498980(x_1845498982) { + var result_1845498983 = [[]]; - var F = {procname: "$.$", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/dollars.nim", line: 0}; - framePtr = F; - F.line = 19; - F.filename = "miscdollars.nim"; - result_1493177424[0] = nimCopy(null, [40], NTI33554449); - F.line = 21; - var countHEX60gensym375_1493177435 = 0; - if ((0 < countHEX60gensym375_1493177435)) { - F.line = 23; - result_1493177424[0].push.apply(result_1493177424[0], [44,32]);; + result_1845498983[0] = nimCopy(null, [40], NTI33554449); + var countHEX60gensym376_1845498994 = 0; + if ((0 < countHEX60gensym376_1845498994)) { + result_1845498983[0].push.apply(result_1845498983[0], [44,32]);; } - F.line = 25; - result_1493177424[0].push.apply(result_1493177424[0], [110,97,109,101]);; - F.line = 26; - result_1493177424[0].push.apply(result_1493177424[0], [58,32]);; - F.line = 27; - countHEX60gensym375_1493177435 += 1; - F.line = 33; - addQuoted_1493176842(result_1493177424, 0, x_1493177423["Field0"]); - if ((0 < countHEX60gensym375_1493177435)) { - F.line = 23; - result_1493177424[0].push.apply(result_1493177424[0], [44,32]);; + result_1845498983[0].push.apply(result_1845498983[0], [110,97,109,101]);; + result_1845498983[0].push.apply(result_1845498983[0], [58,32]);; + countHEX60gensym376_1845498994 += 1; + addQuoted_1845498401(result_1845498983, 0, x_1845498982["Field0"]); + if ((0 < countHEX60gensym376_1845498994)) { + result_1845498983[0].push.apply(result_1845498983[0], [44,32]);; } - F.line = 25; - result_1493177424[0].push.apply(result_1493177424[0], [99,111,115,116]);; - F.line = 26; - result_1493177424[0].push.apply(result_1493177424[0], [58,32]);; - F.line = 27; - countHEX60gensym375_1493177435 += 1; - F.line = 35; - result_1493177424[0].push.apply(result_1493177424[0], [46,46,46]);; - if ((0 < countHEX60gensym375_1493177435)) { - F.line = 23; - result_1493177424[0].push.apply(result_1493177424[0], [44,32]);; + result_1845498983[0].push.apply(result_1845498983[0], [99,111,115,116]);; + result_1845498983[0].push.apply(result_1845498983[0], [58,32]);; + countHEX60gensym376_1845498994 += 1; + result_1845498983[0].push.apply(result_1845498983[0], [46,46,46]);; + if ((0 < countHEX60gensym376_1845498994)) { + result_1845498983[0].push.apply(result_1845498983[0], [44,32]);; } - F.line = 25; - result_1493177424[0].push.apply(result_1493177424[0], [97,99,116,105,111,110]);; - F.line = 26; - result_1493177424[0].push.apply(result_1493177424[0], [58,32]);; - F.line = 27; - countHEX60gensym375_1493177435 += 1; - F.line = 35; - result_1493177424[0].push.apply(result_1493177424[0], [46,46,46]);; - if ((0 < countHEX60gensym375_1493177435)) { - F.line = 23; - result_1493177424[0].push.apply(result_1493177424[0], [44,32]);; + result_1845498983[0].push.apply(result_1845498983[0], [97,99,116,105,111,110]);; + result_1845498983[0].push.apply(result_1845498983[0], [58,32]);; + countHEX60gensym376_1845498994 += 1; + result_1845498983[0].push.apply(result_1845498983[0], [46,46,46]);; + if ((0 < countHEX60gensym376_1845498994)) { + result_1845498983[0].push.apply(result_1845498983[0], [44,32]);; } - F.line = 25; - result_1493177424[0].push.apply(result_1493177424[0], [99,111,110,100,105,116,105,111,110]);; - F.line = 26; - result_1493177424[0].push.apply(result_1493177424[0], [58,32]);; - F.line = 27; - countHEX60gensym375_1493177435 += 1; - F.line = 35; - result_1493177424[0].push.apply(result_1493177424[0], [46,46,46]);; - F.line = 39; - result_1493177424[0].push.apply(result_1493177424[0], [41]);; - framePtr = F.prev; + result_1845498983[0].push.apply(result_1845498983[0], [99,111,110,100,105,116,105,111,110]);; + result_1845498983[0].push.apply(result_1845498983[0], [58,32]);; + countHEX60gensym376_1845498994 += 1; + result_1845498983[0].push.apply(result_1845498983[0], [46,46,46]);; + result_1845498983[0].push.apply(result_1845498983[0], [41]);; - return result_1493177424[0]; + return result_1845498983[0]; } -function addQuoted_1493177415(s_1493177417, s_1493177417_Idx, x_1493177418) { - var F = {procname: "addQuoted.addQuoted", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; - F.line = 2539; - F.filename = "system.nim"; - s_1493177417[s_1493177417_Idx].push.apply(s_1493177417[s_1493177417_Idx], HEX24_1493177421(x_1493177418));; - framePtr = F.prev; +function addQuoted_1845498974(s_1845498976, s_1845498976_Idx, x_1845498977) { + s_1845498976[s_1845498976_Idx].push.apply(s_1845498976[s_1845498976_Idx], HEX24_1845498980(x_1845498977));; } -function collectionToString_1493177381(x_1493177383, prefix_1493177384, separator_1493177385, suffix_1493177386) { - var result_1493177387 = [[]]; - - var F = {procname: "collectionToString.collectionToString", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/dollars.nim", line: 0}; - framePtr = F; - F.line = 90; - F.filename = "dollars.nim"; - result_1493177387[0] = nimCopy(null, prefix_1493177384, NTI33554449); - F.line = 91; - var firstElement_1493177388 = true; +function collectionToString_1845498940(x_1845498942, prefix_1845498943, separator_1845498944, suffix_1845498945) { + var result_1845498946 = [[]]; + + result_1845498946[0] = nimCopy(null, prefix_1845498943, NTI33554449); + var firstElement_1845498947 = true; Label1: { - F.line = 92; - var value_1493177411 = {Field0: [], Field1: null, Field2: null, Field3: null}; - F.line = 249; - F.filename = "iterators.nim"; - var i_1493179243 = 0; - F.line = 250; - var L_1493179244 = (x_1493177383).length; + var value_1845498970 = {Field0: [], Field1: null, Field2: null, Field3: null}; + var i_1845500803 = 0; + var L_1845500804 = (x_1845498942).length; Label2: { - F.line = 251; Label3: while (true) { - if (!(i_1493179243 < L_1493179244)) break Label3; - F.line = 92; - F.filename = "dollars.nim"; - value_1493177411 = x_1493177383[i_1493179243]; - if (firstElement_1493177388) { - F.line = 94; - firstElement_1493177388 = false; + if (!(i_1845500803 < L_1845500804)) break Label3; + value_1845498970 = x_1845498942[i_1845500803]; + if (firstElement_1845498947) { + firstElement_1845498947 = false; } else { - F.line = 96; - result_1493177387[0].push.apply(result_1493177387[0], separator_1493177385);; + result_1845498946[0].push.apply(result_1845498946[0], separator_1845498944);; } - F.line = 105; - addQuoted_1493177415(result_1493177387, 0, value_1493177411); - F.line = 13; - F.filename = "iterators.nim"; - i_1493179243 += 1; - if (!(((x_1493177383).length == L_1493179244))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + addQuoted_1845498974(result_1845498946, 0, value_1845498970); + i_1845500803 += 1; + if (!(((x_1845498942).length == L_1845500804))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - F.line = 106; - F.filename = "dollars.nim"; - result_1493177387[0].push.apply(result_1493177387[0], suffix_1493177386);; - framePtr = F.prev; + result_1845498946[0].push.apply(result_1845498946[0], suffix_1845498945);; - return result_1493177387[0]; + return result_1845498946[0]; } -function HEX24_1493177377(x_1493177379) { - var result_1493177380 = []; +function HEX24_1845498936(x_1845498938) { + var result_1845498939 = []; - var F = {procname: "$.$", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/dollars.nim", line: 0}; - framePtr = F; - F.line = 117; - F.filename = "dollars.nim"; - result_1493177380 = nimCopy(null, collectionToString_1493177381(x_1493177379, [64,91], [44,32], [93]), NTI33554449); - framePtr = F.prev; + result_1845498939 = nimCopy(null, collectionToString_1845498940(x_1845498938, [64,91], [44,32], [93]), NTI33554449); - return result_1493177380; + return result_1845498939; } -function addQuoted_1493177371(s_1493177373, s_1493177373_Idx, x_1493177374) { - var F = {procname: "addQuoted.addQuoted", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; - F.line = 2539; - F.filename = "system.nim"; - s_1493177373[s_1493177373_Idx].push.apply(s_1493177373[s_1493177373_Idx], HEX24_1493177377(x_1493177374));; - framePtr = F.prev; +function addQuoted_1845498930(s_1845498932, s_1845498932_Idx, x_1845498933) { + s_1845498932[s_1845498932_Idx].push.apply(s_1845498932[s_1845498932_Idx], HEX24_1845498936(x_1845498933));; } -function HEX24_1493177716(x_1493177718) { - var result_1493177719 = [[]]; +function HEX24_1845499275(x_1845499277) { + var result_1845499278 = [[]]; - var F = {procname: "$.$", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/dollars.nim", line: 0}; - framePtr = F; - F.line = 19; - F.filename = "miscdollars.nim"; - result_1493177719[0] = nimCopy(null, [40], NTI33554449); - F.line = 21; - var countHEX60gensym397_1493177730 = 0; - if ((0 < countHEX60gensym397_1493177730)) { - F.line = 23; - result_1493177719[0].push.apply(result_1493177719[0], [44,32]);; + result_1845499278[0] = nimCopy(null, [40], NTI33554449); + var countHEX60gensym398_1845499289 = 0; + if ((0 < countHEX60gensym398_1845499289)) { + result_1845499278[0].push.apply(result_1845499278[0], [44,32]);; } - F.line = 25; - result_1493177719[0].push.apply(result_1493177719[0], [115,116,114,101,110,103,116,104]);; - F.line = 26; - result_1493177719[0].push.apply(result_1493177719[0], [58,32]);; - F.line = 27; - countHEX60gensym397_1493177730 += 1; - F.line = 33; - addQuoted_838862213(result_1493177719, 0, x_1493177718["Field0"]); - if ((0 < countHEX60gensym397_1493177730)) { - F.line = 23; - result_1493177719[0].push.apply(result_1493177719[0], [44,32]);; + result_1845499278[0].push.apply(result_1845499278[0], [115,116,114,101,110,103,116,104]);; + result_1845499278[0].push.apply(result_1845499278[0], [58,32]);; + countHEX60gensym398_1845499289 += 1; + addQuoted_889193861(result_1845499278, 0, x_1845499277["Field0"]); + if ((0 < countHEX60gensym398_1845499289)) { + result_1845499278[0].push.apply(result_1845499278[0], [44,32]);; } - F.line = 25; - result_1493177719[0].push.apply(result_1493177719[0], [97,99,116,105,111,110]);; - F.line = 26; - result_1493177719[0].push.apply(result_1493177719[0], [58,32]);; - F.line = 27; - countHEX60gensym397_1493177730 += 1; - F.line = 35; - result_1493177719[0].push.apply(result_1493177719[0], [46,46,46]);; - if ((0 < countHEX60gensym397_1493177730)) { - F.line = 23; - result_1493177719[0].push.apply(result_1493177719[0], [44,32]);; + result_1845499278[0].push.apply(result_1845499278[0], [97,99,116,105,111,110]);; + result_1845499278[0].push.apply(result_1845499278[0], [58,32]);; + countHEX60gensym398_1845499289 += 1; + result_1845499278[0].push.apply(result_1845499278[0], [46,46,46]);; + if ((0 < countHEX60gensym398_1845499289)) { + result_1845499278[0].push.apply(result_1845499278[0], [44,32]);; } - F.line = 25; - result_1493177719[0].push.apply(result_1493177719[0], [99,111,110,100,105,116,105,111,110]);; - F.line = 26; - result_1493177719[0].push.apply(result_1493177719[0], [58,32]);; - F.line = 27; - countHEX60gensym397_1493177730 += 1; - F.line = 35; - result_1493177719[0].push.apply(result_1493177719[0], [46,46,46]);; - F.line = 39; - result_1493177719[0].push.apply(result_1493177719[0], [41]);; - framePtr = F.prev; + result_1845499278[0].push.apply(result_1845499278[0], [99,111,110,100,105,116,105,111,110]);; + result_1845499278[0].push.apply(result_1845499278[0], [58,32]);; + countHEX60gensym398_1845499289 += 1; + result_1845499278[0].push.apply(result_1845499278[0], [46,46,46]);; + result_1845499278[0].push.apply(result_1845499278[0], [41]);; - return result_1493177719[0]; + return result_1845499278[0]; } -function addQuoted_1493177710(s_1493177712, s_1493177712_Idx, x_1493177713) { - var F = {procname: "addQuoted.addQuoted", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; - F.line = 2539; - F.filename = "system.nim"; - s_1493177712[s_1493177712_Idx].push.apply(s_1493177712[s_1493177712_Idx], HEX24_1493177716(x_1493177713));; - framePtr = F.prev; +function addQuoted_1845499269(s_1845499271, s_1845499271_Idx, x_1845499272) { + s_1845499271[s_1845499271_Idx].push.apply(s_1845499271[s_1845499271_Idx], HEX24_1845499275(x_1845499272));; } -function HEX24_1493177697(self_1493177699) { - var result_1493177700 = [[]]; +function HEX24_1845499256(self_1845499258) { + var result_1845499259 = [[]]; - var F = {procname: "$.$", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/options.nim", line: 0}; - framePtr = F; - if (isSome_1493177705(self_1493177699)) { - F.line = 364; - F.filename = "options.nim"; - result_1493177700[0] = nimCopy(null, [115,111,109,101,40], NTI33554449); - F.line = 365; - addQuoted_1493177710(result_1493177700, 0, self_1493177699.val); - F.line = 366; - result_1493177700[0].push.apply(result_1493177700[0], [41]);; + if (isSome_1845499264(self_1845499258)) { + result_1845499259[0] = nimCopy(null, [115,111,109,101,40], NTI33554449); + addQuoted_1845499269(result_1845499259, 0, self_1845499258.val); + result_1845499259[0].push.apply(result_1845499259[0], [41]);; } else { - F.line = 371; - result_1493177700[0] = nimCopy(null, [110,111,110,101,40,71,108,97,115,115,65,98,105,108,105,116,121,41], NTI33554449); + result_1845499259[0] = nimCopy(null, [110,111,110,101,40,71,108,97,115,115,65,98,105,108,105,116,121,41], NTI33554449); } - framePtr = F.prev; - return result_1493177700[0]; + return result_1845499259[0]; } -function addQuoted_1493177685(s_1493177687, s_1493177687_Idx, x_1493177688) { - var F = {procname: "addQuoted.addQuoted", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; - F.line = 2539; - F.filename = "system.nim"; - s_1493177687[s_1493177687_Idx].push.apply(s_1493177687[s_1493177687_Idx], HEX24_1493177697(x_1493177688));; - framePtr = F.prev; +function addQuoted_1845499244(s_1845499246, s_1845499246_Idx, x_1845499247) { + s_1845499246[s_1845499246_Idx].push.apply(s_1845499246[s_1845499246_Idx], HEX24_1845499256(x_1845499247));; } -function collectionToString_1493177643(x_1493177645, prefix_1493177646, separator_1493177647, suffix_1493177648) { - var result_1493177649 = [[]]; +function collectionToString_1845499202(x_1845499204, prefix_1845499205, separator_1845499206, suffix_1845499207) { + var result_1845499208 = [[]]; - var F = {procname: "collectionToString.collectionToString", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/dollars.nim", line: 0}; - framePtr = F; - F.line = 90; - F.filename = "dollars.nim"; - result_1493177649[0] = nimCopy(null, prefix_1493177646, NTI33554449); - F.line = 91; - var firstElement_1493177650 = true; + result_1845499208[0] = nimCopy(null, prefix_1845499205, NTI33554449); + var firstElement_1845499209 = true; Label1: { - F.line = 92; - var value_1493177681 = ({val: {Field0: 0, Field1: null, Field2: null}, has: false}); - F.line = 43; - F.filename = "iterators.nim"; - var i_1493179248 = 0; + var value_1845499240 = ({val: {Field0: 0, Field1: null, Field2: null}, has: false}); + var i_1845500808 = 0; Label2: { - F.line = 44; Label3: while (true) { if (!true) break Label3; - F.line = 92; - F.filename = "dollars.nim"; - value_1493177681 = nimCopy(value_1493177681, x_1493177645[i_1493179248], NTI1224736839); - if (firstElement_1493177650) { - F.line = 94; - firstElement_1493177650 = false; + value_1845499240 = nimCopy(value_1845499240, x_1845499204[i_1845500808], NTI1476395079); + if (firstElement_1845499209) { + firstElement_1845499209 = false; } else { - F.line = 96; - result_1493177649[0].push.apply(result_1493177649[0], separator_1493177647);; + result_1845499208[0].push.apply(result_1845499208[0], separator_1845499206);; } - F.line = 105; - addQuoted_1493177685(result_1493177649, 0, value_1493177681); - if ((4 <= i_1493179248)) { - F.line = 46; - F.filename = "iterators.nim"; + addQuoted_1845499244(result_1845499208, 0, value_1845499240); + if ((4 <= i_1845500808)) { break Label2; } - F.line = 13; - i_1493179248 += 1; + i_1845500808 += 1; } }; }; - F.line = 106; - F.filename = "dollars.nim"; - result_1493177649[0].push.apply(result_1493177649[0], suffix_1493177648);; - framePtr = F.prev; - - return result_1493177649[0]; - -} - -function HEX24_1493177638(x_1493177641) { - var result_1493177642 = []; - - var F = {procname: "$.$", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/dollars.nim", line: 0}; - framePtr = F; - F.line = 137; - F.filename = "dollars.nim"; - result_1493177642 = nimCopy(null, collectionToString_1493177643(x_1493177641, [91], [44,32], [93]), NTI33554449); - framePtr = F.prev; - - return result_1493177642; - -} - -function addQuoted_1493177626(s_1493177628, s_1493177628_Idx, x_1493177629) { - var F = {procname: "addQuoted.addQuoted", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; - F.line = 2539; - F.filename = "system.nim"; - s_1493177628[s_1493177628_Idx].push.apply(s_1493177628[s_1493177628_Idx], HEX24_1493177638(x_1493177629));; - framePtr = F.prev; - - -} - -function HEX24_1493175945(x_1493175947) { - var result_1493175948 = [[]]; - - var F = {procname: "$.$", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/std/objectdollar.nim", line: 0}; - framePtr = F; - F.line = 19; - F.filename = "miscdollars.nim"; - result_1493175948[0] = nimCopy(null, [40], NTI33554449); - F.line = 21; - var countHEX60gensym219_1493175959 = 0; - if ((0 < countHEX60gensym219_1493175959)) { - F.line = 23; - result_1493175948[0].push.apply(result_1493175948[0], [44,32]);; - } - - F.line = 25; - result_1493175948[0].push.apply(result_1493175948[0], [97,98,105,108,105,116,121,84,97,107,101,115]);; - F.line = 26; - result_1493175948[0].push.apply(result_1493175948[0], [58,32]);; - F.line = 27; - countHEX60gensym219_1493175959 += 1; - F.line = 33; - addQuoted_838862213(result_1493175948, 0, x_1493175947.abilityTakes); - if ((0 < countHEX60gensym219_1493175959)) { - F.line = 23; - result_1493175948[0].push.apply(result_1493175948[0], [44,32]);; - } - - F.line = 25; - result_1493175948[0].push.apply(result_1493175948[0], [104,97,115,67,97,115,116,108,101,100]);; - F.line = 26; - result_1493175948[0].push.apply(result_1493175948[0], [58,32]);; - F.line = 27; - countHEX60gensym219_1493175959 += 1; - F.line = 33; - addQuoted_1493175983(result_1493175948, 0, x_1493175947.hasCastled); - if ((0 < countHEX60gensym219_1493175959)) { - F.line = 23; - result_1493175948[0].push.apply(result_1493175948[0], [44,32]);; - } - - F.line = 25; - result_1493175948[0].push.apply(result_1493175948[0], [100,110,97]);; - F.line = 26; - result_1493175948[0].push.apply(result_1493175948[0], [58,32]);; - F.line = 27; - countHEX60gensym219_1493175959 += 1; - F.line = 33; - addQuoted_1493176484(result_1493175948, 0, x_1493175947.dna); - if ((0 < countHEX60gensym219_1493175959)) { - F.line = 23; - result_1493175948[0].push.apply(result_1493175948[0], [44,32]);; - } - - F.line = 25; - result_1493175948[0].push.apply(result_1493175948[0], [116,114,97,110,115,102,111,114,109,115]);; - F.line = 26; - result_1493175948[0].push.apply(result_1493175948[0], [58,32]);; - F.line = 27; - countHEX60gensym219_1493175959 += 1; - F.line = 35; - result_1493175948[0].push.apply(result_1493175948[0], [46,46,46]);; - if ((0 < countHEX60gensym219_1493175959)) { - F.line = 23; - result_1493175948[0].push.apply(result_1493175948[0], [44,32]);; - } - - F.line = 25; - result_1493175948[0].push.apply(result_1493175948[0], [119,97,108,108,101,116]);; - F.line = 26; - result_1493175948[0].push.apply(result_1493175948[0], [58,32]);; - F.line = 27; - countHEX60gensym219_1493175959 += 1; - F.line = 33; - addQuoted_1493177243(result_1493175948, 0, x_1493175947.wallet); - if ((0 < countHEX60gensym219_1493175959)) { - F.line = 23; - result_1493175948[0].push.apply(result_1493175948[0], [44,32]);; - } - - F.line = 25; - result_1493175948[0].push.apply(result_1493175948[0], [98,117,121,115]);; - F.line = 26; - result_1493175948[0].push.apply(result_1493175948[0], [58,32]);; - F.line = 27; - countHEX60gensym219_1493175959 += 1; - F.line = 33; - addQuoted_1493177371(result_1493175948, 0, x_1493175947.buys); - if ((0 < countHEX60gensym219_1493175959)) { - F.line = 23; - result_1493175948[0].push.apply(result_1493175948[0], [44,32]);; - } - - F.line = 25; - result_1493175948[0].push.apply(result_1493175948[0], [112,105,101,99,101,115,83,111,108,100]);; - F.line = 26; - result_1493175948[0].push.apply(result_1493175948[0], [58,32]);; - F.line = 27; - countHEX60gensym219_1493175959 += 1; - F.line = 33; - addQuoted_838862213(result_1493175948, 0, x_1493175947.piecesSold); - if ((0 < countHEX60gensym219_1493175959)) { - F.line = 23; - result_1493175948[0].push.apply(result_1493175948[0], [44,32]);; - } - - F.line = 25; - result_1493175948[0].push.apply(result_1493175948[0], [112,105,101,99,101,115,83,111,108,100,84,104,105,115,84,117,114,110]);; - F.line = 26; - result_1493175948[0].push.apply(result_1493175948[0], [58,32]);; - F.line = 27; - countHEX60gensym219_1493175959 += 1; - F.line = 33; - addQuoted_838862213(result_1493175948, 0, x_1493175947.piecesSoldThisTurn); - if ((0 < countHEX60gensym219_1493175959)) { - F.line = 23; - result_1493175948[0].push.apply(result_1493175948[0], [44,32]);; - } - - F.line = 25; - result_1493175948[0].push.apply(result_1493175948[0], [103,108,97,115,115]);; - F.line = 26; - result_1493175948[0].push.apply(result_1493175948[0], [58,32]);; - F.line = 27; - countHEX60gensym219_1493175959 += 1; - F.line = 33; - addQuoted_1493177626(result_1493175948, 0, x_1493175947.glass); - F.line = 39; - result_1493175948[0].push.apply(result_1493175948[0], [41]);; - framePtr = F.prev; - - return result_1493175948[0]; - -} - -function HEX3Aanonymous_1493174901(piece_1493174902, b_1493174903, state_1493174904) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 1740; - F.filename = "powers.nim"; - state_1493174904.Field1[chckIndx(piece_1493174902.color, 0, (state_1493174904.Field1).length - 1)].piecesSold = addInt(state_1493174904.Field1[chckIndx(piece_1493174902.color, 0, (state_1493174904.Field1).length - 1)].piecesSold, 1); - F.line = 1741; - state_1493174904.Field1[chckIndx(piece_1493174902.color, 0, (state_1493174904.Field1).length - 1)].piecesSoldThisTurn = addInt(state_1493174904.Field1[chckIndx(piece_1493174902.color, 0, (state_1493174904.Field1).length - 1)].piecesSoldThisTurn, 1); - F.line = 1742; - rawEcho(HEX24_1493175945(state_1493174904.Field1[chckIndx(piece_1493174902.color, 0, (state_1493174904.Field1).length - 1)])); - F.line = 1743; - b_1493174903[chckIndx(piece_1493174902.tile.Field1, 0, (b_1493174903).length - 1)][chckIndx(piece_1493174902.tile.Field0, 0, (b_1493174903[chckIndx(piece_1493174902.tile.Field1, 0, (b_1493174903).length - 1)]).length - 1)] = nimCopy(b_1493174903[chckIndx(piece_1493174902.tile.Field1, 0, (b_1493174903).length - 1)][chckIndx(piece_1493174902.tile.Field0, 0, (b_1493174903[chckIndx(piece_1493174902.tile.Field1, 0, (b_1493174903).length - 1)]).length - 1)], pieceCopy_1224737660(air_1275068591, b_1493174903[chckIndx(piece_1493174902.tile.Field1, 0, (b_1493174903).length - 1)][chckIndx(piece_1493174902.tile.Field0, 0, (b_1493174903[chckIndx(piece_1493174902.tile.Field1, 0, (b_1493174903).length - 1)]).length - 1)].index, 6, 1, 0, 0, piece_1493174902.tile, [], [], air_1275068591.onMove, air_1275068591.onTake, air_1275068591.whenTaken, [], [], false, [], true, false, false), NTI1224736794); - framePtr = F.prev; - - -} - -function HEX3Aanonymous_1493177766(piece_1493177767, board_1493177768, s_1493177769) { - var result_1493177770 = false; - - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; + result_1845499208[0].push.apply(result_1845499208[0], suffix_1845499207);; + + return result_1845499208[0]; + +} + +function HEX24_1845499197(x_1845499200) { + var result_1845499201 = []; + + result_1845499201 = nimCopy(null, collectionToString_1845499202(x_1845499200, [91], [44,32], [93]), NTI33554449); + + return result_1845499201; + +} + +function addQuoted_1845499185(s_1845499187, s_1845499187_Idx, x_1845499188) { + s_1845499187[s_1845499187_Idx].push.apply(s_1845499187[s_1845499187_Idx], HEX24_1845499197(x_1845499188));; + + +} + +function HEX24_1845497504(x_1845497506) { + var result_1845497507 = [[]]; + + result_1845497507[0] = nimCopy(null, [40], NTI33554449); + var countHEX60gensym220_1845497518 = 0; + if ((0 < countHEX60gensym220_1845497518)) { + result_1845497507[0].push.apply(result_1845497507[0], [44,32]);; + } + + result_1845497507[0].push.apply(result_1845497507[0], [97,98,105,108,105,116,121,84,97,107,101,115]);; + result_1845497507[0].push.apply(result_1845497507[0], [58,32]);; + countHEX60gensym220_1845497518 += 1; + addQuoted_889193861(result_1845497507, 0, x_1845497506.abilityTakes); + if ((0 < countHEX60gensym220_1845497518)) { + result_1845497507[0].push.apply(result_1845497507[0], [44,32]);; + } + + result_1845497507[0].push.apply(result_1845497507[0], [104,97,115,67,97,115,116,108,101,100]);; + result_1845497507[0].push.apply(result_1845497507[0], [58,32]);; + countHEX60gensym220_1845497518 += 1; + addQuoted_1845497542(result_1845497507, 0, x_1845497506.hasCastled); + if ((0 < countHEX60gensym220_1845497518)) { + result_1845497507[0].push.apply(result_1845497507[0], [44,32]);; + } + + result_1845497507[0].push.apply(result_1845497507[0], [100,110,97]);; + result_1845497507[0].push.apply(result_1845497507[0], [58,32]);; + countHEX60gensym220_1845497518 += 1; + addQuoted_1845498043(result_1845497507, 0, x_1845497506.dna); + if ((0 < countHEX60gensym220_1845497518)) { + result_1845497507[0].push.apply(result_1845497507[0], [44,32]);; + } + + result_1845497507[0].push.apply(result_1845497507[0], [116,114,97,110,115,102,111,114,109,115]);; + result_1845497507[0].push.apply(result_1845497507[0], [58,32]);; + countHEX60gensym220_1845497518 += 1; + result_1845497507[0].push.apply(result_1845497507[0], [46,46,46]);; + if ((0 < countHEX60gensym220_1845497518)) { + result_1845497507[0].push.apply(result_1845497507[0], [44,32]);; + } + + result_1845497507[0].push.apply(result_1845497507[0], [119,97,108,108,101,116]);; + result_1845497507[0].push.apply(result_1845497507[0], [58,32]);; + countHEX60gensym220_1845497518 += 1; + addQuoted_1845498802(result_1845497507, 0, x_1845497506.wallet); + if ((0 < countHEX60gensym220_1845497518)) { + result_1845497507[0].push.apply(result_1845497507[0], [44,32]);; + } + + result_1845497507[0].push.apply(result_1845497507[0], [98,117,121,115]);; + result_1845497507[0].push.apply(result_1845497507[0], [58,32]);; + countHEX60gensym220_1845497518 += 1; + addQuoted_1845498930(result_1845497507, 0, x_1845497506.buys); + if ((0 < countHEX60gensym220_1845497518)) { + result_1845497507[0].push.apply(result_1845497507[0], [44,32]);; + } + + result_1845497507[0].push.apply(result_1845497507[0], [112,105,101,99,101,115,83,111,108,100]);; + result_1845497507[0].push.apply(result_1845497507[0], [58,32]);; + countHEX60gensym220_1845497518 += 1; + addQuoted_889193861(result_1845497507, 0, x_1845497506.piecesSold); + if ((0 < countHEX60gensym220_1845497518)) { + result_1845497507[0].push.apply(result_1845497507[0], [44,32]);; + } + + result_1845497507[0].push.apply(result_1845497507[0], [112,105,101,99,101,115,83,111,108,100,84,104,105,115,84,117,114,110]);; + result_1845497507[0].push.apply(result_1845497507[0], [58,32]);; + countHEX60gensym220_1845497518 += 1; + addQuoted_889193861(result_1845497507, 0, x_1845497506.piecesSoldThisTurn); + if ((0 < countHEX60gensym220_1845497518)) { + result_1845497507[0].push.apply(result_1845497507[0], [44,32]);; + } + + result_1845497507[0].push.apply(result_1845497507[0], [103,108,97,115,115]);; + result_1845497507[0].push.apply(result_1845497507[0], [58,32]);; + countHEX60gensym220_1845497518 += 1; + addQuoted_1845499185(result_1845497507, 0, x_1845497506.glass); + result_1845497507[0].push.apply(result_1845497507[0], [41]);; + + return result_1845497507[0]; + +} + +function HEX3Aanonymous_1845496460(piece_1845496461, b_1845496462, state_1845496463) { + state_1845496463.Field1[chckIndx(piece_1845496461.color, 0, (state_1845496463.Field1).length - 1)].piecesSold = addInt(state_1845496463.Field1[chckIndx(piece_1845496461.color, 0, (state_1845496463.Field1).length - 1)].piecesSold, 1); + state_1845496463.Field1[chckIndx(piece_1845496461.color, 0, (state_1845496463.Field1).length - 1)].piecesSoldThisTurn = addInt(state_1845496463.Field1[chckIndx(piece_1845496461.color, 0, (state_1845496463.Field1).length - 1)].piecesSoldThisTurn, 1); + rawEcho(HEX24_1845497504(state_1845496463.Field1[chckIndx(piece_1845496461.color, 0, (state_1845496463.Field1).length - 1)])); + b_1845496462[chckIndx(piece_1845496461.tile.Field1, 0, (b_1845496462).length - 1)][chckIndx(piece_1845496461.tile.Field0, 0, (b_1845496462[chckIndx(piece_1845496461.tile.Field1, 0, (b_1845496462).length - 1)]).length - 1)] = nimCopy(b_1845496462[chckIndx(piece_1845496461.tile.Field1, 0, (b_1845496462).length - 1)][chckIndx(piece_1845496461.tile.Field0, 0, (b_1845496462[chckIndx(piece_1845496461.tile.Field1, 0, (b_1845496462).length - 1)]).length - 1)], pieceCopy_1476395900(air_1526726831, b_1845496462[chckIndx(piece_1845496461.tile.Field1, 0, (b_1845496462).length - 1)][chckIndx(piece_1845496461.tile.Field0, 0, (b_1845496462[chckIndx(piece_1845496461.tile.Field1, 0, (b_1845496462).length - 1)]).length - 1)].index, 6, 1, 0, 0, piece_1845496461.tile, [], [], air_1526726831.onMove, air_1526726831.onTake, air_1526726831.whenTaken, [], [], false, [], true, false, false), NTI1476395034); + + +} + +function HEX3Aanonymous_1845499325(piece_1845499326, board_1845499327, s_1845499328) { + var result_1845499329 = false; + BeforeRet: { - F.line = 1750; - F.filename = "powers.nim"; - result_1493177770 = !((piece_1493177767.item == 0)); + result_1845499329 = !((piece_1845499326.item == 0)); break BeforeRet; }; - framePtr = F.prev; - return result_1493177770; + return result_1845499329; } -function HEX3Aanonymous_1493177761(piece_1493177762, b_1493177763, state_1493177764) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 1746; - F.filename = "powers.nim"; - state_1493177764.Field1[chckIndx(1, 0, (state_1493177764.Field1).length - 1)].piecesSoldThisTurn = 0; - F.line = 1747; - state_1493177764.Field1[chckIndx(0, 0, (state_1493177764.Field1).length - 1)].piecesSoldThisTurn = 0; - framePtr = F.prev; +function HEX3Aanonymous_1845499320(piece_1845499321, b_1845499322, state_1845499323) { + state_1845499323.Field1[chckIndx(1, 0, (state_1845499323.Field1).length - 1)].piecesSoldThisTurn = 0; + state_1845499323.Field1[chckIndx(0, 0, (state_1845499323.Field1).length - 1)].piecesSoldThisTurn = 0; } -function HEX3Aanonymous_1493177785(side_1493177786, __1493177787, b_1493177788, s_1493177789) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 1767; - F.filename = "powers.nim"; - s_1493177789.Field1[chckIndx(side_1493177786, 0, (s_1493177789.Field1).length - 1)].buys.push({Field0: [83,101,108,108], Field1: createPieceMarket_1493177776((-4), 1), Field2: HEX3Aanonymous_1493174901, Field3: HEX3Aanonymous_1493177766});; - F.line = 1768; - buff_1493172242(0, side_1493177786, b_1493177788, s_1493177789, [], [], [HEX3Aanonymous_1493177761], false, [], null, null, null, false); - framePtr = F.prev; +function HEX3Aanonymous_1845499344(side_1845499345, __1845499346, b_1845499347, s_1845499348) { + s_1845499348.Field1[chckIndx(side_1845499345, 0, (s_1845499348.Field1).length - 1)].buys.push({Field0: [83,101,108,108], Field1: createPieceMarket_1845499335((-4), 1), Field2: HEX3Aanonymous_1845496460, Field3: HEX3Aanonymous_1845499325});; + buff_1845493778(0, side_1845499345, b_1845499347, s_1845499348, [], [], [HEX3Aanonymous_1845499320], false, [], null, null, null, false); } -function getMoney_1526726671(side_1526726672, s_1526726673) { - var result_1526726674 = 0; +function getMoney_1879048207(side_1879048208, s_1879048209) { + var result_1879048210 = 0; - var F = {procname: "capitalism.getMoney", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/capitalism.nim", line: 0}; - framePtr = F; BeforeRet: { - F.line = 10; - F.filename = "capitalism.nim"; - var wallet_1526726675 = nimCopy(null, s_1526726673.Field1[chckIndx(side_1526726672, 0, (s_1526726673.Field1).length - 1)].wallet, NTI1224736866); - if (isSome_1409289449(wallet_1526726675)) { - F.line = 12; - result_1526726674 = get_1409289543(wallet_1526726675); + var wallet_1879048211 = nimCopy(null, s_1879048209.Field1[chckIndx(side_1879048208, 0, (s_1879048209.Field1).length - 1)].wallet, NTI1476395106); + if (isSome_1660947689(wallet_1879048211)) { + result_1879048210 = get_1660947783(wallet_1879048211); break BeforeRet; } else { - F.line = 14; - result_1526726674 = (-1); + result_1879048210 = (-1); break BeforeRet; } }; - framePtr = F.prev; - return result_1526726674; + return result_1879048210; } -function createTaxes_1493177804(rate_1493177805) { +function createTaxes_1845499363(rate_1845499364) { -function HEX3Aanonymous_1493177807(piece_1493177808, b_1493177809, state_1493177810) { - var F = {procname: "createTaxes.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 1777; - F.filename = "powers.nim"; - var tax_1493177811 = (((getMoney_1526726671(piece_1493177808.color, state_1493177810) * rate_1493177805)) | 0); - if ((tax_1493177811 == 0)) { - F.line = 1778; - tax_1493177811 = addInt(tax_1493177811, 1); +function HEX3Aanonymous_1845499366(piece_1845499367, b_1845499368, state_1845499369) { + var tax_1845499370 = (((getMoney_1879048207(piece_1845499367.color, state_1845499369) * rate_1845499364)) | 0); + if ((tax_1845499370 == 0)) { + tax_1845499370 = addInt(tax_1845499370, 1); } - F.line = 1779; - addMoney_1526726698(piece_1493177808.color, negInt(tax_1493177811), state_1493177810); - framePtr = F.prev; + addMoney_1879048234(piece_1845499367.color, negInt(tax_1845499370), state_1845499369); } - var result_1493177806 = null; + var result_1845499365 = null; - var F = {procname: "powers.createTaxes", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 1776; - F.filename = "powers.nim"; - result_1493177806 = HEX3Aanonymous_1493177807; - framePtr = F.prev; + result_1845499365 = HEX3Aanonymous_1845499366; - return result_1493177806; + return result_1845499365; } -function HEX3Aanonymous_1493177817(side_1493177818, __1493177819, b_1493177820, s_1493177821) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 1794; - F.filename = "powers.nim"; - addOnEndTurnTransform_1493172461(0, side_1493177818, b_1493177820, s_1493177821, moneyForTake_1493174646, false); - F.line = 1795; - addOnEndTurnTransform_1493172461(0, side_1493177818, b_1493177820, s_1493177821, moneyForTake_1493174646, false); - F.line = 1796; - buff_1493172242(0, side_1493177818, b_1493177820, s_1493177821, [], [], [createTaxes_1493177804(0.15)], false, [], null, null, null, false); - framePtr = F.prev; +function HEX3Aanonymous_1845499376(side_1845499377, __1845499378, b_1845499379, s_1845499380) { + addOnEndTurnTransform_1845493997(0, side_1845499377, b_1845499379, s_1845499380, moneyForTakeAll_1845496166, false); + addOnEndTurnTransform_1845493997(0, side_1845499377, b_1845499379, s_1845499380, moneyForTakeAll_1845496166, false); + buff_1845493778(0, side_1845499377, b_1845499379, s_1845499380, [], [], [createTaxes_1845499363(0.15)], false, [], null, null, null, false); } -function HEX3Aanonymous_1493177886(piece_1493177887, __1493177888, state_1493177889) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 1886; - F.filename = "powers.nim"; - var currentMoney_1493177890 = getMoney_1526726671(piece_1493177887.color, state_1493177889); - F.line = 1887; - var next_1493177891 = subInt(mulInt(currentMoney_1493177890, 2), currentMoney_1493177890); - F.line = 1888; - addMoney_1526726698(piece_1493177887.color, next_1493177891, state_1493177889); - framePtr = F.prev; +function HEX3Aanonymous_1845499445(piece_1845499446, __1845499447, state_1845499448) { + var currentMoney_1845499449 = getMoney_1879048207(piece_1845499446.color, state_1845499448); + var next_1845499450 = subInt(mulInt(currentMoney_1845499449, 2), currentMoney_1845499449); + addMoney_1879048234(piece_1845499446.color, next_1845499450, state_1845499448); } -function HEX3Aanonymous_1493177893(side_1493177894, __1493177895, b_1493177896, s_1493177897) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 1900; - F.filename = "powers.nim"; - buff_1493172242(0, side_1493177894, b_1493177896, s_1493177897, [], [], [HEX3Aanonymous_1493177886], false, [], null, null, null, false); - framePtr = F.prev; +function HEX3Aanonymous_1845499452(side_1845499453, __1845499454, b_1845499455, s_1845499456) { + buff_1845493778(0, side_1845499453, b_1845499455, s_1845499456, [], [], [HEX3Aanonymous_1845499445], false, [], null, null, null, false); } -function createSuperLottery_1493177856() { +function createSuperLottery_1845499415() { -function HEX3Aanonymous_1493177859(piece_1493177860, board_1493177861, state_1493177862) { - var F = {procname: "createSuperLottery.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - if (!((piece_1493177860.timesMoved == lastTimesMoved_1493177858))) { - F.line = 1862; - F.filename = "powers.nim"; - randomize_1392509190(BigInt(addInt(addInt(mulInt(10, piece_1493177860.tile.Field1), mulInt(100, piece_1493177860.tile.Field0)), state_1493177862.Field0.randSeed))); - F.line = 1863; - var ticket_1493177863 = rand_1392509064(100); - if ((ticket_1493177863 == 42)) { - F.line = 1865; - addMoney_1526726698(piece_1493177860.color, 10, state_1493177862); +function HEX3Aanonymous_1845499418(piece_1845499419, board_1845499420, state_1845499421) { + if (!((piece_1845499419.timesMoved == lastTimesMoved_1845499417))) { + randomize_1644167430(BigInt(addInt(addInt(mulInt(10, piece_1845499419.tile.Field1), mulInt(100, piece_1845499419.tile.Field0)), state_1845499421.Field0.randSeed))); + var ticket_1845499422 = rand_1644167304(100); + if ((ticket_1845499422 == 42)) { + addMoney_1879048234(piece_1845499419.color, 10, state_1845499421); Label1: { - F.line = 181; - F.filename = "piece.nim"; - var xHEX60gensym407_1493177868 = null; - F.line = 249; - F.filename = "iterators.nim"; - var i_1493179251 = 0; - F.line = 250; - var L_1493179252 = (piece_1493177860.onPromote).length; + var xHEX60gensym408_1845499427 = null; + var i_1845500811 = 0; + var L_1845500812 = (piece_1845499419.onPromote).length; Label2: { - F.line = 251; Label3: while (true) { - if (!(i_1493179251 < L_1493179252)) break Label3; - F.line = 1866; - F.filename = "powers.nim"; - xHEX60gensym407_1493177868 = piece_1493177860.onPromote[chckIndx(i_1493179251, 0, (piece_1493177860.onPromote).length - 1)]; - F.line = 182; - F.filename = "piece.nim"; - xHEX60gensym407_1493177868(piece_1493177860, board_1493177861, state_1493177862); - if (piece_1493177860.promoted) { - F.line = 183; + if (!(i_1845500811 < L_1845500812)) break Label3; + xHEX60gensym408_1845499427 = piece_1845499419.onPromote[chckIndx(i_1845500811, 0, (piece_1845499419.onPromote).length - 1)]; + xHEX60gensym408_1845499427(piece_1845499419, board_1845499420, state_1845499421); + if (piece_1845499419.promoted) { break Label1; } - F.line = 13; - F.filename = "iterators.nim"; - i_1493179251 += 1; - if (!(((piece_1493177860.onPromote).length == L_1493179252))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + i_1845500811 += 1; + if (!(((piece_1845499419.onPromote).length == L_1845500812))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } @@ -12759,309 +8584,162 @@ function HEX3Aanonymous_1493177859(piece_1493177860, board_1493177861, state_149 } - F.line = 1867; - F.filename = "powers.nim"; - lastTimesMoved_1493177858 = piece_1493177860.timesMoved; - framePtr = F.prev; + lastTimesMoved_1845499417 = piece_1845499419.timesMoved; } - var result_1493177857 = null; + var result_1845499416 = null; + + var lastTimesMoved_1845499417 = 0; + result_1845499416 = HEX3Aanonymous_1845499418; - var F = {procname: "powers.createSuperLottery", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 1854; - F.filename = "powers.nim"; - var lastTimesMoved_1493177858 = 0; - F.line = 1860; - result_1493177857 = HEX3Aanonymous_1493177859; - framePtr = F.prev; + return result_1845499416; + +} - return result_1493177857; +function HEX3Aanonymous_1845499430(side_1845499431, __1845499432, b_1845499433, s_1845499434) { + addOnEndTurnTransform_1845493997(3, side_1845499431, b_1845499433, s_1845499434, createSuperLottery_1845499415, false); + } -function HEX3Aanonymous_1493177871(side_1493177872, __1493177873, b_1493177874, s_1493177875) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 1879; - F.filename = "powers.nim"; - addOnEndTurnTransform_1493172461(3, side_1493177872, b_1493177874, s_1493177875, createSuperLottery_1493177856, false); - framePtr = F.prev; +function HEX3Aanonymous_1845495629(side_1845495630, __1845495631, b_1845495632, s_1845495633) { + buff_1845493778(6, side_1845495630, b_1845495632, s_1845495633, [], [], [HEX3Aanonymous_1845495485], true, [], null, null, null, true); } -function HEX3Aanonymous_1493174093(side_1493174094, __1493174095, b_1493174096, s_1493174097) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 1234; - F.filename = "powers.nim"; - buff_1493172242(6, side_1493174094, b_1493174096, s_1493174097, [], [], [HEX3Aanonymous_1493173949], true, [], null, null, null, true); - framePtr = F.prev; - - -} - -function HEX3Aanonymous_1509949625(board_1509949626, p_1509949627) { - var result_1509949628 = [[]]; - - var F = {procname: "extramoves.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/extramoves.nim", line: 0}; - framePtr = F; - F.line = 122; - F.filename = "extramoves.nim"; - var _ = addIfTake_1291845739(result_1509949628, 0, board_1509949626, p_1509949627, p_1509949627.tile, shooterFactory_1308622968(1, 2), false, true); - F.line = 123; - var _ = addIfTake_1291845739(result_1509949628, 0, board_1509949626, p_1509949627, p_1509949627.tile, shooterFactory_1308622968((-1), 2), false, true); - F.line = 124; - var _ = addIfTake_1291845739(result_1509949628, 0, board_1509949626, p_1509949627, p_1509949627.tile, shooterFactory_1308622968(2, 1), false, true); - F.line = 125; - var _ = addIfTake_1291845739(result_1509949628, 0, board_1509949626, p_1509949627, p_1509949627.tile, shooterFactory_1308622968(2, (-1)), false, true); - F.line = 126; - var _ = addIfTake_1291845739(result_1509949628, 0, board_1509949626, p_1509949627, p_1509949627.tile, shooterFactory_1308622968(1, (-2)), false, true); - F.line = 127; - var _ = addIfTake_1291845739(result_1509949628, 0, board_1509949626, p_1509949627, p_1509949627.tile, shooterFactory_1308622968((-1), (-2)), false, true); - F.line = 128; - var _ = addIfTake_1291845739(result_1509949628, 0, board_1509949626, p_1509949627, p_1509949627.tile, shooterFactory_1308622968((-2), 1), false, true); - F.line = 129; - var _ = addIfTake_1291845739(result_1509949628, 0, board_1509949626, p_1509949627, p_1509949627.tile, shooterFactory_1308622968((-2), (-1)), false, true); - framePtr = F.prev; - - return result_1509949628[0]; - -} - -function HEX3Aanonymous_1493173097(side_1493173098, viewSide_1493173099, b_1493173100, s_1493173101) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 517; - F.filename = "powers.nim"; - buff_1493172242(1, side_1493173098, b_1493173100, s_1493173101, [], [HEX3Aanonymous_1509949625], [], false, [], null, null, null, false); - framePtr = F.prev; - - -} - -function HEX3Aanonymous_1509949630(board_1509949631, p_1509949632) { - var result_1509949633 = [[]]; - - var F = {procname: "extramoves.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/extramoves.nim", line: 0}; - framePtr = F; - F.line = 132; - F.filename = "extramoves.nim"; - var _ = addIfTake_1291845739(result_1509949633, 0, board_1509949631, p_1509949632, p_1509949632.tile, shooterFactory_1308622968(1, 3), false, true); - F.line = 133; - var _ = addIfTake_1291845739(result_1509949633, 0, board_1509949631, p_1509949632, p_1509949632.tile, shooterFactory_1308622968((-1), 3), false, true); - F.line = 134; - var _ = addIfTake_1291845739(result_1509949633, 0, board_1509949631, p_1509949632, p_1509949632.tile, shooterFactory_1308622968(3, 1), false, true); - F.line = 135; - var _ = addIfTake_1291845739(result_1509949633, 0, board_1509949631, p_1509949632, p_1509949632.tile, shooterFactory_1308622968(3, (-1)), false, true); - F.line = 136; - var _ = addIfTake_1291845739(result_1509949633, 0, board_1509949631, p_1509949632, p_1509949632.tile, shooterFactory_1308622968(1, (-3)), false, true); - F.line = 137; - var _ = addIfTake_1291845739(result_1509949633, 0, board_1509949631, p_1509949632, p_1509949632.tile, shooterFactory_1308622968((-1), (-3)), false, true); - F.line = 138; - var _ = addIfTake_1291845739(result_1509949633, 0, board_1509949631, p_1509949632, p_1509949632.tile, shooterFactory_1308622968((-3), 1), false, true); - F.line = 139; - var _ = addIfTake_1291845739(result_1509949633, 0, board_1509949631, p_1509949632, p_1509949632.tile, shooterFactory_1308622968((-3), (-1)), false, true); - framePtr = F.prev; - - return result_1509949633[0]; - -} - -function HEX3Aanonymous_1493173120(side_1493173121, viewSide_1493173122, b_1493173123, s_1493173124) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 537; - F.filename = "powers.nim"; - buff_1493172242(1, side_1493173121, b_1493173123, s_1493173124, [], [HEX3Aanonymous_1509949630], [], false, [], null, null, null, false); - framePtr = F.prev; - - -} -var F = {procname: "module powers", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; -framePtr = F; -F.line = 2237; -F.filename = "powers.nim"; -registerPower_1442841404(empress_1493172537); -F.line = 2238; -registerPower_1442841404(altEmpress_1493172551); -F.line = 2239; -registerPower_1442841404(mysteriousSwordsmanLeft_1493172734); -F.line = 2240; -registerPower_1442841404(mysteriousSwordsmanRight_1493172786); -F.line = 2241; -registerPower_1442841404(developed_1493172796); -F.line = 2242; -registerPower_1442841404(stepOnMe_1493172822); -F.line = 2243; -registerPower_1442841404(illegalFormationBL_1493172855); -F.line = 2244; -registerPower_1442841404(illegalFormationBR_1493172866); -F.line = 2245; -registerPower_1442841404(illegalFormationRL_1493172833); -F.line = 2246; -registerPower_1442841404(illegalFormationRR_1493172844); -F.line = 2247; -registerPower_1442841404(putInTheWork_1493172888); -F.line = 2248; -registerPower_1442841404(wanderingRoninLeft_1493172936); -F.line = 2249; -registerPower_1442841404(wanderingRoninRight_1493172984); -F.line = 2250; -registerPower_1442841404(archBishops_1493173040); -F.line = 2251; -registerPower_1442841404(werewolves_1493173026); -F.line = 2252; -registerPower_1442841404(giraffe_1493173054); -F.line = 2253; -registerPower_1442841404(sacrifice_1493173170); -F.line = 2254; -registerPower_1442841404(calvary_1493173069); -F.line = 2255; -registerPower_1442841404(backStep_1493173185); -F.line = 2256; -registerPower_1442841404(headStart_1493173200); -F.line = 2257; -registerPower_1442841404(queenTrade_1493173212); -F.line = 2258; -registerPower_1442841404(lesbianPride_1493173262); -F.line = 2259; -registerPower_1442841404(knightChargePower_1493173407); -F.line = 2260; -registerPower_1442841404(nightRider_1493173518); -F.line = 2261; -registerPower_1442841404(desegregation_1493173532); -F.line = 2262; -registerPower_1442841404(concubine_1493173594); -F.line = 2263; -registerPower_1442841404(reinforcements_1493173619); -F.line = 2264; -registerPower_1442841404(shotgunKing_1493173647); -F.line = 2265; -registerPower_1442841404(coward_1493173698); -F.line = 2267; -registerPower_1442841404(lanceLeft_1493173840); -F.line = 2268; -registerPower_1442841404(lanceRight_1493173892); -F.line = 2269; -registerPower_1442841404(drunkKnights_1493174022); -F.line = 2270; -registerPower_1442841404(alcoholism_1493174032); -F.line = 2272; -registerPower_1442841404(slumdogMillionaire_1493174402); -F.line = 2273; -registerPower_1442841404(stupidPower_1493174424); -F.line = 2274; -registerPower_1442841404(conversion_1493174453); -F.line = 2275; -registerPower_1442841404(americanDream_1493174512); -F.line = 2276; -registerPower_1442841404(sleeperAgent_1493174565); -F.line = 2277; -registerPower_1442841404(capitalismPower_1493174693); -F.line = 2279; -registerPower_1442841404(skyGlass_1493178056); -F.line = 2280; -registerPower_1442841404(zeroGlass_1493178068); -F.line = 2281; -registerSynergy_1442840657({Field0: {name: [71,108,97,115,115,58,32,66,97,110,107,114,117,112,116,99,121], technicalName: [], synergy: false, tier: 2, rarity: 6, description: makeNimstrLit("On your turn, if you have only 0 dollars, instead of moving you can choose 3 pieces to each cast Bankruptcy on \x0A any non-king tiles. Any piece on these tiles will die if the cast completes. Bankruptcy cannot be cast turn one. Glass powers take one turn to start casting, one turn waiting to draw glass power, and one turn when the cast completes."), icon: [122,101,114,111,103,108,97,115,115,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1493178172, index: (-1), priority: 0}, Field1: 8, Field2: [[71,108,97,115,115,58,32,90,101,114,111], [67,97,112,105,116,97,108,105,115,109]], Field3: [[71,108,97,115,115,58,32,90,101,114,111]]}, false, false); -F.line = 2282; -registerPower_1442841404(steelGlass_1493178080); -F.line = 2283; -registerPower_1442841404(reverieGlass_1493178414); -F.line = 2284; -registerPower_1442841404(daybreakGlass_1493178460); -F.line = 2286; -registerSynergy_1442840657({Field0: {name: [65,110,105,109,101,32,66,97,116,116,108,101], technicalName: [], synergy: false, tier: 2, rarity: 0, description: makeNimstrLit("Your board is imbued with the power of anime. You feel a odd sense of regret. Or is it guilt?"), icon: [103,111,108,100,103,101,110,101,114,97,108,46,115,118,103], rotatable: true, noColor: true, onStart: HEX3Aanonymous_1493173070, index: (-1), priority: 5}, Field1: 32, Field2: [[77,121,115,116,101,114,105,111,117,115,32,83,119,111,114,100,115,109,97,110], [87,97,110,100,101,114,105,110,103,32,82,111,110,105,110]], Field3: [[77,121,115,116,101,114,105,111,117,115,32,83,119,111,114,100,115,109,97,110], [87,97,110,100,101,114,105,110,103,32,82,111,110,105,110], [77,121,115,116,101,114,105,111,117,115,32,83,119,111,114,100,115,109,97,110], [87,97,110,100,101,114,105,110,103,32,82,111,110,105,110], [65,110,105,109,101,32,66,97,116,116,108,101]]}, false, false); -F.line = 2287; -registerSynergy_1442840657({Field0: {name: [75,110,105,103,104,116,39,115,32,67,104,97,114,103,101], technicalName: [], synergy: false, tier: 2, rarity: 4, description: [67,72,65,82,71,69,33,32,89,111,117,114,32,107,110,105,103,104,116,115,32,115,116,97,114,116,32,51,32,116,105,108,101,115,32,97,104,101,97,100,46], icon: [107,110,105,103,104,116,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1493173386, index: (-1), priority: 20}, Field1: 16, Field2: [[67,97,108,118,97,114,121]], Field3: []}, false, false); -F.line = 2288; -registerSynergy_1442840657({Field0: {name: [67,114,105,109,105,110,97,108,32,70,111,114,109,97,116,105,111,110], technicalName: [], synergy: false, tier: 0, rarity: 0, description: makeNimstrLit("I guess the rules didn\'t get to you. Your pawns above both knights and both rooks swap places with those pieces."), icon: [112,97,119,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1493173444, index: (-1), priority: 20}, Field1: 12, Field2: [[73,108,108,101,103,97,108,32,70,111,114,109,97,116,105,111,110]], Field3: [[73,108,108,101,103,97,108,32,70,111,114,109,97,116,105,111,110]]}, false, false); -F.line = 2289; -registerSynergy_1442840657({Field0: {name: [76,105,110,101,98,97,99,107,101,114,115], technicalName: [], synergy: false, tier: 2, rarity: 0, description: makeNimstrLit("Your pawns learn to fight like men. They can take one spaces ahead too."), icon: [112,97,119,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1493173471, index: (-1), priority: 15}, Field1: 0, Field2: [[80,117,116,32,105,110,32,116,104,101,32,119,111,114,107,33], [72,101,97,100,115,116,97,114,116]], Field3: []}, false, false); -F.line = 2290; -registerSynergy_1442840657({Field0: {name: [72,111,108,121,32,66,105,115,104,111,112,115], technicalName: [], synergy: false, tier: 2, rarity: 8, description: [71,111,100,32,104,97,115,32,98,108,101,115,115,101,100,32,121,111,117,114,32,98,105,115,104,111,112,115,46,32], icon: [99,114,111,115,115,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1493173533, index: (-1), priority: 15}, Field1: 8, Field2: [[65,114,99,104,98,105,115,104,111,112,115], [72,111,108,121]], Field3: [[65,114,99,104,98,105,115,104,111,112,115]]}, false, false); -F.line = 2291; -registerSynergy_1442840657({Field0: {name: [66,111,117,110,116,121,32,72,117,110,116,101,114], technicalName: [], synergy: false, tier: 0, rarity: 0, description: makeNimstrLit("It\'s hard to make a living these days. If your king takes 3 pieces, you automatically win."), icon: [107,105,110,103,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1493173659, index: (-1), priority: 15}, Field1: 16, Field2: [[83,104,111,116,103,117,110,32,75,105,110,103]], Field3: []}, false, false); -F.line = 2292; -registerSynergy_1442840657({Field0: {name: [71,111,100,39,115,32,68,105,115,99,105,112,108,101], technicalName: [], synergy: false, tier: 1, rarity: 8, description: makeNimstrLit("Your bishop has now seen god. When it takes, it has a 30% chance to convert it to your color. \x0A When this happens, your bishop swaps places with it instead of taking it."), icon: [98,105,115,104,111,112,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1493174477, index: (-1), priority: 15}, Field1: 16, Field2: [[67,111,110,118,101,114,115,105,111,110], [72,111,108,121]], Field3: [[67,111,110,118,101,114,115,105,111,110]]}, false, false); -F.line = 2293; -registerSynergy_1442840657({Field0: {name: [68,105,118,105,110,101,32,87,105,110,100], technicalName: [], synergy: false, tier: 1, rarity: 8, description: makeNimstrLit("The divine wind briskly brushes your back. Your lances will take forward while sky is casting."), icon: [108,97,110,99,101,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1493178099, index: (-1), priority: 15}, Field1: 12, Field2: [[71,108,97,115,115,58,32,83,107,121], [75,97,109,105,107,97,122,101]], Field3: []}, false, false); -F.line = 2294; -registerSynergy_1442840657({Field0: {name: [83,117,112,101,114,32,80,97,119,110], technicalName: [], synergy: false, tier: 3, rarity: 0, description: [89,111,117,32,104,97,118,101,32,105,110,115,97,110,101,32,112,97,119,110,115,46,32,80,108,101,97,115,101,32,100,111,110,39,116,32,115,97,99,114,105,102,105,99,101,32,116,104,101,109,46], icon: [112,97,119,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1493173213, index: (-1), priority: 15}, Field1: 0, Field2: [[66,97,99,107,115,116,101,112], [72,101,97,100,115,116,97,114,116]], Field3: [[66,97,99,107,115,116,101,112], [72,101,97,100,115,116,97,114,116]]}, true, false); -F.line = 2295; -registerSynergy_1442840657({Field0: {name: [81,117,101,101,110,39,115,32,87,114,97,116,104], technicalName: [], synergy: false, tier: 3, rarity: 0, description: [87,104,121,32,109,117,115,116,32,115,104,101,32,100,105,101,63], icon: [113,117,101,101,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1493173263, index: (-1), priority: 1}, Field1: 0, Field2: [[76,101,115,98,105,97,110,32,80,114,105,100,101], [81,117,101,101,110,32,84,114,97,100,101]], Field3: [[76,101,115,98,105,97,110,32,80,114,105,100,101]]}, true, false); -F.line = 2296; -registerSynergy_1442840657({Field0: {name: [81,117,101,101,110,39,115,32,87,114,97,116,104], technicalName: [], synergy: false, tier: 3, rarity: 0, description: [87,104,121,32,109,117,115,116,32,115,104,101,32,100,105,101,63], icon: [113,117,101,101,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1493173263, index: (-1), priority: 1}, Field1: 0, Field2: [[76,101,115,98,105,97,110,32,80,114,105,100,101], [83,97,99,114,105,102,105,99,105,97,108,32,77,97,105,100,101,110]], Field3: [[76,101,115,98,105,97,110,32,80,114,105,100,101], [83,97,99,114,105,102,105,99,105,97,108,32,77,97,105,100,101,110]]}, true, false); -F.line = 2297; -registerSynergy_1442840657({Field0: {name: [66,97,116,116,108,101,32,70,111,114,109,97,116,105,111,110,33], technicalName: [], synergy: false, tier: 3, rarity: 0, description: [82,101,97,108,32,69,115,116,97,116,101,32,105,115,32,103,111,105,110,103,32,99,114,97,122,121,32,119,105,116,104,32,104,111,119,32,100,101,118,101,108,111,112,101,100,32,116,104,101,32,98,111,97,114,100,32,105,115,46], icon: [107,110,105,103,104,116,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1493173421, index: (-1), priority: 20}, Field1: 0, Field2: [[75,110,105,103,104,116,39,115,32,67,104,97,114,103,101], [68,101,118,101,108,111,112,101,100]], Field3: [[68,101,118,101,108,111,112,101,100]]}, true, false); -F.line = 2298; -registerSynergy_1442840657({Field0: {name: [70,97,108,108,101,110,32,81,117,101,101,110,39,115,32,87,114,97,116,104], technicalName: [], synergy: false, tier: 3, rarity: 0, description: makeNimstrLit("Why must she die? They will suffer. They will suffer. They will suffer. \x0A They will suffer. They will suffer. They will suffer. They will suffer. \x0A They will suffer. They will suffer. They will suffer. They will suffer.\x0A They will suffer. They will suffer. They will suffer. They will suffer."), icon: [113,117,101,101,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1493173295, index: (-1), priority: 0}, Field1: 0, Field2: [[76,101,115,98,105,97,110,32,80,114,105,100,101], [81,117,101,101,110,32,84,114,97,100,101], [83,97,99,114,105,102,105,99,105,97,108,32,77,97,105,100,101,110]], Field3: [[76,101,115,98,105,97,110,32,80,114,105,100,101], [83,97,99,114,105,102,105,99,105,97,108,32,77,97,105,100,101,110]]}, true, false); -F.line = 2299; -registerSynergy_1442840657({Field0: {name: [66,97,110,100,97,105,100], technicalName: [], synergy: false, tier: 3, rarity: 0, description: makeNimstrLit("It turns out that calvary plus giraffe is an automatic checkmate for white, \x0A so I\'m making the giraffes start one tile back. Sorry."), icon: [103,105,114,97,102,102,101,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1493174282, index: (-1), priority: 26}, Field1: 0, Field2: [[75,110,105,103,104,116,39,115,32,67,104,97,114,103,101], [71,105,114,97,102,102,101]], Field3: []}, true, false); -F.line = 2300; -registerSynergy_1442840657({Field0: {name: [66,111,117,110,116,121,32,72,117,110,116,101,114,32,78,101,114,102], technicalName: [], synergy: false, tier: 0, rarity: 0, description: makeNimstrLit("Yeah, 3 pieces is way too easy for our lesbian queens, so now it\'s 7 pieces. You got this!"), icon: [107,105,110,103,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1493174328, index: (-1), priority: 15}, Field1: 0, Field2: [[76,101,115,98,105,97,110,32,80,114,105,100,101], [66,111,117,110,116,121,32,72,117,110,116,101,114]], Field3: [[66,111,117,110,116,121,32,72,117,110,116,101,114]]}, true, false); -F.line = 2301; -registerSynergy_1442840657({Field0: {name: [110,105,103,104,101,116,114,105,101,100,100,101,114], technicalName: [], synergy: false, tier: 3, rarity: 0, description: [110,105,103,104,101,116,114,105,101,100,100,101,114,46,63], icon: [110,105,103,104,116,114,105,100,101,114,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1493174033, index: (-1), priority: 17}, Field1: 0, Field2: [[68,114,117,110,107,32,75,110,105,103,104,116,115], [78,105,103,104,116,114,105,100,101,114]], Field3: []}, true, false); -F.line = 2302; -registerSynergy_1442840657({Field0: {name: [110,105,103,104,101,116,114,105,101,100,100,101,114], technicalName: [], synergy: false, tier: 3, rarity: 0, description: [110,105,103,104,101,116,114,105,101,100,100,101,114,46,63], icon: [110,105,103,104,116,114,105,100,101,114,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1493174033, index: (-1), priority: 17}, Field1: 0, Field2: [[65,108,99,111,104,111,108,105,115,109], [78,105,103,104,116,114,105,100,101,114]], Field3: []}, true, false); -F.line = 2303; -registerSynergy_1442840657({Field0: {name: [67,108,97,114,105,116,121], technicalName: [], synergy: false, tier: 3, rarity: 0, description: makeNimstrLit("You now see things in a whole new light. \x0A It\'s not regret as much as self-disappointment."), icon: [107,105,110,103,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1493178526, index: (-1), priority: 15}, Field1: 0, Field2: [[71,108,97,115,115,58,32,68,97,121,98,114,101,97,107], [67,111,110,99,117,98,105,110,101]], Field3: []}, true, false); -F.line = 2304; -registerSynergy_1442840657({Field0: {name: [77,97,115,116,101,114,32,71,108,97,115,115], technicalName: [], synergy: false, tier: 3, rarity: 0, description: [89,111,117,32,104,97,118,101,32,103,111,111,100,32,116,97,115,116,101,46,32,65,108,108,32,103,108,97,115,115,101,115,32,99,97,110,32,98,101,32,99,97,115,116,32,111,110,101,32,109,111,114,101,32,116,105,109,101,46], icon: [115,107,121,103,108,97,115,115,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1493178545, index: (-1), priority: 30}, Field1: 0, Field2: [[71,108,97,115,115,58,32,83,107,121], [71,108,97,115,115,58,32,82,101,118,101,114,105,101], [71,108,97,115,115,58,32,90,101,114,111], [71,108,97,115,115,58,32,83,116,101,101,108], [71,108,97,115,115,58,32,68,97,121,98,114,101,97,107]], Field3: []}, true, false); -F.line = 2305; -registerSynergy_1442840657({Field0: {name: [77,97,115,116,101,114,32,71,108,97,115,115], technicalName: [], synergy: false, tier: 3, rarity: 0, description: [89,111,117,32,104,97,118,101,32,103,111,111,100,32,116,97,115,116,101,46,32,65,108,108,32,103,108,97,115,115,101,115,32,99,97,110,32,98,101,32,99,97,115,116,32,111,110,101,32,109,111,114,101,32,116,105,109,101,46], icon: [115,107,121,103,108,97,115,115,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1493178545, index: (-1), priority: 30}, Field1: 0, Field2: [[71,108,97,115,115,58,32,83,107,121], [71,108,97,115,115,58,32,82,101,118,101,114,105,101], [71,108,97,115,115,58,32,66,97,110,107,114,117,112,116,99,121], [71,108,97,115,115,58,32,83,116,101,101,108], [71,108,97,115,115,58,32,68,97,121,98,114,101,97,107]], Field3: []}, true, false); -F.line = 2307; -registerSynergy_1442840657({Field0: {name: [67,97,112,105,116,97,108,105,115,109,32,73,73], technicalName: [67,97,112,105,116,97,108,105,115,109,32,73,73,58,32,77,111,118,101,32,85,112], synergy: false, tier: 0, rarity: 0, description: makeNimstrLit("Money is pretty neat right? You can spend 8 dollars to move a piece one tile forward. It cannot take with this action."), icon: [117,115,102,108,97,103,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1493174790, index: (-1), priority: 15}, Field1: 24, Field2: [[67,97,112,105,116,97,108,105,115,109]], Field3: []}, false, false); -F.line = 2308; -registerSynergy_1442840657({Field0: {name: [67,97,112,105,116,97,108,105,115,109,32,73,73], technicalName: [67,97,112,105,116,97,108,105,115,109,32,73,73,58,32,77,111,118,101,32,66,97,99,107], synergy: false, tier: 0, rarity: 0, description: makeNimstrLit("Money is pretty neat right? You can spend 7 dollars to move a piece one tile backwards. It cannot take with this action."), icon: [117,115,102,108,97,103,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1493174833, index: (-1), priority: 15}, Field1: 24, Field2: [[67,97,112,105,116,97,108,105,115,109]], Field3: []}, false, false); -F.line = 2309; -registerSynergy_1442840657({Field0: {name: [67,97,112,105,116,97,108,105,115,109,32,73,73], technicalName: [67,97,112,105,116,97,108,105,115,109,32,73,73,58,32,73,110,99,111,109,101], synergy: false, tier: 0, rarity: 0, description: [72,101,114,101,44,32,104,97,118,101,32,49,48,32,100,111,108,108,97,114,115], icon: [117,115,102,108,97,103,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1493174860, index: (-1), priority: 35}, Field1: 24, Field2: [[67,97,112,105,116,97,108,105,115,109]], Field3: []}, false, false); -F.line = 2310; -registerSynergy_1442840657({Field0: {name: [67,97,112,105,116,97,108,105,115,109,32,73,73,73], technicalName: [67,97,112,105,116,97,108,105,115,109,32,73,73,73,58,32,85,112,103,114,97,100,101,32,75,110,105,103,104,116], synergy: false, tier: 1, rarity: 0, description: makeNimstrLit("Money can be used in exchange for goods and services. You can spend 8 dollars to give a piece the movement of a knight.\x0A This upgrade is 30 dollars more expensive for the king. The upgraded piece still cannot take like a knight."), icon: [117,115,102,108,97,103,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1493174867, index: (-1), priority: 15}, Field1: 24, Field2: [[67,97,112,105,116,97,108,105,115,109]], Field3: []}, false, false); -F.line = 2311; -registerSynergy_1442840657({Field0: {name: [67,97,112,105,116,97,108,105,115,109,32,73,73,73], technicalName: [67,97,112,105,116,97,108,105,115,109,32,73,73,73,58,32,85,112,103,114,97,100,101,32,71,105,114,97,102,102,101], synergy: false, tier: 1, rarity: 0, description: makeNimstrLit("Money can be used in exchange for goods and services. You can spend 8 dollars to give a piece the movement of a giraffe. \x0A This upgrade is 30 dollars more expensive for the king. The upgraded piece still cannot take like a giraffe."), icon: [117,115,102,108,97,103,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1493174884, index: (-1), priority: 15}, Field1: 24, Field2: [[67,97,112,105,116,97,108,105,115,109]], Field3: []}, false, false); -F.line = 2312; -registerSynergy_1442840657({Field0: {name: [67,97,112,105,116,97,108,105,115,109,32,73,86], technicalName: [67,97,112,105,116,97,108,105,115,109,32,73,86,58,32,34,73,110,102,108,97,116,105,111,110,34], synergy: false, tier: 1, rarity: 0, description: makeNimstrLit("More money equals more money! You get 3 more dollars for taking a piece. "), icon: [117,115,102,108,97,103,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1493177828, index: (-1), priority: 15}, Field1: 24, Field2: [[67,97,112,105,116,97,108,105,115,109]], Field3: []}, false, false); -F.line = 2313; -registerSynergy_1442840657({Field0: {name: [67,97,112,105,116,97,108,105,115,109,32,73,86], technicalName: [67,97,112,105,116,97,108,105,115,109,32,73,86,58,32,72,97,110,100,111,117,116,115], synergy: false, tier: 1, rarity: 0, description: makeNimstrLit("What if everyone had money? Then everyone would have money! You get 1 dollar for taking a piece."), icon: [117,115,102,108,97,103,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1493177849, index: (-1), priority: 15}, Field1: 24, Field2: [[67,97,112,105,116,97,108,105,115,109]], Field3: []}, false, false); -F.line = 2314; -registerSynergy_1442840657({Field0: {name: [67,97,112,105,116,97,108,105,115,109,32,86], technicalName: [67,97,112,105,116,97,108,105,115,109,32,86,58,32,83,101,108,108], synergy: false, tier: 1, rarity: 0, description: makeNimstrLit("Who needs these pieces? AFUERA! You can sell a piece for 4 dollars. Each subsequent piece gives one dollar less. "), icon: [117,115,102,108,97,103,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1493177785, index: (-1), priority: 15}, Field1: 24, Field2: [[67,97,112,105,116,97,108,105,115,109]], Field3: []}, false, false); -F.line = 2315; -registerSynergy_1442840657({Field0: {name: [67,97,112,105,116,97,108,105,115,109,32,86], technicalName: [67,97,112,105,116,97,108,105,115,109,32,86,58,32,84,97,120,101,115], synergy: false, tier: 2, rarity: 0, description: makeNimstrLit("Nothing in the world is certain except for Taxes and one other thing. \x0A You gain 6 more dollars for taking a piece, but you lose 15% every turn."), icon: [117,115,102,108,97,103,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1493177817, index: (-1), priority: 15}, Field1: 24, Field2: [[67,97,112,105,116,97,108,105,115,109]], Field3: []}, false, false); -F.line = 2316; -registerSynergy_1442840657({Field0: {name: [67,97,112,105,116,97,108,105,115,109,32,77,77], technicalName: [], synergy: false, tier: 3, rarity: 0, description: [84,79,32,84,72,69,32,77,79,79,78,33,33,33,33], icon: [117,115,102,108,97,103,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1493177893, index: (-1), priority: 15}, Field1: 16, Field2: [[67,97,112,105,116,97,108,105,115,109], [67,97,112,105,116,97,108,105,115,109,32,73,73], [67,97,112,105,116,97,108,105,115,109,32,73,73,73], [67,97,112,105,116,97,108,105,115,109,32,73,86], [67,97,112,105,116,97,108,105,115,109,32,86]], Field3: []}, true, false); -F.line = 2317; -registerSynergy_1442840657({Field0: {name: [83,108,117,109,100,111,103,32,66,105,108,108,105,111,110,97,105,114,101], technicalName: [], synergy: false, tier: 0, rarity: 0, description: makeNimstrLit("Have you seen the movie Slumdog Millionaire? It\'s kind of like that but more. \x0A Your pawns have a 2% chance of promoting whenever they move. When this happens, you get 10 dollars."), icon: [112,97,119,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1493177871, index: (-1), priority: 15}, Field1: 8, Field2: [[67,97,112,105,116,97,108,105,115,109], [83,108,117,109,100,111,103,32,77,105,108,108,105,111,110,97,105,114,101]], Field3: [[83,108,117,109,100,111,103,32,77,105,108,108,105,111,110,97,105,114,101]]}, true, false); -F.line = 2319; -registerSynergy_1442840657({Field0: {name: [118,105,114,117,115], technicalName: [], synergy: false, tier: 3, rarity: 0, description: [84,104,101,121,39,114,101,32,100,121,105,110,103,46,32,84,104,101,121,39,114,101,32,100,121,105,110,103,46,32,84,104,101,121,39,114,101,32,100,121,105,110,103,46], icon: [], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1493174093, index: (-1), priority: 15}, Field1: 0, Field2: [[65,108,99,111,104,111,108,105,115,109], [75,97,109,105,107,97,122,101], [72,101,97,100,115,116,97,114,116], [77,121,115,116,101,114,105,111,117,115,32,83,119,111,114,100,115,109,97,110]], Field3: [[65,108,99,111,104,111,108,105,115,109]]}, true, false); -F.line = 2320; -registerSynergy_1442840657({Field0: {name: [118,105,114,117,115], technicalName: [], synergy: false, tier: 3, rarity: 0, description: [84,104,101,121,39,114,101,32,100,121,105,110,103,46,32,84,104,101,121,39,114,101,32,100,121,105,110,103,46,32,84,104,101,121,39,114,101,32,100,121,105,110,103,46], icon: [], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1493174093, index: (-1), priority: 15}, Field1: 0, Field2: [[65,108,99,111,104,111,108,105,115,109], [66,97,99,107,115,116,101,112], [75,110,105,103,104,116,39,115,32,67,104,97,114,103,101], [69,109,112,114,101,115,115]], Field3: [[65,108,99,111,104,111,108,105,115,109]]}, true, false); -F.line = 2321; -registerSynergy_1442840657({Field0: {name: [118,105,114,117,115], technicalName: [], synergy: false, tier: 3, rarity: 0, description: [84,104,101,121,39,114,101,32,100,121,105,110,103,46,32,84,104,101,121,39,114,101,32,100,121,105,110,103,46,32,84,104,101,121,39,114,101,32,100,121,105,110,103,46], icon: [], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1493174093, index: (-1), priority: 15}, Field1: 0, Field2: [[65,108,99,111,104,111,108,105,115,109], [87,97,110,100,101,114,105,110,103,32,82,111,110,105,110], [83,117,112,101,114,32,80,97,119,110], [69,109,112,114,101,115,115]], Field3: [[65,108,99,111,104,111,108,105,115,109]]}, true, false); -F.line = 2322; -registerSynergy_1442840657({Field0: {name: [118,105,114,117,115], technicalName: [], synergy: false, tier: 3, rarity: 0, description: [84,104,101,121,39,114,101,32,100,121,105,110,103,46,32,84,104,101,121,39,114,101,32,100,121,105,110,103,46,32,84,104,101,121,39,114,101,32,100,121,105,110,103,46], icon: [], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1493174093, index: (-1), priority: 15}, Field1: 0, Field2: [[65,108,99,111,104,111,108,105,115,109], [83,116,101,112,32,111,110,32,109,101], [67,111,119,97,114,100], [83,104,111,116,103,117,110,32,75,105,110,103]], Field3: [[65,108,99,111,104,111,108,105,115,109]]}, true, false); -F.line = 2323; -registerSynergy_1442840657({Field0: {name: [118,105,114,117,115], technicalName: [], synergy: false, tier: 3, rarity: 0, description: [84,104,101,121,39,114,101,32,100,121,105,110,103,46,32,84,104,101,121,39,114,101,32,100,121,105,110,103,46,32,84,104,101,121,39,114,101,32,100,121,105,110,103,46], icon: [], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1493174093, index: (-1), priority: 15}, Field1: 0, Field2: [[65,108,99,111,104,111,108,105,115,109], [82,101,105,110,102,111,114,99,101,109,101,110,116,115], [69,109,112,114,101,115,115], [71,105,114,97,102,102,101], [87,101,114,101,119,111,108,118,101,115]], Field3: [[65,108,99,111,104,111,108,105,115,109]]}, true, false); -F.line = 2324; -registerSynergy_1442840657({Field0: {name: [118,105,114,117,115], technicalName: [], synergy: false, tier: 3, rarity: 0, description: [84,104,101,121,39,114,101,32,100,121,105,110,103,46,32,84,104,101,121,39,114,101,32,100,121,105,110,103,46,32,84,104,101,121,39,114,101,32,100,121,105,110,103,46], icon: [], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1493174093, index: (-1), priority: 15}, Field1: 0, Field2: [[65,108,99,111,104,111,108,105,115,109], [65,110,105,109,101,32,66,97,116,116,108,101], [68,101,118,101,108,111,112,101,100], [83,97,99,114,105,102,105,99,105,97,108,32,77,97,105,100,101,110], [73,108,108,101,103,97,108,32,70,111,114,109,97,116,105,111,110]], Field3: [[65,108,99,111,104,111,108,105,115,109]]}, true, false); -F.line = 2325; -registerSynergy_1442840657({Field0: {name: [118,105,114,117,115], technicalName: [], synergy: false, tier: 3, rarity: 0, description: [84,104,101,121,39,114,101,32,100,121,105,110,103,46,32,84,104,101,121,39,114,101,32,100,121,105,110,103,46,32,84,104,101,121,39,114,101,32,100,121,105,110,103,46], icon: [], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1493174093, index: (-1), priority: 15}, Field1: 0, Field2: [[65,108,99,111,104,111,108,105,115,109], [76,105,110,101,98,97,99,107,101,114,115], [78,105,103,104,116,114,105,100,101,114], [68,101,115,101,103,114,101,103,97,116,105,111,110,32,97,110,100,32,73,110,116,101,103,114,97,116,105,111,110], [72,111,108,121]], Field3: [[65,108,99,111,104,111,108,105,115,109]]}, true, false); -F.line = 2327; -registerSynergy_1442840657({Field0: {name: [77,97,115,111,99,104,105,115,116,32,69,109,112,114,101,115,115], technicalName: [], synergy: false, tier: 3, rarity: 0, description: [78,79,78,69], icon: [], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1493173097, index: (-1), priority: 15}, Field1: 0, Field2: [[69,109,112,114,101,115,115], [83,116,101,112,32,111,110,32,109,101]], Field3: []}, true, true); -F.line = 2328; -registerSynergy_1442840657({Field0: {name: [77,97,115,111,99,104,105,115,116,32,69,109,112,114,101,115,115], technicalName: [], synergy: false, tier: 3, rarity: 0, description: [78,79,78,69], icon: [], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1493173120, index: (-1), priority: 15}, Field1: 0, Field2: [[69,109,112,114,101,115,115], [83,116,101,112,32,111,110,32,109,101]], Field3: []}, true, true); -framePtr = F.prev; -var F = {procname: "module powers", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module store", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/store.nim", line: 0}; -framePtr = F; -F.line = 5; -F.filename = "store.nim"; +function HEX3Aanonymous_1862271161(board_1862271162, p_1862271163) { + var result_1862271164 = [[]]; + + var _ = addIfTake_1543503979(result_1862271164, 0, board_1862271162, p_1862271163, p_1862271163.tile, shooterFactory_1560281208(1, 2), false, true); + var _ = addIfTake_1543503979(result_1862271164, 0, board_1862271162, p_1862271163, p_1862271163.tile, shooterFactory_1560281208((-1), 2), false, true); + var _ = addIfTake_1543503979(result_1862271164, 0, board_1862271162, p_1862271163, p_1862271163.tile, shooterFactory_1560281208(2, 1), false, true); + var _ = addIfTake_1543503979(result_1862271164, 0, board_1862271162, p_1862271163, p_1862271163.tile, shooterFactory_1560281208(2, (-1)), false, true); + var _ = addIfTake_1543503979(result_1862271164, 0, board_1862271162, p_1862271163, p_1862271163.tile, shooterFactory_1560281208(1, (-2)), false, true); + var _ = addIfTake_1543503979(result_1862271164, 0, board_1862271162, p_1862271163, p_1862271163.tile, shooterFactory_1560281208((-1), (-2)), false, true); + var _ = addIfTake_1543503979(result_1862271164, 0, board_1862271162, p_1862271163, p_1862271163.tile, shooterFactory_1560281208((-2), 1), false, true); + var _ = addIfTake_1543503979(result_1862271164, 0, board_1862271162, p_1862271163, p_1862271163.tile, shooterFactory_1560281208((-2), (-1)), false, true); + + return result_1862271164[0]; + +} + +function HEX3Aanonymous_1845494633(side_1845494634, viewSide_1845494635, b_1845494636, s_1845494637) { + buff_1845493778(1, side_1845494634, b_1845494636, s_1845494637, [], [HEX3Aanonymous_1862271161], [], false, [], null, null, null, false); + + +} + +function HEX3Aanonymous_1862271166(board_1862271167, p_1862271168) { + var result_1862271169 = [[]]; + + var _ = addIfTake_1543503979(result_1862271169, 0, board_1862271167, p_1862271168, p_1862271168.tile, shooterFactory_1560281208(1, 3), false, true); + var _ = addIfTake_1543503979(result_1862271169, 0, board_1862271167, p_1862271168, p_1862271168.tile, shooterFactory_1560281208((-1), 3), false, true); + var _ = addIfTake_1543503979(result_1862271169, 0, board_1862271167, p_1862271168, p_1862271168.tile, shooterFactory_1560281208(3, 1), false, true); + var _ = addIfTake_1543503979(result_1862271169, 0, board_1862271167, p_1862271168, p_1862271168.tile, shooterFactory_1560281208(3, (-1)), false, true); + var _ = addIfTake_1543503979(result_1862271169, 0, board_1862271167, p_1862271168, p_1862271168.tile, shooterFactory_1560281208(1, (-3)), false, true); + var _ = addIfTake_1543503979(result_1862271169, 0, board_1862271167, p_1862271168, p_1862271168.tile, shooterFactory_1560281208((-1), (-3)), false, true); + var _ = addIfTake_1543503979(result_1862271169, 0, board_1862271167, p_1862271168, p_1862271168.tile, shooterFactory_1560281208((-3), 1), false, true); + var _ = addIfTake_1543503979(result_1862271169, 0, board_1862271167, p_1862271168, p_1862271168.tile, shooterFactory_1560281208((-3), (-1)), false, true); + + return result_1862271169[0]; + +} + +function HEX3Aanonymous_1845494656(side_1845494657, viewSide_1845494658, b_1845494659, s_1845494660) { + buff_1845493778(1, side_1845494657, b_1845494659, s_1845494660, [], [HEX3Aanonymous_1862271166], [], false, [], null, null, null, false); + + +} +registerPower_1728054076(empress_1845494073); +registerPower_1728054076(altEmpress_1845494087); +registerPower_1728054076(mysteriousSwordsmanLeft_1845494270); +registerPower_1728054076(mysteriousSwordsmanRight_1845494322); +registerPower_1728054076(developed_1845494332); +registerPower_1728054076(stepOnMe_1845494358); +registerPower_1728054076(illegalFormationBL_1845494391); +registerPower_1728054076(illegalFormationBR_1845494402); +registerPower_1728054076(illegalFormationRL_1845494369); +registerPower_1728054076(illegalFormationRR_1845494380); +registerPower_1728054076(putInTheWork_1845494424); +registerPower_1728054076(wanderingRoninLeft_1845494472); +registerPower_1728054076(wanderingRoninRight_1845494520); +registerPower_1728054076(archBishops_1845494576); +registerPower_1728054076(werewolves_1845494562); +registerPower_1728054076(giraffe_1845494590); +registerPower_1728054076(sacrifice_1845494706); +registerPower_1728054076(calvary_1845494605); +registerPower_1728054076(backStep_1845494721); +registerPower_1728054076(headStart_1845494736); +registerPower_1728054076(queenTrade_1845494748); +registerPower_1728054076(lesbianPride_1845494798); +registerPower_1728054076(knightChargePower_1845494943); +registerPower_1728054076(nightRider_1845495054); +registerPower_1728054076(desegregation_1845495068); +registerPower_1728054076(concubine_1845495130); +registerPower_1728054076(reinforcements_1845495155); +registerPower_1728054076(shotgunKing_1845495183); +registerPower_1728054076(coward_1845495234); +registerPower_1728054076(lanceLeft_1845495376); +registerPower_1728054076(lanceRight_1845495428); +registerPower_1728054076(drunkKnights_1845495558); +registerPower_1728054076(alcoholism_1845495568); +registerPower_1728054076(slumdogMillionaire_1845495938); +registerPower_1728054076(stupidPower_1845495960); +registerPower_1728054076(conversion_1845495996); +registerPower_1728054076(americanDream_1845496032); +registerPower_1728054076(sleeperAgent_1845496085); +registerPower_1728054076(capitalismPower_1845496220); +registerPower_1728054076(skyGlass_1845499615); +registerPower_1728054076(zeroGlass_1845499627); +registerSynergy_1728053329({Field0: {name: [71,108,97,115,115,58,32,66,97,110,107,114,117,112,116,99,121], technicalName: [], synergy: false, tier: 2, rarity: 6, description: makeNimstrLit("On your turn, if you have only 0 dollars, instead of moving you can choose 3 pieces to each cast Bankruptcy on \x0A any non-king tiles. Any piece on these tiles will die if the cast completes. Bankruptcy cannot be cast turn one. Glass powers take one turn to start casting, one turn waiting to draw glass power, and one turn when the cast completes."), icon: [122,101,114,111,103,108,97,115,115,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845499731, index: (-1), priority: 0}, Field1: 8, Field2: [[71,108,97,115,115,58,32,90,101,114,111], [67,97,112,105,116,97,108,105,115,109]], Field3: [[71,108,97,115,115,58,32,90,101,114,111]]}, false, false); +registerPower_1728054076(steelGlass_1845499639); +registerPower_1728054076(reverieGlass_1845499973); +registerPower_1728054076(daybreakGlass_1845500019); +registerSynergy_1728053329({Field0: {name: [65,110,105,109,101,32,66,97,116,116,108,101], technicalName: [], synergy: false, tier: 2, rarity: 0, description: makeNimstrLit("Your board is imbued with the power of anime. You feel a odd sense of regret. Or is it guilt?"), icon: [103,111,108,100,103,101,110,101,114,97,108,46,115,118,103], rotatable: true, noColor: true, onStart: HEX3Aanonymous_1845494606, index: (-1), priority: 5}, Field1: 32, Field2: [[77,121,115,116,101,114,105,111,117,115,32,83,119,111,114,100,115,109,97,110], [87,97,110,100,101,114,105,110,103,32,82,111,110,105,110]], Field3: [[77,121,115,116,101,114,105,111,117,115,32,83,119,111,114,100,115,109,97,110], [87,97,110,100,101,114,105,110,103,32,82,111,110,105,110], [77,121,115,116,101,114,105,111,117,115,32,83,119,111,114,100,115,109,97,110], [87,97,110,100,101,114,105,110,103,32,82,111,110,105,110], [65,110,105,109,101,32,66,97,116,116,108,101]]}, false, false); +registerSynergy_1728053329({Field0: {name: [75,110,105,103,104,116,39,115,32,67,104,97,114,103,101], technicalName: [], synergy: false, tier: 2, rarity: 4, description: [67,72,65,82,71,69,33,32,89,111,117,114,32,107,110,105,103,104,116,115,32,115,116,97,114,116,32,51,32,116,105,108,101,115,32,97,104,101,97,100,46], icon: [107,110,105,103,104,116,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845494922, index: (-1), priority: 20}, Field1: 16, Field2: [[67,97,108,118,97,114,121]], Field3: []}, false, false); +registerSynergy_1728053329({Field0: {name: [67,114,105,109,105,110,97,108,32,70,111,114,109,97,116,105,111,110], technicalName: [], synergy: false, tier: 0, rarity: 0, description: makeNimstrLit("I guess the rules didn\'t get to you. Your pawns above both knights and both rooks swap places with those pieces."), icon: [112,97,119,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845494980, index: (-1), priority: 20}, Field1: 12, Field2: [[73,108,108,101,103,97,108,32,70,111,114,109,97,116,105,111,110]], Field3: [[73,108,108,101,103,97,108,32,70,111,114,109,97,116,105,111,110]]}, false, false); +registerSynergy_1728053329({Field0: {name: [76,105,110,101,98,97,99,107,101,114,115], technicalName: [], synergy: false, tier: 2, rarity: 0, description: makeNimstrLit("Your pawns learn to fight like men. They can take one spaces ahead too."), icon: [112,97,119,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845495007, index: (-1), priority: 15}, Field1: 0, Field2: [[80,117,116,32,105,110,32,116,104,101,32,119,111,114,107,33], [72,101,97,100,115,116,97,114,116]], Field3: []}, false, false); +registerSynergy_1728053329({Field0: {name: [72,111,108,121,32,66,105,115,104,111,112,115], technicalName: [], synergy: false, tier: 2, rarity: 8, description: [71,111,100,32,104,97,115,32,98,108,101,115,115,101,100,32,121,111,117,114,32,98,105,115,104,111,112,115,46,32], icon: [99,114,111,115,115,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845495069, index: (-1), priority: 15}, Field1: 8, Field2: [[65,114,99,104,98,105,115,104,111,112,115], [72,111,108,121]], Field3: [[65,114,99,104,98,105,115,104,111,112,115]]}, false, false); +registerSynergy_1728053329({Field0: {name: [66,111,117,110,116,121,32,72,117,110,116,101,114], technicalName: [], synergy: false, tier: 0, rarity: 0, description: makeNimstrLit("It\'s hard to make a living these days. If your king takes 3 pieces, you automatically win."), icon: [107,105,110,103,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845495195, index: (-1), priority: 15}, Field1: 16, Field2: [[83,104,111,116,103,117,110,32,75,105,110,103]], Field3: []}, false, false); +registerSynergy_1728053329({Field0: {name: [71,111,100,39,115,32,68,105,115,99,105,112,108,101], technicalName: [], synergy: false, tier: 1, rarity: 8, description: makeNimstrLit("Your bishop has now seen god. When it takes, it has a 30% chance to convert it to your color. \x0A When this happens, your bishop swaps places with it instead of taking it."), icon: [98,105,115,104,111,112,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845495997, index: (-1), priority: 15}, Field1: 16, Field2: [[67,111,110,118,101,114,115,105,111,110], [72,111,108,121]], Field3: [[67,111,110,118,101,114,115,105,111,110]]}, false, false); +registerSynergy_1728053329({Field0: {name: [68,105,118,105,110,101,32,87,105,110,100], technicalName: [], synergy: false, tier: 1, rarity: 8, description: makeNimstrLit("The divine wind briskly brushes your back. Your lances will take forward while sky is casting."), icon: [108,97,110,99,101,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845499658, index: (-1), priority: 15}, Field1: 12, Field2: [[71,108,97,115,115,58,32,83,107,121], [75,97,109,105,107,97,122,101]], Field3: []}, false, false); +registerSynergy_1728053329({Field0: {name: [83,117,112,101,114,32,80,97,119,110], technicalName: [], synergy: false, tier: 3, rarity: 0, description: [89,111,117,32,104,97,118,101,32,105,110,115,97,110,101,32,112,97,119,110,115,46,32,80,108,101,97,115,101,32,100,111,110,39,116,32,115,97,99,114,105,102,105,99,101,32,116,104,101,109,46], icon: [112,97,119,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845494749, index: (-1), priority: 15}, Field1: 0, Field2: [[66,97,99,107,115,116,101,112], [72,101,97,100,115,116,97,114,116]], Field3: [[66,97,99,107,115,116,101,112], [72,101,97,100,115,116,97,114,116]]}, true, false); +registerSynergy_1728053329({Field0: {name: [81,117,101,101,110,39,115,32,87,114,97,116,104], technicalName: [], synergy: false, tier: 3, rarity: 0, description: [87,104,121,32,109,117,115,116,32,115,104,101,32,100,105,101,63], icon: [113,117,101,101,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845494799, index: (-1), priority: 1}, Field1: 0, Field2: [[76,101,115,98,105,97,110,32,80,114,105,100,101], [81,117,101,101,110,32,84,114,97,100,101]], Field3: [[76,101,115,98,105,97,110,32,80,114,105,100,101]]}, true, false); +registerSynergy_1728053329({Field0: {name: [81,117,101,101,110,39,115,32,87,114,97,116,104], technicalName: [], synergy: false, tier: 3, rarity: 0, description: [87,104,121,32,109,117,115,116,32,115,104,101,32,100,105,101,63], icon: [113,117,101,101,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845494799, index: (-1), priority: 1}, Field1: 0, Field2: [[76,101,115,98,105,97,110,32,80,114,105,100,101], [83,97,99,114,105,102,105,99,105,97,108,32,77,97,105,100,101,110]], Field3: [[76,101,115,98,105,97,110,32,80,114,105,100,101], [83,97,99,114,105,102,105,99,105,97,108,32,77,97,105,100,101,110]]}, true, false); +registerSynergy_1728053329({Field0: {name: [66,97,116,116,108,101,32,70,111,114,109,97,116,105,111,110,33], technicalName: [], synergy: false, tier: 3, rarity: 0, description: [82,101,97,108,32,69,115,116,97,116,101,32,105,115,32,103,111,105,110,103,32,99,114,97,122,121,32,119,105,116,104,32,104,111,119,32,100,101,118,101,108,111,112,101,100,32,116,104,101,32,98,111,97,114,100,32,105,115,46], icon: [107,110,105,103,104,116,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845494957, index: (-1), priority: 20}, Field1: 0, Field2: [[75,110,105,103,104,116,39,115,32,67,104,97,114,103,101], [68,101,118,101,108,111,112,101,100]], Field3: [[68,101,118,101,108,111,112,101,100]]}, true, false); +registerSynergy_1728053329({Field0: {name: [70,97,108,108,101,110,32,81,117,101,101,110,39,115,32,87,114,97,116,104], technicalName: [], synergy: false, tier: 3, rarity: 0, description: makeNimstrLit("Why must she die? They will suffer. They will suffer. They will suffer. \x0A They will suffer. They will suffer. They will suffer. They will suffer. \x0A They will suffer. They will suffer. They will suffer. They will suffer.\x0A They will suffer. They will suffer. They will suffer. They will suffer."), icon: [113,117,101,101,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845494831, index: (-1), priority: 0}, Field1: 0, Field2: [[76,101,115,98,105,97,110,32,80,114,105,100,101], [81,117,101,101,110,32,84,114,97,100,101], [83,97,99,114,105,102,105,99,105,97,108,32,77,97,105,100,101,110]], Field3: [[76,101,115,98,105,97,110,32,80,114,105,100,101], [83,97,99,114,105,102,105,99,105,97,108,32,77,97,105,100,101,110]]}, true, false); +registerSynergy_1728053329({Field0: {name: [66,97,110,100,97,105,100], technicalName: [], synergy: false, tier: 3, rarity: 0, description: makeNimstrLit("It turns out that calvary plus giraffe is an automatic checkmate for white, \x0A so I\'m making the giraffes start one tile back. Sorry."), icon: [103,105,114,97,102,102,101,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845495818, index: (-1), priority: 26}, Field1: 0, Field2: [[75,110,105,103,104,116,39,115,32,67,104,97,114,103,101], [71,105,114,97,102,102,101]], Field3: []}, true, false); +registerSynergy_1728053329({Field0: {name: [66,111,117,110,116,121,32,72,117,110,116,101,114,32,78,101,114,102], technicalName: [], synergy: false, tier: 0, rarity: 0, description: makeNimstrLit("Yeah, 3 pieces is way too easy for our lesbian queens, so now it\'s 7 pieces. You got this!"), icon: [107,105,110,103,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845495864, index: (-1), priority: 15}, Field1: 0, Field2: [[76,101,115,98,105,97,110,32,80,114,105,100,101], [66,111,117,110,116,121,32,72,117,110,116,101,114]], Field3: [[66,111,117,110,116,121,32,72,117,110,116,101,114]]}, true, false); +registerSynergy_1728053329({Field0: {name: [110,105,103,104,101,116,114,105,101,100,100,101,114], technicalName: [], synergy: false, tier: 3, rarity: 0, description: [110,105,103,104,101,116,114,105,101,100,100,101,114,46,63], icon: [110,105,103,104,116,114,105,100,101,114,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845495569, index: (-1), priority: 17}, Field1: 0, Field2: [[68,114,117,110,107,32,75,110,105,103,104,116,115], [78,105,103,104,116,114,105,100,101,114]], Field3: []}, true, false); +registerSynergy_1728053329({Field0: {name: [110,105,103,104,101,116,114,105,101,100,100,101,114], technicalName: [], synergy: false, tier: 3, rarity: 0, description: [110,105,103,104,101,116,114,105,101,100,100,101,114,46,63], icon: [110,105,103,104,116,114,105,100,101,114,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845495569, index: (-1), priority: 17}, Field1: 0, Field2: [[65,108,99,111,104,111,108,105,115,109], [78,105,103,104,116,114,105,100,101,114]], Field3: []}, true, false); +registerSynergy_1728053329({Field0: {name: [67,108,97,114,105,116,121], technicalName: [], synergy: false, tier: 3, rarity: 0, description: makeNimstrLit("You now see things in a whole new light. \x0A It\'s not regret as much as self-disappointment."), icon: [107,105,110,103,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845500085, index: (-1), priority: 15}, Field1: 0, Field2: [[71,108,97,115,115,58,32,68,97,121,98,114,101,97,107], [67,111,110,99,117,98,105,110,101]], Field3: []}, true, false); +registerSynergy_1728053329({Field0: {name: [77,97,115,116,101,114,32,71,108,97,115,115], technicalName: [], synergy: false, tier: 3, rarity: 0, description: [89,111,117,32,104,97,118,101,32,103,111,111,100,32,116,97,115,116,101,46,32,65,108,108,32,103,108,97,115,115,101,115,32,99,97,110,32,98,101,32,99,97,115,116,32,111,110,101,32,109,111,114,101,32,116,105,109,101,46], icon: [115,107,121,103,108,97,115,115,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845500104, index: (-1), priority: 30}, Field1: 0, Field2: [[71,108,97,115,115,58,32,83,107,121], [71,108,97,115,115,58,32,82,101,118,101,114,105,101], [71,108,97,115,115,58,32,90,101,114,111], [71,108,97,115,115,58,32,83,116,101,101,108], [71,108,97,115,115,58,32,68,97,121,98,114,101,97,107]], Field3: []}, true, false); +registerSynergy_1728053329({Field0: {name: [77,97,115,116,101,114,32,71,108,97,115,115], technicalName: [], synergy: false, tier: 3, rarity: 0, description: [89,111,117,32,104,97,118,101,32,103,111,111,100,32,116,97,115,116,101,46,32,65,108,108,32,103,108,97,115,115,101,115,32,99,97,110,32,98,101,32,99,97,115,116,32,111,110,101,32,109,111,114,101,32,116,105,109,101,46], icon: [115,107,121,103,108,97,115,115,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845500104, index: (-1), priority: 30}, Field1: 0, Field2: [[71,108,97,115,115,58,32,83,107,121], [71,108,97,115,115,58,32,82,101,118,101,114,105,101], [71,108,97,115,115,58,32,66,97,110,107,114,117,112,116,99,121], [71,108,97,115,115,58,32,83,116,101,101,108], [71,108,97,115,115,58,32,68,97,121,98,114,101,97,107]], Field3: []}, true, false); +registerSynergy_1728053329({Field0: {name: [66,111,117,110,116,121], technicalName: [], synergy: false, tier: 3, rarity: 0, description: [80,105,101,99,101,115,32,87,97,110,116,101,100,58,32,68,101,97,100,32,111,114,32,65,108,105,118,101,46,32,66,111,117,110,116,121,58,32,54,32,100,111,108,108,97,114,115,46], icon: [107,105,110,103,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845496221, index: (-1), priority: 15}, Field1: 0, Field2: [[66,111,117,110,116,121,32,72,117,110,116,101,114], [67,97,112,105,116,97,108,105,115,109]], Field3: []}, true, false); +registerSynergy_1728053329({Field0: {name: [66,111,117,110,116,121], technicalName: [], synergy: false, tier: 3, rarity: 0, description: [80,105,101,99,101,115,32,87,97,110,116,101,100,58,32,68,101,97,100,32,111,114,32,65,108,105,118,101,46,32,66,111,117,110,116,121,58,32,54,32,100,111,108,108,97,114,115,46], icon: [107,105,110,103,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845496221, index: (-1), priority: 15}, Field1: 0, Field2: [[66,111,117,110,116,121,32,72,117,110,116,101,114,32,78,101,114,102], [67,97,112,105,116,97,108,105,115,109]], Field3: []}, true, false); +registerSynergy_1728053329({Field0: {name: [67,97,112,105,116,97,108,105,115,109,32,73,73], technicalName: [67,97,112,105,116,97,108,105,115,109,32,73,73,58,32,77,111,118,101,32,85,112], synergy: false, tier: 0, rarity: 0, description: makeNimstrLit("Money is pretty neat right? You can spend 8 dollars to move a piece one tile forward. It cannot take with this action."), icon: [117,115,102,108,97,103,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845496349, index: (-1), priority: 15}, Field1: 24, Field2: [[67,97,112,105,116,97,108,105,115,109]], Field3: []}, false, false); +registerSynergy_1728053329({Field0: {name: [67,97,112,105,116,97,108,105,115,109,32,73,73], technicalName: [67,97,112,105,116,97,108,105,115,109,32,73,73,58,32,77,111,118,101,32,66,97,99,107], synergy: false, tier: 0, rarity: 0, description: makeNimstrLit("Money is pretty neat right? You can spend 7 dollars to move a piece one tile backwards. It cannot take with this action."), icon: [117,115,102,108,97,103,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845496392, index: (-1), priority: 15}, Field1: 24, Field2: [[67,97,112,105,116,97,108,105,115,109]], Field3: []}, false, false); +registerSynergy_1728053329({Field0: {name: [67,97,112,105,116,97,108,105,115,109,32,73,73], technicalName: [67,97,112,105,116,97,108,105,115,109,32,73,73,58,32,73,110,99,111,109,101], synergy: false, tier: 0, rarity: 0, description: [72,101,114,101,44,32,104,97,118,101,32,49,48,32,100,111,108,108,97,114,115], icon: [117,115,102,108,97,103,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845496419, index: (-1), priority: 35}, Field1: 24, Field2: [[67,97,112,105,116,97,108,105,115,109]], Field3: []}, false, false); +registerSynergy_1728053329({Field0: {name: [67,97,112,105,116,97,108,105,115,109,32,73,73,73], technicalName: [67,97,112,105,116,97,108,105,115,109,32,73,73,73,58,32,85,112,103,114,97,100,101,32,75,110,105,103,104,116], synergy: false, tier: 1, rarity: 0, description: makeNimstrLit("Money can be used in exchange for goods and services. You can spend 8 dollars to give a piece the movement of a knight.\x0A This upgrade is 30 dollars more expensive for the king. The upgraded piece still cannot take like a knight."), icon: [117,115,102,108,97,103,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845496426, index: (-1), priority: 15}, Field1: 24, Field2: [[67,97,112,105,116,97,108,105,115,109]], Field3: []}, false, false); +registerSynergy_1728053329({Field0: {name: [67,97,112,105,116,97,108,105,115,109,32,73,73,73], technicalName: [67,97,112,105,116,97,108,105,115,109,32,73,73,73,58,32,85,112,103,114,97,100,101,32,71,105,114,97,102,102,101], synergy: false, tier: 1, rarity: 0, description: makeNimstrLit("Money can be used in exchange for goods and services. You can spend 8 dollars to give a piece the movement of a giraffe. \x0A This upgrade is 30 dollars more expensive for the king. The upgraded piece still cannot take like a giraffe."), icon: [117,115,102,108,97,103,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845496443, index: (-1), priority: 15}, Field1: 24, Field2: [[67,97,112,105,116,97,108,105,115,109]], Field3: []}, false, false); +registerSynergy_1728053329({Field0: {name: [67,97,112,105,116,97,108,105,115,109,32,73,86], technicalName: [67,97,112,105,116,97,108,105,115,109,32,73,86,58,32,34,73,110,102,108,97,116,105,111,110,34], synergy: false, tier: 1, rarity: 0, description: makeNimstrLit("More money equals more money! You get 3 more dollars for taking a piece. "), icon: [117,115,102,108,97,103,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845499387, index: (-1), priority: 15}, Field1: 24, Field2: [[67,97,112,105,116,97,108,105,115,109]], Field3: []}, false, false); +registerSynergy_1728053329({Field0: {name: [67,97,112,105,116,97,108,105,115,109,32,73,86], technicalName: [67,97,112,105,116,97,108,105,115,109,32,73,86,58,32,72,97,110,100,111,117,116,115], synergy: false, tier: 1, rarity: 0, description: makeNimstrLit("What if everyone had money? Then everyone would have money! You get 1 dollar for taking a piece."), icon: [117,115,102,108,97,103,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845499408, index: (-1), priority: 15}, Field1: 24, Field2: [[67,97,112,105,116,97,108,105,115,109]], Field3: []}, false, false); +registerSynergy_1728053329({Field0: {name: [67,97,112,105,116,97,108,105,115,109,32,86], technicalName: [67,97,112,105,116,97,108,105,115,109,32,86,58,32,83,101,108,108], synergy: false, tier: 1, rarity: 0, description: makeNimstrLit("Who needs these pieces? AFUERA! You can sell a piece for 4 dollars. Each subsequent piece gives one dollar less. "), icon: [117,115,102,108,97,103,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845499344, index: (-1), priority: 15}, Field1: 24, Field2: [[67,97,112,105,116,97,108,105,115,109]], Field3: []}, false, false); +registerSynergy_1728053329({Field0: {name: [67,97,112,105,116,97,108,105,115,109,32,86], technicalName: [67,97,112,105,116,97,108,105,115,109,32,86,58,32,84,97,120,101,115], synergy: false, tier: 2, rarity: 0, description: makeNimstrLit("Nothing in the world is certain except for Taxes and one other thing. \x0A You gain 6 more dollars for taking a piece, but you lose 15% every turn."), icon: [117,115,102,108,97,103,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845499376, index: (-1), priority: 15}, Field1: 24, Field2: [[67,97,112,105,116,97,108,105,115,109]], Field3: []}, false, false); +registerSynergy_1728053329({Field0: {name: [67,97,112,105,116,97,108,105,115,109,32,77,77], technicalName: [], synergy: false, tier: 3, rarity: 0, description: [84,79,32,84,72,69,32,77,79,79,78,33,33,33,33], icon: [117,115,102,108,97,103,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845499452, index: (-1), priority: 15}, Field1: 16, Field2: [[67,97,112,105,116,97,108,105,115,109], [67,97,112,105,116,97,108,105,115,109,32,73,73], [67,97,112,105,116,97,108,105,115,109,32,73,73,73], [67,97,112,105,116,97,108,105,115,109,32,73,86], [67,97,112,105,116,97,108,105,115,109,32,86]], Field3: []}, true, false); +registerSynergy_1728053329({Field0: {name: [83,108,117,109,100,111,103,32,66,105,108,108,105,111,110,97,105,114,101], technicalName: [], synergy: false, tier: 0, rarity: 0, description: makeNimstrLit("Have you seen the movie Slumdog Millionaire? It\'s kind of like that but more. \x0A Your pawns have a 2% chance of promoting whenever they move. When this happens, you get 10 dollars."), icon: [112,97,119,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845499430, index: (-1), priority: 15}, Field1: 8, Field2: [[67,97,112,105,116,97,108,105,115,109], [83,108,117,109,100,111,103,32,77,105,108,108,105,111,110,97,105,114,101]], Field3: [[83,108,117,109,100,111,103,32,77,105,108,108,105,111,110,97,105,114,101]]}, true, false); +registerSynergy_1728053329({Field0: {name: [118,105,114,117,115], technicalName: [], synergy: false, tier: 3, rarity: 0, description: [84,104,101,121,39,114,101,32,100,121,105,110,103,46,32,84,104,101,121,39,114,101,32,100,121,105,110,103,46,32,84,104,101,121,39,114,101,32,100,121,105,110,103,46], icon: [], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845495629, index: (-1), priority: 15}, Field1: 0, Field2: [[65,108,99,111,104,111,108,105,115,109], [75,97,109,105,107,97,122,101], [72,101,97,100,115,116,97,114,116], [77,121,115,116,101,114,105,111,117,115,32,83,119,111,114,100,115,109,97,110]], Field3: [[65,108,99,111,104,111,108,105,115,109]]}, true, false); +registerSynergy_1728053329({Field0: {name: [118,105,114,117,115], technicalName: [], synergy: false, tier: 3, rarity: 0, description: [84,104,101,121,39,114,101,32,100,121,105,110,103,46,32,84,104,101,121,39,114,101,32,100,121,105,110,103,46,32,84,104,101,121,39,114,101,32,100,121,105,110,103,46], icon: [], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845495629, index: (-1), priority: 15}, Field1: 0, Field2: [[65,108,99,111,104,111,108,105,115,109], [66,97,99,107,115,116,101,112], [75,110,105,103,104,116,39,115,32,67,104,97,114,103,101], [69,109,112,114,101,115,115]], Field3: [[65,108,99,111,104,111,108,105,115,109]]}, true, false); +registerSynergy_1728053329({Field0: {name: [118,105,114,117,115], technicalName: [], synergy: false, tier: 3, rarity: 0, description: [84,104,101,121,39,114,101,32,100,121,105,110,103,46,32,84,104,101,121,39,114,101,32,100,121,105,110,103,46,32,84,104,101,121,39,114,101,32,100,121,105,110,103,46], icon: [], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845495629, index: (-1), priority: 15}, Field1: 0, Field2: [[65,108,99,111,104,111,108,105,115,109], [87,97,110,100,101,114,105,110,103,32,82,111,110,105,110], [83,117,112,101,114,32,80,97,119,110], [69,109,112,114,101,115,115]], Field3: [[65,108,99,111,104,111,108,105,115,109]]}, true, false); +registerSynergy_1728053329({Field0: {name: [118,105,114,117,115], technicalName: [], synergy: false, tier: 3, rarity: 0, description: [84,104,101,121,39,114,101,32,100,121,105,110,103,46,32,84,104,101,121,39,114,101,32,100,121,105,110,103,46,32,84,104,101,121,39,114,101,32,100,121,105,110,103,46], icon: [], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845495629, index: (-1), priority: 15}, Field1: 0, Field2: [[65,108,99,111,104,111,108,105,115,109], [83,116,101,112,32,111,110,32,109,101], [67,111,119,97,114,100], [83,104,111,116,103,117,110,32,75,105,110,103]], Field3: [[65,108,99,111,104,111,108,105,115,109]]}, true, false); +registerSynergy_1728053329({Field0: {name: [118,105,114,117,115], technicalName: [], synergy: false, tier: 3, rarity: 0, description: [84,104,101,121,39,114,101,32,100,121,105,110,103,46,32,84,104,101,121,39,114,101,32,100,121,105,110,103,46,32,84,104,101,121,39,114,101,32,100,121,105,110,103,46], icon: [], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845495629, index: (-1), priority: 15}, Field1: 0, Field2: [[65,108,99,111,104,111,108,105,115,109], [82,101,105,110,102,111,114,99,101,109,101,110,116,115], [69,109,112,114,101,115,115], [71,105,114,97,102,102,101], [87,101,114,101,119,111,108,118,101,115]], Field3: [[65,108,99,111,104,111,108,105,115,109]]}, true, false); +registerSynergy_1728053329({Field0: {name: [118,105,114,117,115], technicalName: [], synergy: false, tier: 3, rarity: 0, description: [84,104,101,121,39,114,101,32,100,121,105,110,103,46,32,84,104,101,121,39,114,101,32,100,121,105,110,103,46,32,84,104,101,121,39,114,101,32,100,121,105,110,103,46], icon: [], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845495629, index: (-1), priority: 15}, Field1: 0, Field2: [[65,108,99,111,104,111,108,105,115,109], [65,110,105,109,101,32,66,97,116,116,108,101], [68,101,118,101,108,111,112,101,100], [83,97,99,114,105,102,105,99,105,97,108,32,77,97,105,100,101,110], [73,108,108,101,103,97,108,32,70,111,114,109,97,116,105,111,110]], Field3: [[65,108,99,111,104,111,108,105,115,109]]}, true, false); +registerSynergy_1728053329({Field0: {name: [118,105,114,117,115], technicalName: [], synergy: false, tier: 3, rarity: 0, description: [84,104,101,121,39,114,101,32,100,121,105,110,103,46,32,84,104,101,121,39,114,101,32,100,121,105,110,103,46,32,84,104,101,121,39,114,101,32,100,121,105,110,103,46], icon: [], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845495629, index: (-1), priority: 15}, Field1: 0, Field2: [[65,108,99,111,104,111,108,105,115,109], [76,105,110,101,98,97,99,107,101,114,115], [78,105,103,104,116,114,105,100,101,114], [68,101,115,101,103,114,101,103,97,116,105,111,110,32,97,110,100,32,73,110,116,101,103,114,97,116,105,111,110], [72,111,108,121]], Field3: [[65,108,99,111,104,111,108,105,115,109]]}, true, false); +registerSynergy_1728053329({Field0: {name: [77,97,115,111,99,104,105,115,116,32,69,109,112,114,101,115,115], technicalName: [], synergy: false, tier: 3, rarity: 0, description: [78,79,78,69], icon: [], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845494633, index: (-1), priority: 15}, Field1: 0, Field2: [[69,109,112,114,101,115,115], [83,116,101,112,32,111,110,32,109,101]], Field3: []}, true, true); +registerSynergy_1728053329({Field0: {name: [77,97,115,111,99,104,105,115,116,32,69,109,112,114,101,115,115], technicalName: [], synergy: false, tier: 3, rarity: 0, description: [78,79,78,69], icon: [], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845494656, index: (-1), priority: 15}, Field1: 0, Field2: [[69,109,112,114,101,115,115], [83,116,101,112,32,111,110,32,109,101]], Field3: []}, true, true); function incrementWins(item) { let last = JSON.parse(localStorage.getItem(item)); last.wins += 1; @@ -13074,3365 +8752,2173 @@ F.filename = "store.nim"; localStorage.setItem(item, JSON.stringify(last)); } -framePtr = F.prev; -var F = {procname: "module store", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/store.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module glass", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/extrapower/glass.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module glass", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/extrapower/glass.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module editdistance", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/std/editdistance.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -var F = {procname: "module editdistance", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/std/editdistance.nim", line: 0}; -framePtr = F; -framePtr = F.prev; -function none_520093864() { - var result_520093871 = ({val: 0, has: false}); +function none_553648296() { + var result_553648303 = ({val: 0, has: false}); - var F = {procname: "none.none", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/options.nim", line: 0}; - framePtr = F; - framePtr = F.prev; - - return result_520093871; + return result_553648303; } -function newSeq_1442840931(len_1442840933) { - var result_1442840934 = []; - - var F = {procname: "newSeq.newSeq", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; - F.line = 633; - F.filename = "system.nim"; - result_1442840934 = new Array(len_1442840933); for (var i = 0 ; i < len_1442840933 ; ++i) { result_1442840934[i] = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); } framePtr = F.prev; +function newSeq_1728053603(len_1728053605) { + var result_1728053606 = []; - return result_1442840934; + result_1728053606 = new Array(len_1728053605); for (var i = 0 ; i < len_1728053605 ; ++i) { result_1728053606[i] = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); } + return result_1728053606; } -function HEX3DHEX3D_1442841264(x_1442841266, y_1442841267) { - var result_1442841268 = false; +function HEX3DHEX3D_1728053936(x_1728053938, y_1728053939) { + var result_1728053940 = false; - var F = {procname: "==.==", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; BeforeRet: { - if (!(eqStrings(x_1442841266.name, y_1442841267.name))) { - F.line = 1714; - F.filename = "system.nim"; - result_1442841268 = false; + if (!(eqStrings(x_1728053938.name, y_1728053939.name))) { + result_1728053940 = false; break BeforeRet; } - if (!(eqStrings(x_1442841266.technicalName, y_1442841267.technicalName))) { - F.line = 1714; - result_1442841268 = false; + if (!(eqStrings(x_1728053938.technicalName, y_1728053939.technicalName))) { + result_1728053940 = false; break BeforeRet; } - if (!((x_1442841266.synergy == y_1442841267.synergy))) { - F.line = 1714; - result_1442841268 = false; + if (!((x_1728053938.synergy == y_1728053939.synergy))) { + result_1728053940 = false; break BeforeRet; } - if (!((x_1442841266.tier == y_1442841267.tier))) { - F.line = 1714; - result_1442841268 = false; + if (!((x_1728053938.tier == y_1728053939.tier))) { + result_1728053940 = false; break BeforeRet; } - if (!((x_1442841266.rarity == y_1442841267.rarity))) { - F.line = 1714; - result_1442841268 = false; + if (!((x_1728053938.rarity == y_1728053939.rarity))) { + result_1728053940 = false; break BeforeRet; } - if (!(eqStrings(x_1442841266.description, y_1442841267.description))) { - F.line = 1714; - result_1442841268 = false; + if (!(eqStrings(x_1728053938.description, y_1728053939.description))) { + result_1728053940 = false; break BeforeRet; } - if (!(eqStrings(x_1442841266.icon, y_1442841267.icon))) { - F.line = 1714; - result_1442841268 = false; + if (!(eqStrings(x_1728053938.icon, y_1728053939.icon))) { + result_1728053940 = false; break BeforeRet; } - if (!((x_1442841266.rotatable == y_1442841267.rotatable))) { - F.line = 1714; - result_1442841268 = false; + if (!((x_1728053938.rotatable == y_1728053939.rotatable))) { + result_1728053940 = false; break BeforeRet; } - if (!((x_1442841266.noColor == y_1442841267.noColor))) { - F.line = 1714; - result_1442841268 = false; + if (!((x_1728053938.noColor == y_1728053939.noColor))) { + result_1728053940 = false; break BeforeRet; } - if (!((x_1442841266.onStart == y_1442841267.onStart))) { - F.line = 1714; - result_1442841268 = false; + if (!((x_1728053938.onStart == y_1728053939.onStart))) { + result_1728053940 = false; break BeforeRet; } - if (!((x_1442841266.index == y_1442841267.index))) { - F.line = 1714; - result_1442841268 = false; + if (!((x_1728053938.index == y_1728053939.index))) { + result_1728053940 = false; break BeforeRet; } - if (!((x_1442841266.priority == y_1442841267.priority))) { - F.line = 1714; - result_1442841268 = false; + if (!((x_1728053938.priority == y_1728053939.priority))) { + result_1728053940 = false; break BeforeRet; } - F.line = 1715; - result_1442841268 = true; + result_1728053940 = true; break BeforeRet; }; - framePtr = F.prev; - return result_1442841268; + return result_1728053940; } -function find_1442841244(a_1442841247, item_1442841248) { - var result_1442841249 = 0; +function find_1728053916(a_1728053919, item_1728053920) { + var result_1728053921 = 0; - var F = {procname: "find.find", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; BeforeRet: { - F.line = 1671; - F.filename = "system.nim"; - result_1442841249 = 0; + result_1728053921 = 0; Label1: { - F.line = 1672; - var i_1442841263 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); - F.line = 18; - F.filename = "iterators.nim"; - var i_520100268 = 0; + var i_1728053935 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); + var i_553654700 = 0; Label2: { - F.line = 19; Label3: while (true) { - if (!(i_520100268 < (a_1442841247).length)) break Label3; - F.line = 1672; - F.filename = "system.nim"; - i_1442841263 = a_1442841247[chckIndx(i_520100268, 0, (a_1442841247).length - 1)]; - if (HEX3DHEX3D_1442841264(i_1442841263, item_1442841248)) { - F.line = 1673; + if (!(i_553654700 < (a_1728053919).length)) break Label3; + i_1728053935 = a_1728053919[chckIndx(i_553654700, 0, (a_1728053919).length - 1)]; + if (HEX3DHEX3D_1728053936(i_1728053935, item_1728053920)) { break BeforeRet; } - F.line = 1674; - result_1442841249 = addInt(result_1442841249, 1); - F.line = 13; - F.filename = "iterators.nim"; - i_520100268 += 1; + result_1728053921 = addInt(result_1728053921, 1); + i_553654700 += 1; } }; }; - F.line = 1675; - F.filename = "system.nim"; - result_1442841249 = (-1); + result_1728053921 = (-1); }; - framePtr = F.prev; - return result_1442841249; + return result_1728053921; } -function contains_1442841239(a_1442841241, item_1442841242) { - var result_1442841243 = false; +function contains_1728053911(a_1728053913, item_1728053914) { + var result_1728053915 = false; - var F = {procname: "contains.contains", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; BeforeRet: { - F.line = 1689; - F.filename = "system.nim"; - result_1442841243 = (0 <= find_1442841244(a_1442841241, item_1442841242)); + result_1728053915 = (0 <= find_1728053916(a_1728053913, item_1728053914)); break BeforeRet; }; - framePtr = F.prev; - return result_1442841243; + return result_1728053915; } -function imul_1124073784(a_1124073785, b_1124073786) { - var result_1124073787 = 0; +function imul_1308623160(a_1308623161, b_1308623162) { + var result_1308623163 = 0; - var F = {procname: "hashes.imul", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/hashes.nim", line: 0}; - framePtr = F; - F.line = 293; - F.filename = "hashes.nim"; - var mask_1124073788 = 65535; - F.line = 295; - var aHi_1124073793 = (((a_1124073785 >>> 16) & mask_1124073788) >>> 0); - F.line = 296; - var aLo_1124073794 = ((a_1124073785 & mask_1124073788) >>> 0); - F.line = 297; - var bHi_1124073799 = (((b_1124073786 >>> 16) & mask_1124073788) >>> 0); - F.line = 298; - var bLo_1124073800 = ((b_1124073786 & mask_1124073788) >>> 0); - F.line = 299; - result_1124073787 = ((((aLo_1124073794 * bLo_1124073800) >>> 0) + ((((((aHi_1124073793 * bLo_1124073800) >>> 0) + ((aLo_1124073794 * bHi_1124073799) >>> 0)) >>> 0) << 16) >>> 0)) >>> 0); - framePtr = F.prev; + var mask_1308623164 = 65535; + var aHi_1308623169 = (((a_1308623161 >>> 16) & mask_1308623164) >>> 0); + var aLo_1308623170 = ((a_1308623161 & mask_1308623164) >>> 0); + var bHi_1308623175 = (((b_1308623162 >>> 16) & mask_1308623164) >>> 0); + var bLo_1308623176 = ((b_1308623162 & mask_1308623164) >>> 0); + result_1308623163 = ((((aLo_1308623170 * bLo_1308623176) >>> 0) + ((((((aHi_1308623169 * bLo_1308623176) >>> 0) + ((aLo_1308623170 * bHi_1308623175) >>> 0)) >>> 0) << 16) >>> 0)) >>> 0); - return result_1124073787; + return result_1308623163; } -function rotl32_1124073805(x_1124073806, r_1124073807) { - var result_1124073808 = 0; +function rotl32_1308623181(x_1308623182, r_1308623183) { + var result_1308623184 = 0; - var F = {procname: "hashes.rotl32", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/hashes.nim", line: 0}; - framePtr = F; - F.line = 304; - F.filename = "hashes.nim"; - result_1124073808 = ((((x_1124073806 << r_1124073807) >>> 0) | (x_1124073806 >>> subInt(32, r_1124073807))) >>> 0); - framePtr = F.prev; + result_1308623184 = ((((x_1308623182 << r_1308623183) >>> 0) | (x_1308623182 >>> subInt(32, r_1308623183))) >>> 0); - return result_1124073808; + return result_1308623184; } -function murmurHash_1124073817(x_1124073818) { - var result_1124073819 = 0; +function murmurHash_1308623193(x_1308623194) { + var result_1308623195 = 0; - var F = {procname: "hashes.murmurHash", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/hashes.nim", line: 0}; - framePtr = F; BeforeRet: { - F.line = 315; - F.filename = "hashes.nim"; - var size_1124073828 = (x_1124073818).length; - F.line = 316; - var stepSize_1124073829 = 4; - F.line = 317; - var n_1124073830 = divInt(size_1124073828, stepSize_1124073829); - F.line = 319; - var h1_1124073831 = 0; - F.line = 320; - var i_1124073832 = 0; + var size_1308623204 = (x_1308623194).length; + var stepSize_1308623205 = 4; + var n_1308623206 = divInt(size_1308623204, stepSize_1308623205); + var h1_1308623207 = 0; + var i_1308623208 = 0; Label1: { - F.line = 330; Label2: while (true) { - if (!(i_1124073832 < mulInt(n_1124073830, stepSize_1124073829))) break Label2; - F.line = 331; - var k1_1124073835 = 0; - F.line = 324; - var jHEX60gensym19_1124073852 = stepSize_1124073829; + if (!(i_1308623208 < mulInt(n_1308623206, stepSize_1308623205))) break Label2; + var k1_1308623211 = 0; + var jHEX60gensym19_1308623228 = stepSize_1308623205; Label3: { - F.line = 339; Label4: while (true) { - if (!(0 < jHEX60gensym19_1124073852)) break Label4; - F.line = 326; - jHEX60gensym19_1124073852 = subInt(jHEX60gensym19_1124073852, 1); - F.line = 327; - k1_1124073835 = ((((k1_1124073835 << 8) >>> 0) | x_1124073818[chckIndx(addInt(i_1124073832, jHEX60gensym19_1124073852), 0, (x_1124073818).length - 1)]) >>> 0); + if (!(0 < jHEX60gensym19_1308623228)) break Label4; + jHEX60gensym19_1308623228 = subInt(jHEX60gensym19_1308623228, 1); + k1_1308623211 = ((((k1_1308623211 << 8) >>> 0) | x_1308623194[chckIndx(addInt(i_1308623208, jHEX60gensym19_1308623228), 0, (x_1308623194).length - 1)]) >>> 0); } }; - F.line = 340; - i_1124073832 = addInt(i_1124073832, stepSize_1124073829); - F.line = 342; - k1_1124073835 = imul_1124073784(k1_1124073835, 3432918353); - F.line = 343; - k1_1124073835 = rotl32_1124073805(k1_1124073835, 15); - F.line = 344; - k1_1124073835 = imul_1124073784(k1_1124073835, 461845907); - F.line = 346; - h1_1124073831 = ((h1_1124073831 ^ k1_1124073835) >>> 0); - F.line = 347; - h1_1124073831 = rotl32_1124073805(h1_1124073831, 13); - F.line = 348; - h1_1124073831 = ((((h1_1124073831 * 5) >>> 0) + 3864292196) >>> 0); + i_1308623208 = addInt(i_1308623208, stepSize_1308623205); + k1_1308623211 = imul_1308623160(k1_1308623211, 3432918353); + k1_1308623211 = rotl32_1308623181(k1_1308623211, 15); + k1_1308623211 = imul_1308623160(k1_1308623211, 461845907); + h1_1308623207 = ((h1_1308623207 ^ k1_1308623211) >>> 0); + h1_1308623207 = rotl32_1308623181(h1_1308623207, 13); + h1_1308623207 = ((((h1_1308623207 * 5) >>> 0) + 3864292196) >>> 0); } }; - F.line = 351; - var k1_1124073870 = 0; - F.line = 352; - var rem_1124073871 = modInt(size_1124073828, stepSize_1124073829); + var k1_1308623246 = 0; + var rem_1308623247 = modInt(size_1308623204, stepSize_1308623205); Label5: { - F.line = 353; Label6: while (true) { - if (!(0 < rem_1124073871)) break Label6; - F.line = 354; - rem_1124073871 = subInt(rem_1124073871, 1); - F.line = 355; - k1_1124073870 = ((((k1_1124073870 << 8) >>> 0) | x_1124073818[chckIndx(addInt(i_1124073832, rem_1124073871), 0, (x_1124073818).length - 1)]) >>> 0); + if (!(0 < rem_1308623247)) break Label6; + rem_1308623247 = subInt(rem_1308623247, 1); + k1_1308623246 = ((((k1_1308623246 << 8) >>> 0) | x_1308623194[chckIndx(addInt(i_1308623208, rem_1308623247), 0, (x_1308623194).length - 1)]) >>> 0); } }; - F.line = 356; - k1_1124073870 = imul_1124073784(k1_1124073870, 3432918353); - F.line = 357; - k1_1124073870 = rotl32_1124073805(k1_1124073870, 15); - F.line = 358; - k1_1124073870 = imul_1124073784(k1_1124073870, 461845907); - F.line = 359; - h1_1124073831 = ((h1_1124073831 ^ k1_1124073870) >>> 0); - F.line = 362; - h1_1124073831 = ((h1_1124073831 ^ size_1124073828) >>> 0); - F.line = 363; - h1_1124073831 = ((h1_1124073831 ^ (h1_1124073831 >>> 16)) >>> 0); - F.line = 364; - h1_1124073831 = imul_1124073784(h1_1124073831, 2246822507); - F.line = 365; - h1_1124073831 = ((h1_1124073831 ^ (h1_1124073831 >>> 13)) >>> 0); - F.line = 366; - h1_1124073831 = imul_1124073784(h1_1124073831, 3266489909); - F.line = 367; - h1_1124073831 = ((h1_1124073831 ^ (h1_1124073831 >>> 16)) >>> 0); - F.line = 368; - result_1124073819 = Number(BigInt.asIntN(32, BigInt(h1_1124073831))); + k1_1308623246 = imul_1308623160(k1_1308623246, 3432918353); + k1_1308623246 = rotl32_1308623181(k1_1308623246, 15); + k1_1308623246 = imul_1308623160(k1_1308623246, 461845907); + h1_1308623207 = ((h1_1308623207 ^ k1_1308623246) >>> 0); + h1_1308623207 = ((h1_1308623207 ^ size_1308623204) >>> 0); + h1_1308623207 = ((h1_1308623207 ^ (h1_1308623207 >>> 16)) >>> 0); + h1_1308623207 = imul_1308623160(h1_1308623207, 2246822507); + h1_1308623207 = ((h1_1308623207 ^ (h1_1308623207 >>> 13)) >>> 0); + h1_1308623207 = imul_1308623160(h1_1308623207, 3266489909); + h1_1308623207 = ((h1_1308623207 ^ (h1_1308623207 >>> 16)) >>> 0); + result_1308623195 = Number(BigInt.asIntN(32, BigInt(h1_1308623207))); break BeforeRet; }; - framePtr = F.prev; - return result_1124073819; + return result_1308623195; } -function hash_1124073936(x_1124073937) { - var result_1124073938 = 0; +function hash_1308623312(x_1308623313) { + var result_1308623314 = 0; - var F = {procname: "hashes.hash", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/hashes.nim", line: 0}; - framePtr = F; - F.line = 394; - F.filename = "hashes.nim"; - result_1124073938 = murmurHash_1124073817((x_1124073937.slice(0, (x_1124073937).length - 1 + 1))); - framePtr = F.prev; + result_1308623314 = murmurHash_1308623193((x_1308623313.slice(0, (x_1308623313).length - 1 + 1))); - return result_1124073938; + return result_1308623314; } -function isFilled_1107296287(hcode_1107296288) { - var result_1107296289 = false; +function isFilled_1291845663(hcode_1291845664) { + var result_1291845665 = false; - var F = {procname: "tables.isFilled", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/collections/hashcommon.nim", line: 0}; - framePtr = F; - F.line = 27; - F.filename = "hashcommon.nim"; - result_1107296289 = !((hcode_1107296288 == 0)); - framePtr = F.prev; + result_1291845665 = !((hcode_1291845664 == 0)); - return result_1107296289; + return result_1291845665; } -function nextTry_1107296290(h_1107296291, maxHash_1107296292) { - var result_1107296293 = 0; +function nextTry_1291845666(h_1291845667, maxHash_1291845668) { + var result_1291845669 = 0; - var F = {procname: "tables.nextTry", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/collections/hashcommon.nim", line: 0}; - framePtr = F; - F.line = 30; - F.filename = "hashcommon.nim"; - result_1107296293 = (addInt(h_1107296291, 1) & maxHash_1107296292); - framePtr = F.prev; + result_1291845669 = (addInt(h_1291845667, 1) & maxHash_1291845668); - return result_1107296293; + return result_1291845669; } -function rawGet_1442842156(t_1442842159, key_1442842160, hc_1442842161, hc_1442842161_Idx) { - var result_1442842162 = 0; +function rawGet_1728054828(t_1728054831, key_1728054832, hc_1728054833, hc_1728054833_Idx) { + var result_1728054834 = 0; - var F = {procname: "rawGet.rawGet", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/collections/hashcommon.nim", line: 0}; - framePtr = F; BeforeRet: { - F.line = 59; - F.filename = "hashcommon.nim"; - hc_1442842161[hc_1442842161_Idx] = hash_1124073936(key_1442842160); - if ((hc_1442842161[hc_1442842161_Idx] == 0)) { - F.line = 64; - hc_1442842161[hc_1442842161_Idx] = 314159265; + hc_1728054833[hc_1728054833_Idx] = hash_1308623312(key_1728054832); + if ((hc_1728054833[hc_1728054833_Idx] == 0)) { + hc_1728054833[hc_1728054833_Idx] = 314159265; } - if (((t_1442842159.data).length == 0)) { - F.line = 43; - result_1442842162 = (-1); + if (((t_1728054831.data).length == 0)) { + result_1728054834 = (-1); break BeforeRet; } - F.line = 44; - var h_1442842213 = (hc_1442842161[hc_1442842161_Idx] & (t_1442842159.data).length - 1); + var h_1728054885 = (hc_1728054833[hc_1728054833_Idx] & (t_1728054831.data).length - 1); Label1: { - F.line = 45; Label2: while (true) { - if (!isFilled_1107296287(t_1442842159.data[chckIndx(h_1442842213, 0, (t_1442842159.data).length - 1)].Field0)) break Label2; - if (((t_1442842159.data[chckIndx(h_1442842213, 0, (t_1442842159.data).length - 1)].Field0 == hc_1442842161[hc_1442842161_Idx]) && eqStrings(t_1442842159.data[chckIndx(h_1442842213, 0, (t_1442842159.data).length - 1)].Field1, key_1442842160))) { - F.line = 51; - result_1442842162 = h_1442842213; + if (!isFilled_1291845663(t_1728054831.data[chckIndx(h_1728054885, 0, (t_1728054831.data).length - 1)].Field0)) break Label2; + if (((t_1728054831.data[chckIndx(h_1728054885, 0, (t_1728054831.data).length - 1)].Field0 == hc_1728054833[hc_1728054833_Idx]) && eqStrings(t_1728054831.data[chckIndx(h_1728054885, 0, (t_1728054831.data).length - 1)].Field1, key_1728054832))) { + result_1728054834 = h_1728054885; break BeforeRet; } - F.line = 52; - h_1442842213 = nextTry_1107296290(h_1442842213, (t_1442842159.data).length - 1); + h_1728054885 = nextTry_1291845666(h_1728054885, (t_1728054831.data).length - 1); } }; - F.line = 53; - result_1442842162 = subInt((-1), h_1442842213); + result_1728054834 = subInt((-1), h_1728054885); }; - framePtr = F.prev; - return result_1442842162; + return result_1728054834; } -function hasKey_1442842149(t_1442842152, key_1442842153) { - var result_1442842154 = false; +function hasKey_1728054821(t_1728054824, key_1728054825) { + var result_1728054826 = false; - var F = {procname: "hasKey.hasKey", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/collections/tables.nim", line: 0}; - framePtr = F; - F.line = 372; - F.filename = "tables.nim"; - var hc_1442842155 = [0]; - F.line = 373; - result_1442842154 = (0 <= rawGet_1442842156(t_1442842152, key_1442842153, hc_1442842155, 0)); - framePtr = F.prev; + var hc_1728054827 = [0]; + result_1728054826 = (0 <= rawGet_1728054828(t_1728054824, key_1728054825, hc_1728054827, 0)); - return result_1442842154; + return result_1728054826; } -function raiseKeyError_1342178950(key_1342178952) { - var F = {procname: "raiseKeyError.raiseKeyError", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/collections/tables.nim", line: 0}; - framePtr = F; - F.line = 235; - F.filename = "tables.nim"; - raiseException({message: ([107,101,121,32,110,111,116,32,102,111,117,110,100,58,32] || []).concat(key_1342178952 || []), parent: null, m_type: NTI134217747, name: null, trace: [], up: null}, "KeyError"); - framePtr = F.prev; +function raiseKeyError_1593837190(key_1593837192) { + raiseException({message: ([107,101,121,32,110,111,116,32,102,111,117,110,100,58,32] || []).concat(key_1593837192 || []), parent: null, m_type: NTI134217747, name: null, trace: [], up: null}, "KeyError"); } -function HEX5BHEX5D_1442842444(t_1442842447, key_1442842448) { - var result_1442842449 = null; - var result_1442842449_Idx = 0; +function HEX5BHEX5D_1728055116(t_1728055119, key_1728055120) { + var result_1728055121 = null; + var result_1728055121_Idx = 0; - var F = {procname: "[].[]", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/collections/tables.nim", line: 0}; - framePtr = F; - F.line = 243; - F.filename = "tables.nim"; - var hcHEX60gensym22_1442842450 = [0]; - F.line = 244; - var indexHEX60gensym22_1442842457 = rawGet_1442842156(t_1442842447, key_1442842448, hcHEX60gensym22_1442842450, 0); - if ((0 <= indexHEX60gensym22_1442842457)) { - F.line = 245; - result_1442842449 = t_1442842447.data[chckIndx(indexHEX60gensym22_1442842457, 0, (t_1442842447.data).length - 1)]; result_1442842449_Idx = "Field2"; + var hcHEX60gensym22_1728055122 = [0]; + var indexHEX60gensym22_1728055129 = rawGet_1728054828(t_1728055119, key_1728055120, hcHEX60gensym22_1728055122, 0); + if ((0 <= indexHEX60gensym22_1728055129)) { + result_1728055121 = t_1728055119.data[chckIndx(indexHEX60gensym22_1728055129, 0, (t_1728055119.data).length - 1)]; result_1728055121_Idx = "Field2"; } else { - F.line = 247; - raiseKeyError_1342178950(key_1442842448); + raiseKeyError_1593837190(key_1728055120); } - framePtr = F.prev; - return [result_1442842449, result_1442842449_Idx]; + return [result_1728055121, result_1728055121_Idx]; } -function nextPowerOfTwo_872415484(x_872415485) { - var result_872415486 = 0; +function nextPowerOfTwo_922747132(x_922747133) { + var result_922747134 = 0; - result_872415486 = (x_872415485 - 1); - result_872415486 = (result_872415486 | (result_872415486 >> 16)); - result_872415486 = (result_872415486 | (result_872415486 >> 8)); - result_872415486 = (result_872415486 | (result_872415486 >> 4)); - result_872415486 = (result_872415486 | (result_872415486 >> 2)); - result_872415486 = (result_872415486 | (result_872415486 >> 1)); - result_872415486 += (1 + ((x_872415485 <= 0) ? 1 : 0)); + result_922747134 = (x_922747133 - 1); + result_922747134 = (result_922747134 | (result_922747134 >> 16)); + result_922747134 = (result_922747134 | (result_922747134 >> 8)); + result_922747134 = (result_922747134 | (result_922747134 >> 4)); + result_922747134 = (result_922747134 | (result_922747134 >> 2)); + result_922747134 = (result_922747134 | (result_922747134 >> 1)); + result_922747134 += (1 + ((x_922747133 <= 0) ? 1 : 0)); - return result_872415486; + return result_922747134; } -function slotsNeeded_1107296298(count_1107296299) { - var result_1107296300 = 0; +function slotsNeeded_1291845674(count_1291845675) { + var result_1291845676 = 0; - var F = {procname: "tables.slotsNeeded", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/collections/hashcommon.nim", line: 0}; - framePtr = F; - F.line = 39; - F.filename = "hashcommon.nim"; - result_1107296300 = nextPowerOfTwo_872415484(addInt(divInt(mulInt(count_1107296299, 3), 2), 4)); - framePtr = F.prev; + result_1291845676 = nextPowerOfTwo_922747132(addInt(divInt(mulInt(count_1291845675, 3), 2), 4)); - return result_1107296300; + return result_1291845676; } -function mustRehash_1442842715(t_1442842717) { - var result_1442842718 = false; +function mustRehash_1728055387(t_1728055389) { + var result_1728055390 = false; - var F = {procname: "mustRehash.mustRehash", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/collections/hashcommon.nim", line: 0}; - framePtr = F; - if (!((t_1442842717.counter < (t_1442842717.data).length))) { - F.line = 34; - F.filename = "hashcommon.nim"; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/collections/hashcommon.nim(34, 9) `\x0At.counter < t.dataLen` ")); + if (!((t_1728055389.counter < (t_1728055389.data).length))) { + failedAssertImpl_268435541([104,97,115,104,99,111,109,109,111,110,46,110,105,109,40,51,52,44,32,57,41,32,96,10,116,46,99,111,117,110,116,101,114,32,60,32,116,46,100,97,116,97,76,101,110,96,32]); } - F.line = 35; - result_1442842718 = ((mulInt((t_1442842717.data).length, 2) < mulInt(t_1442842717.counter, 3)) || (subInt((t_1442842717.data).length, t_1442842717.counter) < 4)); - framePtr = F.prev; + result_1728055390 = ((mulInt((t_1728055389.data).length, 2) < mulInt(t_1728055389.counter, 3)) || (subInt((t_1728055389.data).length, t_1728055389.counter) < 4)); - return result_1442842718; + return result_1728055390; } -function rawInsert_1442843132(t_1442843136, data_1442843137, data_1442843137_Idx, key_1442843138, val_1442843139, hc_1442843140, h_1442843141) { - var F = {procname: "rawInsert.rawInsert", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/collections/tableimpl.nim", line: 0}; - framePtr = F; - F.line = 25; - F.filename = "tableimpl.nim"; - data_1442843137[data_1442843137_Idx][chckIndx(h_1442843141, 0, (data_1442843137[data_1442843137_Idx]).length - 1)].Field1 = nimCopy(null, key_1442843138, NTI33554449); - F.line = 26; - data_1442843137[data_1442843137_Idx][chckIndx(h_1442843141, 0, (data_1442843137[data_1442843137_Idx]).length - 1)].Field2 = nimCopy(null, val_1442843139, NTI1442841684); - F.line = 27; - data_1442843137[data_1442843137_Idx][chckIndx(h_1442843141, 0, (data_1442843137[data_1442843137_Idx]).length - 1)].Field0 = hc_1442843140; - framePtr = F.prev; +function rawInsert_1728055804(t_1728055808, data_1728055809, data_1728055809_Idx, key_1728055810, val_1728055811, hc_1728055812, h_1728055813) { + data_1728055809[data_1728055809_Idx][chckIndx(h_1728055813, 0, (data_1728055809[data_1728055809_Idx]).length - 1)].Field1 = nimCopy(null, key_1728055810, NTI33554449); + data_1728055809[data_1728055809_Idx][chckIndx(h_1728055813, 0, (data_1728055809[data_1728055809_Idx]).length - 1)].Field2 = nimCopy(null, val_1728055811, NTI1728054356); + data_1728055809[data_1728055809_Idx][chckIndx(h_1728055813, 0, (data_1728055809[data_1728055809_Idx]).length - 1)].Field0 = hc_1728055812; } -function enlarge_1442842858(t_1442842861) { - var F = {procname: "enlarge.enlarge", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/collections/tables.nim", line: 0}; - framePtr = F; - F.line = 250; - F.filename = "tables.nim"; - var n_1442842864 = []; - F.line = 251; - n_1442842864 = new Array(chckRange(mulInt((t_1442842861.data).length, 2), 0, 2147483647)); for (var i = 0 ; i < chckRange(mulInt((t_1442842861.data).length, 2), 0, 2147483647) ; ++i) { n_1442842864[i] = {Field0: 0, Field1: [], Field2: []}; } F.line = 252; - var Temporary1 = t_1442842861.data; t_1442842861.data = n_1442842864; n_1442842864 = Temporary1; Label2: { - F.line = 253; - var i_1442842924 = 0; - F.line = 46; - F.filename = "iterators_1.nim"; - var colontmp__520100277 = 0; - F.line = 253; - F.filename = "tables.nim"; - colontmp__520100277 = (n_1442842864).length - 1; - F.line = 68; - F.filename = "iterators_1.nim"; - var res_520100278 = 0; +function enlarge_1728055530(t_1728055533) { + var n_1728055536 = []; + n_1728055536 = new Array(chckRange(mulInt((t_1728055533.data).length, 2), 0, 2147483647)); for (var i = 0 ; i < chckRange(mulInt((t_1728055533.data).length, 2), 0, 2147483647) ; ++i) { n_1728055536[i] = {Field0: 0, Field1: [], Field2: []}; } var Temporary1 = t_1728055533.data; t_1728055533.data = n_1728055536; n_1728055536 = Temporary1; Label2: { + var i_1728055596 = 0; + var colontmp__553654709 = 0; + colontmp__553654709 = (n_1728055536).length - 1; + var res_553654710 = 0; Label3: { - F.line = 69; Label4: while (true) { - if (!(res_520100278 <= colontmp__520100277)) break Label4; - F.line = 253; - F.filename = "tables.nim"; - i_1442842924 = res_520100278; - F.line = 254; - var eh_1442842974 = n_1442842864[chckIndx(i_1442842924, 0, (n_1442842864).length - 1)].Field0; - if (isFilled_1107296287(eh_1442842974)) { - F.line = 256; - var j_1442842978 = (eh_1442842974 & (t_1442842861.data).length - 1); + if (!(res_553654710 <= colontmp__553654709)) break Label4; + i_1728055596 = res_553654710; + var eh_1728055646 = n_1728055536[chckIndx(i_1728055596, 0, (n_1728055536).length - 1)].Field0; + if (isFilled_1291845663(eh_1728055646)) { + var j_1728055650 = (eh_1728055646 & (t_1728055533.data).length - 1); Label5: { - F.line = 257; Label6: while (true) { - if (!isFilled_1107296287(t_1442842861.data[chckIndx(j_1442842978, 0, (t_1442842861.data).length - 1)].Field0)) break Label6; - F.line = 258; - j_1442842978 = nextTry_1107296290(j_1442842978, (t_1442842861.data).length - 1); + if (!isFilled_1291845663(t_1728055533.data[chckIndx(j_1728055650, 0, (t_1728055533.data).length - 1)].Field0)) break Label6; + j_1728055650 = nextTry_1291845666(j_1728055650, (t_1728055533.data).length - 1); } }; - F.line = 260; - rawInsert_1442843132(t_1442842861, t_1442842861, "data", n_1442842864[chckIndx(i_1442842924, 0, (n_1442842864).length - 1)].Field1, n_1442842864[chckIndx(i_1442842924, 0, (n_1442842864).length - 1)].Field2, eh_1442842974, j_1442842978); + rawInsert_1728055804(t_1728055533, t_1728055533, "data", n_1728055536[chckIndx(i_1728055596, 0, (n_1728055536).length - 1)].Field1, n_1728055536[chckIndx(i_1728055596, 0, (n_1728055536).length - 1)].Field2, eh_1728055646, j_1728055650); } - F.line = 74; - F.filename = "iterators_1.nim"; - res_520100278 = addInt(res_520100278, 1); + res_553654710 = addInt(res_553654710, 1); } }; }; - framePtr = F.prev; } -function rawGetKnownHC_1442843289(t_1442843292, key_1442843293, hc_1442843294) { - var result_1442843295 = 0; +function rawGetKnownHC_1728055961(t_1728055964, key_1728055965, hc_1728055966) { + var result_1728055967 = 0; - var F = {procname: "rawGetKnownHC.rawGetKnownHC", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/collections/hashcommon.nim", line: 0}; - framePtr = F; BeforeRet: { - if (((t_1442843292.data).length == 0)) { - F.line = 43; - F.filename = "hashcommon.nim"; - result_1442843295 = (-1); + if (((t_1728055964.data).length == 0)) { + result_1728055967 = (-1); break BeforeRet; } - F.line = 44; - var h_1442843342 = (hc_1442843294 & (t_1442843292.data).length - 1); + var h_1728056014 = (hc_1728055966 & (t_1728055964.data).length - 1); Label1: { - F.line = 45; Label2: while (true) { - if (!isFilled_1107296287(t_1442843292.data[chckIndx(h_1442843342, 0, (t_1442843292.data).length - 1)].Field0)) break Label2; - if (((t_1442843292.data[chckIndx(h_1442843342, 0, (t_1442843292.data).length - 1)].Field0 == hc_1442843294) && eqStrings(t_1442843292.data[chckIndx(h_1442843342, 0, (t_1442843292.data).length - 1)].Field1, key_1442843293))) { - F.line = 51; - result_1442843295 = h_1442843342; + if (!isFilled_1291845663(t_1728055964.data[chckIndx(h_1728056014, 0, (t_1728055964.data).length - 1)].Field0)) break Label2; + if (((t_1728055964.data[chckIndx(h_1728056014, 0, (t_1728055964.data).length - 1)].Field0 == hc_1728055966) && eqStrings(t_1728055964.data[chckIndx(h_1728056014, 0, (t_1728055964.data).length - 1)].Field1, key_1728055965))) { + result_1728055967 = h_1728056014; break BeforeRet; } - F.line = 52; - h_1442843342 = nextTry_1107296290(h_1442843342, (t_1442843292.data).length - 1); + h_1728056014 = nextTry_1291845666(h_1728056014, (t_1728055964.data).length - 1); } }; - F.line = 53; - result_1442843295 = subInt((-1), h_1442843342); + result_1728055967 = subInt((-1), h_1728056014); }; - framePtr = F.prev; - return result_1442843295; + return result_1728055967; } -function HEX5BHEX5DHEX3D_1442842554(t_1442842557, key_1442842558, val_1442842559) { - var F = {procname: "[]=.[]=", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/collections/tables.nim", line: 0}; - framePtr = F; - if (((t_1442842557.data).length == 0)) { - F.line = 165; - F.filename = "tableimpl.nim"; - var correctSizeHEX60gensym66_1442842604 = slotsNeeded_1107296298(32); - F.line = 169; - t_1442842557.counter = 0; - F.line = 170; - t_1442842557.data = new Array(chckRange(correctSizeHEX60gensym66_1442842604, 0, 2147483647)); for (var i = 0 ; i < chckRange(correctSizeHEX60gensym66_1442842604, 0, 2147483647) ; ++i) { t_1442842557.data[i] = {Field0: 0, Field1: [], Field2: []}; } } +function HEX5BHEX5DHEX3D_1728055226(t_1728055229, key_1728055230, val_1728055231) { + if (((t_1728055229.data).length == 0)) { + var correctSizeHEX60gensym66_1728055276 = slotsNeeded_1291845674(32); + t_1728055229.counter = 0; + t_1728055229.data = new Array(chckRange(correctSizeHEX60gensym66_1728055276, 0, 2147483647)); for (var i = 0 ; i < chckRange(correctSizeHEX60gensym66_1728055276, 0, 2147483647) ; ++i) { t_1728055229.data[i] = {Field0: 0, Field1: [], Field2: []}; } } - F.line = 59; - var hc_1442842609 = [0]; - F.line = 60; - var index_1442842616 = rawGet_1442842156(t_1442842557, key_1442842558, hc_1442842609, 0); - if ((0 <= index_1442842616)) { - F.line = 61; - t_1442842557.data[chckIndx(index_1442842616, 0, (t_1442842557.data).length - 1)].Field2 = nimCopy(null, val_1442842559, NTI1442841684); + var hc_1728055281 = [0]; + var index_1728055288 = rawGet_1728054828(t_1728055229, key_1728055230, hc_1728055281, 0); + if ((0 <= index_1728055288)) { + t_1728055229.data[chckIndx(index_1728055288, 0, (t_1728055229.data).length - 1)].Field2 = nimCopy(null, val_1728055231, NTI1728054356); } else { - if (((t_1442842557.data).length == 0)) { - F.line = 165; - var correctSizeHEX60gensym69_1442842710 = slotsNeeded_1107296298(32); - F.line = 169; - t_1442842557.counter = 0; - F.line = 170; - t_1442842557.data = new Array(chckRange(correctSizeHEX60gensym69_1442842710, 0, 2147483647)); for (var i = 0 ; i < chckRange(correctSizeHEX60gensym69_1442842710, 0, 2147483647) ; ++i) { t_1442842557.data[i] = {Field0: 0, Field1: [], Field2: []}; } } + if (((t_1728055229.data).length == 0)) { + var correctSizeHEX60gensym69_1728055382 = slotsNeeded_1291845674(32); + t_1728055229.counter = 0; + t_1728055229.data = new Array(chckRange(correctSizeHEX60gensym69_1728055382, 0, 2147483647)); for (var i = 0 ; i < chckRange(correctSizeHEX60gensym69_1728055382, 0, 2147483647) ; ++i) { t_1728055229.data[i] = {Field0: 0, Field1: [], Field2: []}; } } - if (mustRehash_1442842715(t_1442842557)) { - F.line = 51; - enlarge_1442842858(t_1442842557); - F.line = 52; - index_1442842616 = rawGetKnownHC_1442843289(t_1442842557, key_1442842558, hc_1442842609[0]); + if (mustRehash_1728055387(t_1728055229)) { + enlarge_1728055530(t_1728055229); + index_1728055288 = rawGetKnownHC_1728055961(t_1728055229, key_1728055230, hc_1728055281[0]); } - F.line = 53; - index_1442842616 = subInt((-1), index_1442842616); - F.line = 54; - rawInsert_1442843132(t_1442842557, t_1442842557, "data", key_1442842558, val_1442842559, hc_1442842609[0], index_1442842616); - F.line = 62; - t_1442842557.counter = addInt(t_1442842557.counter, 1); + index_1728055288 = subInt((-1), index_1728055288); + rawInsert_1728055804(t_1728055229, t_1728055229, "data", key_1728055230, val_1728055231, hc_1728055281[0], index_1728055288); + t_1728055229.counter = addInt(t_1728055229.counter, 1); } - framePtr = F.prev; } -function getAllPowers_1442842059() { +function getAllPowers_1728054731() { var Temporary9; - var result_1442842067 = [({data: [], counter: 0})]; + var result_1728054739 = [({data: [], counter: 0})]; - var F = {procname: "power.getAllPowers", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/power.nim", line: 0}; - framePtr = F; - F.line = 227; - F.filename = "power.nim"; Label1: { - F.line = 1024; - F.filename = "sequtils.nim"; - var iHEX60gensym59_1442842088 = 0; - F.line = 1025; - var resultHEX60gensym59_1442842095 = newSeq_1442840931(chckRange((secretSecretSynergies_1442840652[0]).length, 0, 2147483647)); + var iHEX60gensym59_1728054760 = 0; + var resultHEX60gensym59_1728054767 = newSeq_1728053603(chckRange((secretSecretSynergies_1728053324[0]).length, 0, 2147483647)); Label2: { - F.line = 1026; - var it_1442842099 = {Field0: ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}), Field1: 0, Field2: [], Field3: []}; - F.line = 249; - F.filename = "iterators.nim"; - var i_520100257 = 0; - F.line = 250; - var L_520100258 = (secretSecretSynergies_1442840652[0]).length; + var it_1728054771 = {Field0: ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}), Field1: 0, Field2: [], Field3: []}; + var i_553654689 = 0; + var L_553654690 = (secretSecretSynergies_1728053324[0]).length; Label3: { - F.line = 251; Label4: while (true) { - if (!(i_520100257 < L_520100258)) break Label4; - F.line = 1026; - F.filename = "sequtils.nim"; - it_1442842099 = secretSecretSynergies_1442840652[0][chckIndx(i_520100257, 0, (secretSecretSynergies_1442840652[0]).length - 1)]; - F.line = 227; - F.filename = "power.nim"; - resultHEX60gensym59_1442842095[chckIndx(iHEX60gensym59_1442842088, 0, (resultHEX60gensym59_1442842095).length - 1)] = nimCopy(resultHEX60gensym59_1442842095[chckIndx(iHEX60gensym59_1442842088, 0, (resultHEX60gensym59_1442842095).length - 1)], it_1442842099.Field0, NTI1442840581); - F.line = 1028; - F.filename = "sequtils.nim"; - iHEX60gensym59_1442842088 = addInt(iHEX60gensym59_1442842088, 1); - F.line = 13; - F.filename = "iterators.nim"; - i_520100257 += 1; - if (!(((secretSecretSynergies_1442840652[0]).length == L_520100258))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + if (!(i_553654689 < L_553654690)) break Label4; + it_1728054771 = secretSecretSynergies_1728053324[0][chckIndx(i_553654689, 0, (secretSecretSynergies_1728053324[0]).length - 1)]; + resultHEX60gensym59_1728054767[chckIndx(iHEX60gensym59_1728054760, 0, (resultHEX60gensym59_1728054767).length - 1)] = nimCopy(resultHEX60gensym59_1728054767[chckIndx(iHEX60gensym59_1728054760, 0, (resultHEX60gensym59_1728054767).length - 1)], it_1728054771.Field0, NTI1728053253); + iHEX60gensym59_1728054760 = addInt(iHEX60gensym59_1728054760, 1); + i_553654689 += 1; + if (!(((secretSecretSynergies_1728053324[0]).length == L_553654690))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; }; - var secretSecretPowers_1442842104 = nimCopy(null, resultHEX60gensym59_1442842095, NTI1442840869); + var secretSecretPowers_1728054776 = nimCopy(null, resultHEX60gensym59_1728054767, NTI1728053541); Label5: { - F.line = 229; - F.filename = "power.nim"; - var p_1442842108 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); - F.line = 249; - F.filename = "iterators.nim"; - var i_520100263 = 0; - F.line = 250; - var L_520100264 = (powers_1442840649[0]).length; + var p_1728054780 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); + var i_553654695 = 0; + var L_553654696 = (powers_1728053321[0]).length; Label6: { - F.line = 251; Label7: while (true) { - if (!(i_520100263 < L_520100264)) break Label7; - F.line = 229; - F.filename = "power.nim"; - p_1442842108 = powers_1442840649[0][chckIndx(i_520100263, 0, (powers_1442840649[0]).length - 1)]; + if (!(i_553654695 < L_553654696)) break Label7; + p_1728054780 = powers_1728053321[0][chckIndx(i_553654695, 0, (powers_1728053321[0]).length - 1)]; Label8: { - if (contains_1442841239(secretSecretPowers_1442842104, p_1442842108)) { - F.line = 230; + if (contains_1728053911(secretSecretPowers_1728054776, p_1728054780)) { break Label8; } - if (hasKey_1442842149(result_1442842067[0], p_1442842108.name)) { - F.line = 232; - var Temporary10 = nimCopy(null, p_1442842108, NTI1442840581); - (Temporary9 = HEX5BHEX5D_1442842444(result_1442842067[0], p_1442842108.name), Temporary9)[0][Temporary9[1]].push(Temporary10);; + if (hasKey_1728054821(result_1728054739[0], p_1728054780.name)) { + var Temporary10 = nimCopy(null, p_1728054780, NTI1728053253); + (Temporary9 = HEX5BHEX5D_1728055116(result_1728054739[0], p_1728054780.name), Temporary9)[0][Temporary9[1]].push(Temporary10);; } else { - F.line = 234; - HEX5BHEX5DHEX3D_1442842554(result_1442842067[0], p_1442842108.name, [nimCopy(null, p_1442842108, NTI1442840581)]); + HEX5BHEX5DHEX3D_1728055226(result_1728054739[0], p_1728054780.name, [nimCopy(null, p_1728054780, NTI1728053253)]); } }; - F.line = 13; - F.filename = "iterators.nim"; - i_520100263 += 1; - if (!(((powers_1442840649[0]).length == L_520100264))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + i_553654695 += 1; + if (!(((powers_1728053321[0]).length == L_553654696))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - framePtr = F.prev; - return result_1442842067[0]; + return result_1728054739[0]; } -function initStorage_1543503887() { - var F = {procname: "store.initStorage", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/store.nim", line: 0}; - framePtr = F; +function initStorage_1929379855() { Label1: { - F.line = 27; - F.filename = "store.nim"; - var power_1543503891 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); - F.line = 249; - F.filename = "iterators.nim"; - var i_520100282 = 0; - F.line = 250; - var L_520100283 = (powers_1442840649[0]).length; + var power_1929379859 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); + var i_553654714 = 0; + var L_553654715 = (powers_1728053321[0]).length; Label2: { - F.line = 251; Label3: while (true) { - if (!(i_520100282 < L_520100283)) break Label3; - F.line = 27; - F.filename = "store.nim"; - power_1543503891 = powers_1442840649[0][chckIndx(i_520100282, 0, (powers_1442840649[0]).length - 1)]; - if (!(localStorage.getItem(toJSStr(power_1543503891.technicalName)) !== null)) { - F.line = 29; - localStorage.setItem(toJSStr(power_1543503891.technicalName), JSON.stringify({wins: 0, losses: 0})); + if (!(i_553654714 < L_553654715)) break Label3; + power_1929379859 = powers_1728053321[0][chckIndx(i_553654714, 0, (powers_1728053321[0]).length - 1)]; + if (!(localStorage.getItem(toJSStr(power_1929379859.technicalName)) !== null)) { + localStorage.setItem(toJSStr(power_1929379859.technicalName), JSON.stringify({wins: 0, losses: 0})); } - F.line = 13; - F.filename = "iterators.nim"; - i_520100282 += 1; - if (!(((powers_1442840649[0]).length == L_520100283))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + i_553654714 += 1; + if (!(((powers_1728053321[0]).length == L_553654715))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - F.line = 31; - F.filename = "store.nim"; localStorage.setItem("wins", JSON.stringify({wins: 0, losses: 0})); - F.line = 32; localStorage.setItem("losses", JSON.stringify({wins: 0, losses: 0})); - framePtr = F.prev; } -function HEX5BHEX5D_687867297(s_687867301, x_687867302) { - var result_687867303 = []; +function HEX5BHEX5D_721421729(s_721421733, x_721421734) { + var result_721421735 = []; - var F = {procname: "[].[]", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/indices.nim", line: 0}; - framePtr = F; - F.line = 139; - F.filename = "indices.nim"; - var a_687867305 = x_687867302.a; - F.line = 140; - var L_687867311 = addInt(subInt(subInt((s_687867301).length, x_687867302.b), a_687867305), 1); - F.line = 141; - result_687867303 = new Array(chckRange(L_687867311, 0, 2147483647)); for (var i = 0 ; i < chckRange(L_687867311, 0, 2147483647) ; ++i) { result_687867303[i] = null; } Label1: { - F.line = 142; - var i_687867320 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_520100286 = 0; + var a_721421737 = x_721421734.a; + var L_721421743 = addInt(subInt(subInt((s_721421733).length, x_721421734.b), a_721421737), 1); + result_721421735 = new Array(chckRange(L_721421743, 0, 2147483647)); for (var i = 0 ; i < chckRange(L_721421743, 0, 2147483647) ; ++i) { result_721421735[i] = null; } Label1: { + var i_721421752 = 0; + var i_553654718 = 0; Label2: { - F.line = 129; Label3: while (true) { - if (!(i_520100286 < L_687867311)) break Label3; - F.line = 142; - F.filename = "indices.nim"; - i_687867320 = i_520100286; - F.line = 142; - result_687867303[chckIndx(i_687867320, 0, (result_687867303).length - 1)] = s_687867301[chckIndx(addInt(i_687867320, a_687867305), 0, (s_687867301).length - 1)]; - F.line = 131; - F.filename = "iterators_1.nim"; - i_520100286 = addInt(i_520100286, 1); + if (!(i_553654718 < L_721421743)) break Label3; + i_721421752 = i_553654718; + result_721421735[chckIndx(i_721421752, 0, (result_721421735).length - 1)] = s_721421733[chckIndx(addInt(i_721421752, a_721421737), 0, (s_721421733).length - 1)]; + i_553654718 = addInt(i_553654718, 1); } }; }; - framePtr = F.prev; - return result_687867303; + return result_721421735; } -function valueHEX3D_721420741(n_721420742, v_721420743) { - var F = {procname: "vdom.value=", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/vdom.nim", line: 0}; - framePtr = F; - F.line = 188; - F.filename = "vdom.nim"; - n_721420742.text = v_721420743; - framePtr = F.prev; +function valueHEX3D_754975173(n_754975174, v_754975175) { + n_754975174.text = v_754975175; } -function value_721420738(n_721420739) { - var result_721420740 = null; +function value_754975170(n_754975171) { + var result_754975172 = null; - var F = {procname: "vdom.value", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/vdom.nim", line: 0}; - framePtr = F; - F.line = 187; - F.filename = "vdom.nim"; - result_721420740 = n_721420739.text; - framePtr = F.prev; + result_754975172 = n_754975171.text; - return result_721420740; + return result_754975172; } -function addEventShell_687865949(d_687865950, name_687865951, h_687865952) { - var F = {procname: "karax.addEventShell", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/karax.nim", line: 0}; - framePtr = F; - F.line = 94; - F.filename = "karax.nim"; - d_687865950.addEventListener(name_687865951, h_687865952, false); - if ((d_687865950.karaxEvents == null)) { - F.line = 96; - d_687865950.karaxEvents = new Array(0); +function addEventShell_721420381(d_721420382, name_721420383, h_721420384) { + d_721420382.addEventListener(name_721420383, h_721420384, false); + if ((d_721420382.karaxEvents == null)) { + d_721420382.karaxEvents = new Array(0); } - F.line = 97; - d_687865950.karaxEvents.push({Field0: name_687865951, Field1: h_687865952}); - framePtr = F.prev; + d_721420382.karaxEvents.push({Field0: name_721420383, Field1: h_721420384}); } -function wrapEvent_687866022(d_687866023, n_687866024, k_687866025, action_687866026) { +function wrapEvent_721420454(d_721420455, n_721420456, k_721420457, action_721420458) { -function laterWrapper_687866106() { +function laterWrapper_721420538() { -function HEX3Aanonymous_687866111(ev_687866112) { +function HEX3Aanonymous_721420543(ev_721420544) { -function wrapper_687866113() { - var F = {procname: ":anonymous.wrapper", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/karax.nim", line: 0}; - framePtr = F; - F.line = 77; - F.filename = "karax.nim"; - var vHEX60gensym15_687866115 = ev_687866112.target.value; - F.line = 78; - valueHEX3D_721420741(n_687866109, vHEX60gensym15_687866115); - if (!(!((action_687866108 == null)))) { - F.line = 79; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/karax.nim(79, 3) `action != nil` ")); +function wrapper_721420545() { + var vHEX60gensym15_721420547 = ev_721420544.target.value; + valueHEX3D_754975173(n_721420541, vHEX60gensym15_721420547); + if (!(!((action_721420540 == null)))) { + failedAssertImpl_268435541([107,97,114,97,120,46,110,105,109,40,55,57,44,32,51,41,32,96,97,99,116,105,111,110,32,33,61,32,110,105,108,96,32]); } - F.line = 80; - action_687866108(ev_687866112, n_687866109); - if (!((value_721420738(n_687866109) == vHEX60gensym15_687866115))) { - F.line = 82; - ev_687866112.target.value = value_721420738(n_687866109); + action_721420540(ev_721420544, n_721420541); + if (!((value_754975170(n_721420541) == vHEX60gensym15_721420547))) { + ev_721420544.target.value = value_754975170(n_721420541); } - framePtr = F.prev; } - var F = {procname: "laterWrapper.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/karax.nim", line: 0}; - framePtr = F; - if (!((timer_687866110 == null))) { - F.line = 126; - F.filename = "karax.nim"; - clearTimeout(timer_687866110); + if (!((timer_721420542 == null))) { + clearTimeout(timer_721420542); } - F.line = 127; - timer_687866110 = setTimeout(wrapper_687866113, 400); - framePtr = F.prev; + timer_721420542 = setTimeout(wrapper_721420545, 400); } - var result_687866107 = null; + var result_721420539 = null; - var F = {procname: "wrapEvent.laterWrapper", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/karax.nim", line: 0}; - framePtr = F; - F.line = 121; - F.filename = "karax.nim"; - var action_687866108 = action_687866026; - F.line = 122; - var n_687866109 = n_687866024; - F.line = 123; - var timer_687866110 = null; - F.line = 124; - result_687866107 = HEX3Aanonymous_687866111; - framePtr = F.prev; + var action_721420540 = action_721420458; + var n_721420541 = n_721420456; + var timer_721420542 = null; + result_721420539 = HEX3Aanonymous_721420543; - return result_687866107; + return result_721420539; } -function enterWrapper_687866073() { +function enterWrapper_721420505() { -function HEX3Aanonymous_687866077(ev_687866078) { - var F = {procname: "enterWrapper.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/karax.nim", line: 0}; - framePtr = F; - if ((ev_687866078.keyCode == 13)) { - F.line = 77; - F.filename = "karax.nim"; - var vHEX60gensym8_687866080 = ev_687866078.target.value; - F.line = 78; - valueHEX3D_721420741(n_687866076, vHEX60gensym8_687866080); - if (!(!((action_687866075 == null)))) { - F.line = 79; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/karax.nim(79, 3) `action != nil` ")); +function HEX3Aanonymous_721420509(ev_721420510) { + if ((ev_721420510.keyCode == 13)) { + var vHEX60gensym8_721420512 = ev_721420510.target.value; + valueHEX3D_754975173(n_721420508, vHEX60gensym8_721420512); + if (!(!((action_721420507 == null)))) { + failedAssertImpl_268435541([107,97,114,97,120,46,110,105,109,40,55,57,44,32,51,41,32,96,97,99,116,105,111,110,32,33,61,32,110,105,108,96,32]); } - F.line = 80; - action_687866075(ev_687866078, n_687866076); - if (!((value_721420738(n_687866076) == vHEX60gensym8_687866080))) { - F.line = 82; - ev_687866078.target.value = value_721420738(n_687866076); + action_721420507(ev_721420510, n_721420508); + if (!((value_754975170(n_721420508) == vHEX60gensym8_721420512))) { + ev_721420510.target.value = value_754975170(n_721420508); } } - framePtr = F.prev; } - var result_687866074 = null; + var result_721420506 = null; - var F = {procname: "wrapEvent.enterWrapper", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/karax.nim", line: 0}; - framePtr = F; - F.line = 115; - F.filename = "karax.nim"; - var action_687866075 = action_687866026; - F.line = 116; - var n_687866076 = n_687866024; - F.line = 117; - result_687866074 = HEX3Aanonymous_687866077; - framePtr = F.prev; + var action_721420507 = action_721420458; + var n_721420508 = n_721420456; + result_721420506 = HEX3Aanonymous_721420509; - return result_687866074; + return result_721420506; } -function stdWrapper_687866028() { +function stdWrapper_721420460() { -function HEX3Aanonymous_687866032(ev_687866033) { - var F = {procname: "stdWrapper.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/karax.nim", line: 0}; - framePtr = F; - if ((((n_687866031.kind == 200) || (n_687866031.kind == 194)) || (n_687866031.kind == 196))) { - F.line = 77; - F.filename = "karax.nim"; - var vHEX60gensym1_687866047 = ev_687866033.target.value; - F.line = 78; - valueHEX3D_721420741(n_687866031, vHEX60gensym1_687866047); - if (!(!((action_687866030 == null)))) { - F.line = 79; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/karax.nim(79, 3) `action != nil` ")); +function HEX3Aanonymous_721420464(ev_721420465) { + if ((((n_721420463.kind == 200) || (n_721420463.kind == 194)) || (n_721420463.kind == 196))) { + var vHEX60gensym1_721420479 = ev_721420465.target.value; + valueHEX3D_754975173(n_721420463, vHEX60gensym1_721420479); + if (!(!((action_721420462 == null)))) { + failedAssertImpl_268435541([107,97,114,97,120,46,110,105,109,40,55,57,44,32,51,41,32,96,97,99,116,105,111,110,32,33,61,32,110,105,108,96,32]); } - F.line = 80; - action_687866030(ev_687866033, n_687866031); - if (!((value_721420738(n_687866031) == vHEX60gensym1_687866047))) { - F.line = 82; - ev_687866033.target.value = value_721420738(n_687866031); + action_721420462(ev_721420465, n_721420463); + if (!((value_754975170(n_721420463) == vHEX60gensym1_721420479))) { + ev_721420465.target.value = value_754975170(n_721420463); } } else { - F.line = 112; - action_687866030(ev_687866033, n_687866031); + action_721420462(ev_721420465, n_721420463); } - framePtr = F.prev; } - var result_687866029 = null; + var result_721420461 = null; - var F = {procname: "wrapEvent.stdWrapper", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/karax.nim", line: 0}; - framePtr = F; - F.line = 107; - F.filename = "karax.nim"; - var action_687866030 = action_687866026; - F.line = 108; - var n_687866031 = n_687866024; - F.line = 109; - result_687866029 = HEX3Aanonymous_687866032; - framePtr = F.prev; + var action_721420462 = action_721420458; + var n_721420463 = n_721420456; + result_721420461 = HEX3Aanonymous_721420464; - return result_687866029; + return result_721420461; } - var result_687866027 = null; + var result_721420459 = null; - var F = {procname: "karax.wrapEvent", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/karax.nim", line: 0}; - framePtr = F; - F.line = 129; - F.filename = "karax.nim"; - switch (k_687866025) { + switch (k_721420457) { case 30: - F.line = 131; - result_687866027 = laterWrapper_687866106(); - F.line = 132; - addEventShell_687865949(d_687866023, "keyup", result_687866027); + result_721420459 = laterWrapper_721420538(); + addEventShell_721420381(d_721420455, "keyup", result_721420459); break; case 29: - F.line = 134; - result_687866027 = enterWrapper_687866073(); - F.line = 135; - addEventShell_687865949(d_687866023, "keyup", result_687866027); + result_721420459 = enterWrapper_721420505(); + addEventShell_721420381(d_721420455, "keyup", result_721420459); break; default: - F.line = 137; - result_687866027 = stdWrapper_687866028(); - F.line = 138; - addEventShell_687865949(d_687866023, toEventName_721420689[chckIndx(k_687866025, 0, (toEventName_721420689).length - 1)], result_687866027); + result_721420459 = stdWrapper_721420460(); + addEventShell_721420381(d_721420455, toEventName_754975121[chckIndx(k_721420457, 0, (toEventName_754975121).length - 1)], result_721420459); break; } - framePtr = F.prev; - return result_687866027; + return result_721420459; } -function applyEvents_687866149(n_687866150) { - var F = {procname: "karax.applyEvents", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/karax.nim", line: 0}; - framePtr = F; - F.line = 150; - F.filename = "karax.nim"; - var dest_687866151 = n_687866150.dom; +function applyEvents_721420581(n_721420582) { + var dest_721420583 = n_721420582.dom; Label1: { - F.line = 151; - var i_687866159 = 0; - F.line = 126; - F.filename = "iterators_1.nim"; - var colontmp__520100309 = 0; - F.line = 151; - F.filename = "karax.nim"; - colontmp__520100309 = (n_687866150.events).length; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_520100310 = 0; + var i_721420591 = 0; + var colontmp__553654741 = 0; + colontmp__553654741 = (n_721420582.events).length; + var i_553654742 = 0; Label2: { - F.line = 129; Label3: while (true) { - if (!(i_520100310 < colontmp__520100309)) break Label3; - F.line = 151; - F.filename = "karax.nim"; - i_687866159 = i_520100310; - F.line = 152; - n_687866150.events[chckIndx(i_687866159, 0, (n_687866150.events).length - 1)]["Field2"] = wrapEvent_687866022(dest_687866151, n_687866150, n_687866150.events[chckIndx(i_687866159, 0, (n_687866150.events).length - 1)]["Field0"], n_687866150.events[chckIndx(i_687866159, 0, (n_687866150.events).length - 1)]["Field1"]); - F.line = 131; - F.filename = "iterators_1.nim"; - i_520100310 = addInt(i_520100310, 1); + if (!(i_553654742 < colontmp__553654741)) break Label3; + i_721420591 = i_553654742; + n_721420582.events[chckIndx(i_721420591, 0, (n_721420582.events).length - 1)]["Field2"] = wrapEvent_721420454(dest_721420583, n_721420582, n_721420582.events[chckIndx(i_721420591, 0, (n_721420582.events).length - 1)]["Field0"], n_721420582.events[chckIndx(i_721420591, 0, (n_721420582.events).length - 1)]["Field1"]); + i_553654742 = addInt(i_553654742, 1); } }; }; - framePtr = F.prev; } -function applyStyle_788529666(n_788529667, s_788529668) { - var F = {procname: "vstyles.applyStyle", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/vstyles.nim", line: 0}; - framePtr = F; - F.line = 338; - F.filename = "vstyles.nim"; - n_788529667.style = {}; +function applyStyle_822084094(n_822084095, s_822084096) { + n_822084095.style = {}; Label1: { - F.line = 339; - var i_788529681 = 0; - F.line = 46; - F.filename = "iterators_1.nim"; - var colontmp__520100313 = 0; - F.line = 339; - F.filename = "vstyles.nim"; - colontmp__520100313 = subInt(s_788529668.length, 1); - F.line = 68; - F.filename = "iterators_1.nim"; - var res_520100314 = 0; + var i_822084109 = 0; + var colontmp__553654745 = 0; + colontmp__553654745 = subInt(s_822084096.length, 1); + var res_553654746 = 0; Label2: { - F.line = 69; Label3: while (true) { - if (!(res_520100314 <= colontmp__520100313)) break Label3; - F.line = 339; - F.filename = "vstyles.nim"; - i_788529681 = res_520100314; - F.line = 340; - n_788529667.style[s_788529668[i_788529681]] = s_788529668[addInt(i_788529681, 1)]; - F.line = 74; - F.filename = "iterators_1.nim"; - res_520100314 = addInt(res_520100314, 2); + if (!(res_553654746 <= colontmp__553654745)) break Label3; + i_822084109 = res_553654746; + n_822084095.style[s_822084096[i_822084109]] = s_822084096[addInt(i_822084109, 1)]; + res_553654746 = addInt(res_553654746, 2); } }; }; - framePtr = F.prev; } -function toDom_687866178(n_687866179, useAttachedNode_687866180, kxi_687866181) { +function toDom_721420610(n_721420611, useAttachedNode_721420612, kxi_721420613) { var Temporary1; - var result_687866182 = null; + var result_721420614 = null; - var F = {procname: "karax.toDom", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/karax.nim", line: 0}; - framePtr = F; BeforeRet: { - if (useAttachedNode_687866180) { - if (!((n_687866179.dom == null))) { - if (!((n_687866179.id == null))) { - F.line = 167; - F.filename = "karax.nim"; - kxi_687866181.byId[n_687866179.id] = n_687866179; + if (useAttachedNode_721420612) { + if (!((n_721420611.dom == null))) { + if (!((n_721420611.id == null))) { + kxi_721420613.byId[n_721420611.id] = n_721420611; } - F.line = 168; - result_687866182 = n_687866179.dom; + result_721420614 = n_721420611.dom; break BeforeRet; } } - if ((n_687866179.kind == 0)) { - F.line = 170; - result_687866182 = document.createTextNode(n_687866179.text); - F.line = 146; - n_687866179.dom = result_687866182; - if (!((n_687866179.id == null))) { - F.line = 147; - kxi__.byId[n_687866179.id] = n_687866179; + if ((n_721420611.kind == 0)) { + result_721420614 = document.createTextNode(n_721420611.text); + n_721420611.dom = result_721420614; + if (!((n_721420611.id == null))) { + kxi__.byId[n_721420611.id] = n_721420611; } } else { - if ((n_687866179.kind == 6)) { - F.line = 173; - result_687866182 = document.createElement("div"); - F.line = 174; - result_687866182.innerHTML = n_687866179.text; - F.line = 146; - n_687866179.dom = result_687866182; - if (!((n_687866179.id == null))) { - F.line = 147; - kxi__.byId[n_687866179.id] = n_687866179; - } - - F.line = 176; + if ((n_721420611.kind == 6)) { + result_721420614 = document.createElement("div"); + result_721420614.innerHTML = n_721420611.text; + n_721420611.dom = result_721420614; + if (!((n_721420611.id == null))) { + kxi__.byId[n_721420611.id] = n_721420611; + } + break BeforeRet; } else { - if ((n_687866179.kind == 3)) { - F.line = 178; - var x_687866222 = vcomponents_754974733[0][n_687866179.text](n_687866179.kids); - F.line = 179; - result_687866182 = toDom_687866178(x_687866222, useAttachedNode_687866180, kxi_687866181); - F.line = 146; - n_687866179.dom = result_687866182; - if (!((n_687866179.id == null))) { - F.line = 147; - kxi__.byId[n_687866179.id] = n_687866179; - } - - F.line = 182; + if ((n_721420611.kind == 3)) { + var x_721420654 = vcomponents_788529165[0][n_721420611.text](n_721420611.kids); + result_721420614 = toDom_721420610(x_721420654, useAttachedNode_721420612, kxi_721420613); + n_721420611.dom = result_721420614; + if (!((n_721420611.id == null))) { + kxi__.byId[n_721420611.id] = n_721420611; + } + break BeforeRet; } else { - if ((n_687866179.kind == 4)) { - F.line = 184; - result_687866182 = n_687866179.dom; - if (!(!((result_687866182 == null)))) { - F.line = 185; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/karax.nim(185, 5) `result != nil` ")); + if ((n_721420611.kind == 4)) { + result_721420614 = n_721420611.dom; + if (!(!((result_721420614 == null)))) { + failedAssertImpl_268435541([107,97,114,97,120,46,110,105,109,40,49,56,53,44,32,53,41,32,96,114,101,115,117,108,116,32,33,61,32,110,105,108,96,32]); } - F.line = 146; - n_687866179.dom = result_687866182; - if (!((n_687866179.id == null))) { - F.line = 147; - kxi__.byId[n_687866179.id] = n_687866179; + n_721420611.dom = result_721420614; + if (!((n_721420611.id == null))) { + kxi__.byId[n_721420611.id] = n_721420611; } - F.line = 188; break BeforeRet; } else { - if ((n_687866179.kind == 5)) { - F.line = 190; - var x_687866252 = n_687866179; - if (!((x_687866252.onAttachImpl == null))) { - F.line = 191; - x_687866252.onAttachImpl(x_687866252); + if ((n_721420611.kind == 5)) { + var x_721420684 = n_721420611; + if (!((x_721420684.onAttachImpl == null))) { + x_721420684.onAttachImpl(x_721420684); } - if (!(!((x_687866252.renderImpl == null)))) { - F.line = 192; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/karax.nim(192, 5) `x.renderImpl != nil` ")); + if (!(!((x_721420684.renderImpl == null)))) { + failedAssertImpl_268435541([107,97,114,97,120,46,110,105,109,40,49,57,50,44,32,53,41,32,96,120,46,114,101,110,100,101,114,73,109,112,108,32,33,61,32,110,105,108,96,32]); } - if ((x_687866252.expanded == null)) { - F.line = 194; - x_687866252.expanded = x_687866252.renderImpl(x_687866252); + if ((x_721420684.expanded == null)) { + x_721420684.expanded = x_721420684.renderImpl(x_721420684); } - if (!(!((x_687866252.expanded == null)))) { - F.line = 196; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/karax.nim(196, 5) `x.expanded != nil` ")); + if (!(!((x_721420684.expanded == null)))) { + failedAssertImpl_268435541([107,97,114,97,120,46,110,105,109,40,49,57,54,44,32,53,41,32,96,120,46,101,120,112,97,110,100,101,100,32,33,61,32,110,105,108,96,32]); } - F.line = 197; - result_687866182 = toDom_687866178(x_687866252.expanded, useAttachedNode_687866180, kxi_687866181); - F.line = 146; - n_687866179.dom = result_687866182; - if (!((n_687866179.id == null))) { - F.line = 147; - kxi__.byId[n_687866179.id] = n_687866179; + result_721420614 = toDom_721420610(x_721420684.expanded, useAttachedNode_721420612, kxi_721420613); + n_721420611.dom = result_721420614; + if (!((n_721420611.id == null))) { + kxi__.byId[n_721420611.id] = n_721420611; } - F.line = 199; break BeforeRet; } else { - F.line = 202; - if ((ConstSet2[n_687866179.kind] != undefined)) { - Temporary1 = document.createElementNS(toJSStr(svgNamespace_721420514[0]), toTag_721420612[chckIndx(n_687866179.kind, 0, (toTag_721420612).length - 1)]); + if ((ConstSet2[n_721420611.kind] != undefined)) { + Temporary1 = document.createElementNS(toJSStr(svgNamespace_754974946[0]), toTag_754975044[chckIndx(n_721420611.kind, 0, (toTag_754975044).length - 1)]); } else { - if ((ConstSet3[n_687866179.kind] != undefined)) { - Temporary1 = document.createElementNS(toJSStr(mathNamespace_721420515[0]), toTag_721420612[chckIndx(n_687866179.kind, 0, (toTag_721420612).length - 1)]); + if ((ConstSet3[n_721420611.kind] != undefined)) { + Temporary1 = document.createElementNS(toJSStr(mathNamespace_754974947[0]), toTag_754975044[chckIndx(n_721420611.kind, 0, (toTag_754975044).length - 1)]); } else { - Temporary1 = document.createElement(toTag_721420612[chckIndx(n_687866179.kind, 0, (toTag_721420612).length - 1)]); + Temporary1 = document.createElement(toTag_754975044[chckIndx(n_721420611.kind, 0, (toTag_754975044).length - 1)]); } } - result_687866182 = Temporary1; - F.line = 146; - n_687866179.dom = result_687866182; - if (!((n_687866179.id == null))) { - F.line = 147; - kxi__.byId[n_687866179.id] = n_687866179; + result_721420614 = Temporary1; + n_721420611.dom = result_721420614; + if (!((n_721420611.id == null))) { + kxi__.byId[n_721420611.id] = n_721420611; } Label2: { - F.line = 209; - var k_687866299 = null; + var k_721420731 = null; Label3: { - F.line = 334; - F.filename = "vdom.nim"; - var i_520100294 = 0; - F.line = 126; - F.filename = "iterators_1.nim"; - var colontmp__520100295 = 0; - F.line = 334; - F.filename = "vdom.nim"; - colontmp__520100295 = (n_687866179.kids).length; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_520100296 = 0; + var i_553654726 = 0; + var colontmp__553654727 = 0; + colontmp__553654727 = (n_721420611.kids).length; + var i_553654728 = 0; Label4: { - F.line = 129; Label5: while (true) { - if (!(i_520100296 < colontmp__520100295)) break Label5; - F.line = 334; - F.filename = "vdom.nim"; - i_520100294 = i_520100296; - F.line = 209; - F.filename = "karax.nim"; - k_687866299 = n_687866179.kids[chckIndx(i_520100294, 0, (n_687866179.kids).length - 1)]; - F.line = 210; - result_687866182.appendChild(toDom_687866178(k_687866299, useAttachedNode_687866180, kxi_687866181)); - F.line = 131; - F.filename = "iterators_1.nim"; - i_520100296 = addInt(i_520100296, 1); + if (!(i_553654728 < colontmp__553654727)) break Label5; + i_553654726 = i_553654728; + k_721420731 = n_721420611.kids[chckIndx(i_553654726, 0, (n_721420611.kids).length - 1)]; + result_721420614.appendChild(toDom_721420610(k_721420731, useAttachedNode_721420612, kxi_721420613)); + i_553654728 = addInt(i_553654728, 1); } }; }; }; - if (!((n_687866179.text == null))) { - F.line = 213; - F.filename = "karax.nim"; - result_687866182.value = n_687866179.text; + if (!((n_721420611.text == null))) { + result_721420614.value = n_721420611.text; } } }}}} - if (!((n_687866179.id == null))) { - F.line = 215; - result_687866182.id = n_687866179.id; + if (!((n_721420611.id == null))) { + result_721420614.id = n_721420611.id; } - if (!((n_687866179.class == null))) { - if ((ConstSet4[n_687866179.kind] != undefined)) { - F.line = 218; - result_687866182.className.baseVal = n_687866179.class; + if (!((n_721420611.class == null))) { + if ((ConstSet4[n_721420611.kind] != undefined)) { + result_721420614.className.baseVal = n_721420611.class; } else { - F.line = 220; - result_687866182.className = n_687866179.class; + result_721420614.className = n_721420611.class; } } Label6: { - F.line = 223; - var k_687866304 = null; - F.line = 223; - var v_687866305 = null; + var k_721420736 = null; + var v_721420737 = null; Label7: { - F.line = 337; - F.filename = "vdom.nim"; - var i_520100304 = 0; - F.line = 46; - F.filename = "iterators_1.nim"; - var colontmp__520100305 = 0; - F.line = 337; - F.filename = "vdom.nim"; - colontmp__520100305 = subInt((n_687866179.attrs).length, 2); - F.line = 68; - F.filename = "iterators_1.nim"; - var res_520100306 = 0; + var i_553654736 = 0; + var colontmp__553654737 = 0; + colontmp__553654737 = subInt((n_721420611.attrs).length, 2); + var res_553654738 = 0; Label8: { - F.line = 69; Label9: while (true) { - if (!(res_520100306 <= colontmp__520100305)) break Label9; - F.line = 337; - F.filename = "vdom.nim"; - i_520100304 = res_520100306; - F.line = 223; - F.filename = "karax.nim"; - k_687866304 = n_687866179.attrs[chckIndx(i_520100304, 0, (n_687866179.attrs).length - 1)]; - F.line = 223; - v_687866305 = n_687866179.attrs[chckIndx(addInt(i_520100304, 1), 0, (n_687866179.attrs).length - 1)]; - if (!((v_687866305 == null))) { - F.line = 225; - result_687866182.setAttribute(k_687866304, v_687866305); + if (!(res_553654738 <= colontmp__553654737)) break Label9; + i_553654736 = res_553654738; + k_721420736 = n_721420611.attrs[chckIndx(i_553654736, 0, (n_721420611.attrs).length - 1)]; + v_721420737 = n_721420611.attrs[chckIndx(addInt(i_553654736, 1), 0, (n_721420611.attrs).length - 1)]; + if (!((v_721420737 == null))) { + result_721420614.setAttribute(k_721420736, v_721420737); } - F.line = 74; - F.filename = "iterators_1.nim"; - res_520100306 = addInt(res_520100306, 2); + res_553654738 = addInt(res_553654738, 2); } }; }; }; - F.line = 226; - F.filename = "karax.nim"; - applyEvents_687866149(n_687866179); - if (((!((kxi_687866181 == null)) && (n_687866179 == kxi_687866181.toFocusV)) && (kxi_687866181.toFocus == null))) { - F.line = 228; - kxi_687866181.toFocus = result_687866182; + applyEvents_721420581(n_721420611); + if (((!((kxi_721420613 == null)) && (n_721420611 == kxi_721420613.toFocusV)) && (kxi_721420613.toFocus == null))) { + kxi_721420613.toFocus = result_721420614; } - if (!((n_687866179.style == null))) { - F.line = 230; - applyStyle_788529666(result_687866182, n_687866179.style); - F.line = 231; - n_687866179.styleVersion = (n_687866179.style.__version || 0); + if (!((n_721420611.style == null))) { + applyStyle_822084094(result_721420614, n_721420611.style); + n_721420611.styleVersion = (n_721420611.style.__version || 0); } }; - framePtr = F.prev; - return result_687866182; + return result_721420614; } -function replaceById_687866398(id_687866399, newTree_687866400) { - var F = {procname: "karax.replaceById", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/karax.nim", line: 0}; - framePtr = F; - F.line = 257; - F.filename = "karax.nim"; - var x_687866401 = document.getElementById(id_687866399); - F.line = 258; - x_687866401.parentNode.replaceChild(newTree_687866400, x_687866401); - F.line = 259; - newTree_687866400.id = id_687866399; - framePtr = F.prev; +function replaceById_721420830(id_721420831, newTree_721420832) { + var x_721420833 = document.getElementById(id_721420831); + x_721420833.parentNode.replaceChild(newTree_721420832, x_721420833); + newTree_721420832.id = id_721420831; } -function len_721421105(x_721421106) { - var result_721421107 = 0; +function len_754975537(x_754975538) { + var result_754975539 = 0; - var F = {procname: "vdom.len", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/vdom.nim", line: 0}; - framePtr = F; - F.line = 298; - F.filename = "vdom.nim"; - result_721421107 = (x_721421106.kids).length; - framePtr = F.prev; + result_754975539 = (x_754975538.kids).length; - return result_721421107; + return result_754975539; } -function HEX5BHEX5D_721421112(x_721421113, idx_721421114) { - var result_721421115 = null; +function HEX5BHEX5D_754975544(x_754975545, idx_754975546) { + var result_754975547 = null; - var F = {procname: "vdom.[]", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/vdom.nim", line: 0}; - framePtr = F; - F.line = 299; - F.filename = "vdom.nim"; - result_721421115 = x_721421113.kids[chckIndx(idx_721421114, 0, (x_721421113.kids).length - 1)]; - framePtr = F.prev; + result_754975547 = x_754975545.kids[chckIndx(idx_754975546, 0, (x_754975545.kids).length - 1)]; - return result_721421115; + return result_754975547; } -function eq_788529410(a_788529411, b_788529412) { - var result_788529413 = false; +function eq_822083842(a_822083843, b_822083844) { + var result_822083845 = false; - var F = {procname: "vstyles.eq", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/vstyles.nim", line: 0}; - framePtr = F; BeforeRet: { - if ((a_788529411 == null)) { - if ((b_788529412 == null)) { - F.line = 236; - F.filename = "vstyles.nim"; - result_788529413 = true; + if ((a_822083843 == null)) { + if ((b_822083844 == null)) { + result_822083845 = true; break BeforeRet; } else { - F.line = 237; - result_788529413 = false; + result_822083845 = false; break BeforeRet; } } else { - if ((b_788529412 == null)) { - F.line = 238; - result_788529413 = false; + if ((b_822083844 == null)) { + result_822083845 = false; break BeforeRet; } } - if (!((a_788529411.length == b_788529412.length))) { - F.line = 239; - result_788529413 = false; + if (!((a_822083843.length == b_822083844.length))) { + result_822083845 = false; break BeforeRet; } Label1: { - F.line = 240; - var i_788529448 = 0; - F.line = 126; - F.filename = "iterators_1.nim"; - var colontmp__520100340 = 0; - F.line = 240; - F.filename = "vstyles.nim"; - colontmp__520100340 = a_788529411.length; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_520100341 = 0; + var i_822083880 = 0; + var colontmp__553654772 = 0; + colontmp__553654772 = a_822083843.length; + var i_553654773 = 0; Label2: { - F.line = 129; Label3: while (true) { - if (!(i_520100341 < colontmp__520100340)) break Label3; - F.line = 240; - F.filename = "vstyles.nim"; - i_788529448 = i_520100341; - if (!((a_788529411[i_788529448] == b_788529412[i_788529448]))) { - F.line = 241; - result_788529413 = false; + if (!(i_553654773 < colontmp__553654772)) break Label3; + i_822083880 = i_553654773; + if (!((a_822083843[i_822083880] == b_822083844[i_822083880]))) { + result_822083845 = false; break BeforeRet; } - F.line = 131; - F.filename = "iterators_1.nim"; - i_520100341 = addInt(i_520100341, 1); + i_553654773 = addInt(i_553654773, 1); } }; }; - F.line = 242; - F.filename = "vstyles.nim"; - result_788529413 = true; + result_822083845 = true; break BeforeRet; }; - framePtr = F.prev; - return result_788529413; + return result_822083845; } -function versionMatch_788529457(s_788529458, version_788529459) { - var result_788529460 = false; +function versionMatch_822083889(s_822083890, version_822083891) { + var result_822083892 = false; - var F = {procname: "vstyles.versionMatch", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/vstyles.nim", line: 0}; - framePtr = F; - F.line = 246; - F.filename = "vstyles.nim"; - result_788529460 = ((s_788529458 == null) || ((s_788529458.__version || 0) == version_788529459)); - framePtr = F.prev; + result_822083892 = ((s_822083890 == null) || ((s_822083890.__version || 0) == version_822083891)); - return result_788529460; + return result_822083892; } -function sameAttrs_721421285(a_721421286, b_721421287) { - var result_721421288 = false; +function sameAttrs_754975717(a_754975718, b_754975719) { + var result_754975720 = false; - var F = {procname: "vdom.sameAttrs", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/vdom.nim", line: 0}; - framePtr = F; BeforeRet: { - if (((a_721421286.attrs).length == (b_721421287.attrs).length)) { - F.line = 342; - F.filename = "vdom.nim"; - result_721421288 = true; + if (((a_754975718.attrs).length == (b_754975719.attrs).length)) { + result_754975720 = true; Label1: { - F.line = 343; - var i_721421302 = 0; - F.line = 126; - F.filename = "iterators_1.nim"; - var colontmp__520100344 = 0; - F.line = 343; - F.filename = "vdom.nim"; - colontmp__520100344 = (a_721421286.attrs).length; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_520100345 = 0; + var i_754975734 = 0; + var colontmp__553654776 = 0; + colontmp__553654776 = (a_754975718.attrs).length; + var i_553654777 = 0; Label2: { - F.line = 129; Label3: while (true) { - if (!(i_520100345 < colontmp__520100344)) break Label3; - F.line = 343; - F.filename = "vdom.nim"; - i_721421302 = i_520100345; - if (!((a_721421286.attrs[chckIndx(i_721421302, 0, (a_721421286.attrs).length - 1)] == b_721421287.attrs[chckIndx(i_721421302, 0, (b_721421287.attrs).length - 1)]))) { - F.line = 344; - result_721421288 = false; + if (!(i_553654777 < colontmp__553654776)) break Label3; + i_754975734 = i_553654777; + if (!((a_754975718.attrs[chckIndx(i_754975734, 0, (a_754975718.attrs).length - 1)] == b_754975719.attrs[chckIndx(i_754975734, 0, (b_754975719.attrs).length - 1)]))) { + result_754975720 = false; break BeforeRet; } - F.line = 131; - F.filename = "iterators_1.nim"; - i_520100345 = addInt(i_520100345, 1); + i_553654777 = addInt(i_553654777, 1); } }; }; } }; - framePtr = F.prev; - return result_721421288; + return result_754975720; } -function eq_687866411(a_687866412, b_687866413, recursive_687866414) { - var result_687866415 = 0; +function eq_721420843(a_721420844, b_721420845, recursive_721420846) { + var result_721420847 = 0; - var F = {procname: "karax.eq", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/karax.nim", line: 0}; - framePtr = F; BeforeRet: { - if (!((a_687866412.kind == b_687866413.kind))) { - F.line = 281; - F.filename = "karax.nim"; - result_687866415 = 1; + if (!((a_721420844.kind == b_721420845.kind))) { + result_721420847 = 1; break BeforeRet; } - if (!((a_687866412.id == b_687866413.id))) { - F.line = 284; - result_687866415 = 1; + if (!((a_721420844.id == b_721420845.id))) { + result_721420847 = 1; break BeforeRet; } - F.line = 285; - result_687866415 = 3; - if (!((a_687866412.index == b_687866413.index))) { - F.line = 288; - result_687866415 = 1; + result_721420847 = 3; + if (!((a_721420844.index == b_721420845.index))) { + result_721420847 = 1; break BeforeRet; } - if ((a_687866412.kind == 0)) { - if (!((a_687866412.text == b_687866413.text))) { - F.line = 292; - result_687866415 = 1; + if ((a_721420844.kind == 0)) { + if (!((a_721420844.text == b_721420845.text))) { + result_721420847 = 1; break BeforeRet; } } else { - if ((a_687866412.kind == 3)) { - if (!((a_687866412.text == b_687866413.text))) { - F.line = 294; - result_687866415 = 1; + if ((a_721420844.kind == 3)) { + if (!((a_721420844.text == b_721420845.text))) { + result_721420847 = 1; break BeforeRet; } - if (!((len_721421105(a_687866412) == len_721421105(b_687866413)))) { - F.line = 295; - result_687866415 = 1; + if (!((len_754975537(a_721420844) == len_754975537(b_721420845)))) { + result_721420847 = 1; break BeforeRet; } Label1: { - F.line = 296; - var i_687866432 = 0; - F.line = 126; - F.filename = "iterators_1.nim"; - var colontmp__520100332 = 0; - F.line = 296; - F.filename = "karax.nim"; - colontmp__520100332 = len_721421105(a_687866412); - F.line = 128; - F.filename = "iterators_1.nim"; - var i_520100333 = 0; + var i_721420864 = 0; + var colontmp__553654764 = 0; + colontmp__553654764 = len_754975537(a_721420844); + var i_553654765 = 0; Label2: { - F.line = 129; Label3: while (true) { - if (!(i_520100333 < colontmp__520100332)) break Label3; - F.line = 296; - F.filename = "karax.nim"; - i_687866432 = i_520100333; - if ((eq_687866411(HEX5BHEX5D_721421112(a_687866412, i_687866432), HEX5BHEX5D_721421112(b_687866413, i_687866432), recursive_687866414) == 1)) { - F.line = 297; - result_687866415 = 1; + if (!(i_553654765 < colontmp__553654764)) break Label3; + i_721420864 = i_553654765; + if ((eq_721420843(HEX5BHEX5D_754975544(a_721420844, i_721420864), HEX5BHEX5D_754975544(b_721420845, i_721420864), recursive_721420846) == 1)) { + result_721420847 = 1; break BeforeRet; } - F.line = 131; - F.filename = "iterators_1.nim"; - i_520100333 = addInt(i_520100333, 1); + i_553654765 = addInt(i_553654765, 1); } }; }; } else { - if ((a_687866412.kind == 4)) { - if ((a_687866412.dom == b_687866413.dom)) { - F.line = 300; - F.filename = "karax.nim"; - result_687866415 = 3; + if ((a_721420844.kind == 4)) { + if ((a_721420844.dom == b_721420845.dom)) { + result_721420847 = 3; break BeforeRet; } else { - F.line = 302; - result_687866415 = 1; + result_721420847 = 1; break BeforeRet; } } else { - if ((a_687866412.kind == 6)) { - if (!((a_687866412.text == b_687866413.text))) { - F.line = 305; - result_687866415 = 1; + if ((a_721420844.kind == 6)) { + if (!((a_721420844.text == b_721420845.text))) { + result_721420847 = 1; break BeforeRet; } } else { - if ((b_687866413.kind == 5)) { - if (!((a_687866412.text == b_687866413.text))) { - F.line = 310; - result_687866415 = 1; + if ((b_721420845.kind == 5)) { + if (!((a_721420844.text == b_721420845.text))) { + result_721420847 = 1; break BeforeRet; } - if (!((a_687866412.key == b_687866413.key))) { - F.line = 316; - result_687866415 = 1; + if (!((a_721420844.key == b_721420845.key))) { + result_721420847 = 1; break BeforeRet; } - F.line = 317; - result_687866415 = 0; + result_721420847 = 0; break BeforeRet; } }}}} - if (((!((a_687866412.class == b_687866413.class)) || !((eq_788529410(a_687866412.style, b_687866413.style) && versionMatch_788529457(a_687866412.style, b_687866413.styleVersion)))) || !(sameAttrs_721421285(a_687866412, b_687866413)))) { - F.line = 324; - result_687866415 = 2; + if (((!((a_721420844.class == b_721420845.class)) || !((eq_822083842(a_721420844.style, b_721420845.style) && versionMatch_822083889(a_721420844.style, b_721420845.styleVersion)))) || !(sameAttrs_754975717(a_721420844, b_721420845)))) { + result_721420847 = 2; break BeforeRet; } - if (recursive_687866414) { - if (!((len_721421105(a_687866412) == len_721421105(b_687866413)))) { - F.line = 328; - result_687866415 = 1; + if (recursive_721420846) { + if (!((len_754975537(a_721420844) == len_754975537(b_721420845)))) { + result_721420847 = 1; break BeforeRet; } Label4: { - F.line = 329; - var i_687866458 = 0; - F.line = 126; - F.filename = "iterators_1.nim"; - var colontmp__520100336 = 0; - F.line = 329; - F.filename = "karax.nim"; - colontmp__520100336 = len_721421105(a_687866412); - F.line = 128; - F.filename = "iterators_1.nim"; - var i_520100337 = 0; + var i_721420890 = 0; + var colontmp__553654768 = 0; + colontmp__553654768 = len_754975537(a_721420844); + var i_553654769 = 0; Label5: { - F.line = 129; Label6: while (true) { - if (!(i_520100337 < colontmp__520100336)) break Label6; - F.line = 329; - F.filename = "karax.nim"; - i_687866458 = i_520100337; - if (!((eq_687866411(HEX5BHEX5D_721421112(a_687866412, i_687866458), HEX5BHEX5D_721421112(b_687866413, i_687866458), true) == 3))) { - F.line = 331; - result_687866415 = 1; + if (!(i_553654769 < colontmp__553654768)) break Label6; + i_721420890 = i_553654769; + if (!((eq_721420843(HEX5BHEX5D_754975544(a_721420844, i_721420890), HEX5BHEX5D_754975544(b_721420845, i_721420890), true) == 3))) { + result_721420847 = 1; break BeforeRet; } - F.line = 131; - F.filename = "iterators_1.nim"; - i_520100337 = addInt(i_520100337, 1); + i_553654769 = addInt(i_553654769, 1); } }; }; } - F.line = 334; - F.filename = "karax.nim"; break BeforeRet; }; - framePtr = F.prev; - return result_687866415; + return result_721420847; } -function updateStyles_687866479(newNode_687866480, oldNode_687866481) { - var F = {procname: "karax.updateStyles", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/karax.nim", line: 0}; - framePtr = F; - if (!((oldNode_687866481.dom == null))) { - if (!((newNode_687866480.style == null))) { - F.line = 340; - F.filename = "karax.nim"; - applyStyle_788529666(oldNode_687866481.dom, newNode_687866480.style); - F.line = 341; - newNode_687866480.styleVersion = (newNode_687866480.style.__version || 0); +function updateStyles_721420911(newNode_721420912, oldNode_721420913) { + if (!((oldNode_721420913.dom == null))) { + if (!((newNode_721420912.style == null))) { + applyStyle_822084094(oldNode_721420913.dom, newNode_721420912.style); + newNode_721420912.styleVersion = (newNode_721420912.style.__version || 0); } else { - F.line = 342; - oldNode_687866481.dom.style = {m_type: NTI805306510, alignContent: null, alignItems: null, alignSelf: null, all: null, animation: null, animationDelay: null, animationDirection: null, animationDuration: null, animationFillMode: null, animationIterationCount: null, animationName: null, animationPlayState: null, animationTimingFunction: null, backdropFilter: null, backfaceVisibility: null, background: null, backgroundAttachment: null, backgroundBlendMode: null, backgroundClip: null, backgroundColor: null, backgroundImage: null, backgroundOrigin: null, backgroundPosition: null, backgroundRepeat: null, backgroundSize: null, blockSize: null, border: null, borderBlock: null, borderBlockColor: null, borderBlockEnd: null, borderBlockEndColor: null, borderBlockEndStyle: null, borderBlockEndWidth: null, borderBlockStart: null, borderBlockStartColor: null, borderBlockStartStyle: null, borderBlockStartWidth: null, borderBlockStyle: null, borderBlockWidth: null, borderBottom: null, borderBottomColor: null, borderBottomLeftRadius: null, borderBottomRightRadius: null, borderBottomStyle: null, borderBottomWidth: null, borderCollapse: null, borderColor: null, borderEndEndRadius: null, borderEndStartRadius: null, borderImage: null, borderImageOutset: null, borderImageRepeat: null, borderImageSlice: null, borderImageSource: null, borderImageWidth: null, borderInline: null, borderInlineColor: null, borderInlineEnd: null, borderInlineEndColor: null, borderInlineEndStyle: null, borderInlineEndWidth: null, borderInlineStart: null, borderInlineStartColor: null, borderInlineStartStyle: null, borderInlineStartWidth: null, borderInlineStyle: null, borderInlineWidth: null, borderLeft: null, borderLeftColor: null, borderLeftStyle: null, borderLeftWidth: null, borderRadius: null, borderRight: null, borderRightColor: null, borderRightStyle: null, borderRightWidth: null, borderSpacing: null, borderStartEndRadius: null, borderStartStartRadius: null, borderStyle: null, borderTop: null, borderTopColor: null, borderTopLeftRadius: null, borderTopRightRadius: null, borderTopStyle: null, borderTopWidth: null, borderWidth: null, bottom: null, boxDecorationBreak: null, boxShadow: null, boxSizing: null, breakAfter: null, breakBefore: null, breakInside: null, captionSide: null, caretColor: null, clear: null, clip: null, clipPath: null, color: null, colorAdjust: null, columnCount: null, columnFill: null, columnGap: null, columnRule: null, columnRuleColor: null, columnRuleStyle: null, columnRuleWidth: null, columnSpan: null, columnWidth: null, columns: null, contain: null, content: null, counterIncrement: null, counterReset: null, counterSet: null, cursor: null, direction: null, display: null, emptyCells: null, filter: null, flex: null, flexBasis: null, flexDirection: null, flexFlow: null, flexGrow: null, flexShrink: null, flexWrap: null, cssFloat: null, font: null, fontFamily: null, fontFeatureSettings: null, fontKerning: null, fontLanguageOverride: null, fontOpticalSizing: null, fontSize: null, fontSizeAdjust: null, fontStretch: null, fontStyle: null, fontSynthesis: null, fontVariant: null, fontVariantAlternates: null, fontVariantCaps: null, fontVariantEastAsian: null, fontVariantLigatures: null, fontVariantNumeric: null, fontVariantPosition: null, fontVariationSettings: null, fontWeight: null, gap: null, grid: null, gridArea: null, gridAutoColumns: null, gridAutoFlow: null, gridAutoRows: null, gridColumn: null, gridColumnEnd: null, gridColumnStart: null, gridRow: null, gridRowEnd: null, gridRowStart: null, gridTemplate: null, gridTemplateAreas: null, gridTemplateColumns: null, gridTemplateRows: null, hangingPunctuation: null, height: null, hyphens: null, imageOrientation: null, imageRendering: null, inlineSize: null, inset: null, insetBlock: null, insetBlockEnd: null, insetBlockStart: null, insetInline: null, insetInlineEnd: null, insetInlineStart: null, isolation: null, justifyContent: null, justifyItems: null, justifySelf: null, left: null, letterSpacing: null, lineBreak: null, lineHeight: null, listStyle: null, listStyleImage: null, listStylePosition: null, listStyleType: null, margin: null, marginBlock: null, marginBlockEnd: null, marginBlockStart: null, marginBottom: null, marginInline: null, marginInlineEnd: null, marginInlineStart: null, marginLeft: null, marginRight: null, marginTop: null, mask: null, maskBorder: null, maskBorderMode: null, maskBorderOutset: null, maskBorderRepeat: null, maskBorderSlice: null, maskBorderSource: null, maskBorderWidth: null, maskClip: null, maskComposite: null, maskImage: null, maskMode: null, maskOrigin: null, maskPosition: null, maskRepeat: null, maskSize: null, maskType: null, maxBlockSize: null, maxHeight: null, maxInlineSize: null, maxWidth: null, minBlockSize: null, minHeight: null, minInlineSize: null, minWidth: null, mixBlendMode: null, objectFit: null, objectPosition: null, offset: null, offsetAnchor: null, offsetDistance: null, offsetPath: null, offsetRotate: null, opacity: null, order: null, orphans: null, outline: null, outlineColor: null, outlineOffset: null, outlineStyle: null, outlineWidth: null, overflow: null, overflowAnchor: null, overflowBlock: null, overflowInline: null, overflowWrap: null, overflowX: null, overflowY: null, overscrollBehavior: null, overscrollBehaviorBlock: null, overscrollBehaviorInline: null, overscrollBehaviorX: null, overscrollBehaviorY: null, padding: null, paddingBlock: null, paddingBlockEnd: null, paddingBlockStart: null, paddingBottom: null, paddingInline: null, paddingInlineEnd: null, paddingInlineStart: null, paddingLeft: null, paddingRight: null, paddingTop: null, pageBreakAfter: null, pageBreakBefore: null, pageBreakInside: null, paintOrder: null, perspective: null, perspectiveOrigin: null, placeContent: null, placeItems: null, placeSelf: null, pointerEvents: null, position: null, quotes: null, resize: null, right: null, rotate: null, rowGap: null, scale: null, scrollBehavior: null, scrollMargin: null, scrollMarginBlock: null, scrollMarginBlockEnd: null, scrollMarginBlockStart: null, scrollMarginBottom: null, scrollMarginInline: null, scrollMarginInlineEnd: null, scrollMarginInlineStart: null, scrollMarginLeft: null, scrollMarginRight: null, scrollMarginTop: null, scrollPadding: null, scrollPaddingBlock: null, scrollPaddingBlockEnd: null, scrollPaddingBlockStart: null, scrollPaddingBottom: null, scrollPaddingInline: null, scrollPaddingInlineEnd: null, scrollPaddingInlineStart: null, scrollPaddingLeft: null, scrollPaddingRight: null, scrollPaddingTop: null, scrollSnapAlign: null, scrollSnapStop: null, scrollSnapType: null, scrollbar3dLightColor: null, scrollbarArrowColor: null, scrollbarBaseColor: null, scrollbarColor: null, scrollbarDarkshadowColor: null, scrollbarFaceColor: null, scrollbarHighlightColor: null, scrollbarShadowColor: null, scrollbarTrackColor: null, scrollbarWidth: null, shapeImageThreshold: null, shapeMargin: null, shapeOutside: null, tabSize: null, tableLayout: null, textAlign: null, textAlignLast: null, textCombineUpright: null, textDecoration: null, textDecorationColor: null, textDecorationLine: null, textDecorationSkipInk: null, textDecorationStyle: null, textDecorationThickness: null, textEmphasis: null, textEmphasisColor: null, textEmphasisPosition: null, textEmphasisStyle: null, textIndent: null, textJustify: null, textOrientation: null, textOverflow: null, textRendering: null, textShadow: null, textTransform: null, textUnderlineOffset: null, textUnderlinePosition: null, top: null, touchAction: null, transform: null, transformBox: null, transformOrigin: null, transformStyle: null, transition: null, transitionDelay: null, transitionDuration: null, transitionProperty: null, transitionTimingFunction: null, translate: null, unicodeBidi: null, verticalAlign: null, visibility: null, whiteSpace: null, widows: null, width: null, willChange: null, wordBreak: null, wordSpacing: null, writingMode: null, zIndex: null}; + oldNode_721420913.dom.style = {m_type: NTI838860942, alignContent: null, alignItems: null, alignSelf: null, all: null, animation: null, animationDelay: null, animationDirection: null, animationDuration: null, animationFillMode: null, animationIterationCount: null, animationName: null, animationPlayState: null, animationTimingFunction: null, backdropFilter: null, backfaceVisibility: null, background: null, backgroundAttachment: null, backgroundBlendMode: null, backgroundClip: null, backgroundColor: null, backgroundImage: null, backgroundOrigin: null, backgroundPosition: null, backgroundRepeat: null, backgroundSize: null, blockSize: null, border: null, borderBlock: null, borderBlockColor: null, borderBlockEnd: null, borderBlockEndColor: null, borderBlockEndStyle: null, borderBlockEndWidth: null, borderBlockStart: null, borderBlockStartColor: null, borderBlockStartStyle: null, borderBlockStartWidth: null, borderBlockStyle: null, borderBlockWidth: null, borderBottom: null, borderBottomColor: null, borderBottomLeftRadius: null, borderBottomRightRadius: null, borderBottomStyle: null, borderBottomWidth: null, borderCollapse: null, borderColor: null, borderEndEndRadius: null, borderEndStartRadius: null, borderImage: null, borderImageOutset: null, borderImageRepeat: null, borderImageSlice: null, borderImageSource: null, borderImageWidth: null, borderInline: null, borderInlineColor: null, borderInlineEnd: null, borderInlineEndColor: null, borderInlineEndStyle: null, borderInlineEndWidth: null, borderInlineStart: null, borderInlineStartColor: null, borderInlineStartStyle: null, borderInlineStartWidth: null, borderInlineStyle: null, borderInlineWidth: null, borderLeft: null, borderLeftColor: null, borderLeftStyle: null, borderLeftWidth: null, borderRadius: null, borderRight: null, borderRightColor: null, borderRightStyle: null, borderRightWidth: null, borderSpacing: null, borderStartEndRadius: null, borderStartStartRadius: null, borderStyle: null, borderTop: null, borderTopColor: null, borderTopLeftRadius: null, borderTopRightRadius: null, borderTopStyle: null, borderTopWidth: null, borderWidth: null, bottom: null, boxDecorationBreak: null, boxShadow: null, boxSizing: null, breakAfter: null, breakBefore: null, breakInside: null, captionSide: null, caretColor: null, clear: null, clip: null, clipPath: null, color: null, colorAdjust: null, columnCount: null, columnFill: null, columnGap: null, columnRule: null, columnRuleColor: null, columnRuleStyle: null, columnRuleWidth: null, columnSpan: null, columnWidth: null, columns: null, contain: null, content: null, counterIncrement: null, counterReset: null, counterSet: null, cursor: null, direction: null, display: null, emptyCells: null, filter: null, flex: null, flexBasis: null, flexDirection: null, flexFlow: null, flexGrow: null, flexShrink: null, flexWrap: null, cssFloat: null, font: null, fontFamily: null, fontFeatureSettings: null, fontKerning: null, fontLanguageOverride: null, fontOpticalSizing: null, fontSize: null, fontSizeAdjust: null, fontStretch: null, fontStyle: null, fontSynthesis: null, fontVariant: null, fontVariantAlternates: null, fontVariantCaps: null, fontVariantEastAsian: null, fontVariantLigatures: null, fontVariantNumeric: null, fontVariantPosition: null, fontVariationSettings: null, fontWeight: null, gap: null, grid: null, gridArea: null, gridAutoColumns: null, gridAutoFlow: null, gridAutoRows: null, gridColumn: null, gridColumnEnd: null, gridColumnStart: null, gridRow: null, gridRowEnd: null, gridRowStart: null, gridTemplate: null, gridTemplateAreas: null, gridTemplateColumns: null, gridTemplateRows: null, hangingPunctuation: null, height: null, hyphens: null, imageOrientation: null, imageRendering: null, inlineSize: null, inset: null, insetBlock: null, insetBlockEnd: null, insetBlockStart: null, insetInline: null, insetInlineEnd: null, insetInlineStart: null, isolation: null, justifyContent: null, justifyItems: null, justifySelf: null, left: null, letterSpacing: null, lineBreak: null, lineHeight: null, listStyle: null, listStyleImage: null, listStylePosition: null, listStyleType: null, margin: null, marginBlock: null, marginBlockEnd: null, marginBlockStart: null, marginBottom: null, marginInline: null, marginInlineEnd: null, marginInlineStart: null, marginLeft: null, marginRight: null, marginTop: null, mask: null, maskBorder: null, maskBorderMode: null, maskBorderOutset: null, maskBorderRepeat: null, maskBorderSlice: null, maskBorderSource: null, maskBorderWidth: null, maskClip: null, maskComposite: null, maskImage: null, maskMode: null, maskOrigin: null, maskPosition: null, maskRepeat: null, maskSize: null, maskType: null, maxBlockSize: null, maxHeight: null, maxInlineSize: null, maxWidth: null, minBlockSize: null, minHeight: null, minInlineSize: null, minWidth: null, mixBlendMode: null, objectFit: null, objectPosition: null, offset: null, offsetAnchor: null, offsetDistance: null, offsetPath: null, offsetRotate: null, opacity: null, order: null, orphans: null, outline: null, outlineColor: null, outlineOffset: null, outlineStyle: null, outlineWidth: null, overflow: null, overflowAnchor: null, overflowBlock: null, overflowInline: null, overflowWrap: null, overflowX: null, overflowY: null, overscrollBehavior: null, overscrollBehaviorBlock: null, overscrollBehaviorInline: null, overscrollBehaviorX: null, overscrollBehaviorY: null, padding: null, paddingBlock: null, paddingBlockEnd: null, paddingBlockStart: null, paddingBottom: null, paddingInline: null, paddingInlineEnd: null, paddingInlineStart: null, paddingLeft: null, paddingRight: null, paddingTop: null, pageBreakAfter: null, pageBreakBefore: null, pageBreakInside: null, paintOrder: null, perspective: null, perspectiveOrigin: null, placeContent: null, placeItems: null, placeSelf: null, pointerEvents: null, position: null, quotes: null, resize: null, right: null, rotate: null, rowGap: null, scale: null, scrollBehavior: null, scrollMargin: null, scrollMarginBlock: null, scrollMarginBlockEnd: null, scrollMarginBlockStart: null, scrollMarginBottom: null, scrollMarginInline: null, scrollMarginInlineEnd: null, scrollMarginInlineStart: null, scrollMarginLeft: null, scrollMarginRight: null, scrollMarginTop: null, scrollPadding: null, scrollPaddingBlock: null, scrollPaddingBlockEnd: null, scrollPaddingBlockStart: null, scrollPaddingBottom: null, scrollPaddingInline: null, scrollPaddingInlineEnd: null, scrollPaddingInlineStart: null, scrollPaddingLeft: null, scrollPaddingRight: null, scrollPaddingTop: null, scrollSnapAlign: null, scrollSnapStop: null, scrollSnapType: null, scrollbar3dLightColor: null, scrollbarArrowColor: null, scrollbarBaseColor: null, scrollbarColor: null, scrollbarDarkshadowColor: null, scrollbarFaceColor: null, scrollbarHighlightColor: null, scrollbarShadowColor: null, scrollbarTrackColor: null, scrollbarWidth: null, shapeImageThreshold: null, shapeMargin: null, shapeOutside: null, tabSize: null, tableLayout: null, textAlign: null, textAlignLast: null, textCombineUpright: null, textDecoration: null, textDecorationColor: null, textDecorationLine: null, textDecorationSkipInk: null, textDecorationStyle: null, textDecorationThickness: null, textEmphasis: null, textEmphasisColor: null, textEmphasisPosition: null, textEmphasisStyle: null, textIndent: null, textJustify: null, textOrientation: null, textOverflow: null, textRendering: null, textShadow: null, textTransform: null, textUnderlineOffset: null, textUnderlinePosition: null, top: null, touchAction: null, transform: null, transformBox: null, transformOrigin: null, transformStyle: null, transition: null, transitionDelay: null, transitionDuration: null, transitionProperty: null, transitionTimingFunction: null, translate: null, unicodeBidi: null, verticalAlign: null, visibility: null, whiteSpace: null, widows: null, width: null, willChange: null, wordBreak: null, wordSpacing: null, writingMode: null, zIndex: null}; } - if ((ConstSet5[oldNode_687866481.kind] != undefined)) { - F.line = 344; - oldNode_687866481.dom.className.baseVal = newNode_687866480.class; + if ((ConstSet5[oldNode_721420913.kind] != undefined)) { + oldNode_721420913.dom.className.baseVal = newNode_721420912.class; } else { - F.line = 346; - oldNode_687866481.dom.className = newNode_687866480.class; + oldNode_721420913.dom.className = newNode_721420912.class; } } - F.line = 347; - oldNode_687866481.style = newNode_687866480.style; - F.line = 348; - oldNode_687866481.class = newNode_687866480.class; - framePtr = F.prev; + oldNode_721420913.style = newNode_721420912.style; + oldNode_721420913.class = newNode_721420912.class; } -function takeOverAttr_721421097(newNode_721421098, oldNode_721421099) { - var F = {procname: "vdom.takeOverAttr", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/vdom.nim", line: 0}; - framePtr = F; - F.line = 278; - F.filename = "vdom.nim"; - oldNode_721421099.attrs = newNode_721421098.attrs; - framePtr = F.prev; +function takeOverAttr_754975529(newNode_754975530, oldNode_754975531) { + oldNode_754975531.attrs = newNode_754975530.attrs; } -function updateAttributes_687866893(newNode_687866894, oldNode_687866895) { - var F = {procname: "karax.updateAttributes", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/karax.nim", line: 0}; - framePtr = F; - if (!((oldNode_687866895.dom == null))) { +function updateAttributes_721421325(newNode_721421326, oldNode_721421327) { + if (!((oldNode_721421327.dom == null))) { Label1: { - F.line = 353; - F.filename = "karax.nim"; - var k_687866900 = null; - F.line = 353; - var __687866901 = null; + var k_721421332 = null; + var __721421333 = null; Label2: { - F.line = 337; - F.filename = "vdom.nim"; - var i_520100349 = 0; - F.line = 46; - F.filename = "iterators_1.nim"; - var colontmp__520100350 = 0; - F.line = 337; - F.filename = "vdom.nim"; - colontmp__520100350 = subInt((oldNode_687866895.attrs).length, 2); - F.line = 68; - F.filename = "iterators_1.nim"; - var res_520100351 = 0; + var i_553654781 = 0; + var colontmp__553654782 = 0; + colontmp__553654782 = subInt((oldNode_721421327.attrs).length, 2); + var res_553654783 = 0; Label3: { - F.line = 69; Label4: while (true) { - if (!(res_520100351 <= colontmp__520100350)) break Label4; - F.line = 337; - F.filename = "vdom.nim"; - i_520100349 = res_520100351; - F.line = 353; - F.filename = "karax.nim"; - k_687866900 = oldNode_687866895.attrs[chckIndx(i_520100349, 0, (oldNode_687866895.attrs).length - 1)]; - F.line = 353; - __687866901 = oldNode_687866895.attrs[chckIndx(addInt(i_520100349, 1), 0, (oldNode_687866895.attrs).length - 1)]; - F.line = 354; - oldNode_687866895.dom.removeAttribute(k_687866900); - F.line = 74; - F.filename = "iterators_1.nim"; - res_520100351 = addInt(res_520100351, 2); + if (!(res_553654783 <= colontmp__553654782)) break Label4; + i_553654781 = res_553654783; + k_721421332 = oldNode_721421327.attrs[chckIndx(i_553654781, 0, (oldNode_721421327.attrs).length - 1)]; + __721421333 = oldNode_721421327.attrs[chckIndx(addInt(i_553654781, 1), 0, (oldNode_721421327.attrs).length - 1)]; + oldNode_721421327.dom.removeAttribute(k_721421332); + res_553654783 = addInt(res_553654783, 2); } }; }; }; Label5: { - F.line = 355; - F.filename = "karax.nim"; - var k_687866902 = null; - F.line = 355; - var v_687866903 = null; + var k_721421334 = null; + var v_721421335 = null; Label6: { - F.line = 337; - F.filename = "vdom.nim"; - var i_520100355 = 0; - F.line = 46; - F.filename = "iterators_1.nim"; - var colontmp__520100356 = 0; - F.line = 337; - F.filename = "vdom.nim"; - colontmp__520100356 = subInt((newNode_687866894.attrs).length, 2); - F.line = 68; - F.filename = "iterators_1.nim"; - var res_520100357 = 0; + var i_553654787 = 0; + var colontmp__553654788 = 0; + colontmp__553654788 = subInt((newNode_721421326.attrs).length, 2); + var res_553654789 = 0; Label7: { - F.line = 69; Label8: while (true) { - if (!(res_520100357 <= colontmp__520100356)) break Label8; - F.line = 337; - F.filename = "vdom.nim"; - i_520100355 = res_520100357; - F.line = 355; - F.filename = "karax.nim"; - k_687866902 = newNode_687866894.attrs[chckIndx(i_520100355, 0, (newNode_687866894.attrs).length - 1)]; - F.line = 355; - v_687866903 = newNode_687866894.attrs[chckIndx(addInt(i_520100355, 1), 0, (newNode_687866894.attrs).length - 1)]; - if (!((v_687866903 == null))) { - F.line = 357; - oldNode_687866895.dom.setAttribute(k_687866902, v_687866903); + if (!(res_553654789 <= colontmp__553654788)) break Label8; + i_553654787 = res_553654789; + k_721421334 = newNode_721421326.attrs[chckIndx(i_553654787, 0, (newNode_721421326.attrs).length - 1)]; + v_721421335 = newNode_721421326.attrs[chckIndx(addInt(i_553654787, 1), 0, (newNode_721421326.attrs).length - 1)]; + if (!((v_721421335 == null))) { + oldNode_721421327.dom.setAttribute(k_721421334, v_721421335); } - F.line = 74; - F.filename = "iterators_1.nim"; - res_520100357 = addInt(res_520100357, 2); + res_553654789 = addInt(res_553654789, 2); } }; }; }; } - F.line = 358; - F.filename = "karax.nim"; - takeOverAttr_721421097(newNode_687866894, oldNode_687866895); - framePtr = F.prev; + takeOverAttr_754975529(newNode_721421326, oldNode_721421327); } -function getAttr_721421084(n_721421085, key_721421086) { - var result_721421087 = null; +function getAttr_754975516(n_754975517, key_754975518) { + var result_754975519 = null; - var F = {procname: "vdom.getAttr", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/vdom.nim", line: 0}; - framePtr = F; BeforeRet: { Label1: { - F.line = 271; - F.filename = "vdom.nim"; - var i_721421096 = 0; - F.line = 46; - F.filename = "iterators_1.nim"; - var colontmp__520100360 = 0; - F.line = 271; - F.filename = "vdom.nim"; - colontmp__520100360 = subInt((n_721421085.attrs).length, 2); - F.line = 68; - F.filename = "iterators_1.nim"; - var res_520100361 = 0; + var i_754975528 = 0; + var colontmp__553654792 = 0; + colontmp__553654792 = subInt((n_754975517.attrs).length, 2); + var res_553654793 = 0; Label2: { - F.line = 69; Label3: while (true) { - if (!(res_520100361 <= colontmp__520100360)) break Label3; - F.line = 271; - F.filename = "vdom.nim"; - i_721421096 = res_520100361; - if ((n_721421085.attrs[chckIndx(i_721421096, 0, (n_721421085.attrs).length - 1)] == key_721421086)) { - F.line = 272; - result_721421087 = n_721421085.attrs[chckIndx(addInt(i_721421096, 1), 0, (n_721421085.attrs).length - 1)]; + if (!(res_553654793 <= colontmp__553654792)) break Label3; + i_754975528 = res_553654793; + if ((n_754975517.attrs[chckIndx(i_754975528, 0, (n_754975517.attrs).length - 1)] == key_754975518)) { + result_754975519 = n_754975517.attrs[chckIndx(addInt(i_754975528, 1), 0, (n_754975517.attrs).length - 1)]; break BeforeRet; } - F.line = 74; - F.filename = "iterators_1.nim"; - res_520100361 = addInt(res_520100361, 2); + res_553654793 = addInt(res_553654793, 2); } }; }; }; - framePtr = F.prev; - return result_721421087; + return result_754975519; } -function removeAllEventHandlers_687865980(d_687865981) { - var F = {procname: "karax.removeAllEventHandlers", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/karax.nim", line: 0}; - framePtr = F; - if (!((d_687865981.karaxEvents == null))) { +function removeAllEventHandlers_721420412(d_721420413) { + if (!((d_721420413.karaxEvents == null))) { Label1: { - F.line = 101; - F.filename = "karax.nim"; - var i_687865997 = 0; - F.line = 126; - F.filename = "iterators_1.nim"; - var colontmp__520100364 = 0; - F.line = 101; - F.filename = "karax.nim"; - colontmp__520100364 = d_687865981.karaxEvents.length; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_520100365 = 0; + var i_721420429 = 0; + var colontmp__553654796 = 0; + colontmp__553654796 = d_721420413.karaxEvents.length; + var i_553654797 = 0; Label2: { - F.line = 129; Label3: while (true) { - if (!(i_520100365 < colontmp__520100364)) break Label3; - F.line = 101; - F.filename = "karax.nim"; - i_687865997 = i_520100365; - F.line = 102; - d_687865981.removeEventListener(d_687865981.karaxEvents[i_687865997]["Field0"], d_687865981.karaxEvents[i_687865997]["Field1"]); - F.line = 131; - F.filename = "iterators_1.nim"; - i_520100365 = addInt(i_520100365, 1); + if (!(i_553654797 < colontmp__553654796)) break Label3; + i_721420429 = i_553654797; + d_721420413.removeEventListener(d_721420413.karaxEvents[i_721420429]["Field0"], d_721420413.karaxEvents[i_721420429]["Field1"]); + i_553654797 = addInt(i_553654797, 1); } }; }; } - framePtr = F.prev; } -function mergeEvents_687866904(newNode_687866905, oldNode_687866906, kxi_687866907) { - var F = {procname: "karax.mergeEvents", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/karax.nim", line: 0}; - framePtr = F; - F.line = 361; - F.filename = "karax.nim"; - var d_687866908 = oldNode_687866906.dom; - if (!((d_687866908 == null))) { - F.line = 363; - removeAllEventHandlers_687865980(d_687866908); +function mergeEvents_721421336(newNode_721421337, oldNode_721421338, kxi_721421339) { + var d_721421340 = oldNode_721421338.dom; + if (!((d_721421340 == null))) { + removeAllEventHandlers_721420412(d_721421340); } - F.line = 371; - oldNode_687866906.events = newNode_687866905.events; - F.line = 372; - applyEvents_687866149(oldNode_687866906); - framePtr = F.prev; + oldNode_721421338.events = newNode_721421337.events; + applyEvents_721420581(oldNode_721421338); } -function addPatch_687866913(kxi_687866914, ka_687866915, parenta_687866916, currenta_687866917, na_687866918, oldNode_687866919) { - var F = {procname: "karax.addPatch", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/karax.nim", line: 0}; - framePtr = F; - F.line = 389; - F.filename = "karax.nim"; - var L_687866920 = kxi_687866914.patchLen; - if (((kxi_687866914.patches).length <= L_687866920)) { - F.line = 392; - kxi_687866914.patches.push({k: ka_687866915, parent: parenta_687866916, current: currenta_687866917, newNode: na_687866918, oldNode: oldNode_687866919});; +function addPatch_721421345(kxi_721421346, ka_721421347, parenta_721421348, currenta_721421349, na_721421350, oldNode_721421351) { + var L_721421352 = kxi_721421346.patchLen; + if (((kxi_721421346.patches).length <= L_721421352)) { + kxi_721421346.patches.push({k: ka_721421347, parent: parenta_721421348, current: currenta_721421349, newNode: na_721421350, oldNode: oldNode_721421351});; } else { - F.line = 395; - kxi_687866914.patches[chckIndx(L_687866920, 0, (kxi_687866914.patches).length - 1)].k = ka_687866915; - F.line = 396; - kxi_687866914.patches[chckIndx(L_687866920, 0, (kxi_687866914.patches).length - 1)].parent = parenta_687866916; - F.line = 397; - kxi_687866914.patches[chckIndx(L_687866920, 0, (kxi_687866914.patches).length - 1)].current = currenta_687866917; - F.line = 398; - kxi_687866914.patches[chckIndx(L_687866920, 0, (kxi_687866914.patches).length - 1)].newNode = na_687866918; - F.line = 399; - kxi_687866914.patches[chckIndx(L_687866920, 0, (kxi_687866914.patches).length - 1)].oldNode = oldNode_687866919; + kxi_721421346.patches[chckIndx(L_721421352, 0, (kxi_721421346.patches).length - 1)].k = ka_721421347; + kxi_721421346.patches[chckIndx(L_721421352, 0, (kxi_721421346.patches).length - 1)].parent = parenta_721421348; + kxi_721421346.patches[chckIndx(L_721421352, 0, (kxi_721421346.patches).length - 1)].current = currenta_721421349; + kxi_721421346.patches[chckIndx(L_721421352, 0, (kxi_721421346.patches).length - 1)].newNode = na_721421350; + kxi_721421346.patches[chckIndx(L_721421352, 0, (kxi_721421346.patches).length - 1)].oldNode = oldNode_721421351; } - F.line = 400; - kxi_687866914.patchLen = addInt(kxi_687866914.patchLen, 1); - framePtr = F.prev; + kxi_721421346.patchLen = addInt(kxi_721421346.patchLen, 1); } -function diff_687867077(newNode_687867078, oldNode_687867079, parent_687867080, current_687867081, kxi_687867082) { +function diff_721421509(newNode_721421510, oldNode_721421511, parent_721421512, current_721421513, kxi_721421514) { var Temporary1; - var F = {procname: "karax.diff", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/karax.nim", line: 0}; - framePtr = F; BeforeRet: { - F.line = 492; - F.filename = "karax.nim"; - var result_687867083 = eq_687866411(newNode_687867078, oldNode_687867079, false); - F.line = 493; - switch (result_687867083) { + var result_721421515 = eq_721420843(newNode_721421510, oldNode_721421511, false); + switch (result_721421515) { case 0: - F.line = 495; - kxi_687867082.components.push({oldNode: oldNode_687867079, newNode: newNode_687867078, parent: parent_687867080, current: current_687867081});; + kxi_721421514.components.push({oldNode: oldNode_721421511, newNode: newNode_721421510, parent: parent_721421512, current: current_721421513});; break; case 3: case 2: - F.line = 500; - newNode_687867078.dom = oldNode_687867079.dom; - if ((result_687867083 == 2)) { - F.line = 502; - updateStyles_687866479(newNode_687867078, oldNode_687867079); - F.line = 503; - updateAttributes_687866893(newNode_687867078, oldNode_687867079); - if ((oldNode_687867079.kind == 0)) { - F.line = 506; - oldNode_687867079.text = newNode_687867078.text; - F.line = 507; - oldNode_687867079.dom.nodeValue = newNode_687867078.text; + newNode_721421510.dom = oldNode_721421511.dom; + if ((result_721421515 == 2)) { + updateStyles_721420911(newNode_721421510, oldNode_721421511); + updateAttributes_721421325(newNode_721421510, oldNode_721421511); + if ((oldNode_721421511.kind == 0)) { + oldNode_721421511.text = newNode_721421510.text; + oldNode_721421511.dom.nodeValue = newNode_721421510.text; } - if ((oldNode_687867079.kind == 194)) { - F.line = 511; - oldNode_687867079.dom.value = newNode_687867078.text; - F.line = 513; - var checked_687867100 = getAttr_721421084(newNode_687867078, "checked"); - F.line = 514; - if ((checked_687867100 == null)) { + if ((oldNode_721421511.kind == 194)) { + oldNode_721421511.dom.value = newNode_721421510.text; + var checked_721421532 = getAttr_754975516(newNode_721421510, "checked"); + if ((checked_721421532 == null)) { Temporary1 = false; } else { Temporary1 = true; } - oldNode_687867079.dom.checked = Temporary1; + oldNode_721421511.dom.checked = Temporary1; } } - if ((!(((newNode_687867078.events).length == 0)) || !(((oldNode_687867079.events).length == 0)))) { - F.line = 517; - mergeEvents_687866904(newNode_687867078, oldNode_687867079, kxi_687867082); + if ((!(((newNode_721421510.events).length == 0)) || !(((oldNode_721421511.events).length == 0)))) { + mergeEvents_721421336(newNode_721421510, oldNode_721421511, kxi_721421514); } - F.line = 519; - var newLength_687867107 = len_721421105(newNode_687867078); - F.line = 520; - var oldLength_687867108 = len_721421105(oldNode_687867079); - if (((newLength_687867107 == 0) && (oldLength_687867108 == 0))) { - F.line = 521; + var newLength_721421539 = len_754975537(newNode_721421510); + var oldLength_721421540 = len_754975537(oldNode_721421511); + if (((newLength_721421539 == 0) && (oldLength_721421540 == 0))) { break BeforeRet; } - F.line = 522; - var minLength_687867109 = nimMin(newLength_687867107, oldLength_687867108); - if (!((oldNode_687867079.kind == newNode_687867078.kind))) { - F.line = 524; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/karax.nim(524, 5) `oldNode.kind == newNode.kind` ")); + var minLength_721421541 = nimMin(newLength_721421539, oldLength_721421540); + if (!((oldNode_721421511.kind == newNode_721421510.kind))) { + failedAssertImpl_268435541([107,97,114,97,120,46,110,105,109,40,53,50,52,44,32,53,41,32,96,111,108,100,78,111,100,101,46,107,105,110,100,32,61,61,32,110,101,119,78,111,100,101,46,107,105,110,100,96,32]); } - F.line = 525; - var commonPrefix_687867119 = 0; + var commonPrefix_721421551 = 0; Label2: { - F.line = 528; Label3: while (true) { - if (!(commonPrefix_687867119 < minLength_687867109)) break Label3; - if ((eq_687866411(HEX5BHEX5D_721421112(newNode_687867078, commonPrefix_687867119), HEX5BHEX5D_721421112(oldNode_687867079, commonPrefix_687867119), true) == 3)) { - F.line = 530; - addPatch_687866913(kxi_687867082, 5, null, null, HEX5BHEX5D_721421112(newNode_687867078, commonPrefix_687867119), HEX5BHEX5D_721421112(oldNode_687867079, commonPrefix_687867119)); - F.line = 531; - commonPrefix_687867119 = addInt(commonPrefix_687867119, 1); + if (!(commonPrefix_721421551 < minLength_721421541)) break Label3; + if ((eq_721420843(HEX5BHEX5D_754975544(newNode_721421510, commonPrefix_721421551), HEX5BHEX5D_754975544(oldNode_721421511, commonPrefix_721421551), true) == 3)) { + addPatch_721421345(kxi_721421514, 5, null, null, HEX5BHEX5D_754975544(newNode_721421510, commonPrefix_721421551), HEX5BHEX5D_754975544(oldNode_721421511, commonPrefix_721421551)); + commonPrefix_721421551 = addInt(commonPrefix_721421551, 1); } else { - F.line = 533; break Label2; } } }; - F.line = 536; - var oldPos_687867129 = subInt(oldLength_687867108, 1); - F.line = 537; - var newPos_687867130 = subInt(newLength_687867107, 1); + var oldPos_721421561 = subInt(oldLength_721421540, 1); + var newPos_721421562 = subInt(newLength_721421539, 1); Label4: { - F.line = 538; Label5: while (true) { - if (!((commonPrefix_687867119 <= oldPos_687867129) && (commonPrefix_687867119 <= newPos_687867130))) break Label5; - if ((eq_687866411(HEX5BHEX5D_721421112(newNode_687867078, newPos_687867130), HEX5BHEX5D_721421112(oldNode_687867079, oldPos_687867129), true) == 3)) { - F.line = 540; - addPatch_687866913(kxi_687867082, 5, null, null, HEX5BHEX5D_721421112(newNode_687867078, newPos_687867130), HEX5BHEX5D_721421112(oldNode_687867079, oldPos_687867129)); - F.line = 541; - oldPos_687867129 = subInt(oldPos_687867129, 1); - F.line = 542; - newPos_687867130 = subInt(newPos_687867130, 1); + if (!((commonPrefix_721421551 <= oldPos_721421561) && (commonPrefix_721421551 <= newPos_721421562))) break Label5; + if ((eq_721420843(HEX5BHEX5D_754975544(newNode_721421510, newPos_721421562), HEX5BHEX5D_754975544(oldNode_721421511, oldPos_721421561), true) == 3)) { + addPatch_721421345(kxi_721421514, 5, null, null, HEX5BHEX5D_754975544(newNode_721421510, newPos_721421562), HEX5BHEX5D_754975544(oldNode_721421511, oldPos_721421561)); + oldPos_721421561 = subInt(oldPos_721421561, 1); + newPos_721421562 = subInt(newPos_721421562, 1); } else { - F.line = 544; break Label4; } } }; - F.line = 546; - var pos_687867145 = addInt(nimMin(oldPos_687867129, newPos_687867130), 1); + var pos_721421577 = addInt(nimMin(oldPos_721421561, newPos_721421562), 1); Label6: { - F.line = 548; - var i_687867150 = 0; - F.line = 81; - F.filename = "iterators_1.nim"; - var colontmp__520100319 = 0; - F.line = 548; - F.filename = "karax.nim"; - colontmp__520100319 = subInt(pos_687867145, 1); - F.line = 96; - F.filename = "iterators_1.nim"; - var res_520100320 = commonPrefix_687867119; + var i_721421582 = 0; + var colontmp__553654751 = 0; + colontmp__553654751 = subInt(pos_721421577, 1); + var res_553654752 = commonPrefix_721421551; Label7: { - F.line = 97; Label8: while (true) { - if (!(res_520100320 <= colontmp__520100319)) break Label8; - F.line = 548; - F.filename = "karax.nim"; - i_687867150 = res_520100320; - F.line = 549; - diff_687867077(HEX5BHEX5D_721421112(newNode_687867078, i_687867150), HEX5BHEX5D_721421112(oldNode_687867079, i_687867150), current_687867081, HEX5BHEX5D_721421112(oldNode_687867079, i_687867150).dom, kxi_687867082); - F.line = 102; - F.filename = "iterators_1.nim"; - res_520100320 = addInt(res_520100320, 1); + if (!(res_553654752 <= colontmp__553654751)) break Label8; + i_721421582 = res_553654752; + diff_721421509(HEX5BHEX5D_754975544(newNode_721421510, i_721421582), HEX5BHEX5D_754975544(oldNode_721421511, i_721421582), current_721421513, HEX5BHEX5D_754975544(oldNode_721421511, i_721421582).dom, kxi_721421514); + res_553654752 = addInt(res_553654752, 1); } }; }; - if ((addInt(oldPos_687867129, 1) == oldLength_687867108)) { + if ((addInt(oldPos_721421561, 1) == oldLength_721421540)) { Label9: { - F.line = 552; - F.filename = "karax.nim"; - var i_687867155 = 0; - F.line = 96; - F.filename = "iterators_1.nim"; - var res_520100323 = pos_687867145; + var i_721421587 = 0; + var res_553654755 = pos_721421577; Label10: { - F.line = 97; Label11: while (true) { - if (!(res_520100323 <= newPos_687867130)) break Label11; - F.line = 552; - F.filename = "karax.nim"; - i_687867155 = res_520100323; - F.line = 553; - addPatch_687866913(kxi_687867082, 2, current_687867081, null, HEX5BHEX5D_721421112(newNode_687867078, i_687867155), null); - F.line = 102; - F.filename = "iterators_1.nim"; - res_520100323 = addInt(res_520100323, 1); + if (!(res_553654755 <= newPos_721421562)) break Label11; + i_721421587 = res_553654755; + addPatch_721421345(kxi_721421514, 2, current_721421513, null, HEX5BHEX5D_754975544(newNode_721421510, i_721421587), null); + res_553654755 = addInt(res_553654755, 1); } }; }; } else { - F.line = 555; - F.filename = "karax.nim"; - var before_687867156 = current_687867081.childNodes[chckIndx(addInt(oldPos_687867129, 1), 0, (current_687867081.childNodes).length - 1)]; + var before_721421588 = current_721421513.childNodes[chckIndx(addInt(oldPos_721421561, 1), 0, (current_721421513.childNodes).length - 1)]; Label12: { - F.line = 556; - var i_687867161 = 0; - F.line = 96; - F.filename = "iterators_1.nim"; - var res_520100326 = pos_687867145; + var i_721421593 = 0; + var res_553654758 = pos_721421577; Label13: { - F.line = 97; Label14: while (true) { - if (!(res_520100326 <= newPos_687867130)) break Label14; - F.line = 556; - F.filename = "karax.nim"; - i_687867161 = res_520100326; - F.line = 557; - addPatch_687866913(kxi_687867082, 3, current_687867081, before_687867156, HEX5BHEX5D_721421112(newNode_687867078, i_687867161), null); - F.line = 102; - F.filename = "iterators_1.nim"; - res_520100326 = addInt(res_520100326, 1); + if (!(res_553654758 <= newPos_721421562)) break Label14; + i_721421593 = res_553654758; + addPatch_721421345(kxi_721421514, 3, current_721421513, before_721421588, HEX5BHEX5D_754975544(newNode_721421510, i_721421593), null); + res_553654758 = addInt(res_553654758, 1); } }; }; } Label15: { - F.line = 559; - F.filename = "karax.nim"; - var i_687867166 = 0; - F.line = 96; - F.filename = "iterators_1.nim"; - var res_520100329 = pos_687867145; + var i_721421598 = 0; + var res_553654761 = pos_721421577; Label16: { - F.line = 97; Label17: while (true) { - if (!(res_520100329 <= oldPos_687867129)) break Label17; - F.line = 559; - F.filename = "karax.nim"; - i_687867166 = res_520100329; - F.line = 560; - addPatch_687866913(kxi__, 4, null, null, null, HEX5BHEX5D_721421112(oldNode_687867079, i_687867166)); - F.line = 562; - addPatch_687866913(kxi_687867082, 1, current_687867081, current_687867081.childNodes[chckIndx(i_687867166, 0, (current_687867081.childNodes).length - 1)], null, null); - F.line = 102; - F.filename = "iterators_1.nim"; - res_520100329 = addInt(res_520100329, 1); + if (!(res_553654761 <= oldPos_721421561)) break Label17; + i_721421598 = res_553654761; + addPatch_721421345(kxi__, 4, null, null, null, HEX5BHEX5D_754975544(oldNode_721421511, i_721421598)); + addPatch_721421345(kxi_721421514, 1, current_721421513, current_721421513.childNodes[chckIndx(i_721421598, 0, (current_721421513.childNodes).length - 1)], null, null); + res_553654761 = addInt(res_553654761, 1); } }; }; break; case 1: - F.line = 564; - F.filename = "karax.nim"; - addPatch_687866913(kxi__, 4, null, null, null, oldNode_687867079); - F.line = 565; - addPatch_687866913(kxi_687867082, 0, parent_687867080, current_687867081, newNode_687867078, null); + addPatch_721421345(kxi__, 4, null, null, null, oldNode_721421511); + addPatch_721421345(kxi_721421514, 0, parent_721421512, current_721421513, newNode_721421510, null); break; case 4: if (true) { - F.line = 566; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/karax.nim(566, 26) `false` eq returned usenewNode")); + failedAssertImpl_268435541([107,97,114,97,120,46,110,105,109,40,53,54,54,44,32,50,54,41,32,96,102,97,108,115,101,96,32,101,113,32,114,101,116,117,114,110,101,100,32,117,115,101,110,101,119,78,111,100,101]); } break; } }; - framePtr = F.prev; } -function applyComponents_687867191(kxi_687867192) { - var F = {procname: "karax.applyComponents", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/karax.nim", line: 0}; - framePtr = F; - F.line = 574; - F.filename = "karax.nim"; - var i_687867193 = 0; +function applyComponents_721421623(kxi_721421624) { + var i_721421625 = 0; Label1: { - F.line = 577; Label2: while (true) { - if (!(i_687867193 < (kxi_687867192.components).length)) break Label2; - F.line = 578; - var x_687867198 = kxi_687867192.components[chckIndx(i_687867193, 0, (kxi_687867192.components).length - 1)].oldNode; - F.line = 579; - var newNode_687867199 = kxi_687867192.components[chckIndx(i_687867193, 0, (kxi_687867192.components).length - 1)].newNode; - if ((!((x_687867198.changedImpl == null)) && x_687867198.changedImpl(x_687867198, newNode_687867199))) { - F.line = 585; - var current_687867204 = kxi_687867192.components[chckIndx(i_687867193, 0, (kxi_687867192.components).length - 1)].current; - F.line = 586; - var parent_687867205 = kxi_687867192.components[chckIndx(i_687867193, 0, (kxi_687867192.components).length - 1)].parent; - F.line = 587; - x_687867198.updatedImpl(x_687867198, newNode_687867199); - F.line = 588; - var oldExpanded_687867206 = x_687867198.expanded; - F.line = 589; - x_687867198.expanded = x_687867198.renderImpl(x_687867198); - F.line = 592; - x_687867198.renderedVersion = x_687867198.version; - if ((oldExpanded_687867206 == null)) { - F.line = 594; - addPatch_687866913(kxi__, 4, null, null, null, x_687867198); - F.line = 595; - addPatch_687866913(kxi_687867192, 0, parent_687867205, current_687867204, x_687867198.expanded, null); + if (!(i_721421625 < (kxi_721421624.components).length)) break Label2; + var x_721421630 = kxi_721421624.components[chckIndx(i_721421625, 0, (kxi_721421624.components).length - 1)].oldNode; + var newNode_721421631 = kxi_721421624.components[chckIndx(i_721421625, 0, (kxi_721421624.components).length - 1)].newNode; + if ((!((x_721421630.changedImpl == null)) && x_721421630.changedImpl(x_721421630, newNode_721421631))) { + var current_721421636 = kxi_721421624.components[chckIndx(i_721421625, 0, (kxi_721421624.components).length - 1)].current; + var parent_721421637 = kxi_721421624.components[chckIndx(i_721421625, 0, (kxi_721421624.components).length - 1)].parent; + x_721421630.updatedImpl(x_721421630, newNode_721421631); + var oldExpanded_721421638 = x_721421630.expanded; + x_721421630.expanded = x_721421630.renderImpl(x_721421630); + x_721421630.renderedVersion = x_721421630.version; + if ((oldExpanded_721421638 == null)) { + addPatch_721421345(kxi__, 4, null, null, null, x_721421630); + addPatch_721421345(kxi_721421624, 0, parent_721421637, current_721421636, x_721421630.expanded, null); } else { - F.line = 599; - diff_687867077(x_687867198.expanded, oldExpanded_687867206, parent_687867205, current_687867204, kxi_687867192); + diff_721421509(x_721421630.expanded, oldExpanded_721421638, parent_721421637, current_721421636, kxi_721421624); } } - F.line = 614; - i_687867193 = addInt(i_687867193, 1); + i_721421625 = addInt(i_721421625, 1); } }; - F.line = 615; - if (kxi_687867192.components.length < 0) { for (var i = kxi_687867192.components.length ; i < 0 ; ++i) kxi_687867192.components.push(({oldNode: null, newNode: null, parent: null, current: null})); } - else { kxi_687867192.components.length = 0; }; - framePtr = F.prev; + if (kxi_721421624.components.length < 0) { for (var i = kxi_721421624.components.length ; i < 0 ; ++i) kxi_721421624.components.push(({oldNode: null, newNode: null, parent: null, current: null})); } + else { kxi_721421624.components.length = 0; }; } -function reapplyEvents_687866160(n_687866161) { - var F = {procname: "karax.reapplyEvents", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/karax.nim", line: 0}; - framePtr = F; - F.line = 155; - F.filename = "karax.nim"; - removeAllEventHandlers_687865980(n_687866161.dom); - F.line = 156; - applyEvents_687866149(n_687866161); - framePtr = F.prev; +function reapplyEvents_721420592(n_721420593) { + removeAllEventHandlers_721420412(n_721420593.dom); + applyEvents_721420581(n_721420593); } -function moveDom_687867007(dest_687867008, src_687867009) { - var F = {procname: "karax.moveDom", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/karax.nim", line: 0}; - framePtr = F; - F.line = 414; - F.filename = "karax.nim"; - dest_687867008.dom = src_687867009.dom; - F.line = 415; - src_687867009.dom = null; - F.line = 416; - reapplyEvents_687866160(dest_687867008); - if (!((dest_687867008.id == null))) { - F.line = 418; - kxi__.byId[dest_687867008.id] = dest_687867008; +function moveDom_721421439(dest_721421440, src_721421441) { + dest_721421440.dom = src_721421441.dom; + src_721421441.dom = null; + reapplyEvents_721420592(dest_721421440); + if (!((dest_721421440.id == null))) { + kxi__.byId[dest_721421440.id] = dest_721421440; } - if (!((len_721421105(dest_687867008) == len_721421105(src_687867009)))) { - F.line = 419; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/karax.nim(419, 3) `dest.len == src.len` ")); + if (!((len_754975537(dest_721421440) == len_754975537(src_721421441)))) { + failedAssertImpl_268435541([107,97,114,97,120,46,110,105,109,40,52,49,57,44,32,51,41,32,96,100,101,115,116,46,108,101,110,32,61,61,32,115,114,99,46,108,101,110,96,32]); } Label1: { - F.line = 420; - var i_687867025 = 0; - F.line = 126; - F.filename = "iterators_1.nim"; - var colontmp__520100375 = 0; - F.line = 420; - F.filename = "karax.nim"; - colontmp__520100375 = len_721421105(dest_687867008); - F.line = 128; - F.filename = "iterators_1.nim"; - var i_520100376 = 0; + var i_721421457 = 0; + var colontmp__553654807 = 0; + colontmp__553654807 = len_754975537(dest_721421440); + var i_553654808 = 0; Label2: { - F.line = 129; Label3: while (true) { - if (!(i_520100376 < colontmp__520100375)) break Label3; - F.line = 420; - F.filename = "karax.nim"; - i_687867025 = i_520100376; - F.line = 421; - moveDom_687867007(HEX5BHEX5D_721421112(dest_687867008, i_687867025), HEX5BHEX5D_721421112(src_687867009, i_687867025)); - F.line = 131; - F.filename = "iterators_1.nim"; - i_520100376 = addInt(i_520100376, 1); + if (!(i_553654808 < colontmp__553654807)) break Label3; + i_721421457 = i_553654808; + moveDom_721421439(HEX5BHEX5D_754975544(dest_721421440, i_721421457), HEX5BHEX5D_754975544(src_721421441, i_721421457)); + i_553654808 = addInt(i_553654808, 1); } }; }; - framePtr = F.prev; } -function HEX5BHEX5DHEX3D_721421116(x_721421117, idx_721421118, y_721421119) { - var F = {procname: "vdom.[]=", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/vdom.nim", line: 0}; - framePtr = F; - F.line = 300; - F.filename = "vdom.nim"; - x_721421117.kids[chckIndx(idx_721421118, 0, (x_721421117.kids).length - 1)] = y_721421119; - framePtr = F.prev; +function HEX5BHEX5DHEX3D_754975548(x_754975549, idx_754975550, y_754975551) { + x_754975549.kids[chckIndx(idx_754975550, 0, (x_754975549.kids).length - 1)] = y_754975551; } -function applyPatch_687867026(kxi_687867027) { - var F = {procname: "karax.applyPatch", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/karax.nim", line: 0}; - framePtr = F; +function applyPatch_721421458(kxi_721421459) { Label1: { - F.line = 424; - F.filename = "karax.nim"; - var i_687867032 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_520100369 = 0; + var i_721421464 = 0; + var i_553654801 = 0; Label2: { - F.line = 129; Label3: while (true) { - if (!(i_520100369 < kxi_687867027.patchLen)) break Label3; - F.line = 424; - F.filename = "karax.nim"; - i_687867032 = i_520100369; - F.line = 425; - var p_687867033 = nimCopy(null, kxi_687867027.patches[chckIndx(i_687867032, 0, (kxi_687867027.patches).length - 1)], NTI687865864); - F.line = 426; - switch (p_687867033.k) { + if (!(i_553654801 < kxi_721421459.patchLen)) break Label3; + i_721421464 = i_553654801; + var p_721421465 = nimCopy(null, kxi_721421459.patches[chckIndx(i_721421464, 0, (kxi_721421459.patches).length - 1)], NTI721420296); + switch (p_721421465.k) { case 0: - F.line = 428; - var nn_687867034 = toDom_687866178(p_687867033.newNode, true, kxi_687867027); - if ((p_687867033.parent == null)) { - F.line = 430; - replaceById_687866398(kxi_687867027.rootId, nn_687867034); + var nn_721421466 = toDom_721420610(p_721421465.newNode, true, kxi_721421459); + if ((p_721421465.parent == null)) { + replaceById_721420830(kxi_721421459.rootId, nn_721421466); } else { - if ((p_687867033.current.parentNode == p_687867033.parent)) { - F.line = 433; - p_687867033.parent.replaceChild(nn_687867034, p_687867033.current); + if ((p_721421465.current.parentNode == p_721421465.parent)) { + p_721421465.parent.replaceChild(nn_721421466, p_721421465.current); } else { - F.line = 435; - p_687867033.parent.appendChild(nn_687867034); + p_721421465.parent.appendChild(nn_721421466); } } break; case 5: - F.line = 437; - moveDom_687867007(p_687867033.newNode, p_687867033.oldNode); + moveDom_721421439(p_721421465.newNode, p_721421465.oldNode); break; case 1: - F.line = 439; - p_687867033.parent.removeChild(p_687867033.current); + p_721421465.parent.removeChild(p_721421465.current); break; case 2: - F.line = 441; - var nn_687867043 = toDom_687866178(p_687867033.newNode, true, kxi_687867027); - F.line = 442; - p_687867033.parent.appendChild(nn_687867043); + var nn_721421475 = toDom_721420610(p_721421465.newNode, true, kxi_721421459); + p_721421465.parent.appendChild(nn_721421475); break; case 3: - F.line = 444; - var nn_687867044 = toDom_687866178(p_687867033.newNode, true, kxi_687867027); - F.line = 445; - p_687867033.parent.insertBefore(nn_687867044, p_687867033.current); + var nn_721421476 = toDom_721420610(p_721421465.newNode, true, kxi_721421459); + p_721421465.parent.insertBefore(nn_721421476, p_721421465.current); break; case 4: - F.line = 447; - var n_687867045 = p_687867033.oldNode; - if (!((n_687867045.id == null))) { - F.line = 448; - delete kxi_687867027.byId[n_687867045.id]; + var n_721421477 = p_721421465.oldNode; + if (!((n_721421477.id == null))) { + delete kxi_721421459.byId[n_721421477.id]; } - if ((n_687867045.kind == 5)) { - F.line = 450; - var x_687867055 = n_687867045; - if (!((x_687867055.onDetachImpl == null))) { - F.line = 451; - x_687867055.onDetachImpl(x_687867055); + if ((n_721421477.kind == 5)) { + var x_721421487 = n_721421477; + if (!((x_721421487.onDetachImpl == null))) { + x_721421487.onDetachImpl(x_721421487); } } - if (!(kxi_687867027.surpressRedraws)) { - F.line = 453; - n_687867045.dom = null; + if (!(kxi_721421459.surpressRedraws)) { + n_721421477.dom = null; } break; } - F.line = 131; - F.filename = "iterators_1.nim"; - i_520100369 = addInt(i_520100369, 1); + i_553654801 = addInt(i_553654801, 1); } }; }; - F.line = 454; - F.filename = "karax.nim"; - kxi_687867027.patchLen = 0; + kxi_721421459.patchLen = 0; Label4: { - F.line = 455; - var i_687867064 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_520100372 = 0; + var i_721421496 = 0; + var i_553654804 = 0; Label5: { - F.line = 129; Label6: while (true) { - if (!(i_520100372 < kxi_687867027.patchLenV)) break Label6; - F.line = 455; - F.filename = "karax.nim"; - i_687867064 = i_520100372; - F.line = 456; - var p_687867065 = nimCopy(null, kxi_687867027.patchesV[chckIndx(i_687867064, 0, (kxi_687867027.patchesV).length - 1)], NTI687865865); - F.line = 457; - HEX5BHEX5DHEX3D_721421116(p_687867065.parent, p_687867065.pos, p_687867065.newChild); - if (!(!((p_687867065.newChild.dom == null)))) { - F.line = 458; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/karax.nim(458, 5) `p.newChild.dom != nil` ")); + if (!(i_553654804 < kxi_721421459.patchLenV)) break Label6; + i_721421496 = i_553654804; + var p_721421497 = nimCopy(null, kxi_721421459.patchesV[chckIndx(i_721421496, 0, (kxi_721421459.patchesV).length - 1)], NTI721420297); + HEX5BHEX5DHEX3D_754975548(p_721421497.parent, p_721421497.pos, p_721421497.newChild); + if (!(!((p_721421497.newChild.dom == null)))) { + failedAssertImpl_268435541([107,97,114,97,120,46,110,105,109,40,52,53,56,44,32,53,41,32,96,112,46,110,101,119,67,104,105,108,100,46,100,111,109,32,33,61,32,110,105,108,96,32]); } - F.line = 131; - F.filename = "iterators_1.nim"; - i_520100372 = addInt(i_520100372, 1); + i_553654804 = addInt(i_553654804, 1); } }; }; - F.line = 459; - F.filename = "karax.nim"; - kxi_687867027.patchLenV = 0; - framePtr = F.prev; + kxi_721421459.patchLenV = 0; } -function dodraw_687867280(kxi_687867281) { +function dodraw_721421712(kxi_721421713) { -function HEX3Aanonymous_687867285() { - var F = {procname: "dodraw.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/karax.nim", line: 0}; - framePtr = F; - F.line = 681; - F.filename = "karax.nim"; - dodraw_687867280(kxi_687867281); - framePtr = F.prev; +function HEX3Aanonymous_721421717() { + dodraw_721421712(kxi_721421713); } - var F = {procname: "karax.dodraw", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/karax.nim", line: 0}; - framePtr = F; BeforeRet: { - if ((kxi_687867281.renderer == null)) { - F.line = 676; - F.filename = "karax.nim"; + if ((kxi_721421713.renderer == null)) { break BeforeRet; } - F.line = 677; - kxi_687867281.renderId = 0; - if (kxi_687867281.rendering) { - F.line = 681; - kxi_687867281.renderId = window.requestAnimationFrame(HEX3Aanonymous_687867285); - F.line = 682; + kxi_721421713.renderId = 0; + if (kxi_721421713.rendering) { + kxi_721421713.renderId = window.requestAnimationFrame(HEX3Aanonymous_721421717); break BeforeRet; } - F.line = 684; - kxi_687867281.rendering = true; - F.line = 686; - var rdata_687867286 = {hashPart: null, queryString: null}; + kxi_721421713.rendering = true; + var rdata_721421718 = {hashPart: null, queryString: null}; if ((window.location.hash.indexOf("?")>=0)) { - F.line = 688; - var hashSplit_687867287 = window.location.hash.split("?"); - F.line = 689; - rdata_687867286.hashPart = hashSplit_687867287[chckIndx(0, 0, (hashSplit_687867287).length - 1)]; - F.line = 690; - rdata_687867286.queryString = (HEX5BHEX5D_687867297(hashSplit_687867287, HEX2EHEX2E_1006633065(1, 1)).join("?")); + var hashSplit_721421719 = window.location.hash.split("?"); + rdata_721421718.hashPart = hashSplit_721421719[chckIndx(0, 0, (hashSplit_721421719).length - 1)]; + rdata_721421718.queryString = (HEX5BHEX5D_721421729(hashSplit_721421719, HEX2EHEX2E_1090519145(1, 1)).join("?")); } else { - F.line = 692; - rdata_687867286.hashPart = window.location.hash; - F.line = 693; - rdata_687867286.queryString = window.location.search; - } - - F.line = 695; - var newtree_687867321 = kxi_687867281.renderer(rdata_687867286); - F.line = 696; - kxi_687867281.runCount = addInt(kxi_687867281.runCount, 1); - F.line = 697; - newtree_687867321.id = kxi_687867281.rootId; - F.line = 698; - kxi_687867281.toFocus = null; - if ((kxi_687867281.currentTree == null)) { - F.line = 700; - var asdom_687867331 = toDom_687866178(newtree_687867321, true, kxi_687867281); - F.line = 701; - replaceById_687866398(kxi_687867281.rootId, asdom_687867331); + rdata_721421718.hashPart = window.location.hash; + rdata_721421718.queryString = window.location.search; + } + + var newtree_721421753 = kxi_721421713.renderer(rdata_721421718); + kxi_721421713.runCount = addInt(kxi_721421713.runCount, 1); + newtree_721421753.id = kxi_721421713.rootId; + kxi_721421713.toFocus = null; + if ((kxi_721421713.currentTree == null)) { + var asdom_721421763 = toDom_721420610(newtree_721421753, true, kxi_721421713); + replaceById_721420830(kxi_721421713.rootId, asdom_721421763); } else { - F.line = 705; - var olddom_687867332 = document.getElementById(kxi_687867281.rootId); - F.line = 706; - diff_687867077(newtree_687867321, kxi_687867281.currentTree, null, olddom_687867332, kxi_687867281); + var olddom_721421764 = document.getElementById(kxi_721421713.rootId); + diff_721421509(newtree_721421753, kxi_721421713.currentTree, null, olddom_721421764, kxi_721421713); } - F.line = 710; - applyComponents_687867191(kxi_687867281); - F.line = 715; - applyPatch_687867026(kxi_687867281); - F.line = 716; - kxi_687867281.currentTree = newtree_687867321; - if (!((kxi_687867281.postRenderCallback == null))) { - F.line = 721; - kxi_687867281.postRenderCallback(rdata_687867286); + applyComponents_721421623(kxi_721421713); + applyPatch_721421458(kxi_721421713); + kxi_721421713.currentTree = newtree_721421753; + if (!((kxi_721421713.postRenderCallback == null))) { + kxi_721421713.postRenderCallback(rdata_721421718); } - if (!((kxi_687867281.toFocus == null))) { - F.line = 725; - kxi_687867281.toFocus.focus(); + if (!((kxi_721421713.toFocus == null))) { + kxi_721421713.toFocus.focus(); } - F.line = 726; - kxi_687867281.rendering = false; + kxi_721421713.rendering = false; }; - framePtr = F.prev; } -function redraw_687867377(kxi_687867378) { +function redraw_721421809(kxi_721421810) { -function HEX3Aanonymous_687867379() { - var F = {procname: "redraw.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/karax.nim", line: 0}; - framePtr = F; - F.line = 740; - F.filename = "karax.nim"; - dodraw_687867280(kxi_687867378); - framePtr = F.prev; +function HEX3Aanonymous_721421811() { + dodraw_721421712(kxi_721421810); } - var F = {procname: "karax.redraw", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/karax.nim", line: 0}; - framePtr = F; - if ((kxi_687867378.renderId == 0)) { - F.line = 740; - F.filename = "karax.nim"; - kxi_687867378.renderId = window.requestAnimationFrame(HEX3Aanonymous_687867379); + if ((kxi_721421810.renderId == 0)) { + kxi_721421810.renderId = window.requestAnimationFrame(HEX3Aanonymous_721421811); } - framePtr = F.prev; } -function resize_520093923() { - var F = {procname: "main.resize", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 147; - F.filename = "main.nim"; - screenWidth_520093858[0] = window.innerWidth; - F.line = 148; - redraw_687867377(kxi__); - framePtr = F.prev; +function resize_553648355() { + screenWidth_553648290[0] = window.innerWidth; + redraw_721421809(kxi__); } -function len_520094543(t_520094546) { - var result_520094547 = 0; +function len_553648975(t_553648978) { + var result_553648979 = 0; - var F = {procname: "len.len", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/collections/tables.nim", line: 0}; - framePtr = F; - F.line = 486; - F.filename = "tables.nim"; - result_520094547 = t_520094546.counter; - framePtr = F.prev; + result_553648979 = t_553648978.counter; - return result_520094547; + return result_553648979; } -function HEX24_520094498(t_520094501) { - var result_520094502 = [[]]; +function HEX24_553648930(t_553648933) { + var result_553648934 = [[]]; - var F = {procname: "$.$", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/collections/tables.nim", line: 0}; - framePtr = F; - if ((len_520094543(t_520094501) == 0)) { - F.line = 195; - F.filename = "tableimpl.nim"; - result_520094502[0] = nimCopy(null, [123,58,125], NTI33554449); + if ((len_553648975(t_553648933) == 0)) { + result_553648934[0] = nimCopy(null, [123,58,125], NTI33554449); } else { - F.line = 197; - result_520094502[0] = nimCopy(null, [123], NTI33554449); + result_553648934[0] = nimCopy(null, [123], NTI33554449); Label1: { - F.line = 198; - var key_520094801 = []; - F.line = 198; - var val_520094802 = 0; - F.line = 695; - F.filename = "tables.nim"; - var L_520100394 = len_520094543(t_520094501); + var key_553649233 = []; + var val_553649234 = 0; + var L_553654826 = len_553648975(t_553648933); Label2: { - F.line = 696; - var h_520100396 = 0; - F.line = 81; - F.filename = "iterators_1.nim"; - var colontmp__520100397 = 0; - F.line = 696; - F.filename = "tables.nim"; - colontmp__520100397 = (t_520094501.data).length - 1; - F.line = 96; - F.filename = "iterators_1.nim"; - var res_520100398 = 0; + var h_553654828 = 0; + var colontmp__553654829 = 0; + colontmp__553654829 = (t_553648933.data).length - 1; + var res_553654830 = 0; Label3: { - F.line = 97; Label4: while (true) { - if (!(res_520100398 <= colontmp__520100397)) break Label4; - F.line = 696; - F.filename = "tables.nim"; - h_520100396 = res_520100398; - if (isFilled_1107296287(t_520094501.data[chckIndx(h_520100396, 0, (t_520094501.data).length - 1)].Field0)) { - F.line = 198; - F.filename = "tableimpl.nim"; - key_520094801 = t_520094501.data[chckIndx(h_520100396, 0, (t_520094501.data).length - 1)].Field1; - F.line = 198; - val_520094802 = t_520094501.data[chckIndx(h_520100396, 0, (t_520094501.data).length - 1)].Field2; - if ((1 < (result_520094502[0]).length)) { - F.line = 199; - result_520094502[0].push.apply(result_520094502[0], [44,32]);; + if (!(res_553654830 <= colontmp__553654829)) break Label4; + h_553654828 = res_553654830; + if (isFilled_1291845663(t_553648933.data[chckIndx(h_553654828, 0, (t_553648933.data).length - 1)].Field0)) { + key_553649233 = t_553648933.data[chckIndx(h_553654828, 0, (t_553648933.data).length - 1)].Field1; + val_553649234 = t_553648933.data[chckIndx(h_553654828, 0, (t_553648933.data).length - 1)].Field2; + if ((1 < (result_553648934[0]).length)) { + result_553648934[0].push.apply(result_553648934[0], [44,32]);; } - F.line = 200; - addQuoted_1493176842(result_520094502, 0, key_520094801); - F.line = 201; - result_520094502[0].push.apply(result_520094502[0], [58,32]);; - F.line = 202; - addQuoted_838862213(result_520094502, 0, val_520094802); - if (!((len_520094543(t_520094501) == L_520100394))) { - F.line = 699; - F.filename = "tables.nim"; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/collections/tables.nim(699, 13) `len(t) == L` the length of the table changed while iterating over it")); + addQuoted_1845498401(result_553648934, 0, key_553649233); + result_553648934[0].push.apply(result_553648934[0], [58,32]);; + addQuoted_889193861(result_553648934, 0, val_553649234); + if (!((len_553648975(t_553648933) == L_553654826))) { + failedAssertImpl_268435541(makeNimstrLit("tables.nim(699, 13) `len(t) == L` the length of the table changed while iterating over it")); } } - F.line = 102; - F.filename = "iterators_1.nim"; - res_520100398 = addInt(res_520100398, 1); + res_553654830 = addInt(res_553654830, 1); } }; }; }; - F.line = 203; - F.filename = "tableimpl.nim"; - result_520094502[0].push.apply(result_520094502[0], [125]);; + result_553648934[0].push.apply(result_553648934[0], [125]);; } - framePtr = F.prev; - return result_520094502[0]; + return result_553648934[0]; } -function len_520094855(t_520094858) { - var result_520094859 = 0; +function len_553649287(t_553649290) { + var result_553649291 = 0; - var F = {procname: "len.len", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/collections/tables.nim", line: 0}; - framePtr = F; - F.line = 486; - F.filename = "tables.nim"; - result_520094859 = t_520094858.counter; - framePtr = F.prev; + result_553649291 = t_553649290.counter; - return result_520094859; + return result_553649291; } -function rawGet_520095110(t_520095113, key_520095114, hc_520095115, hc_520095115_Idx) { - var result_520095116 = 0; +function rawGet_553649542(t_553649545, key_553649546, hc_553649547, hc_553649547_Idx) { + var result_553649548 = 0; - var F = {procname: "rawGet.rawGet", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/collections/hashcommon.nim", line: 0}; - framePtr = F; BeforeRet: { - F.line = 59; - F.filename = "hashcommon.nim"; - hc_520095115[hc_520095115_Idx] = hash_1124073936(key_520095114); - if ((hc_520095115[hc_520095115_Idx] == 0)) { - F.line = 64; - hc_520095115[hc_520095115_Idx] = 314159265; + hc_553649547[hc_553649547_Idx] = hash_1308623312(key_553649546); + if ((hc_553649547[hc_553649547_Idx] == 0)) { + hc_553649547[hc_553649547_Idx] = 314159265; } - if (((t_520095113.data).length == 0)) { - F.line = 43; - result_520095116 = (-1); + if (((t_553649545.data).length == 0)) { + result_553649548 = (-1); break BeforeRet; } - F.line = 44; - var h_520095166 = (hc_520095115[hc_520095115_Idx] & (t_520095113.data).length - 1); + var h_553649598 = (hc_553649547[hc_553649547_Idx] & (t_553649545.data).length - 1); Label1: { - F.line = 45; Label2: while (true) { - if (!isFilled_1107296287(t_520095113.data[chckIndx(h_520095166, 0, (t_520095113.data).length - 1)].Field0)) break Label2; - if (((t_520095113.data[chckIndx(h_520095166, 0, (t_520095113.data).length - 1)].Field0 == hc_520095115[hc_520095115_Idx]) && eqStrings(t_520095113.data[chckIndx(h_520095166, 0, (t_520095113.data).length - 1)].Field1, key_520095114))) { - F.line = 51; - result_520095116 = h_520095166; + if (!isFilled_1291845663(t_553649545.data[chckIndx(h_553649598, 0, (t_553649545.data).length - 1)].Field0)) break Label2; + if (((t_553649545.data[chckIndx(h_553649598, 0, (t_553649545.data).length - 1)].Field0 == hc_553649547[hc_553649547_Idx]) && eqStrings(t_553649545.data[chckIndx(h_553649598, 0, (t_553649545.data).length - 1)].Field1, key_553649546))) { + result_553649548 = h_553649598; break BeforeRet; } - F.line = 52; - h_520095166 = nextTry_1107296290(h_520095166, (t_520095113.data).length - 1); + h_553649598 = nextTry_1291845666(h_553649598, (t_553649545.data).length - 1); } }; - F.line = 53; - result_520095116 = subInt((-1), h_520095166); + result_553649548 = subInt((-1), h_553649598); }; - framePtr = F.prev; - return result_520095116; + return result_553649548; } -function mustRehash_520095416(t_520095418) { - var result_520095419 = false; +function mustRehash_553649848(t_553649850) { + var result_553649851 = false; - var F = {procname: "mustRehash.mustRehash", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/collections/hashcommon.nim", line: 0}; - framePtr = F; - if (!((t_520095418.counter < (t_520095418.data).length))) { - F.line = 34; - F.filename = "hashcommon.nim"; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/collections/hashcommon.nim(34, 9) `\x0At.counter < t.dataLen` ")); + if (!((t_553649850.counter < (t_553649850.data).length))) { + failedAssertImpl_268435541([104,97,115,104,99,111,109,109,111,110,46,110,105,109,40,51,52,44,32,57,41,32,96,10,116,46,99,111,117,110,116,101,114,32,60,32,116,46,100,97,116,97,76,101,110,96,32]); } - F.line = 35; - result_520095419 = ((mulInt((t_520095418.data).length, 2) < mulInt(t_520095418.counter, 3)) || (subInt((t_520095418.data).length, t_520095418.counter) < 4)); - framePtr = F.prev; + result_553649851 = ((mulInt((t_553649850.data).length, 2) < mulInt(t_553649850.counter, 3)) || (subInt((t_553649850.data).length, t_553649850.counter) < 4)); - return result_520095419; + return result_553649851; } -function rawInsert_520095833(t_520095837, data_520095838, data_520095838_Idx, key_520095839, val_520095840, hc_520095841, h_520095842) { - var F = {procname: "rawInsert.rawInsert", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/collections/tableimpl.nim", line: 0}; - framePtr = F; - F.line = 25; - F.filename = "tableimpl.nim"; - data_520095838[data_520095838_Idx][chckIndx(h_520095842, 0, (data_520095838[data_520095838_Idx]).length - 1)].Field1 = nimCopy(null, key_520095839, NTI33554449); - F.line = 26; - data_520095838[data_520095838_Idx][chckIndx(h_520095842, 0, (data_520095838[data_520095838_Idx]).length - 1)].Field2 = val_520095840; - F.line = 27; - data_520095838[data_520095838_Idx][chckIndx(h_520095842, 0, (data_520095838[data_520095838_Idx]).length - 1)].Field0 = hc_520095841; - framePtr = F.prev; +function rawInsert_553650265(t_553650269, data_553650270, data_553650270_Idx, key_553650271, val_553650272, hc_553650273, h_553650274) { + data_553650270[data_553650270_Idx][chckIndx(h_553650274, 0, (data_553650270[data_553650270_Idx]).length - 1)].Field1 = nimCopy(null, key_553650271, NTI33554449); + data_553650270[data_553650270_Idx][chckIndx(h_553650274, 0, (data_553650270[data_553650270_Idx]).length - 1)].Field2 = val_553650272; + data_553650270[data_553650270_Idx][chckIndx(h_553650274, 0, (data_553650270[data_553650270_Idx]).length - 1)].Field0 = hc_553650273; } -function enlarge_520095559(t_520095562) { - var F = {procname: "enlarge.enlarge", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/collections/tables.nim", line: 0}; - framePtr = F; - F.line = 250; - F.filename = "tables.nim"; - var n_520095565 = []; - F.line = 251; - n_520095565 = new Array(chckRange(mulInt((t_520095562.data).length, 2), 0, 2147483647)); for (var i = 0 ; i < chckRange(mulInt((t_520095562.data).length, 2), 0, 2147483647) ; ++i) { n_520095565[i] = {Field0: 0, Field1: [], Field2: 0}; } F.line = 252; - var Temporary1 = t_520095562.data; t_520095562.data = n_520095565; n_520095565 = Temporary1; Label2: { - F.line = 253; - var i_520095625 = 0; - F.line = 46; - F.filename = "iterators_1.nim"; - var colontmp__520100403 = 0; - F.line = 253; - F.filename = "tables.nim"; - colontmp__520100403 = (n_520095565).length - 1; - F.line = 68; - F.filename = "iterators_1.nim"; - var res_520100404 = 0; +function enlarge_553649991(t_553649994) { + var n_553649997 = []; + n_553649997 = new Array(chckRange(mulInt((t_553649994.data).length, 2), 0, 2147483647)); for (var i = 0 ; i < chckRange(mulInt((t_553649994.data).length, 2), 0, 2147483647) ; ++i) { n_553649997[i] = {Field0: 0, Field1: [], Field2: 0}; } var Temporary1 = t_553649994.data; t_553649994.data = n_553649997; n_553649997 = Temporary1; Label2: { + var i_553650057 = 0; + var colontmp__553654835 = 0; + colontmp__553654835 = (n_553649997).length - 1; + var res_553654836 = 0; Label3: { - F.line = 69; Label4: while (true) { - if (!(res_520100404 <= colontmp__520100403)) break Label4; - F.line = 253; - F.filename = "tables.nim"; - i_520095625 = res_520100404; - F.line = 254; - var eh_520095675 = n_520095565[chckIndx(i_520095625, 0, (n_520095565).length - 1)].Field0; - if (isFilled_1107296287(eh_520095675)) { - F.line = 256; - var j_520095679 = (eh_520095675 & (t_520095562.data).length - 1); + if (!(res_553654836 <= colontmp__553654835)) break Label4; + i_553650057 = res_553654836; + var eh_553650107 = n_553649997[chckIndx(i_553650057, 0, (n_553649997).length - 1)].Field0; + if (isFilled_1291845663(eh_553650107)) { + var j_553650111 = (eh_553650107 & (t_553649994.data).length - 1); Label5: { - F.line = 257; Label6: while (true) { - if (!isFilled_1107296287(t_520095562.data[chckIndx(j_520095679, 0, (t_520095562.data).length - 1)].Field0)) break Label6; - F.line = 258; - j_520095679 = nextTry_1107296290(j_520095679, (t_520095562.data).length - 1); + if (!isFilled_1291845663(t_553649994.data[chckIndx(j_553650111, 0, (t_553649994.data).length - 1)].Field0)) break Label6; + j_553650111 = nextTry_1291845666(j_553650111, (t_553649994.data).length - 1); } }; - F.line = 260; - rawInsert_520095833(t_520095562, t_520095562, "data", n_520095565[chckIndx(i_520095625, 0, (n_520095565).length - 1)].Field1, n_520095565[chckIndx(i_520095625, 0, (n_520095565).length - 1)].Field2, eh_520095675, j_520095679); + rawInsert_553650265(t_553649994, t_553649994, "data", n_553649997[chckIndx(i_553650057, 0, (n_553649997).length - 1)].Field1, n_553649997[chckIndx(i_553650057, 0, (n_553649997).length - 1)].Field2, eh_553650107, j_553650111); } - F.line = 74; - F.filename = "iterators_1.nim"; - res_520100404 = addInt(res_520100404, 1); + res_553654836 = addInt(res_553654836, 1); } }; }; - framePtr = F.prev; } -function rawGetKnownHC_520095990(t_520095993, key_520095994, hc_520095995) { - var result_520095996 = 0; +function rawGetKnownHC_553650422(t_553650425, key_553650426, hc_553650427) { + var result_553650428 = 0; - var F = {procname: "rawGetKnownHC.rawGetKnownHC", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/collections/hashcommon.nim", line: 0}; - framePtr = F; BeforeRet: { - if (((t_520095993.data).length == 0)) { - F.line = 43; - F.filename = "hashcommon.nim"; - result_520095996 = (-1); + if (((t_553650425.data).length == 0)) { + result_553650428 = (-1); break BeforeRet; } - F.line = 44; - var h_520096043 = (hc_520095995 & (t_520095993.data).length - 1); + var h_553650475 = (hc_553650427 & (t_553650425.data).length - 1); Label1: { - F.line = 45; Label2: while (true) { - if (!isFilled_1107296287(t_520095993.data[chckIndx(h_520096043, 0, (t_520095993.data).length - 1)].Field0)) break Label2; - if (((t_520095993.data[chckIndx(h_520096043, 0, (t_520095993.data).length - 1)].Field0 == hc_520095995) && eqStrings(t_520095993.data[chckIndx(h_520096043, 0, (t_520095993.data).length - 1)].Field1, key_520095994))) { - F.line = 51; - result_520095996 = h_520096043; + if (!isFilled_1291845663(t_553650425.data[chckIndx(h_553650475, 0, (t_553650425.data).length - 1)].Field0)) break Label2; + if (((t_553650425.data[chckIndx(h_553650475, 0, (t_553650425.data).length - 1)].Field0 == hc_553650427) && eqStrings(t_553650425.data[chckIndx(h_553650475, 0, (t_553650425.data).length - 1)].Field1, key_553650426))) { + result_553650428 = h_553650475; break BeforeRet; } - F.line = 52; - h_520096043 = nextTry_1107296290(h_520096043, (t_520095993.data).length - 1); + h_553650475 = nextTry_1291845666(h_553650475, (t_553650425.data).length - 1); } }; - F.line = 53; - result_520095996 = subInt((-1), h_520096043); + result_553650428 = subInt((-1), h_553650475); }; - framePtr = F.prev; - return result_520095996; + return result_553650428; } -function HEX5BHEX5DHEX3D_520095053(t_520095056, key_520095057, val_520095058) { - var F = {procname: "[]=.[]=", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/collections/tables.nim", line: 0}; - framePtr = F; - if (((t_520095056.data).length == 0)) { - F.line = 165; - F.filename = "tableimpl.nim"; - var correctSizeHEX60gensym9_520095104 = slotsNeeded_1107296298(32); - F.line = 169; - t_520095056.counter = 0; - F.line = 170; - t_520095056.data = new Array(chckRange(correctSizeHEX60gensym9_520095104, 0, 2147483647)); for (var i = 0 ; i < chckRange(correctSizeHEX60gensym9_520095104, 0, 2147483647) ; ++i) { t_520095056.data[i] = {Field0: 0, Field1: [], Field2: 0}; } } +function HEX5BHEX5DHEX3D_553649485(t_553649488, key_553649489, val_553649490) { + if (((t_553649488.data).length == 0)) { + var correctSizeHEX60gensym9_553649536 = slotsNeeded_1291845674(32); + t_553649488.counter = 0; + t_553649488.data = new Array(chckRange(correctSizeHEX60gensym9_553649536, 0, 2147483647)); for (var i = 0 ; i < chckRange(correctSizeHEX60gensym9_553649536, 0, 2147483647) ; ++i) { t_553649488.data[i] = {Field0: 0, Field1: [], Field2: 0}; } } - F.line = 59; - var hc_520095109 = [0]; - F.line = 60; - var index_520095317 = rawGet_520095110(t_520095056, key_520095057, hc_520095109, 0); - if ((0 <= index_520095317)) { - F.line = 61; - t_520095056.data[chckIndx(index_520095317, 0, (t_520095056.data).length - 1)].Field2 = val_520095058; + var hc_553649541 = [0]; + var index_553649749 = rawGet_553649542(t_553649488, key_553649489, hc_553649541, 0); + if ((0 <= index_553649749)) { + t_553649488.data[chckIndx(index_553649749, 0, (t_553649488.data).length - 1)].Field2 = val_553649490; } else { - if (((t_520095056.data).length == 0)) { - F.line = 165; - var correctSizeHEX60gensym14_520095411 = slotsNeeded_1107296298(32); - F.line = 169; - t_520095056.counter = 0; - F.line = 170; - t_520095056.data = new Array(chckRange(correctSizeHEX60gensym14_520095411, 0, 2147483647)); for (var i = 0 ; i < chckRange(correctSizeHEX60gensym14_520095411, 0, 2147483647) ; ++i) { t_520095056.data[i] = {Field0: 0, Field1: [], Field2: 0}; } } + if (((t_553649488.data).length == 0)) { + var correctSizeHEX60gensym14_553649843 = slotsNeeded_1291845674(32); + t_553649488.counter = 0; + t_553649488.data = new Array(chckRange(correctSizeHEX60gensym14_553649843, 0, 2147483647)); for (var i = 0 ; i < chckRange(correctSizeHEX60gensym14_553649843, 0, 2147483647) ; ++i) { t_553649488.data[i] = {Field0: 0, Field1: [], Field2: 0}; } } - if (mustRehash_520095416(t_520095056)) { - F.line = 51; - enlarge_520095559(t_520095056); - F.line = 52; - index_520095317 = rawGetKnownHC_520095990(t_520095056, key_520095057, hc_520095109[0]); + if (mustRehash_553649848(t_553649488)) { + enlarge_553649991(t_553649488); + index_553649749 = rawGetKnownHC_553650422(t_553649488, key_553649489, hc_553649541[0]); } - F.line = 53; - index_520095317 = subInt((-1), index_520095317); - F.line = 54; - rawInsert_520095833(t_520095056, t_520095056, "data", key_520095057, val_520095058, hc_520095109[0], index_520095317); - F.line = 62; - t_520095056.counter = addInt(t_520095056.counter, 1); + index_553649749 = subInt((-1), index_553649749); + rawInsert_553650265(t_553649488, t_553649488, "data", key_553649489, val_553649490, hc_553649541[0], index_553649749); + t_553649488.counter = addInt(t_553649488.counter, 1); } - framePtr = F.prev; } -function initSelectedSubPower_520094035() { - var F = {procname: "main.initSelectedSubPower", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 181; - F.filename = "main.nim"; - rawEcho(HEX24_520094498(selectedSubPower_520093916[0])); +function initSelectedSubPower_553648467() { + rawEcho(HEX24_553648930(selectedSubPower_553648348[0])); Label1: { - F.line = 182; - var name_520095016 = []; - F.line = 738; - F.filename = "tables.nim"; - var L_520100383 = len_520094855(allPowers_520093917[0]); + var name_553649448 = []; + var L_553654815 = len_553649287(allPowers_553648349[0]); Label2: { - F.line = 739; - var h_520100385 = 0; - F.line = 81; - F.filename = "iterators_1.nim"; - var colontmp__520100386 = 0; - F.line = 739; - F.filename = "tables.nim"; - colontmp__520100386 = (allPowers_520093917[0].data).length - 1; - F.line = 96; - F.filename = "iterators_1.nim"; - var res_520100387 = 0; + var h_553654817 = 0; + var colontmp__553654818 = 0; + colontmp__553654818 = (allPowers_553648349[0].data).length - 1; + var res_553654819 = 0; Label3: { - F.line = 97; Label4: while (true) { - if (!(res_520100387 <= colontmp__520100386)) break Label4; - F.line = 739; - F.filename = "tables.nim"; - h_520100385 = res_520100387; - if (isFilled_1107296287(allPowers_520093917[0].data[chckIndx(h_520100385, 0, (allPowers_520093917[0].data).length - 1)].Field0)) { - F.line = 182; - F.filename = "main.nim"; - name_520095016 = allPowers_520093917[0].data[chckIndx(h_520100385, 0, (allPowers_520093917[0].data).length - 1)]["Field1"]; - F.line = 183; - HEX5BHEX5DHEX3D_520095053(selectedSubPower_520093916[0], name_520095016, 0); - if (!((len_520094855(allPowers_520093917[0]) == L_520100383))) { - F.line = 742; - F.filename = "tables.nim"; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/collections/tables.nim(742, 13) `len(t) == L` the length of the table changed while iterating over it")); + if (!(res_553654819 <= colontmp__553654818)) break Label4; + h_553654817 = res_553654819; + if (isFilled_1291845663(allPowers_553648349[0].data[chckIndx(h_553654817, 0, (allPowers_553648349[0].data).length - 1)].Field0)) { + name_553649448 = allPowers_553648349[0].data[chckIndx(h_553654817, 0, (allPowers_553648349[0].data).length - 1)]["Field1"]; + HEX5BHEX5DHEX3D_553649485(selectedSubPower_553648348[0], name_553649448, 0); + if (!((len_553649287(allPowers_553648349[0]) == L_553654815))) { + failedAssertImpl_268435541(makeNimstrLit("tables.nim(742, 13) `len(t) == L` the length of the table changed while iterating over it")); } } - F.line = 102; - F.filename = "iterators_1.nim"; - res_520100387 = addInt(res_520100387, 1); + res_553654819 = addInt(res_553654819, 1); } }; }; }; - framePtr = F.prev; } -function HEX3Ddup_1224737101(src_1224737103) { - var result_1224737102 = ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}); +function HEX3Ddup_1476395341(src_1476395343) { + var result_1476395342 = ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}); - result_1224737102.item = src_1224737103.item; - result_1224737102.color = src_1224737103.color; - result_1224737102.index = src_1224737103.index; - result_1224737102.timesMoved = src_1224737103.timesMoved; - result_1224737102.piecesTaken = src_1224737103.piecesTaken; - result_1224737102.tile["Field0"] = src_1224737103.tile["Field0"]; - result_1224737102.tile["Field1"] = src_1224737103.tile["Field1"]; - result_1224737102.moves = nimCopy(null, src_1224737103.moves, NTI1224736849); - result_1224737102.takes = nimCopy(null, src_1224737103.takes, NTI1224736850); - result_1224737102.onEndTurn = nimCopy(null, src_1224737103.onEndTurn, NTI1224736851); - result_1224737102.onPromote = nimCopy(null, src_1224737103.onPromote, NTI1224736852); - result_1224737102.promoted = src_1224737103.promoted; - result_1224737102.filePath = nimCopy(null, src_1224737103.filePath, NTI33554449); - result_1224737102.colorable = src_1224737103.colorable; - result_1224737102.rotate = src_1224737103.rotate; - result_1224737102.drunk = src_1224737103.drunk; - result_1224737102.casts = nimCopy(null, src_1224737103.casts, NTI1224736853); + result_1476395342.item = src_1476395343.item; + result_1476395342.color = src_1476395343.color; + result_1476395342.index = src_1476395343.index; + result_1476395342.timesMoved = src_1476395343.timesMoved; + result_1476395342.piecesTaken = src_1476395343.piecesTaken; + result_1476395342.tile["Field0"] = src_1476395343.tile["Field0"]; + result_1476395342.tile["Field1"] = src_1476395343.tile["Field1"]; + result_1476395342.moves = nimCopy(null, src_1476395343.moves, NTI1476395089); + result_1476395342.takes = nimCopy(null, src_1476395343.takes, NTI1476395090); + result_1476395342.onEndTurn = nimCopy(null, src_1476395343.onEndTurn, NTI1476395091); + result_1476395342.onPromote = nimCopy(null, src_1476395343.onPromote, NTI1476395092); + result_1476395342.promoted = src_1476395343.promoted; + result_1476395342.filePath = nimCopy(null, src_1476395343.filePath, NTI33554449); + result_1476395342.colorable = src_1476395343.colorable; + result_1476395342.rotate = src_1476395343.rotate; + result_1476395342.drunk = src_1476395343.drunk; + result_1476395342.casts = nimCopy(null, src_1476395343.casts, NTI1476395093); - return result_1224737102; + return result_1476395342; } -function arrayWith_1275068777(y_1275068780) { - var result_1275068787 = [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})]; +function arrayWith_1526727017(y_1526727020) { + var result_1526727027 = [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})]; - var F = {procname: "arrayWith.arrayWith", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; Label1: { - F.line = 2832; - F.filename = "system.nim"; - var i_1275068792 = 0; - F.line = 96; - F.filename = "iterators_1.nim"; - var res_520100408 = 0; + var i_1526727032 = 0; + var res_553654840 = 0; Label2: { - F.line = 97; Label3: while (true) { - if (!(res_520100408 <= 7)) break Label3; - F.line = 2832; - F.filename = "system.nim"; - i_1275068792 = res_520100408; - F.line = 2836; - result_1275068787[chckIndx(i_1275068792, 0, (result_1275068787).length - 1)] = nimCopy(result_1275068787[chckIndx(i_1275068792, 0, (result_1275068787).length - 1)], HEX3Ddup_1224737101(y_1275068780), NTI1224736794); - F.line = 102; - F.filename = "iterators_1.nim"; - res_520100408 = addInt(res_520100408, 1); + if (!(res_553654840 <= 7)) break Label3; + i_1526727032 = res_553654840; + result_1526727027[chckIndx(i_1526727032, 0, (result_1526727027).length - 1)] = nimCopy(result_1526727027[chckIndx(i_1526727032, 0, (result_1526727027).length - 1)], HEX3Ddup_1476395341(y_1526727020), NTI1476395034); + res_553654840 = addInt(res_553654840, 1); } }; }; - framePtr = F.prev; - return result_1275068787; + return result_1526727027; } -function inCheck_1291845637(p_1291845638, b_1291845639) { - var result_1291845931 = false; +function inCheck_1543503877(p_1543503878, b_1543503879) { + var result_1543504171 = false; - var F = {procname: "moves.inCheck", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/moves.nim", line: 0}; - framePtr = F; BeforeRet: { Label1: { - F.line = 124; - F.filename = "moves.nim"; - var i_1291845936 = 0; - F.line = 96; - F.filename = "iterators_1.nim"; - var res_520100418 = 0; + var i_1543504176 = 0; + var res_553654850 = 0; Label2: { - F.line = 97; Label3: while (true) { - if (!(res_520100418 <= 7)) break Label3; - F.line = 124; - F.filename = "moves.nim"; - i_1291845936 = res_520100418; + if (!(res_553654850 <= 7)) break Label3; + i_1543504176 = res_553654850; Label4: { - F.line = 125; - var j_1291845941 = 0; - F.line = 96; - F.filename = "iterators_1.nim"; - var res_520100416 = 0; + var j_1543504181 = 0; + var res_553654848 = 0; Label5: { - F.line = 97; Label6: while (true) { - if (!(res_520100416 <= 7)) break Label6; - F.line = 125; - F.filename = "moves.nim"; - j_1291845941 = res_520100416; - F.line = 130; - var piece_1291845942 = nimCopy(null, b_1291845639[chckIndx(i_1291845936, 0, (b_1291845639).length - 1)][chckIndx(j_1291845941, 0, (b_1291845639[chckIndx(i_1291845936, 0, (b_1291845639).length - 1)]).length - 1)], NTI1224736794); - if ((piece_1291845942.item == 0)) { - F.line = 131; - F.line = 652; - F.filename = "sequtils.nim"; - var resultHEX60gensym3_1291845971 = newSeq_1291845948(0); + if (!(res_553654848 <= 7)) break Label6; + j_1543504181 = res_553654848; + var piece_1543504182 = nimCopy(null, b_1543503879[chckIndx(i_1543504176, 0, (b_1543503879).length - 1)][chckIndx(j_1543504181, 0, (b_1543503879[chckIndx(i_1543504176, 0, (b_1543503879).length - 1)]).length - 1)], NTI1476395034); + if ((piece_1543504182.item == 0)) { + var resultHEX60gensym3_1543504211 = newSeq_1543504188(0); Label7: { - F.line = 653; - var it_1291845975 = null; - F.line = 249; - F.filename = "iterators.nim"; - var i_520100413 = 0; - F.line = 250; - var L_520100414 = (piece_1291845942.takes).length; + var it_1543504215 = null; + var i_553654845 = 0; + var L_553654846 = (piece_1543504182.takes).length; Label8: { - F.line = 251; Label9: while (true) { - if (!(i_520100413 < L_520100414)) break Label9; - F.line = 653; - F.filename = "sequtils.nim"; - it_1291845975 = piece_1291845942.takes[chckIndx(i_520100413, 0, (piece_1291845942.takes).length - 1)]; - if (!((it_1291845975 == HEX3Aanonymous_1291845895))) { - F.line = 654; - resultHEX60gensym3_1291845971.push(it_1291845975);; + if (!(i_553654845 < L_553654846)) break Label9; + it_1543504215 = piece_1543504182.takes[chckIndx(i_553654845, 0, (piece_1543504182.takes).length - 1)]; + if (!((it_1543504215 == HEX3Aanonymous_1543504135))) { + resultHEX60gensym3_1543504211.push(it_1543504215);; } - F.line = 13; - F.filename = "iterators.nim"; - i_520100413 += 1; - if (!(((piece_1291845942.takes).length == L_520100414))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + i_553654845 += 1; + if (!(((piece_1543504182.takes).length == L_553654846))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - piece_1291845942.takes = nimCopy(null, resultHEX60gensym3_1291845971, NTI1291845874); + piece_1543504182.takes = nimCopy(null, resultHEX60gensym3_1543504211, NTI1543504114); } - if (((!(isAir_1224737796(piece_1291845942)) && !(sameColor_1224737804(p_1291845638, piece_1291845942))) && contains_1224737421(getTakesOn_1224737271(piece_1291845942, b_1291845639), p_1291845638.tile))) { - F.line = 133; - F.filename = "moves.nim"; - result_1291845931 = true; + if (((!(isAir_1476396036(piece_1543504182)) && !(sameColor_1476396044(p_1543503878, piece_1543504182))) && contains_1476395661(getTakesOn_1476395511(piece_1543504182, b_1543503879), p_1543503878.tile))) { + result_1543504171 = true; break BeforeRet; } - F.line = 102; - F.filename = "iterators_1.nim"; - res_520100416 = addInt(res_520100416, 1); + res_553654848 = addInt(res_553654848, 1); } }; }; - F.line = 102; - res_520100418 = addInt(res_520100418, 1); + res_553654850 = addInt(res_553654850, 1); } }; }; - F.line = 135; - F.filename = "moves.nim"; - result_1291845931 = false; + result_1543504171 = false; break BeforeRet; }; - framePtr = F.prev; - return result_1291845931; + return result_1543504171; } -function HEX3Aanonymous_1291845895(board_1291845896, p_1291845897) { - var result_1291845898 = [[]]; +function HEX3Aanonymous_1543504135(board_1543504136, p_1543504137) { + var result_1543504138 = [[]]; - var F = {procname: "moves.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/moves.nim", line: 0}; - framePtr = F; BeforeRet: { - if ((!((p_1291845897.timesMoved == 0)) || !((p_1291845897.tile.Field0 == 4)))) { - F.line = 101; - F.filename = "moves.nim"; - result_1291845898[0] = nimCopy(null, [], NTI1291845837); + if ((!((p_1543504137.timesMoved == 0)) || !((p_1543504137.tile.Field0 == 4)))) { + result_1543504138[0] = nimCopy(null, [], NTI1543504077); break BeforeRet; } - if ((((((isAir_1224737796(board_1291845896[chckIndx(p_1291845897.tile.Field1, 0, (board_1291845896).length - 1)][chckIndx(addInt(p_1291845897.tile.Field0, 1), 0, (board_1291845896[chckIndx(p_1291845897.tile.Field1, 0, (board_1291845896).length - 1)]).length - 1)]) && isAir_1224737796(board_1291845896[chckIndx(p_1291845897.tile.Field1, 0, (board_1291845896).length - 1)][chckIndx(addInt(p_1291845897.tile.Field0, 2), 0, (board_1291845896[chckIndx(p_1291845897.tile.Field1, 0, (board_1291845896).length - 1)]).length - 1)])) && (board_1291845896[chckIndx(p_1291845897.tile.Field1, 0, (board_1291845896).length - 1)][chckIndx(addInt(p_1291845897.tile.Field0, 3), 0, (board_1291845896[chckIndx(p_1291845897.tile.Field1, 0, (board_1291845896).length - 1)]).length - 1)].item == 4)) && sameColor_1224737804(board_1291845896[chckIndx(p_1291845897.tile.Field1, 0, (board_1291845896).length - 1)][chckIndx(addInt(p_1291845897.tile.Field0, 3), 0, (board_1291845896[chckIndx(p_1291845897.tile.Field1, 0, (board_1291845896).length - 1)]).length - 1)], p_1291845897)) && (board_1291845896[chckIndx(p_1291845897.tile.Field1, 0, (board_1291845896).length - 1)][chckIndx(addInt(p_1291845897.tile.Field0, 3), 0, (board_1291845896[chckIndx(p_1291845897.tile.Field1, 0, (board_1291845896).length - 1)]).length - 1)].timesMoved == 0)) && !(inCheck_1291845637(p_1291845897, board_1291845896)))) { - F.line = 110; - var _ = addIfTake_1291845739(result_1291845898, 0, board_1291845896, p_1291845897, p_1291845897.tile, shooterFactory_1308622968(3, 0), false, true); + if ((((((isAir_1476396036(board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)][chckIndx(addInt(p_1543504137.tile.Field0, 1), 0, (board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)]).length - 1)]) && isAir_1476396036(board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)][chckIndx(addInt(p_1543504137.tile.Field0, 2), 0, (board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)]).length - 1)])) && (board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)][chckIndx(addInt(p_1543504137.tile.Field0, 3), 0, (board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)]).length - 1)].item == 4)) && sameColor_1476396044(board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)][chckIndx(addInt(p_1543504137.tile.Field0, 3), 0, (board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)]).length - 1)], p_1543504137)) && (board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)][chckIndx(addInt(p_1543504137.tile.Field0, 3), 0, (board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)]).length - 1)].timesMoved == 0)) && !(inCheck_1543503877(p_1543504137, board_1543504136)))) { + var _ = addIfTake_1543503979(result_1543504138, 0, board_1543504136, p_1543504137, p_1543504137.tile, shooterFactory_1560281208(3, 0), false, true); } - if (((((((isAir_1224737796(board_1291845896[chckIndx(p_1291845897.tile.Field1, 0, (board_1291845896).length - 1)][chckIndx(subInt(p_1291845897.tile.Field0, 1), 0, (board_1291845896[chckIndx(p_1291845897.tile.Field1, 0, (board_1291845896).length - 1)]).length - 1)]) && isAir_1224737796(board_1291845896[chckIndx(p_1291845897.tile.Field1, 0, (board_1291845896).length - 1)][chckIndx(subInt(p_1291845897.tile.Field0, 2), 0, (board_1291845896[chckIndx(p_1291845897.tile.Field1, 0, (board_1291845896).length - 1)]).length - 1)])) && isAir_1224737796(board_1291845896[chckIndx(p_1291845897.tile.Field1, 0, (board_1291845896).length - 1)][chckIndx(subInt(p_1291845897.tile.Field0, 3), 0, (board_1291845896[chckIndx(p_1291845897.tile.Field1, 0, (board_1291845896).length - 1)]).length - 1)])) && (board_1291845896[chckIndx(p_1291845897.tile.Field1, 0, (board_1291845896).length - 1)][chckIndx(subInt(p_1291845897.tile.Field0, 4), 0, (board_1291845896[chckIndx(p_1291845897.tile.Field1, 0, (board_1291845896).length - 1)]).length - 1)].item == 4)) && sameColor_1224737804(board_1291845896[chckIndx(p_1291845897.tile.Field1, 0, (board_1291845896).length - 1)][chckIndx(addInt(p_1291845897.tile.Field0, 3), 0, (board_1291845896[chckIndx(p_1291845897.tile.Field1, 0, (board_1291845896).length - 1)]).length - 1)], p_1291845897)) && (board_1291845896[chckIndx(p_1291845897.tile.Field1, 0, (board_1291845896).length - 1)][chckIndx(subInt(p_1291845897.tile.Field0, 4), 0, (board_1291845896[chckIndx(p_1291845897.tile.Field1, 0, (board_1291845896).length - 1)]).length - 1)].timesMoved == 0)) && !(inCheck_1291845637(p_1291845897, board_1291845896)))) { - F.line = 120; - var _ = addIfTake_1291845739(result_1291845898, 0, board_1291845896, p_1291845897, p_1291845897.tile, shooterFactory_1308622968((-4), 0), false, true); + if (((((((isAir_1476396036(board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)][chckIndx(subInt(p_1543504137.tile.Field0, 1), 0, (board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)]).length - 1)]) && isAir_1476396036(board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)][chckIndx(subInt(p_1543504137.tile.Field0, 2), 0, (board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)]).length - 1)])) && isAir_1476396036(board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)][chckIndx(subInt(p_1543504137.tile.Field0, 3), 0, (board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)]).length - 1)])) && (board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)][chckIndx(subInt(p_1543504137.tile.Field0, 4), 0, (board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)]).length - 1)].item == 4)) && sameColor_1476396044(board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)][chckIndx(addInt(p_1543504137.tile.Field0, 3), 0, (board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)]).length - 1)], p_1543504137)) && (board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)][chckIndx(subInt(p_1543504137.tile.Field0, 4), 0, (board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)]).length - 1)].timesMoved == 0)) && !(inCheck_1543503877(p_1543504137, board_1543504136)))) { + var _ = addIfTake_1543503979(result_1543504138, 0, board_1543504136, p_1543504137, p_1543504137.tile, shooterFactory_1560281208((-4), 0), false, true); } }; - framePtr = F.prev; - return result_1291845898[0]; + return result_1543504138[0]; } -function HEX3Aanonymous_1291845827(board_1291845828, p_1291845829) { - var result_1291845830 = [[]]; +function HEX3Aanonymous_1543504067(board_1543504068, p_1543504069) { + var result_1543504070 = [[]]; - var F = {procname: "moves.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/moves.nim", line: 0}; - framePtr = F; - if ((p_1291845829.timesMoved == 0)) { - F.line = 57; - F.filename = "moves.nim"; - var next_1291845831 = addIfFree_1291845640(result_1291845830, 0, board_1291845828, p_1291845829.tile, tileAbove_1308622990); - if (next_1291845831) { - F.line = 59; - var _ = addIfFree_1291845640(result_1291845830, 0, board_1291845828, tileAbove_1308622990(p_1291845829.tile), tileAbove_1308622990); + if ((p_1543504069.timesMoved == 0)) { + var next_1543504071 = addIfFree_1543503880(result_1543504070, 0, board_1543504068, p_1543504069.tile, tileAbove_1560281230); + if (next_1543504071) { + var _ = addIfFree_1543503880(result_1543504070, 0, board_1543504068, tileAbove_1560281230(p_1543504069.tile), tileAbove_1560281230); } } else { - F.line = 61; - var _ = addIfFree_1291845640(result_1291845830, 0, board_1291845828, p_1291845829.tile, tileAbove_1308622990); + var _ = addIfFree_1543503880(result_1543504070, 0, board_1543504068, p_1543504069.tile, tileAbove_1560281230); } - framePtr = F.prev; - return result_1291845830[0]; + return result_1543504070[0]; } -function HEX3Aanonymous_1291845849(board_1291845850, p_1291845851) { - var result_1291845852 = [[]]; +function HEX3Aanonymous_1543504089(board_1543504090, p_1543504091) { + var result_1543504092 = [[]]; - var F = {procname: "moves.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/moves.nim", line: 0}; - framePtr = F; - F.line = 67; - F.filename = "moves.nim"; - var _ = addIfTake_1291845739(result_1291845852, 0, board_1291845850, p_1291845851, p_1291845851.tile, shooterFactory_1308622968(1, (-1)), false, false); - F.line = 68; - var _ = addIfTake_1291845739(result_1291845852, 0, board_1291845850, p_1291845851, p_1291845851.tile, shooterFactory_1308622968((-1), (-1)), false, false); - framePtr = F.prev; + var _ = addIfTake_1543503979(result_1543504092, 0, board_1543504090, p_1543504091, p_1543504091.tile, shooterFactory_1560281208(1, (-1)), false, false); + var _ = addIfTake_1543503979(result_1543504092, 0, board_1543504090, p_1543504091, p_1543504091.tile, shooterFactory_1560281208((-1), (-1)), false, false); - return result_1291845852[0]; + return result_1543504092[0]; } -function HEX3Aanonymous_1275068598(piece_1275068599, board_1275068600, state_1275068601) { - var F = {procname: "basePieces.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/basePieces.nim", line: 0}; - framePtr = F; - if ((isAtEnd_1224737998(piece_1275068599) && !(piece_1275068599.promoted))) { +function HEX3Aanonymous_1526726838(piece_1526726839, board_1526726840, state_1526726841) { + if ((isAtEnd_1476396238(piece_1526726839) && !(piece_1526726839.promoted))) { Label1: { - F.line = 181; - F.filename = "piece.nim"; - var xHEX60gensym0_1275068606 = null; - F.line = 249; - F.filename = "iterators.nim"; - var i_520100421 = 0; - F.line = 250; - var L_520100422 = (piece_1275068599.onPromote).length; + var xHEX60gensym0_1526726846 = null; + var i_553654853 = 0; + var L_553654854 = (piece_1526726839.onPromote).length; Label2: { - F.line = 251; Label3: while (true) { - if (!(i_520100421 < L_520100422)) break Label3; - F.line = 75; - F.filename = "basePieces.nim"; - xHEX60gensym0_1275068606 = piece_1275068599.onPromote[chckIndx(i_520100421, 0, (piece_1275068599.onPromote).length - 1)]; - F.line = 182; - F.filename = "piece.nim"; - xHEX60gensym0_1275068606(piece_1275068599, board_1275068600, state_1275068601); - if (piece_1275068599.promoted) { - F.line = 183; + if (!(i_553654853 < L_553654854)) break Label3; + xHEX60gensym0_1526726846 = piece_1526726839.onPromote[chckIndx(i_553654853, 0, (piece_1526726839.onPromote).length - 1)]; + xHEX60gensym0_1526726846(piece_1526726839, board_1526726840, state_1526726841); + if (piece_1526726839.promoted) { break Label1; } - F.line = 13; - F.filename = "iterators.nim"; - i_520100421 += 1; - if (!(((piece_1275068599.onPromote).length == L_520100422))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + i_553654853 += 1; + if (!(((piece_1526726839.onPromote).length == L_553654854))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } @@ -16440,2174 +10926,1347 @@ function HEX3Aanonymous_1275068598(piece_1275068599, board_1275068600, state_127 }; } - framePtr = F.prev; } -function HEX3Aanonymous_1275068419(taken_1275068420, taker_1275068421, board_1275068422, state_1275068423) { - var result_1275068426 = {Field0: {Field0: 0, Field1: 0}, Field1: false}; +function HEX3Aanonymous_1526726659(taken_1526726660, taker_1526726661, board_1526726662, state_1526726663) { + var result_1526726666 = {Field0: {Field0: 0, Field1: 0}, Field1: false}; - var F = {procname: "basePieces.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/basePieces.nim", line: 0}; - framePtr = F; BeforeRet: { - if ((((((taker_1275068421.item == 0) && (taken_1275068420.item == 4)) && sameColor_1224737804(taken_1275068420, taker_1275068421)) && (taker_1275068421.timesMoved == 1)) && (taken_1275068420.timesMoved == 0))) { - F.line = 13; - F.filename = "basePieces.nim"; - state_1275068423.Field1[chckIndx(taken_1275068420.color, 0, (state_1275068423.Field1).length - 1)].hasCastled = true; - F.line = 14; - var kingTile_1275068435 = nimCopy(null, taker_1275068421.tile, NTI1224736771); - if ((taken_1275068420.tile.Field0 == 0)) { - F.line = 16; - pieceMove_1224737556(taker_1275068421, kingTile_1275068435.Field1, subInt(kingTile_1275068435.Field0, 2), board_1275068422, state_1275068423); - F.line = 17; - pieceMove_1224737556(taken_1275068420, kingTile_1275068435.Field1, subInt(kingTile_1275068435.Field0, 1), board_1275068422, state_1275068423); - F.line = 18; - var colontmp__520100424 = {Field0: subInt(kingTile_1275068435.Field0, 1), Field1: kingTile_1275068435.Field1}; - F.line = 18; - var colontmp__520100425 = false; - F.line = 18; - result_1275068426 = nimCopy(result_1275068426, {Field0: nimCopy(null, colontmp__520100424, NTI1224736771), Field1: colontmp__520100425}, NTI1275068424); + if ((((((taker_1526726661.item == 0) && (taken_1526726660.item == 4)) && sameColor_1476396044(taken_1526726660, taker_1526726661)) && (taker_1526726661.timesMoved == 1)) && (taken_1526726660.timesMoved == 0))) { + state_1526726663.Field1[chckIndx(taken_1526726660.color, 0, (state_1526726663.Field1).length - 1)].hasCastled = true; + var kingTile_1526726675 = nimCopy(null, taker_1526726661.tile, NTI1476395011); + if ((taken_1526726660.tile.Field0 == 0)) { + pieceMove_1476395796(taker_1526726661, kingTile_1526726675.Field1, subInt(kingTile_1526726675.Field0, 2), board_1526726662, state_1526726663); + pieceMove_1476395796(taken_1526726660, kingTile_1526726675.Field1, subInt(kingTile_1526726675.Field0, 1), board_1526726662, state_1526726663); + var colontmp__553654856 = {Field0: subInt(kingTile_1526726675.Field0, 1), Field1: kingTile_1526726675.Field1}; + var colontmp__553654857 = false; + result_1526726666 = nimCopy(result_1526726666, {Field0: nimCopy(null, colontmp__553654856, NTI1476395011), Field1: colontmp__553654857}, NTI1526726664); break BeforeRet; } else { - F.line = 20; - pieceMove_1224737556(taker_1275068421, kingTile_1275068435.Field1, addInt(kingTile_1275068435.Field0, 2), board_1275068422, state_1275068423); - F.line = 21; - pieceMove_1224737556(taken_1275068420, kingTile_1275068435.Field1, addInt(kingTile_1275068435.Field0, 1), board_1275068422, state_1275068423); - F.line = 22; - var colontmp__520100426 = {Field0: addInt(kingTile_1275068435.Field0, 1), Field1: kingTile_1275068435.Field1}; - F.line = 22; - var colontmp__520100427 = false; - F.line = 22; - result_1275068426 = nimCopy(result_1275068426, {Field0: nimCopy(null, colontmp__520100426, NTI1224736771), Field1: colontmp__520100427}, NTI1275068424); + pieceMove_1476395796(taker_1526726661, kingTile_1526726675.Field1, addInt(kingTile_1526726675.Field0, 2), board_1526726662, state_1526726663); + pieceMove_1476395796(taken_1526726660, kingTile_1526726675.Field1, addInt(kingTile_1526726675.Field0, 1), board_1526726662, state_1526726663); + var colontmp__553654858 = {Field0: addInt(kingTile_1526726675.Field0, 1), Field1: kingTile_1526726675.Field1}; + var colontmp__553654859 = false; + result_1526726666 = nimCopy(result_1526726666, {Field0: nimCopy(null, colontmp__553654858, NTI1476395011), Field1: colontmp__553654859}, NTI1526726664); break BeforeRet; } } else { - F.line = 25; - result_1275068426 = nimCopy(result_1275068426, HEX3Aanonymous_1224737604(taken_1275068420, taker_1275068421, board_1275068422, state_1275068423), NTI1275068424); + result_1526726666 = nimCopy(result_1526726666, HEX3Aanonymous_1476395844(taken_1526726660, taker_1526726661, board_1526726662, state_1526726663), NTI1526726664); break BeforeRet; } }; - framePtr = F.prev; - return result_1275068426; + return result_1526726666; } -function HEX3Aanonymous_1291845854(board_1291845855, p_1291845856) { - var result_1291845857 = [[]]; +function HEX3Aanonymous_1543504094(board_1543504095, p_1543504096) { + var result_1543504097 = [[]]; - var F = {procname: "moves.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/moves.nim", line: 0}; - framePtr = F; - if ((p_1291845856.timesMoved == 0)) { - F.line = 76; - F.filename = "moves.nim"; - var next_1291845858 = addIfFree_1291845640(result_1291845857, 0, board_1291845855, p_1291845856.tile, tileBelow_1308622993); - if (next_1291845858) { - F.line = 78; - var _ = addIfFree_1291845640(result_1291845857, 0, board_1291845855, tileBelow_1308622993(p_1291845856.tile), tileBelow_1308622993); + if ((p_1543504096.timesMoved == 0)) { + var next_1543504098 = addIfFree_1543503880(result_1543504097, 0, board_1543504095, p_1543504096.tile, tileBelow_1560281233); + if (next_1543504098) { + var _ = addIfFree_1543503880(result_1543504097, 0, board_1543504095, tileBelow_1560281233(p_1543504096.tile), tileBelow_1560281233); } } else { - F.line = 80; - var _ = addIfFree_1291845640(result_1291845857, 0, board_1291845855, p_1291845856.tile, tileBelow_1308622993); + var _ = addIfFree_1543503880(result_1543504097, 0, board_1543504095, p_1543504096.tile, tileBelow_1560281233); } - framePtr = F.prev; - return result_1291845857[0]; + return result_1543504097[0]; } -function HEX3Aanonymous_1291845860(board_1291845861, p_1291845862) { - var result_1291845863 = [[]]; +function HEX3Aanonymous_1543504100(board_1543504101, p_1543504102) { + var result_1543504103 = [[]]; - var F = {procname: "moves.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/moves.nim", line: 0}; - framePtr = F; - F.line = 86; - F.filename = "moves.nim"; - var _ = addIfTake_1291845739(result_1291845863, 0, board_1291845861, p_1291845862, p_1291845862.tile, shooterFactory_1308622968(1, 1), false, false); - F.line = 87; - var _ = addIfTake_1291845739(result_1291845863, 0, board_1291845861, p_1291845862, p_1291845862.tile, shooterFactory_1308622968((-1), 1), false, false); - framePtr = F.prev; + var _ = addIfTake_1543503979(result_1543504103, 0, board_1543504101, p_1543504102, p_1543504102.tile, shooterFactory_1560281208(1, 1), false, false); + var _ = addIfTake_1543503979(result_1543504103, 0, board_1543504101, p_1543504102, p_1543504102.tile, shooterFactory_1560281208((-1), 1), false, false); - return result_1291845863[0]; + return result_1543504103[0]; } -function startingState_1275068775() { - var result_1275068776 = {Field0: ({nextIndex: 0, nextGroup: 0, randSeed: 0, turnNumber: 0}), Field1: [({abilityTakes: 0, hasCastled: false, dna: [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], transforms: [[], [], [], [], [], [], [], []], wallet: ({val: 0, has: false}), buys: [], piecesSold: 0, piecesSoldThisTurn: 0, glass: [({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false})]}), ({abilityTakes: 0, hasCastled: false, dna: [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], transforms: [[], [], [], [], [], [], [], []], wallet: ({val: 0, has: false}), buys: [], piecesSold: 0, piecesSoldThisTurn: 0, glass: [({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false})]})]}; +function startingState_1526727015() { + var result_1526727016 = {Field0: ({nextIndex: 0, nextGroup: 0, randSeed: 0, turnNumber: 0}), Field1: [({abilityTakes: 0, hasCastled: false, dna: [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], transforms: [[], [], [], [], [], [], [], []], wallet: ({val: 0, has: false}), buys: [], piecesSold: 0, piecesSoldThisTurn: 0, glass: [({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false})]}), ({abilityTakes: 0, hasCastled: false, dna: [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], transforms: [[], [], [], [], [], [], [], []], wallet: ({val: 0, has: false}), buys: [], piecesSold: 0, piecesSoldThisTurn: 0, glass: [({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false})]})]}; - var F = {procname: "basePieces.startingState", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/basePieces.nim", line: 0}; - framePtr = F; - F.line = 115; - F.filename = "basePieces.nim"; - result_1275068776.Field0 = nimCopy(result_1275068776.Field0, {nextIndex: 1, nextGroup: 1, randSeed: 0, turnNumber: 0}, NTI1224736796); - F.line = 116; - result_1275068776.Field1 = nimCopy(result_1275068776.Field1, [{abilityTakes: 0, hasCastled: false, dna: arrayWith_1275068777({timesMoved: 0, piecesTaken: 0, tile: nimCopy(null, {Field0: (-1), Field1: (-1)}, NTI1224736771), promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, item: 0, color: 0, index: 0, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], casts: []}), wallet: {val: 0, has: false}, buys: [], piecesSold: 0, piecesSoldThisTurn: 0, glass: [{val: {Field0: 0, Field1: {Field0: null, Field1: null}, Field2: {Field0: null, Field1: null}}, has: false}, {val: {Field0: 0, Field1: {Field0: null, Field1: null}, Field2: {Field0: null, Field1: null}}, has: false}, {val: {Field0: 0, Field1: {Field0: null, Field1: null}, Field2: {Field0: null, Field1: null}}, has: false}, {val: {Field0: 0, Field1: {Field0: null, Field1: null}, Field2: {Field0: null, Field1: null}}, has: false}, {val: {Field0: 0, Field1: {Field0: null, Field1: null}, Field2: {Field0: null, Field1: null}}, has: false}], transforms: [[], [], [], [], [], [], [], []]}, {abilityTakes: 0, hasCastled: false, dna: arrayWith_1275068777({timesMoved: 0, piecesTaken: 0, tile: nimCopy(null, {Field0: (-1), Field1: (-1)}, NTI1224736771), promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, item: 0, color: 0, index: 0, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], casts: []}), wallet: {val: 0, has: false}, buys: [], piecesSold: 0, piecesSoldThisTurn: 0, glass: [{val: {Field0: 0, Field1: {Field0: null, Field1: null}, Field2: {Field0: null, Field1: null}}, has: false}, {val: {Field0: 0, Field1: {Field0: null, Field1: null}, Field2: {Field0: null, Field1: null}}, has: false}, {val: {Field0: 0, Field1: {Field0: null, Field1: null}, Field2: {Field0: null, Field1: null}}, has: false}, {val: {Field0: 0, Field1: {Field0: null, Field1: null}, Field2: {Field0: null, Field1: null}}, has: false}, {val: {Field0: 0, Field1: {Field0: null, Field1: null}, Field2: {Field0: null, Field1: null}}, has: false}], transforms: [[], [], [], [], [], [], [], []]}], NTI1224736855); - F.line = 118; - result_1275068776.Field1[chckIndx(1, 0, (result_1275068776.Field1).length - 1)].dna = nimCopy(result_1275068776.Field1[chckIndx(1, 0, (result_1275068776.Field1).length - 1)].dna, [{item: 0, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1291845865], takes: [HEX3Aanonymous_1291845880, HEX3Aanonymous_1291845895], onMove: HEX3Aanonymous_1224737631, onTake: HEX3Aanonymous_1224737642, whenTaken: HEX3Aanonymous_1224737604, onEndTurn: [HEX3Aanonymous_1224737210], onPromote: [HEX3Aanonymous_1224737210], promoted: false, filePath: [107,105,110,103,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 1, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1291846030, HEX3Aanonymous_1291845988, HEX3Aanonymous_1291845865], takes: [HEX3Aanonymous_1291846051, HEX3Aanonymous_1291846009, HEX3Aanonymous_1291845880], onMove: HEX3Aanonymous_1224737631, onTake: HEX3Aanonymous_1224737642, whenTaken: HEX3Aanonymous_1224737604, onEndTurn: [HEX3Aanonymous_1224737210], onPromote: [HEX3Aanonymous_1224737210], promoted: false, filePath: [113,117,101,101,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 2, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1291846030], takes: [HEX3Aanonymous_1291846051], onMove: HEX3Aanonymous_1224737631, onTake: HEX3Aanonymous_1224737642, whenTaken: HEX3Aanonymous_1224737604, onEndTurn: [HEX3Aanonymous_1224737210], onPromote: [HEX3Aanonymous_1224737210], promoted: false, filePath: [98,105,115,104,111,112,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1291845827], takes: [HEX3Aanonymous_1291845849], onMove: HEX3Aanonymous_1224737631, onTake: HEX3Aanonymous_1224737642, whenTaken: HEX3Aanonymous_1224737604, onEndTurn: [HEX3Aanonymous_1275068598], onPromote: [HEX3Aanonymous_1275068592], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 4, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1291845988], takes: [HEX3Aanonymous_1291846009], onMove: HEX3Aanonymous_1224737631, onTake: HEX3Aanonymous_1224737642, whenTaken: HEX3Aanonymous_1275068419, onEndTurn: [HEX3Aanonymous_1224737210], onPromote: [HEX3Aanonymous_1224737210], promoted: false, filePath: [114,111,111,107,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 4, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1291845988], takes: [HEX3Aanonymous_1291846009], onMove: HEX3Aanonymous_1224737631, onTake: HEX3Aanonymous_1224737642, whenTaken: HEX3Aanonymous_1275068419, onEndTurn: [HEX3Aanonymous_1224737210], onPromote: [HEX3Aanonymous_1224737210], promoted: false, filePath: [114,111,111,107,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}], NTI1224736857); - F.line = 129; - result_1275068776.Field1[chckIndx(0, 0, (result_1275068776.Field1).length - 1)].dna = nimCopy(result_1275068776.Field1[chckIndx(0, 0, (result_1275068776.Field1).length - 1)].dna, [{item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1291845865], takes: [HEX3Aanonymous_1291845880, HEX3Aanonymous_1291845895], onMove: HEX3Aanonymous_1224737631, onTake: HEX3Aanonymous_1224737642, whenTaken: HEX3Aanonymous_1224737604, onEndTurn: [HEX3Aanonymous_1224737210], onPromote: [HEX3Aanonymous_1224737210], promoted: false, filePath: [107,105,110,103,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 1, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1291846030, HEX3Aanonymous_1291845988, HEX3Aanonymous_1291845865], takes: [HEX3Aanonymous_1291846051, HEX3Aanonymous_1291846009, HEX3Aanonymous_1291845880], onMove: HEX3Aanonymous_1224737631, onTake: HEX3Aanonymous_1224737642, whenTaken: HEX3Aanonymous_1224737604, onEndTurn: [HEX3Aanonymous_1224737210], onPromote: [HEX3Aanonymous_1224737210], promoted: false, filePath: [113,117,101,101,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 2, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1291846030], takes: [HEX3Aanonymous_1291846051], onMove: HEX3Aanonymous_1224737631, onTake: HEX3Aanonymous_1224737642, whenTaken: HEX3Aanonymous_1224737604, onEndTurn: [HEX3Aanonymous_1224737210], onPromote: [HEX3Aanonymous_1224737210], promoted: false, filePath: [98,105,115,104,111,112,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1291845854], takes: [HEX3Aanonymous_1291845860], onMove: HEX3Aanonymous_1224737631, onTake: HEX3Aanonymous_1224737642, whenTaken: HEX3Aanonymous_1224737604, onEndTurn: [HEX3Aanonymous_1275068598], onPromote: [HEX3Aanonymous_1275068592], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 4, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1291845988], takes: [HEX3Aanonymous_1291846009], onMove: HEX3Aanonymous_1224737631, onTake: HEX3Aanonymous_1224737642, whenTaken: HEX3Aanonymous_1275068419, onEndTurn: [HEX3Aanonymous_1224737210], onPromote: [HEX3Aanonymous_1224737210], promoted: false, filePath: [114,111,111,107,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 4, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1291845988], takes: [HEX3Aanonymous_1291846009], onMove: HEX3Aanonymous_1224737631, onTake: HEX3Aanonymous_1224737642, whenTaken: HEX3Aanonymous_1275068419, onEndTurn: [HEX3Aanonymous_1224737210], onPromote: [HEX3Aanonymous_1224737210], promoted: false, filePath: [114,111,111,107,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}], NTI1224736857); - framePtr = F.prev; + result_1526727016.Field0 = nimCopy(result_1526727016.Field0, {nextIndex: 1, nextGroup: 1, randSeed: 0, turnNumber: 0}, NTI1476395036); + result_1526727016.Field1 = nimCopy(result_1526727016.Field1, [{abilityTakes: 0, hasCastled: false, dna: arrayWith_1526727017({timesMoved: 0, piecesTaken: 0, tile: nimCopy(null, {Field0: (-1), Field1: (-1)}, NTI1476395011), promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, item: 0, color: 0, index: 0, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], casts: []}), wallet: {val: 0, has: false}, buys: [], piecesSold: 0, piecesSoldThisTurn: 0, glass: [{val: {Field0: 0, Field1: {Field0: null, Field1: null}, Field2: {Field0: null, Field1: null}}, has: false}, {val: {Field0: 0, Field1: {Field0: null, Field1: null}, Field2: {Field0: null, Field1: null}}, has: false}, {val: {Field0: 0, Field1: {Field0: null, Field1: null}, Field2: {Field0: null, Field1: null}}, has: false}, {val: {Field0: 0, Field1: {Field0: null, Field1: null}, Field2: {Field0: null, Field1: null}}, has: false}, {val: {Field0: 0, Field1: {Field0: null, Field1: null}, Field2: {Field0: null, Field1: null}}, has: false}], transforms: [[], [], [], [], [], [], [], []]}, {abilityTakes: 0, hasCastled: false, dna: arrayWith_1526727017({timesMoved: 0, piecesTaken: 0, tile: nimCopy(null, {Field0: (-1), Field1: (-1)}, NTI1476395011), promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, item: 0, color: 0, index: 0, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], casts: []}), wallet: {val: 0, has: false}, buys: [], piecesSold: 0, piecesSoldThisTurn: 0, glass: [{val: {Field0: 0, Field1: {Field0: null, Field1: null}, Field2: {Field0: null, Field1: null}}, has: false}, {val: {Field0: 0, Field1: {Field0: null, Field1: null}, Field2: {Field0: null, Field1: null}}, has: false}, {val: {Field0: 0, Field1: {Field0: null, Field1: null}, Field2: {Field0: null, Field1: null}}, has: false}, {val: {Field0: 0, Field1: {Field0: null, Field1: null}, Field2: {Field0: null, Field1: null}}, has: false}, {val: {Field0: 0, Field1: {Field0: null, Field1: null}, Field2: {Field0: null, Field1: null}}, has: false}], transforms: [[], [], [], [], [], [], [], []]}], NTI1476395095); + result_1526727016.Field1[chckIndx(1, 0, (result_1526727016.Field1).length - 1)].dna = nimCopy(result_1526727016.Field1[chckIndx(1, 0, (result_1526727016.Field1).length - 1)].dna, [{item: 0, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504105], takes: [HEX3Aanonymous_1543504120, HEX3Aanonymous_1543504135], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1476395450], onPromote: [HEX3Aanonymous_1476395450], promoted: false, filePath: [107,105,110,103,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 1, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504270, HEX3Aanonymous_1543504228, HEX3Aanonymous_1543504105], takes: [HEX3Aanonymous_1543504291, HEX3Aanonymous_1543504249, HEX3Aanonymous_1543504120], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1476395450], onPromote: [HEX3Aanonymous_1476395450], promoted: false, filePath: [113,117,101,101,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 2, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504270], takes: [HEX3Aanonymous_1543504291], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1476395450], onPromote: [HEX3Aanonymous_1476395450], promoted: false, filePath: [98,105,115,104,111,112,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504067], takes: [HEX3Aanonymous_1543504089], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1526726838], onPromote: [HEX3Aanonymous_1526726832], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 4, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504228], takes: [HEX3Aanonymous_1543504249], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1526726659, onEndTurn: [HEX3Aanonymous_1476395450], onPromote: [HEX3Aanonymous_1476395450], promoted: false, filePath: [114,111,111,107,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 4, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504228], takes: [HEX3Aanonymous_1543504249], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1526726659, onEndTurn: [HEX3Aanonymous_1476395450], onPromote: [HEX3Aanonymous_1476395450], promoted: false, filePath: [114,111,111,107,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}], NTI1476395097); + result_1526727016.Field1[chckIndx(0, 0, (result_1526727016.Field1).length - 1)].dna = nimCopy(result_1526727016.Field1[chckIndx(0, 0, (result_1526727016.Field1).length - 1)].dna, [{item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504105], takes: [HEX3Aanonymous_1543504120, HEX3Aanonymous_1543504135], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1476395450], onPromote: [HEX3Aanonymous_1476395450], promoted: false, filePath: [107,105,110,103,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 1, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504270, HEX3Aanonymous_1543504228, HEX3Aanonymous_1543504105], takes: [HEX3Aanonymous_1543504291, HEX3Aanonymous_1543504249, HEX3Aanonymous_1543504120], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1476395450], onPromote: [HEX3Aanonymous_1476395450], promoted: false, filePath: [113,117,101,101,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 2, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504270], takes: [HEX3Aanonymous_1543504291], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1476395450], onPromote: [HEX3Aanonymous_1476395450], promoted: false, filePath: [98,105,115,104,111,112,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504094], takes: [HEX3Aanonymous_1543504100], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1526726838], onPromote: [HEX3Aanonymous_1526726832], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 4, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504228], takes: [HEX3Aanonymous_1543504249], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1526726659, onEndTurn: [HEX3Aanonymous_1476395450], onPromote: [HEX3Aanonymous_1476395450], promoted: false, filePath: [114,111,111,107,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 4, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504228], takes: [HEX3Aanonymous_1543504249], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1526726659, onEndTurn: [HEX3Aanonymous_1476395450], onPromote: [HEX3Aanonymous_1476395450], promoted: false, filePath: [114,111,111,107,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}], NTI1476395097); - return result_1275068776; + return result_1526727016; } -function startingBoard_1275068644(state_1275068645) { - var result_1275068646 = [[({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})]]; +function startingBoard_1526726884(state_1526726885) { + var result_1526726886 = [[({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})]]; - var F = {procname: "basePieces.startingBoard", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/basePieces.nim", line: 0}; - framePtr = F; - F.line = 88; - F.filename = "basePieces.nim"; - result_1275068646 = nimCopy(result_1275068646, [[{item: 4, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1291845988], takes: [HEX3Aanonymous_1291846009], onMove: HEX3Aanonymous_1224737631, onTake: HEX3Aanonymous_1224737642, whenTaken: HEX3Aanonymous_1275068419, onEndTurn: [HEX3Aanonymous_1224737210], onPromote: [HEX3Aanonymous_1224737210], promoted: false, filePath: [114,111,111,107,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 5, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1291846082], takes: [HEX3Aanonymous_1291846087], onMove: HEX3Aanonymous_1224737631, onTake: HEX3Aanonymous_1224737642, whenTaken: HEX3Aanonymous_1224737604, onEndTurn: [HEX3Aanonymous_1224737210], onPromote: [HEX3Aanonymous_1224737210], promoted: false, filePath: [107,110,105,103,104,116,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 2, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1291846030], takes: [HEX3Aanonymous_1291846051], onMove: HEX3Aanonymous_1224737631, onTake: HEX3Aanonymous_1224737642, whenTaken: HEX3Aanonymous_1224737604, onEndTurn: [HEX3Aanonymous_1224737210], onPromote: [HEX3Aanonymous_1224737210], promoted: false, filePath: [98,105,115,104,111,112,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 1, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1291846030, HEX3Aanonymous_1291845988, HEX3Aanonymous_1291845865], takes: [HEX3Aanonymous_1291846051, HEX3Aanonymous_1291846009, HEX3Aanonymous_1291845880], onMove: HEX3Aanonymous_1224737631, onTake: HEX3Aanonymous_1224737642, whenTaken: HEX3Aanonymous_1224737604, onEndTurn: [HEX3Aanonymous_1224737210], onPromote: [HEX3Aanonymous_1224737210], promoted: false, filePath: [113,117,101,101,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1291845865], takes: [HEX3Aanonymous_1291845880, HEX3Aanonymous_1291845895], onMove: HEX3Aanonymous_1224737631, onTake: HEX3Aanonymous_1224737642, whenTaken: HEX3Aanonymous_1224737604, onEndTurn: [HEX3Aanonymous_1224737210], onPromote: [HEX3Aanonymous_1224737210], promoted: false, filePath: [107,105,110,103,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 2, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1291846030], takes: [HEX3Aanonymous_1291846051], onMove: HEX3Aanonymous_1224737631, onTake: HEX3Aanonymous_1224737642, whenTaken: HEX3Aanonymous_1224737604, onEndTurn: [HEX3Aanonymous_1224737210], onPromote: [HEX3Aanonymous_1224737210], promoted: false, filePath: [98,105,115,104,111,112,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 5, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1291846082], takes: [HEX3Aanonymous_1291846087], onMove: HEX3Aanonymous_1224737631, onTake: HEX3Aanonymous_1224737642, whenTaken: HEX3Aanonymous_1224737604, onEndTurn: [HEX3Aanonymous_1224737210], onPromote: [HEX3Aanonymous_1224737210], promoted: false, filePath: [107,110,105,103,104,116,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 4, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1291845988], takes: [HEX3Aanonymous_1291846009], onMove: HEX3Aanonymous_1224737631, onTake: HEX3Aanonymous_1224737642, whenTaken: HEX3Aanonymous_1275068419, onEndTurn: [HEX3Aanonymous_1224737210], onPromote: [HEX3Aanonymous_1224737210], promoted: false, filePath: [114,111,111,107,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}], [{item: 3, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1291845854], takes: [HEX3Aanonymous_1291845860], onMove: HEX3Aanonymous_1224737631, onTake: HEX3Aanonymous_1224737642, whenTaken: HEX3Aanonymous_1224737604, onEndTurn: [HEX3Aanonymous_1275068598], onPromote: [HEX3Aanonymous_1275068592], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1291845854], takes: [HEX3Aanonymous_1291845860], onMove: HEX3Aanonymous_1224737631, onTake: HEX3Aanonymous_1224737642, whenTaken: HEX3Aanonymous_1224737604, onEndTurn: [HEX3Aanonymous_1275068598], onPromote: [HEX3Aanonymous_1275068592], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1291845854], takes: [HEX3Aanonymous_1291845860], onMove: HEX3Aanonymous_1224737631, onTake: HEX3Aanonymous_1224737642, whenTaken: HEX3Aanonymous_1224737604, onEndTurn: [HEX3Aanonymous_1275068598], onPromote: [HEX3Aanonymous_1275068592], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1291845854], takes: [HEX3Aanonymous_1291845860], onMove: HEX3Aanonymous_1224737631, onTake: HEX3Aanonymous_1224737642, whenTaken: HEX3Aanonymous_1224737604, onEndTurn: [HEX3Aanonymous_1275068598], onPromote: [HEX3Aanonymous_1275068592], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1291845854], takes: [HEX3Aanonymous_1291845860], onMove: HEX3Aanonymous_1224737631, onTake: HEX3Aanonymous_1224737642, whenTaken: HEX3Aanonymous_1224737604, onEndTurn: [HEX3Aanonymous_1275068598], onPromote: [HEX3Aanonymous_1275068592], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1291845854], takes: [HEX3Aanonymous_1291845860], onMove: HEX3Aanonymous_1224737631, onTake: HEX3Aanonymous_1224737642, whenTaken: HEX3Aanonymous_1224737604, onEndTurn: [HEX3Aanonymous_1275068598], onPromote: [HEX3Aanonymous_1275068592], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1291845854], takes: [HEX3Aanonymous_1291845860], onMove: HEX3Aanonymous_1224737631, onTake: HEX3Aanonymous_1224737642, whenTaken: HEX3Aanonymous_1224737604, onEndTurn: [HEX3Aanonymous_1275068598], onPromote: [HEX3Aanonymous_1275068592], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1291845854], takes: [HEX3Aanonymous_1291845860], onMove: HEX3Aanonymous_1224737631, onTake: HEX3Aanonymous_1224737642, whenTaken: HEX3Aanonymous_1224737604, onEndTurn: [HEX3Aanonymous_1275068598], onPromote: [HEX3Aanonymous_1275068592], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}], [{item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}], [{item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}], [{item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}], [{item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}], [{item: 3, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1291845827], takes: [HEX3Aanonymous_1291845849], onMove: HEX3Aanonymous_1224737631, onTake: HEX3Aanonymous_1224737642, whenTaken: HEX3Aanonymous_1224737604, onEndTurn: [HEX3Aanonymous_1275068598], onPromote: [HEX3Aanonymous_1275068592], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1291845827], takes: [HEX3Aanonymous_1291845849], onMove: HEX3Aanonymous_1224737631, onTake: HEX3Aanonymous_1224737642, whenTaken: HEX3Aanonymous_1224737604, onEndTurn: [HEX3Aanonymous_1275068598], onPromote: [HEX3Aanonymous_1275068592], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1291845827], takes: [HEX3Aanonymous_1291845849], onMove: HEX3Aanonymous_1224737631, onTake: HEX3Aanonymous_1224737642, whenTaken: HEX3Aanonymous_1224737604, onEndTurn: [HEX3Aanonymous_1275068598], onPromote: [HEX3Aanonymous_1275068592], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1291845827], takes: [HEX3Aanonymous_1291845849], onMove: HEX3Aanonymous_1224737631, onTake: HEX3Aanonymous_1224737642, whenTaken: HEX3Aanonymous_1224737604, onEndTurn: [HEX3Aanonymous_1275068598], onPromote: [HEX3Aanonymous_1275068592], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1291845827], takes: [HEX3Aanonymous_1291845849], onMove: HEX3Aanonymous_1224737631, onTake: HEX3Aanonymous_1224737642, whenTaken: HEX3Aanonymous_1224737604, onEndTurn: [HEX3Aanonymous_1275068598], onPromote: [HEX3Aanonymous_1275068592], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1291845827], takes: [HEX3Aanonymous_1291845849], onMove: HEX3Aanonymous_1224737631, onTake: HEX3Aanonymous_1224737642, whenTaken: HEX3Aanonymous_1224737604, onEndTurn: [HEX3Aanonymous_1275068598], onPromote: [HEX3Aanonymous_1275068592], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1291845827], takes: [HEX3Aanonymous_1291845849], onMove: HEX3Aanonymous_1224737631, onTake: HEX3Aanonymous_1224737642, whenTaken: HEX3Aanonymous_1224737604, onEndTurn: [HEX3Aanonymous_1275068598], onPromote: [HEX3Aanonymous_1275068592], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1291845827], takes: [HEX3Aanonymous_1291845849], onMove: HEX3Aanonymous_1224737631, onTake: HEX3Aanonymous_1224737642, whenTaken: HEX3Aanonymous_1224737604, onEndTurn: [HEX3Aanonymous_1275068598], onPromote: [HEX3Aanonymous_1275068592], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}], [{item: 4, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1291845988], takes: [HEX3Aanonymous_1291846009], onMove: HEX3Aanonymous_1224737631, onTake: HEX3Aanonymous_1224737642, whenTaken: HEX3Aanonymous_1275068419, onEndTurn: [HEX3Aanonymous_1224737210], onPromote: [HEX3Aanonymous_1224737210], promoted: false, filePath: [114,111,111,107,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 5, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1291846082], takes: [HEX3Aanonymous_1291846087], onMove: HEX3Aanonymous_1224737631, onTake: HEX3Aanonymous_1224737642, whenTaken: HEX3Aanonymous_1224737604, onEndTurn: [HEX3Aanonymous_1224737210], onPromote: [HEX3Aanonymous_1224737210], promoted: false, filePath: [107,110,105,103,104,116,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 2, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1291846030], takes: [HEX3Aanonymous_1291846051], onMove: HEX3Aanonymous_1224737631, onTake: HEX3Aanonymous_1224737642, whenTaken: HEX3Aanonymous_1224737604, onEndTurn: [HEX3Aanonymous_1224737210], onPromote: [HEX3Aanonymous_1224737210], promoted: false, filePath: [98,105,115,104,111,112,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 1, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1291846030, HEX3Aanonymous_1291845988, HEX3Aanonymous_1291845865], takes: [HEX3Aanonymous_1291846051, HEX3Aanonymous_1291846009, HEX3Aanonymous_1291845880], onMove: HEX3Aanonymous_1224737631, onTake: HEX3Aanonymous_1224737642, whenTaken: HEX3Aanonymous_1224737604, onEndTurn: [HEX3Aanonymous_1224737210], onPromote: [HEX3Aanonymous_1224737210], promoted: false, filePath: [113,117,101,101,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 0, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1291845865], takes: [HEX3Aanonymous_1291845880, HEX3Aanonymous_1291845895], onMove: HEX3Aanonymous_1224737631, onTake: HEX3Aanonymous_1224737642, whenTaken: HEX3Aanonymous_1224737604, onEndTurn: [HEX3Aanonymous_1224737210], onPromote: [HEX3Aanonymous_1224737210], promoted: false, filePath: [107,105,110,103,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 2, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1291846030], takes: [HEX3Aanonymous_1291846051], onMove: HEX3Aanonymous_1224737631, onTake: HEX3Aanonymous_1224737642, whenTaken: HEX3Aanonymous_1224737604, onEndTurn: [HEX3Aanonymous_1224737210], onPromote: [HEX3Aanonymous_1224737210], promoted: false, filePath: [98,105,115,104,111,112,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 5, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1291846082], takes: [HEX3Aanonymous_1291846087], onMove: HEX3Aanonymous_1224737631, onTake: HEX3Aanonymous_1224737642, whenTaken: HEX3Aanonymous_1224737604, onEndTurn: [HEX3Aanonymous_1224737210], onPromote: [HEX3Aanonymous_1224737210], promoted: false, filePath: [107,110,105,103,104,116,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 4, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1291845988], takes: [HEX3Aanonymous_1291846009], onMove: HEX3Aanonymous_1224737631, onTake: HEX3Aanonymous_1224737642, whenTaken: HEX3Aanonymous_1275068419, onEndTurn: [HEX3Aanonymous_1224737210], onPromote: [HEX3Aanonymous_1224737210], promoted: false, filePath: [114,111,111,107,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}]], NTI1224736773); + result_1526726886 = nimCopy(result_1526726886, [[{item: 4, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504228], takes: [HEX3Aanonymous_1543504249], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1526726659, onEndTurn: [HEX3Aanonymous_1476395450], onPromote: [HEX3Aanonymous_1476395450], promoted: false, filePath: [114,111,111,107,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 5, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504322], takes: [HEX3Aanonymous_1543504327], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1476395450], onPromote: [HEX3Aanonymous_1476395450], promoted: false, filePath: [107,110,105,103,104,116,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 2, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504270], takes: [HEX3Aanonymous_1543504291], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1476395450], onPromote: [HEX3Aanonymous_1476395450], promoted: false, filePath: [98,105,115,104,111,112,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 1, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504270, HEX3Aanonymous_1543504228, HEX3Aanonymous_1543504105], takes: [HEX3Aanonymous_1543504291, HEX3Aanonymous_1543504249, HEX3Aanonymous_1543504120], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1476395450], onPromote: [HEX3Aanonymous_1476395450], promoted: false, filePath: [113,117,101,101,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504105], takes: [HEX3Aanonymous_1543504120, HEX3Aanonymous_1543504135], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1476395450], onPromote: [HEX3Aanonymous_1476395450], promoted: false, filePath: [107,105,110,103,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 2, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504270], takes: [HEX3Aanonymous_1543504291], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1476395450], onPromote: [HEX3Aanonymous_1476395450], promoted: false, filePath: [98,105,115,104,111,112,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 5, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504322], takes: [HEX3Aanonymous_1543504327], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1476395450], onPromote: [HEX3Aanonymous_1476395450], promoted: false, filePath: [107,110,105,103,104,116,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 4, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504228], takes: [HEX3Aanonymous_1543504249], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1526726659, onEndTurn: [HEX3Aanonymous_1476395450], onPromote: [HEX3Aanonymous_1476395450], promoted: false, filePath: [114,111,111,107,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}], [{item: 3, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504094], takes: [HEX3Aanonymous_1543504100], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1526726838], onPromote: [HEX3Aanonymous_1526726832], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504094], takes: [HEX3Aanonymous_1543504100], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1526726838], onPromote: [HEX3Aanonymous_1526726832], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504094], takes: [HEX3Aanonymous_1543504100], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1526726838], onPromote: [HEX3Aanonymous_1526726832], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504094], takes: [HEX3Aanonymous_1543504100], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1526726838], onPromote: [HEX3Aanonymous_1526726832], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504094], takes: [HEX3Aanonymous_1543504100], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1526726838], onPromote: [HEX3Aanonymous_1526726832], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504094], takes: [HEX3Aanonymous_1543504100], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1526726838], onPromote: [HEX3Aanonymous_1526726832], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504094], takes: [HEX3Aanonymous_1543504100], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1526726838], onPromote: [HEX3Aanonymous_1526726832], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504094], takes: [HEX3Aanonymous_1543504100], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1526726838], onPromote: [HEX3Aanonymous_1526726832], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}], [{item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}], [{item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}], [{item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}], [{item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}], [{item: 3, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504067], takes: [HEX3Aanonymous_1543504089], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1526726838], onPromote: [HEX3Aanonymous_1526726832], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504067], takes: [HEX3Aanonymous_1543504089], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1526726838], onPromote: [HEX3Aanonymous_1526726832], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504067], takes: [HEX3Aanonymous_1543504089], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1526726838], onPromote: [HEX3Aanonymous_1526726832], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504067], takes: [HEX3Aanonymous_1543504089], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1526726838], onPromote: [HEX3Aanonymous_1526726832], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504067], takes: [HEX3Aanonymous_1543504089], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1526726838], onPromote: [HEX3Aanonymous_1526726832], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504067], takes: [HEX3Aanonymous_1543504089], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1526726838], onPromote: [HEX3Aanonymous_1526726832], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504067], takes: [HEX3Aanonymous_1543504089], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1526726838], onPromote: [HEX3Aanonymous_1526726832], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504067], takes: [HEX3Aanonymous_1543504089], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1526726838], onPromote: [HEX3Aanonymous_1526726832], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}], [{item: 4, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504228], takes: [HEX3Aanonymous_1543504249], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1526726659, onEndTurn: [HEX3Aanonymous_1476395450], onPromote: [HEX3Aanonymous_1476395450], promoted: false, filePath: [114,111,111,107,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 5, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504322], takes: [HEX3Aanonymous_1543504327], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1476395450], onPromote: [HEX3Aanonymous_1476395450], promoted: false, filePath: [107,110,105,103,104,116,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 2, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504270], takes: [HEX3Aanonymous_1543504291], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1476395450], onPromote: [HEX3Aanonymous_1476395450], promoted: false, filePath: [98,105,115,104,111,112,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 1, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504270, HEX3Aanonymous_1543504228, HEX3Aanonymous_1543504105], takes: [HEX3Aanonymous_1543504291, HEX3Aanonymous_1543504249, HEX3Aanonymous_1543504120], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1476395450], onPromote: [HEX3Aanonymous_1476395450], promoted: false, filePath: [113,117,101,101,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 0, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504105], takes: [HEX3Aanonymous_1543504120, HEX3Aanonymous_1543504135], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1476395450], onPromote: [HEX3Aanonymous_1476395450], promoted: false, filePath: [107,105,110,103,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 2, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504270], takes: [HEX3Aanonymous_1543504291], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1476395450], onPromote: [HEX3Aanonymous_1476395450], promoted: false, filePath: [98,105,115,104,111,112,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 5, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504322], takes: [HEX3Aanonymous_1543504327], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1476395450], onPromote: [HEX3Aanonymous_1476395450], promoted: false, filePath: [107,110,105,103,104,116,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 4, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504228], takes: [HEX3Aanonymous_1543504249], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1526726659, onEndTurn: [HEX3Aanonymous_1476395450], onPromote: [HEX3Aanonymous_1476395450], promoted: false, filePath: [114,111,111,107,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}]], NTI1476395013); Label1: { - F.line = 97; - var i_1275068653 = 0; - F.line = 97; - var r_1275068654 = [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})]; - F.line = 164; - F.filename = "iterators.nim"; - var i_520100434 = 0; + var i_1526726893 = 0; + var r_1526726894 = [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})]; + var i_553654866 = 0; Label2: { - F.line = 165; Label3: while (true) { if (!true) break Label3; - F.line = 97; - F.filename = "basePieces.nim"; - i_1275068653 = i_520100434; - F.line = 97; - r_1275068654 = nimCopy(r_1275068654, result_1275068646[chckIndx(i_520100434, 0, (result_1275068646).length - 1)], NTI1224736772); + i_1526726893 = i_553654866; + r_1526726894 = nimCopy(r_1526726894, result_1526726886[chckIndx(i_553654866, 0, (result_1526726886).length - 1)], NTI1476395012); Label4: { - F.line = 98; - var j_1275068661 = 0; - F.line = 98; - var x_1275068662 = ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}); - F.line = 164; - F.filename = "iterators.nim"; - var i_520100431 = 0; + var j_1526726901 = 0; + var x_1526726902 = ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}); + var i_553654863 = 0; Label5: { - F.line = 165; Label6: while (true) { if (!true) break Label6; - F.line = 98; - F.filename = "basePieces.nim"; - j_1275068661 = i_520100431; - F.line = 98; - x_1275068662 = nimCopy(x_1275068662, r_1275068654[chckIndx(i_520100431, 0, (r_1275068654).length - 1)], NTI1224736794); - F.line = 99; - result_1275068646[chckIndx(i_1275068653, 0, (result_1275068646).length - 1)][chckIndx(j_1275068661, 0, (result_1275068646[chckIndx(i_1275068653, 0, (result_1275068646).length - 1)]).length - 1)] = nimCopy(result_1275068646[chckIndx(i_1275068653, 0, (result_1275068646).length - 1)][chckIndx(j_1275068661, 0, (result_1275068646[chckIndx(i_1275068653, 0, (result_1275068646).length - 1)]).length - 1)], pieceCopy_1224737660(x_1275068662, newIndex_1224737255(state_1275068645), x_1275068662.item, x_1275068662.color, x_1275068662.timesMoved, x_1275068662.piecesTaken, {Field0: nimCopy(null, j_1275068661, NTI1224736798), Field1: nimCopy(null, i_1275068653, NTI1224736804)}, x_1275068662.moves, x_1275068662.takes, x_1275068662.onMove, x_1275068662.onTake, x_1275068662.whenTaken, x_1275068662.onEndTurn, x_1275068662.onPromote, x_1275068662.promoted, x_1275068662.filePath, x_1275068662.colorable, x_1275068662.rotate, x_1275068662.drunk), NTI1224736794); - if ((7 <= i_520100431)) { - F.line = 167; - F.filename = "iterators.nim"; + j_1526726901 = i_553654863; + x_1526726902 = nimCopy(x_1526726902, r_1526726894[chckIndx(i_553654863, 0, (r_1526726894).length - 1)], NTI1476395034); + result_1526726886[chckIndx(i_1526726893, 0, (result_1526726886).length - 1)][chckIndx(j_1526726901, 0, (result_1526726886[chckIndx(i_1526726893, 0, (result_1526726886).length - 1)]).length - 1)] = nimCopy(result_1526726886[chckIndx(i_1526726893, 0, (result_1526726886).length - 1)][chckIndx(j_1526726901, 0, (result_1526726886[chckIndx(i_1526726893, 0, (result_1526726886).length - 1)]).length - 1)], pieceCopy_1476395900(x_1526726902, newIndex_1476395495(state_1526726885), x_1526726902.item, x_1526726902.color, x_1526726902.timesMoved, x_1526726902.piecesTaken, {Field0: nimCopy(null, j_1526726901, NTI1476395038), Field1: nimCopy(null, i_1526726893, NTI1476395044)}, x_1526726902.moves, x_1526726902.takes, x_1526726902.onMove, x_1526726902.onTake, x_1526726902.whenTaken, x_1526726902.onEndTurn, x_1526726902.onPromote, x_1526726902.promoted, x_1526726902.filePath, x_1526726902.colorable, x_1526726902.rotate, x_1526726902.drunk), NTI1476395034); + if ((7 <= i_553654863)) { break Label5; } - F.line = 13; - i_520100431 += 1; + i_553654863 += 1; } }; }; - if ((7 <= i_520100434)) { - F.line = 167; + if ((7 <= i_553654866)) { break Label2; } - F.line = 13; - i_520100434 += 1; + i_553654866 += 1; } }; }; - framePtr = F.prev; - return result_1275068646; + return result_1526726886; } -function initGame_520093937() { - var F = {procname: "main.initGame", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 160; - F.filename = "main.nim"; - theState_520093826[0] = nimCopy(theState_520093826[0], startingState_1275068775(), NTI1224736795); - F.line = 161; - theBoard_520093825[0] = nimCopy(theBoard_520093825[0], startingBoard_1275068644(theState_520093826[0]), NTI1224736773); - if (false) { - F.line = 162; - theState_520093826[0].Field0.randSeed = parseInt(roomId_520093800[0].Field1, 10); +function initGame_553648369() { + theState_553648258[0] = nimCopy(theState_553648258[0], startingState_1526727015(), NTI1476395035); + theBoard_553648257[0] = nimCopy(theBoard_553648257[0], startingBoard_1526726884(theState_553648258[0]), NTI1476395013); + if (true) { + theState_553648258[0].Field0.randSeed = parseInt(roomId_553648232[0].Field1, 10); } - F.line = 163; - myDrafts_520093813[0] = nimCopy(null, [], NTI1442841214); - F.line = 164; - opponentDrafts_520093818[0] = nimCopy(null, [], NTI1442841214); - F.line = 165; - lastMove_520093844[0] = nimCopy(null, [], NTI1291845837); - F.line = 166; - piecesChecking_520093849[0] = nimCopy(null, [], NTI1291845837); - F.line = 167; - actionStack_520093877[0] = nimCopy(null, [], NTI520093829); - F.line = 168; - nextActionStack_520093882[0] = nimCopy(null, [], NTI520093829); - F.line = 169; - toSend_520093887[0] = nimCopy(null, [], NTI520093829); - F.line = 170; - promptHistory_520093892[0] = nimCopy(null, [], NTI1006632986); - F.line = 171; - promptStack_520093897[0] = nimCopy(null, [], NTI1006632986); - F.line = 172; - picksLeft_520093898[0] = 0; - F.line = 173; - picks_520093906[0] = nimCopy(null, [], NTI1291845837); - framePtr = F.prev; + myDrafts_553648245[0] = nimCopy(null, [], NTI1728053886); + opponentDrafts_553648250[0] = nimCopy(null, [], NTI1728053886); + lastMove_553648276[0] = nimCopy(null, [], NTI1543504077); + piecesChecking_553648281[0] = nimCopy(null, [], NTI1543504077); + actionStack_553648309[0] = nimCopy(null, [], NTI553648261); + nextActionStack_553648314[0] = nimCopy(null, [], NTI553648261); + toSend_553648319[0] = nimCopy(null, [], NTI553648261); + promptHistory_553648324[0] = nimCopy(null, [], NTI1090519066); + promptStack_553648329[0] = nimCopy(null, [], NTI1090519066); + picksLeft_553648330[0] = 0; + picks_553648338[0] = nimCopy(null, [], NTI1543504077); } -function newSeq_1442841126(len_1442841128) { - var result_1442841129 = []; +function newSeq_1728053798(len_1728053800) { + var result_1728053801 = []; - var F = {procname: "newSeq.newSeq", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; - F.line = 633; - F.filename = "system.nim"; - result_1442841129 = new Array(len_1442841128); for (var i = 0 ; i < len_1442841128 ; ++i) { result_1442841129[i] = {Field0: ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}), Field1: 0, Field2: [], Field3: []}; } framePtr = F.prev; - - return result_1442841129; + result_1728053801 = new Array(len_1728053800); for (var i = 0 ; i < len_1728053800 ; ++i) { result_1728053801[i] = {Field0: ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}), Field1: 0, Field2: [], Field3: []}; } + return result_1728053801; } -function HEX2A_989855752(x_989855753, order_989855754) { - var result_989855755 = 0; +function HEX2A_1073741832(x_1073741833, order_1073741834) { + var result_1073741835 = 0; - var F = {procname: "algorithm.*", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/algorithm.nim", line: 0}; - framePtr = F; - F.line = 68; - F.filename = "algorithm.nim"; - var y_989855760 = subInt(order_989855754, 1); - F.line = 69; - result_989855755 = subInt((x_989855753 ^ y_989855760), y_989855760); - framePtr = F.prev; + var y_1073741840 = subInt(order_1073741834, 1); + result_1073741835 = subInt((x_1073741833 ^ y_1073741840), y_1073741840); - return result_989855755; + return result_1073741835; } -function mergeAlt_1442841159(a_1442841161, b_1442841162, lo_1442841163, m_1442841164, hi_1442841165, cmp_1442841168, order_1442841169) { - var F = {procname: "mergeAlt.mergeAlt", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/algorithm.nim", line: 0}; - framePtr = F; +function mergeAlt_1728053831(a_1728053833, b_1728053834, lo_1728053835, m_1728053836, hi_1728053837, cmp_1728053840, order_1728053841) { BeforeRet: { - if ((HEX2A_989855752(cmp_1442841168(a_1442841161[chckIndx(m_1442841164, 0, (a_1442841161).length - 1)], a_1442841161[chckIndx(addInt(m_1442841164, 1), 0, (a_1442841161).length - 1)]), order_1442841169) <= 0)) { - F.line = 335; - F.filename = "algorithm.nim"; + if ((HEX2A_1073741832(cmp_1728053840(a_1728053833[chckIndx(m_1728053836, 0, (a_1728053833).length - 1)], a_1728053833[chckIndx(addInt(m_1728053836, 1), 0, (a_1728053833).length - 1)]), order_1728053841) <= 0)) { break BeforeRet; } - F.line = 336; - var j_1442841170 = lo_1442841163; - if (!((j_1442841170 <= m_1442841164))) { - F.line = 338; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/algorithm.nim(338, 3) `j <= m` ")); + var j_1728053842 = lo_1728053835; + if (!((j_1728053842 <= m_1728053836))) { + failedAssertImpl_268435541([97,108,103,111,114,105,116,104,109,46,110,105,109,40,51,51,56,44,32,51,41,32,96,106,32,60,61,32,109,96,32]); } - F.line = 340; - var bb_1442841176 = 0; + var bb_1728053848 = 0; Label1: { - F.line = 341; Label2: while (true) { - if (!(j_1442841170 <= m_1442841164)) break Label2; - F.line = 342; - b_1442841162[chckIndx(bb_1442841176, 0, (b_1442841162).length - 1)] = nimCopy(b_1442841162[chckIndx(bb_1442841176, 0, (b_1442841162).length - 1)], a_1442841161[chckIndx(j_1442841170, 0, (a_1442841161).length - 1)], NTI1442840582); - F.line = 343; - bb_1442841176 = addInt(bb_1442841176, 1); - F.line = 344; - j_1442841170 = addInt(j_1442841170, 1); + if (!(j_1728053842 <= m_1728053836)) break Label2; + b_1728053834[chckIndx(bb_1728053848, 0, (b_1728053834).length - 1)] = nimCopy(b_1728053834[chckIndx(bb_1728053848, 0, (b_1728053834).length - 1)], a_1728053833[chckIndx(j_1728053842, 0, (a_1728053833).length - 1)], NTI1728053254); + bb_1728053848 = addInt(bb_1728053848, 1); + j_1728053842 = addInt(j_1728053842, 1); } }; - F.line = 348; - var i_1442841187 = 0; - F.line = 349; - var k_1442841188 = lo_1442841163; + var i_1728053859 = 0; + var k_1728053860 = lo_1728053835; Label3: { - F.line = 351; Label4: while (true) { - if (!((k_1442841188 < j_1442841170) && (j_1442841170 <= hi_1442841165))) break Label4; - if ((HEX2A_989855752(cmp_1442841168(b_1442841162[chckIndx(i_1442841187, 0, (b_1442841162).length - 1)], a_1442841161[chckIndx(j_1442841170, 0, (a_1442841161).length - 1)]), order_1442841169) <= 0)) { - F.line = 353; - a_1442841161[chckIndx(k_1442841188, 0, (a_1442841161).length - 1)] = nimCopy(a_1442841161[chckIndx(k_1442841188, 0, (a_1442841161).length - 1)], b_1442841162[chckIndx(i_1442841187, 0, (b_1442841162).length - 1)], NTI1442840582); - F.line = 354; - i_1442841187 = addInt(i_1442841187, 1); + if (!((k_1728053860 < j_1728053842) && (j_1728053842 <= hi_1728053837))) break Label4; + if ((HEX2A_1073741832(cmp_1728053840(b_1728053834[chckIndx(i_1728053859, 0, (b_1728053834).length - 1)], a_1728053833[chckIndx(j_1728053842, 0, (a_1728053833).length - 1)]), order_1728053841) <= 0)) { + a_1728053833[chckIndx(k_1728053860, 0, (a_1728053833).length - 1)] = nimCopy(a_1728053833[chckIndx(k_1728053860, 0, (a_1728053833).length - 1)], b_1728053834[chckIndx(i_1728053859, 0, (b_1728053834).length - 1)], NTI1728053254); + i_1728053859 = addInt(i_1728053859, 1); } else { - F.line = 356; - a_1442841161[chckIndx(k_1442841188, 0, (a_1442841161).length - 1)] = nimCopy(a_1442841161[chckIndx(k_1442841188, 0, (a_1442841161).length - 1)], a_1442841161[chckIndx(j_1442841170, 0, (a_1442841161).length - 1)], NTI1442840582); - F.line = 357; - j_1442841170 = addInt(j_1442841170, 1); + a_1728053833[chckIndx(k_1728053860, 0, (a_1728053833).length - 1)] = nimCopy(a_1728053833[chckIndx(k_1728053860, 0, (a_1728053833).length - 1)], a_1728053833[chckIndx(j_1728053842, 0, (a_1728053833).length - 1)], NTI1728053254); + j_1728053842 = addInt(j_1728053842, 1); } - F.line = 358; - k_1442841188 = addInt(k_1442841188, 1); + k_1728053860 = addInt(k_1728053860, 1); } }; Label5: { - F.line = 361; Label6: while (true) { - if (!(k_1442841188 < j_1442841170)) break Label6; - F.line = 362; - a_1442841161[chckIndx(k_1442841188, 0, (a_1442841161).length - 1)] = nimCopy(a_1442841161[chckIndx(k_1442841188, 0, (a_1442841161).length - 1)], b_1442841162[chckIndx(i_1442841187, 0, (b_1442841162).length - 1)], NTI1442840582); - F.line = 363; - k_1442841188 = addInt(k_1442841188, 1); - F.line = 364; - i_1442841187 = addInt(i_1442841187, 1); + if (!(k_1728053860 < j_1728053842)) break Label6; + a_1728053833[chckIndx(k_1728053860, 0, (a_1728053833).length - 1)] = nimCopy(a_1728053833[chckIndx(k_1728053860, 0, (a_1728053833).length - 1)], b_1728053834[chckIndx(i_1728053859, 0, (b_1728053834).length - 1)], NTI1728053254); + k_1728053860 = addInt(k_1728053860, 1); + i_1728053859 = addInt(i_1728053859, 1); } }; }; - framePtr = F.prev; } -function sort_1442841142(a_1442841144, cmp_1442841147, order_1442841148) { - var F = {procname: "sort.sort", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/algorithm.nim", line: 0}; - framePtr = F; - F.line = 411; - F.filename = "algorithm.nim"; - var n_1442841152 = (a_1442841144).length; - F.line = 412; - var b_1442841156 = newSeq_1442841126(chckRange(divInt(n_1442841152, 2), 0, 2147483647)); - F.line = 413; - var s_1442841157 = 1; +function sort_1728053814(a_1728053816, cmp_1728053819, order_1728053820) { + var n_1728053824 = (a_1728053816).length; + var b_1728053828 = newSeq_1728053798(chckRange(divInt(n_1728053824, 2), 0, 2147483647)); + var s_1728053829 = 1; Label1: { - F.line = 414; Label2: while (true) { - if (!(s_1442841157 < n_1442841152)) break Label2; - F.line = 415; - var m_1442841158 = subInt(subInt(n_1442841152, 1), s_1442841157); + if (!(s_1728053829 < n_1728053824)) break Label2; + var m_1728053830 = subInt(subInt(n_1728053824, 1), s_1728053829); Label3: { - F.line = 416; Label4: while (true) { - if (!(0 <= m_1442841158)) break Label4; - F.line = 417; - mergeAlt_1442841159(a_1442841144, b_1442841156, nimMax(addInt(subInt(m_1442841158, s_1442841157), 1), 0), m_1442841158, addInt(m_1442841158, s_1442841157), cmp_1442841147, order_1442841148); - F.line = 418; - m_1442841158 = subInt(m_1442841158, mulInt(s_1442841157, 2)); + if (!(0 <= m_1728053830)) break Label4; + mergeAlt_1728053831(a_1728053816, b_1728053828, nimMax(addInt(subInt(m_1728053830, s_1728053829), 1), 0), m_1728053830, addInt(m_1728053830, s_1728053829), cmp_1728053819, order_1728053820); + m_1728053830 = subInt(m_1728053830, mulInt(s_1728053829, 2)); } }; - F.line = 419; - s_1442841157 = mulInt(s_1442841157, 2); + s_1728053829 = mulInt(s_1728053829, 2); } }; - framePtr = F.prev; } -function sorted_1442841114(a_1442841116, cmp_1442841119, order_1442841120) { - var result_1442841121 = []; +function sorted_1728053786(a_1728053788, cmp_1728053791, order_1728053792) { + var result_1728053793 = []; - var F = {procname: "sorted.sorted", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/algorithm.nim", line: 0}; - framePtr = F; - F.line = 448; - F.filename = "algorithm.nim"; - result_1442841121 = nimCopy(null, newSeq_1442841126(chckRange((a_1442841116).length, 0, 2147483647)), NTI1442840998); + result_1728053793 = nimCopy(null, newSeq_1728053798(chckRange((a_1728053788).length, 0, 2147483647)), NTI1728053670); Label1: { - F.line = 449; - var i_1442841141 = 0; - F.line = 81; - F.filename = "iterators_1.nim"; - var colontmp__520100460 = 0; - F.line = 449; - F.filename = "algorithm.nim"; - colontmp__520100460 = (a_1442841116).length - 1; - F.line = 96; - F.filename = "iterators_1.nim"; - var res_520100461 = 0; + var i_1728053813 = 0; + var colontmp__553654892 = 0; + colontmp__553654892 = (a_1728053788).length - 1; + var res_553654893 = 0; Label2: { - F.line = 97; Label3: while (true) { - if (!(res_520100461 <= colontmp__520100460)) break Label3; - F.line = 449; - F.filename = "algorithm.nim"; - i_1442841141 = res_520100461; - F.line = 450; - result_1442841121[chckIndx(i_1442841141, 0, (result_1442841121).length - 1)] = nimCopy(result_1442841121[chckIndx(i_1442841141, 0, (result_1442841121).length - 1)], a_1442841116[chckIndx(i_1442841141, 0, (a_1442841116).length - 1)], NTI1442840582); - F.line = 102; - F.filename = "iterators_1.nim"; - res_520100461 = addInt(res_520100461, 1); + if (!(res_553654893 <= colontmp__553654892)) break Label3; + i_1728053813 = res_553654893; + result_1728053793[chckIndx(i_1728053813, 0, (result_1728053793).length - 1)] = nimCopy(result_1728053793[chckIndx(i_1728053813, 0, (result_1728053793).length - 1)], a_1728053788[chckIndx(i_1728053813, 0, (a_1728053788).length - 1)], NTI1728053254); + res_553654893 = addInt(res_553654893, 1); } }; }; - F.line = 451; - F.filename = "algorithm.nim"; - sort_1442841142(result_1442841121, cmp_1442841119, order_1442841120); - framePtr = F.prev; + sort_1728053814(result_1728053793, cmp_1728053791, order_1728053792); - return result_1442841121; + return result_1728053793; } function cmp_33557985(x_33557987, y_33557988) { var result_33557989 = 0; - var F = {procname: "cmp.cmp", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; BeforeRet: { if ((x_33557987 == y_33557988)) { - F.line = 892; - F.filename = "system.nim"; result_33557989 = 0; break BeforeRet; } if ((x_33557987 < y_33557988)) { - F.line = 893; result_33557989 = (-1); break BeforeRet; } - F.line = 894; result_33557989 = 1; break BeforeRet; }; - framePtr = F.prev; return result_33557989; } -function find_1006633015(a_1006633018, item_1006633019) { - var result_1006633020 = 0; +function find_1090519095(a_1090519098, item_1090519099) { + var result_1090519100 = 0; - var F = {procname: "find.find", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; BeforeRet: { - F.line = 1671; - F.filename = "system.nim"; - result_1006633020 = 0; + result_1090519100 = 0; Label1: { - F.line = 1672; - var i_1006633024 = []; - F.line = 18; - F.filename = "iterators.nim"; - var i_520097555 = 0; + var i_1090519104 = []; + var i_553651987 = 0; Label2: { - F.line = 19; Label3: while (true) { - if (!(i_520097555 < (a_1006633018).length)) break Label3; - F.line = 1672; - F.filename = "system.nim"; - i_1006633024 = a_1006633018[chckIndx(i_520097555, 0, (a_1006633018).length - 1)]; - if (eqStrings(i_1006633024, item_1006633019)) { - F.line = 1673; + if (!(i_553651987 < (a_1090519098).length)) break Label3; + i_1090519104 = a_1090519098[chckIndx(i_553651987, 0, (a_1090519098).length - 1)]; + if (eqStrings(i_1090519104, item_1090519099)) { break BeforeRet; } - F.line = 1674; - result_1006633020 = addInt(result_1006633020, 1); - F.line = 13; - F.filename = "iterators.nim"; - i_520097555 += 1; + result_1090519100 = addInt(result_1090519100, 1); + i_553651987 += 1; } }; }; - F.line = 1675; - F.filename = "system.nim"; - result_1006633020 = (-1); + result_1090519100 = (-1); }; - framePtr = F.prev; - return result_1006633020; + return result_1090519100; } -function contains_1006633010(a_1006633012, item_1006633013) { - var result_1006633014 = false; +function contains_1090519090(a_1090519092, item_1090519093) { + var result_1090519094 = false; - var F = {procname: "contains.contains", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; BeforeRet: { - F.line = 1689; - F.filename = "system.nim"; - result_1006633014 = (0 <= find_1006633015(a_1006633012, item_1006633013)); + result_1090519094 = (0 <= find_1090519095(a_1090519092, item_1090519093)); break BeforeRet; }; - framePtr = F.prev; - - return result_1006633014; - -} - -function HEX26_1442841016(x_1442841018, y_1442841019) { - var result_1442841020 = []; - - var F = {procname: "&.&", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; - F.line = 1553; - F.filename = "system.nim"; - result_1442841020 = new Array(chckRange(addInt((x_1442841018).length, 1), 0, 2147483647)); for (var i = 0 ; i < chckRange(addInt((x_1442841018).length, 1), 0, 2147483647) ; ++i) { result_1442841020[i] = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); } Label1: { - F.line = 1554; - var i_1442841035 = 0; - F.line = 81; - F.filename = "iterators_1.nim"; - var colontmp__520100469 = 0; - F.line = 1554; - F.filename = "system.nim"; - colontmp__520100469 = subInt((x_1442841018).length, 1); - F.line = 96; - F.filename = "iterators_1.nim"; - var res_520100470 = 0; + + return result_1090519094; + +} + +function HEX26_1728053688(x_1728053690, y_1728053691) { + var result_1728053692 = []; + + result_1728053692 = new Array(chckRange(addInt((x_1728053690).length, 1), 0, 2147483647)); for (var i = 0 ; i < chckRange(addInt((x_1728053690).length, 1), 0, 2147483647) ; ++i) { result_1728053692[i] = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); } Label1: { + var i_1728053707 = 0; + var colontmp__553654901 = 0; + colontmp__553654901 = subInt((x_1728053690).length, 1); + var res_553654902 = 0; Label2: { - F.line = 97; Label3: while (true) { - if (!(res_520100470 <= colontmp__520100469)) break Label3; - F.line = 1554; - F.filename = "system.nim"; - i_1442841035 = res_520100470; - F.line = 1555; - result_1442841020[chckIndx(i_1442841035, 0, (result_1442841020).length - 1)] = nimCopy(result_1442841020[chckIndx(i_1442841035, 0, (result_1442841020).length - 1)], x_1442841018[chckIndx(i_1442841035, 0, (x_1442841018).length - 1)], NTI1442840581); - F.line = 102; - F.filename = "iterators_1.nim"; - res_520100470 = addInt(res_520100470, 1); + if (!(res_553654902 <= colontmp__553654901)) break Label3; + i_1728053707 = res_553654902; + result_1728053692[chckIndx(i_1728053707, 0, (result_1728053692).length - 1)] = nimCopy(result_1728053692[chckIndx(i_1728053707, 0, (result_1728053692).length - 1)], x_1728053690[chckIndx(i_1728053707, 0, (x_1728053690).length - 1)], NTI1728053253); + res_553654902 = addInt(res_553654902, 1); } }; }; - F.line = 1556; - F.filename = "system.nim"; - result_1442841020[chckIndx((x_1442841018).length, 0, (result_1442841020).length - 1)] = nimCopy(result_1442841020[chckIndx((x_1442841018).length, 0, (result_1442841020).length - 1)], y_1442841019, NTI1442840581); - framePtr = F.prev; + result_1728053692[chckIndx((x_1728053690).length, 0, (result_1728053692).length - 1)] = nimCopy(result_1728053692[chckIndx((x_1728053690).length, 0, (result_1728053692).length - 1)], y_1728053691, NTI1728053253); - return result_1442841020; + return result_1728053692; } -function secretSynergize_1442841087(currentPowers_1442841088, synergies_1442841089) { +function secretSynergize_1728053759(currentPowers_1728053760, synergies_1728053761) { -function HEX3Aanonymous_1442841096(xHEX60gensym23_1442841100, yHEX60gensym23_1442841101) { - var result_1442841102 = 0; - - var F = {procname: "secretSynergize.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/algorithm.nim", line: 0}; - framePtr = F; - F.line = 500; - F.filename = "algorithm.nim"; - var it_1442841103 = nimCopy(null, xHEX60gensym23_1442841100, NTI1442840582); - F.line = 501; - var aHEX60gensym23_1442841104 = it_1442841103.Field0.priority; - F.line = 502; - it_1442841103 = nimCopy(it_1442841103, yHEX60gensym23_1442841101, NTI1442840582); - F.line = 503; - var bHEX60gensym23_1442841105 = it_1442841103.Field0.priority; - F.line = 504; - result_1442841102 = cmp_33557985(aHEX60gensym23_1442841104, bHEX60gensym23_1442841105); - framePtr = F.prev; - - return result_1442841102; +function HEX3Aanonymous_1728053768(xHEX60gensym23_1728053772, yHEX60gensym23_1728053773) { + var result_1728053774 = 0; + + var it_1728053775 = nimCopy(null, xHEX60gensym23_1728053772, NTI1728053254); + var aHEX60gensym23_1728053776 = it_1728053775.Field0.priority; + it_1728053775 = nimCopy(it_1728053775, yHEX60gensym23_1728053773, NTI1728053254); + var bHEX60gensym23_1728053777 = it_1728053775.Field0.priority; + result_1728053774 = cmp_33557985(aHEX60gensym23_1728053776, bHEX60gensym23_1728053777); + + return result_1728053774; } - var result_1442841090 = []; + var result_1728053762 = []; - var F = {procname: "power.secretSynergize", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/power.nim", line: 0}; - framePtr = F; - F.line = 137; - F.filename = "power.nim"; - result_1442841090 = nimCopy(null, currentPowers_1442841088, NTI1442840976); + result_1728053762 = nimCopy(null, currentPowers_1728053760, NTI1728053648); Label1: { - F.line = 139; - var s_1442841238 = {Field0: ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}), Field1: 0, Field2: [], Field3: []}; - F.line = 247; - F.filename = "iterators.nim"; - var colontmp__520100455 = []; - F.line = 139; - F.filename = "power.nim"; - F.line = 499; - F.filename = "algorithm.nim"; - var resultHEX60gensym23_1442841234 = sorted_1442841114(synergies_1442841089, HEX3Aanonymous_1442841096, 1); - colontmp__520100455 = resultHEX60gensym23_1442841234; - F.line = 249; - F.filename = "iterators.nim"; - var i_520100456 = 0; - F.line = 250; - var L_520100457 = (colontmp__520100455).length; + var s_1728053910 = {Field0: ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}), Field1: 0, Field2: [], Field3: []}; + var colontmp__553654887 = []; + var resultHEX60gensym23_1728053906 = sorted_1728053786(synergies_1728053761, HEX3Aanonymous_1728053768, 1); + colontmp__553654887 = resultHEX60gensym23_1728053906; + var i_553654888 = 0; + var L_553654889 = (colontmp__553654887).length; Label2: { - F.line = 251; Label3: while (true) { - if (!(i_520100456 < L_520100457)) break Label3; - F.line = 139; - F.filename = "power.nim"; - s_1442841238 = colontmp__520100455[chckIndx(i_520100456, 0, (colontmp__520100455).length - 1)]; + if (!(i_553654888 < L_553654889)) break Label3; + s_1728053910 = colontmp__553654887[chckIndx(i_553654888, 0, (colontmp__553654887).length - 1)]; Label4: { - if (contains_1442841239(currentPowers_1442841088, s_1442841238.Field0)) { - F.line = 140; + if (contains_1728053911(currentPowers_1728053760, s_1728053910.Field0)) { break Label4; } - F.line = 652; - F.filename = "sequtils.nim"; - var resultHEX60gensym27_1442841292 = newSeq_1442840931(0); + var resultHEX60gensym27_1728053964 = newSeq_1728053603(0); Label5: { - F.line = 653; - var it_1442841296 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); - F.line = 249; - F.filename = "iterators.nim"; - var i_520100448 = 0; - F.line = 250; - var L_520100449 = (result_1442841090).length; + var it_1728053968 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); + var i_553654880 = 0; + var L_553654881 = (result_1728053762).length; Label6: { - F.line = 251; Label7: while (true) { - if (!(i_520100448 < L_520100449)) break Label7; - F.line = 653; - F.filename = "sequtils.nim"; - it_1442841296 = result_1442841090[chckIndx(i_520100448, 0, (result_1442841090).length - 1)]; - if (contains_1006633010(s_1442841238.Field2, it_1442841296.name)) { - F.line = 654; - var Temporary8 = nimCopy(null, it_1442841296, NTI1442840581); - resultHEX60gensym27_1442841292.push(Temporary8);; + if (!(i_553654880 < L_553654881)) break Label7; + it_1728053968 = result_1728053762[chckIndx(i_553654880, 0, (result_1728053762).length - 1)]; + if (contains_1090519090(s_1728053910.Field2, it_1728053968.name)) { + var Temporary8 = nimCopy(null, it_1728053968, NTI1728053253); + resultHEX60gensym27_1728053964.push(Temporary8);; } - F.line = 13; - F.filename = "iterators.nim"; - i_520100448 += 1; - if (!(((result_1442841090).length == L_520100449))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + i_553654880 += 1; + if (!(((result_1728053762).length == L_553654881))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - if (((resultHEX60gensym27_1442841292).length == (s_1442841238.Field2).length)) { - if (((s_1442841238.Field3).length == 0)) { - F.line = 143; - F.filename = "power.nim"; - var Temporary9 = nimCopy(null, powers_1442840649[0][chckIndx(s_1442841238.Field0.index, 0, (powers_1442840649[0]).length - 1)], NTI1442840581); - result_1442841090.push(Temporary9);; + if (((resultHEX60gensym27_1728053964).length == (s_1728053910.Field2).length)) { + if (((s_1728053910.Field3).length == 0)) { + var Temporary9 = nimCopy(null, powers_1728053321[0][chckIndx(s_1728053910.Field0.index, 0, (powers_1728053321[0]).length - 1)], NTI1728053253); + result_1728053762.push(Temporary9);; } else { - F.line = 145; - F.line = 652; - F.filename = "sequtils.nim"; - var resultHEX60gensym30_1442841322 = newSeq_1442840931(0); + var resultHEX60gensym30_1728053994 = newSeq_1728053603(0); Label10: { - F.line = 653; - var it_1442841326 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); - F.line = 249; - F.filename = "iterators.nim"; - var i_520100452 = 0; - F.line = 250; - var L_520100453 = (result_1442841090).length; + var it_1728053998 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); + var i_553654884 = 0; + var L_553654885 = (result_1728053762).length; Label11: { - F.line = 251; Label12: while (true) { - if (!(i_520100452 < L_520100453)) break Label12; - F.line = 653; - F.filename = "sequtils.nim"; - it_1442841326 = result_1442841090[chckIndx(i_520100452, 0, (result_1442841090).length - 1)]; - if (!(contains_1006633010(s_1442841238.Field3, it_1442841326.name))) { - F.line = 654; - var Temporary13 = nimCopy(null, it_1442841326, NTI1442840581); - resultHEX60gensym30_1442841322.push(Temporary13);; + if (!(i_553654884 < L_553654885)) break Label12; + it_1728053998 = result_1728053762[chckIndx(i_553654884, 0, (result_1728053762).length - 1)]; + if (!(contains_1090519090(s_1728053910.Field3, it_1728053998.name))) { + var Temporary13 = nimCopy(null, it_1728053998, NTI1728053253); + resultHEX60gensym30_1728053994.push(Temporary13);; } - F.line = 13; - F.filename = "iterators.nim"; - i_520100452 += 1; - if (!(((result_1442841090).length == L_520100453))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + i_553654884 += 1; + if (!(((result_1728053762).length == L_553654885))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - result_1442841090 = nimCopy(null, HEX26_1442841016(resultHEX60gensym30_1442841322, powers_1442840649[0][chckIndx(s_1442841238.Field0.index, 0, (powers_1442840649[0]).length - 1)]), NTI1442840934); + result_1728053762 = nimCopy(null, HEX26_1728053688(resultHEX60gensym30_1728053994, powers_1728053321[0][chckIndx(s_1728053910.Field0.index, 0, (powers_1728053321[0]).length - 1)]), NTI1728053606); } } }; - F.line = 13; - i_520100456 += 1; - if (!(((colontmp__520100455).length == L_520100457))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + i_553654888 += 1; + if (!(((colontmp__553654887).length == L_553654889))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - framePtr = F.prev; - - return result_1442841090; - -} - -function HEX26_1442841714(x_1442841716, y_1442841717) { - var result_1442841718 = []; - - var F = {procname: "&.&", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; - F.line = 1537; - F.filename = "system.nim"; - result_1442841718 = new Array(chckRange(addInt((x_1442841716).length, (y_1442841717).length), 0, 2147483647)); for (var i = 0 ; i < chckRange(addInt((x_1442841716).length, (y_1442841717).length), 0, 2147483647) ; ++i) { result_1442841718[i] = {Field0: ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}), Field1: 0, Field2: [], Field3: []}; } Label1: { - F.line = 1538; - var i_1442841736 = 0; - F.line = 81; - F.filename = "iterators_1.nim"; - var colontmp__520100473 = 0; - F.line = 1538; - F.filename = "system.nim"; - colontmp__520100473 = subInt((x_1442841716).length, 1); - F.line = 96; - F.filename = "iterators_1.nim"; - var res_520100474 = 0; + + return result_1728053762; + +} + +function HEX26_1728054386(x_1728054388, y_1728054389) { + var result_1728054390 = []; + + result_1728054390 = new Array(chckRange(addInt((x_1728054388).length, (y_1728054389).length), 0, 2147483647)); for (var i = 0 ; i < chckRange(addInt((x_1728054388).length, (y_1728054389).length), 0, 2147483647) ; ++i) { result_1728054390[i] = {Field0: ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}), Field1: 0, Field2: [], Field3: []}; } Label1: { + var i_1728054408 = 0; + var colontmp__553654905 = 0; + colontmp__553654905 = subInt((x_1728054388).length, 1); + var res_553654906 = 0; Label2: { - F.line = 97; Label3: while (true) { - if (!(res_520100474 <= colontmp__520100473)) break Label3; - F.line = 1538; - F.filename = "system.nim"; - i_1442841736 = res_520100474; - F.line = 1539; - result_1442841718[chckIndx(i_1442841736, 0, (result_1442841718).length - 1)] = nimCopy(result_1442841718[chckIndx(i_1442841736, 0, (result_1442841718).length - 1)], x_1442841716[chckIndx(i_1442841736, 0, (x_1442841716).length - 1)], NTI1442840582); - F.line = 102; - F.filename = "iterators_1.nim"; - res_520100474 = addInt(res_520100474, 1); + if (!(res_553654906 <= colontmp__553654905)) break Label3; + i_1728054408 = res_553654906; + result_1728054390[chckIndx(i_1728054408, 0, (result_1728054390).length - 1)] = nimCopy(result_1728054390[chckIndx(i_1728054408, 0, (result_1728054390).length - 1)], x_1728054388[chckIndx(i_1728054408, 0, (x_1728054388).length - 1)], NTI1728053254); + res_553654906 = addInt(res_553654906, 1); } }; }; Label4: { - F.line = 1540; - F.filename = "system.nim"; - var i_1442841744 = 0; - F.line = 81; - F.filename = "iterators_1.nim"; - var colontmp__520100477 = 0; - F.line = 1540; - F.filename = "system.nim"; - colontmp__520100477 = subInt((y_1442841717).length, 1); - F.line = 96; - F.filename = "iterators_1.nim"; - var res_520100478 = 0; + var i_1728054416 = 0; + var colontmp__553654909 = 0; + colontmp__553654909 = subInt((y_1728054389).length, 1); + var res_553654910 = 0; Label5: { - F.line = 97; Label6: while (true) { - if (!(res_520100478 <= colontmp__520100477)) break Label6; - F.line = 1540; - F.filename = "system.nim"; - i_1442841744 = res_520100478; - F.line = 1541; - result_1442841718[chckIndx(addInt(i_1442841744, (x_1442841716).length), 0, (result_1442841718).length - 1)] = nimCopy(result_1442841718[chckIndx(addInt(i_1442841744, (x_1442841716).length), 0, (result_1442841718).length - 1)], y_1442841717[chckIndx(i_1442841744, 0, (y_1442841717).length - 1)], NTI1442840582); - F.line = 102; - F.filename = "iterators_1.nim"; - res_520100478 = addInt(res_520100478, 1); + if (!(res_553654910 <= colontmp__553654909)) break Label6; + i_1728054416 = res_553654910; + result_1728054390[chckIndx(addInt(i_1728054416, (x_1728054388).length), 0, (result_1728054390).length - 1)] = nimCopy(result_1728054390[chckIndx(addInt(i_1728054416, (x_1728054388).length), 0, (result_1728054390).length - 1)], y_1728054389[chckIndx(i_1728054416, 0, (y_1728054389).length - 1)], NTI1728053254); + res_553654910 = addInt(res_553654910, 1); } }; }; - framePtr = F.prev; - return result_1442841718; + return result_1728054390; } -function mergeAlt_1442841877(a_1442841879, b_1442841880, lo_1442841881, m_1442841882, hi_1442841883, cmp_1442841886, order_1442841887) { - var F = {procname: "mergeAlt.mergeAlt", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/algorithm.nim", line: 0}; - framePtr = F; +function mergeAlt_1728054549(a_1728054551, b_1728054552, lo_1728054553, m_1728054554, hi_1728054555, cmp_1728054558, order_1728054559) { BeforeRet: { - if ((HEX2A_989855752(cmp_1442841886(a_1442841879[chckIndx(m_1442841882, 0, (a_1442841879).length - 1)], a_1442841879[chckIndx(addInt(m_1442841882, 1), 0, (a_1442841879).length - 1)]), order_1442841887) <= 0)) { - F.line = 335; - F.filename = "algorithm.nim"; + if ((HEX2A_1073741832(cmp_1728054558(a_1728054551[chckIndx(m_1728054554, 0, (a_1728054551).length - 1)], a_1728054551[chckIndx(addInt(m_1728054554, 1), 0, (a_1728054551).length - 1)]), order_1728054559) <= 0)) { break BeforeRet; } - F.line = 336; - var j_1442841888 = lo_1442841881; - if (!((j_1442841888 <= m_1442841882))) { - F.line = 338; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/algorithm.nim(338, 3) `j <= m` ")); + var j_1728054560 = lo_1728054553; + if (!((j_1728054560 <= m_1728054554))) { + failedAssertImpl_268435541([97,108,103,111,114,105,116,104,109,46,110,105,109,40,51,51,56,44,32,51,41,32,96,106,32,60,61,32,109,96,32]); } - F.line = 340; - var bb_1442841894 = 0; + var bb_1728054566 = 0; Label1: { - F.line = 341; Label2: while (true) { - if (!(j_1442841888 <= m_1442841882)) break Label2; - F.line = 342; - b_1442841880[chckIndx(bb_1442841894, 0, (b_1442841880).length - 1)] = nimCopy(b_1442841880[chckIndx(bb_1442841894, 0, (b_1442841880).length - 1)], a_1442841879[chckIndx(j_1442841888, 0, (a_1442841879).length - 1)], NTI1442840581); - F.line = 343; - bb_1442841894 = addInt(bb_1442841894, 1); - F.line = 344; - j_1442841888 = addInt(j_1442841888, 1); + if (!(j_1728054560 <= m_1728054554)) break Label2; + b_1728054552[chckIndx(bb_1728054566, 0, (b_1728054552).length - 1)] = nimCopy(b_1728054552[chckIndx(bb_1728054566, 0, (b_1728054552).length - 1)], a_1728054551[chckIndx(j_1728054560, 0, (a_1728054551).length - 1)], NTI1728053253); + bb_1728054566 = addInt(bb_1728054566, 1); + j_1728054560 = addInt(j_1728054560, 1); } }; - F.line = 348; - var i_1442841905 = 0; - F.line = 349; - var k_1442841906 = lo_1442841881; + var i_1728054577 = 0; + var k_1728054578 = lo_1728054553; Label3: { - F.line = 351; Label4: while (true) { - if (!((k_1442841906 < j_1442841888) && (j_1442841888 <= hi_1442841883))) break Label4; - if ((HEX2A_989855752(cmp_1442841886(b_1442841880[chckIndx(i_1442841905, 0, (b_1442841880).length - 1)], a_1442841879[chckIndx(j_1442841888, 0, (a_1442841879).length - 1)]), order_1442841887) <= 0)) { - F.line = 353; - a_1442841879[chckIndx(k_1442841906, 0, (a_1442841879).length - 1)] = nimCopy(a_1442841879[chckIndx(k_1442841906, 0, (a_1442841879).length - 1)], b_1442841880[chckIndx(i_1442841905, 0, (b_1442841880).length - 1)], NTI1442840581); - F.line = 354; - i_1442841905 = addInt(i_1442841905, 1); + if (!((k_1728054578 < j_1728054560) && (j_1728054560 <= hi_1728054555))) break Label4; + if ((HEX2A_1073741832(cmp_1728054558(b_1728054552[chckIndx(i_1728054577, 0, (b_1728054552).length - 1)], a_1728054551[chckIndx(j_1728054560, 0, (a_1728054551).length - 1)]), order_1728054559) <= 0)) { + a_1728054551[chckIndx(k_1728054578, 0, (a_1728054551).length - 1)] = nimCopy(a_1728054551[chckIndx(k_1728054578, 0, (a_1728054551).length - 1)], b_1728054552[chckIndx(i_1728054577, 0, (b_1728054552).length - 1)], NTI1728053253); + i_1728054577 = addInt(i_1728054577, 1); } else { - F.line = 356; - a_1442841879[chckIndx(k_1442841906, 0, (a_1442841879).length - 1)] = nimCopy(a_1442841879[chckIndx(k_1442841906, 0, (a_1442841879).length - 1)], a_1442841879[chckIndx(j_1442841888, 0, (a_1442841879).length - 1)], NTI1442840581); - F.line = 357; - j_1442841888 = addInt(j_1442841888, 1); + a_1728054551[chckIndx(k_1728054578, 0, (a_1728054551).length - 1)] = nimCopy(a_1728054551[chckIndx(k_1728054578, 0, (a_1728054551).length - 1)], a_1728054551[chckIndx(j_1728054560, 0, (a_1728054551).length - 1)], NTI1728053253); + j_1728054560 = addInt(j_1728054560, 1); } - F.line = 358; - k_1442841906 = addInt(k_1442841906, 1); + k_1728054578 = addInt(k_1728054578, 1); } }; Label5: { - F.line = 361; Label6: while (true) { - if (!(k_1442841906 < j_1442841888)) break Label6; - F.line = 362; - a_1442841879[chckIndx(k_1442841906, 0, (a_1442841879).length - 1)] = nimCopy(a_1442841879[chckIndx(k_1442841906, 0, (a_1442841879).length - 1)], b_1442841880[chckIndx(i_1442841905, 0, (b_1442841880).length - 1)], NTI1442840581); - F.line = 363; - k_1442841906 = addInt(k_1442841906, 1); - F.line = 364; - i_1442841905 = addInt(i_1442841905, 1); + if (!(k_1728054578 < j_1728054560)) break Label6; + a_1728054551[chckIndx(k_1728054578, 0, (a_1728054551).length - 1)] = nimCopy(a_1728054551[chckIndx(k_1728054578, 0, (a_1728054551).length - 1)], b_1728054552[chckIndx(i_1728054577, 0, (b_1728054552).length - 1)], NTI1728053253); + k_1728054578 = addInt(k_1728054578, 1); + i_1728054577 = addInt(i_1728054577, 1); } }; }; - framePtr = F.prev; } -function sort_1442841860(a_1442841862, cmp_1442841865, order_1442841866) { - var F = {procname: "sort.sort", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/algorithm.nim", line: 0}; - framePtr = F; - F.line = 411; - F.filename = "algorithm.nim"; - var n_1442841870 = (a_1442841862).length; - F.line = 412; - var b_1442841874 = newSeq_1442840931(chckRange(divInt(n_1442841870, 2), 0, 2147483647)); - F.line = 413; - var s_1442841875 = 1; +function sort_1728054532(a_1728054534, cmp_1728054537, order_1728054538) { + var n_1728054542 = (a_1728054534).length; + var b_1728054546 = newSeq_1728053603(chckRange(divInt(n_1728054542, 2), 0, 2147483647)); + var s_1728054547 = 1; Label1: { - F.line = 414; Label2: while (true) { - if (!(s_1442841875 < n_1442841870)) break Label2; - F.line = 415; - var m_1442841876 = subInt(subInt(n_1442841870, 1), s_1442841875); + if (!(s_1728054547 < n_1728054542)) break Label2; + var m_1728054548 = subInt(subInt(n_1728054542, 1), s_1728054547); Label3: { - F.line = 416; Label4: while (true) { - if (!(0 <= m_1442841876)) break Label4; - F.line = 417; - mergeAlt_1442841877(a_1442841862, b_1442841874, nimMax(addInt(subInt(m_1442841876, s_1442841875), 1), 0), m_1442841876, addInt(m_1442841876, s_1442841875), cmp_1442841865, order_1442841866); - F.line = 418; - m_1442841876 = subInt(m_1442841876, mulInt(s_1442841875, 2)); + if (!(0 <= m_1728054548)) break Label4; + mergeAlt_1728054549(a_1728054534, b_1728054546, nimMax(addInt(subInt(m_1728054548, s_1728054547), 1), 0), m_1728054548, addInt(m_1728054548, s_1728054547), cmp_1728054537, order_1728054538); + m_1728054548 = subInt(m_1728054548, mulInt(s_1728054547, 2)); } }; - F.line = 419; - s_1442841875 = mulInt(s_1442841875, 2); + s_1728054547 = mulInt(s_1728054547, 2); } }; - framePtr = F.prev; } -function sorted_1442841838(a_1442841840, cmp_1442841843, order_1442841844) { - var result_1442841845 = []; +function sorted_1728054510(a_1728054512, cmp_1728054515, order_1728054516) { + var result_1728054517 = []; - var F = {procname: "sorted.sorted", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/algorithm.nim", line: 0}; - framePtr = F; - F.line = 448; - F.filename = "algorithm.nim"; - result_1442841845 = nimCopy(null, newSeq_1442840931(chckRange((a_1442841840).length, 0, 2147483647)), NTI1442840869); + result_1728054517 = nimCopy(null, newSeq_1728053603(chckRange((a_1728054512).length, 0, 2147483647)), NTI1728053541); Label1: { - F.line = 449; - var i_1442841859 = 0; - F.line = 81; - F.filename = "iterators_1.nim"; - var colontmp__520100481 = 0; - F.line = 449; - F.filename = "algorithm.nim"; - colontmp__520100481 = (a_1442841840).length - 1; - F.line = 96; - F.filename = "iterators_1.nim"; - var res_520100482 = 0; + var i_1728054531 = 0; + var colontmp__553654913 = 0; + colontmp__553654913 = (a_1728054512).length - 1; + var res_553654914 = 0; Label2: { - F.line = 97; Label3: while (true) { - if (!(res_520100482 <= colontmp__520100481)) break Label3; - F.line = 449; - F.filename = "algorithm.nim"; - i_1442841859 = res_520100482; - F.line = 450; - result_1442841845[chckIndx(i_1442841859, 0, (result_1442841845).length - 1)] = nimCopy(result_1442841845[chckIndx(i_1442841859, 0, (result_1442841845).length - 1)], a_1442841840[chckIndx(i_1442841859, 0, (a_1442841840).length - 1)], NTI1442840581); - F.line = 102; - F.filename = "iterators_1.nim"; - res_520100482 = addInt(res_520100482, 1); + if (!(res_553654914 <= colontmp__553654913)) break Label3; + i_1728054531 = res_553654914; + result_1728054517[chckIndx(i_1728054531, 0, (result_1728054517).length - 1)] = nimCopy(result_1728054517[chckIndx(i_1728054531, 0, (result_1728054517).length - 1)], a_1728054512[chckIndx(i_1728054531, 0, (a_1728054512).length - 1)], NTI1728053253); + res_553654914 = addInt(res_553654914, 1); } }; }; - F.line = 451; - F.filename = "algorithm.nim"; - sort_1442841860(result_1442841845, cmp_1442841843, order_1442841844); - framePtr = F.prev; + sort_1728054532(result_1728054517, cmp_1728054515, order_1728054516); - return result_1442841845; + return result_1728054517; } -function concat_1442841754(seqs_1442841756) { - var result_1442841757 = []; +function concat_1728054426(seqs_1728054428) { + var result_1728054429 = []; - var F = {procname: "concat.concat", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/collections/sequtils.nim", line: 0}; - framePtr = F; - F.line = 134; - F.filename = "sequtils.nim"; - var L_1442841758 = 0; + var L_1728054430 = 0; Label1: { - F.line = 135; - var seqitm_1442841772 = []; - F.line = 18; - F.filename = "iterators.nim"; - var i_520100491 = 0; + var seqitm_1728054444 = []; + var i_553654923 = 0; Label2: { - F.line = 19; Label3: while (true) { - if (!(i_520100491 < (seqs_1442841756).length)) break Label3; - F.line = 135; - F.filename = "sequtils.nim"; - seqitm_1442841772 = seqs_1442841756[chckIndx(i_520100491, 0, (seqs_1442841756).length - 1)]; - F.line = 135; - L_1442841758 = addInt(L_1442841758, (seqitm_1442841772).length); - F.line = 13; - F.filename = "iterators.nim"; - i_520100491 += 1; + if (!(i_553654923 < (seqs_1728054428).length)) break Label3; + seqitm_1728054444 = seqs_1728054428[chckIndx(i_553654923, 0, (seqs_1728054428).length - 1)]; + L_1728054430 = addInt(L_1728054430, (seqitm_1728054444).length); + i_553654923 += 1; } }; }; - F.line = 136; - F.filename = "sequtils.nim"; - result_1442841757 = new Array(chckRange(L_1442841758, 0, 2147483647)); for (var i = 0 ; i < chckRange(L_1442841758, 0, 2147483647) ; ++i) { result_1442841757[i] = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); } F.line = 137; - var i_1442841785 = 0; + result_1728054429 = new Array(chckRange(L_1728054430, 0, 2147483647)); for (var i = 0 ; i < chckRange(L_1728054430, 0, 2147483647) ; ++i) { result_1728054429[i] = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); } var i_1728054457 = 0; Label4: { - F.line = 138; - var s_1442841789 = []; - F.line = 18; - F.filename = "iterators.nim"; - var i_520100498 = 0; + var s_1728054461 = []; + var i_553654930 = 0; Label5: { - F.line = 19; Label6: while (true) { - if (!(i_520100498 < (seqs_1442841756).length)) break Label6; - F.line = 138; - F.filename = "sequtils.nim"; - s_1442841789 = seqs_1442841756[chckIndx(i_520100498, 0, (seqs_1442841756).length - 1)]; + if (!(i_553654930 < (seqs_1728054428).length)) break Label6; + s_1728054461 = seqs_1728054428[chckIndx(i_553654930, 0, (seqs_1728054428).length - 1)]; Label7: { - F.line = 139; - var itm_1442841793 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); - F.line = 249; - F.filename = "iterators.nim"; - var i_520100495 = 0; - F.line = 250; - var L_520100496 = (s_1442841789).length; + var itm_1728054465 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); + var i_553654927 = 0; + var L_553654928 = (s_1728054461).length; Label8: { - F.line = 251; Label9: while (true) { - if (!(i_520100495 < L_520100496)) break Label9; - F.line = 139; - F.filename = "sequtils.nim"; - itm_1442841793 = s_1442841789[chckIndx(i_520100495, 0, (s_1442841789).length - 1)]; - F.line = 140; - result_1442841757[chckIndx(i_1442841785, 0, (result_1442841757).length - 1)] = nimCopy(result_1442841757[chckIndx(i_1442841785, 0, (result_1442841757).length - 1)], itm_1442841793, NTI1442840581); - F.line = 141; - i_1442841785 = addInt(i_1442841785, 1); - F.line = 13; - F.filename = "iterators.nim"; - i_520100495 += 1; - if (!(((s_1442841789).length == L_520100496))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + if (!(i_553654927 < L_553654928)) break Label9; + itm_1728054465 = s_1728054461[chckIndx(i_553654927, 0, (s_1728054461).length - 1)]; + result_1728054429[chckIndx(i_1728054457, 0, (result_1728054429).length - 1)] = nimCopy(result_1728054429[chckIndx(i_1728054457, 0, (result_1728054429).length - 1)], itm_1728054465, NTI1728053253); + i_1728054457 = addInt(i_1728054457, 1); + i_553654927 += 1; + if (!(((s_1728054461).length == L_553654928))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - F.line = 13; - i_520100498 += 1; + i_553654930 += 1; } }; }; - framePtr = F.prev; - return result_1442841757; + return result_1728054429; } -function execute_1442841695(myDrafts_1442841696, opponentDrafts_1442841697, mySide_1442841698, board_1442841699, state_1442841700) { +function execute_1728054367(myDrafts_1728054368, opponentDrafts_1728054369, mySide_1728054370, board_1728054371, state_1728054372) { -function HEX3Aanonymous_1442841820(xHEX60gensym51_1442841824, yHEX60gensym51_1442841825) { - var result_1442841826 = 0; - - var F = {procname: "execute.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/algorithm.nim", line: 0}; - framePtr = F; - F.line = 500; - F.filename = "algorithm.nim"; - var it_1442841827 = nimCopy(null, xHEX60gensym51_1442841824, NTI1442840581); - F.line = 501; - var aHEX60gensym51_1442841828 = it_1442841827.priority; - F.line = 502; - it_1442841827 = nimCopy(it_1442841827, yHEX60gensym51_1442841825, NTI1442840581); - F.line = 503; - var bHEX60gensym51_1442841829 = it_1442841827.priority; - F.line = 504; - result_1442841826 = cmp_33557985(aHEX60gensym51_1442841828, bHEX60gensym51_1442841829); - framePtr = F.prev; - - return result_1442841826; +function HEX3Aanonymous_1728054492(xHEX60gensym51_1728054496, yHEX60gensym51_1728054497) { + var result_1728054498 = 0; + + var it_1728054499 = nimCopy(null, xHEX60gensym51_1728054496, NTI1728053253); + var aHEX60gensym51_1728054500 = it_1728054499.priority; + it_1728054499 = nimCopy(it_1728054499, yHEX60gensym51_1728054497, NTI1728053253); + var bHEX60gensym51_1728054501 = it_1728054499.priority; + result_1728054498 = cmp_33557985(aHEX60gensym51_1728054500, bHEX60gensym51_1728054501); + + return result_1728054498; } - var F = {procname: "power.execute", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/power.nim", line: 0}; - framePtr = F; Label1: { - F.line = 197; - F.filename = "power.nim"; - var x_1442841704 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); - F.line = 249; - F.filename = "iterators.nim"; - var i_520100437 = 0; - F.line = 250; - var L_520100438 = (myDrafts_1442841696).length; + var x_1728054376 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); + var i_553654869 = 0; + var L_553654870 = (myDrafts_1728054368).length; Label2: { - F.line = 251; Label3: while (true) { - if (!(i_520100437 < L_520100438)) break Label3; - F.line = 197; - F.filename = "power.nim"; - x_1442841704 = myDrafts_1442841696[chckIndx(i_520100437, 0, (myDrafts_1442841696).length - 1)]; - if (!((!(contains_1442841239(opponentDrafts_1442841697, x_1442841704)) && !(eqStrings(x_1442841704.name, [78,111,116,104,105,110,103,46,32,78,111,116,104,105,110,103,46,46,46]))))) { - F.line = 198; - failedAssertImpl_268435541((makeNimstrLit("/Users/ajayvallurupalli/the-playground/chess/src/power.nim(198, 9) `x notin opponentDrafts and x.name != emptyPower.name` ") || []).concat(x_1442841704.name || [],[32,105,115,32,115,111,109,101,104,111,119,32,105,110,32,98,111,116,104,32,112,111,111,108,115] || [])); + if (!(i_553654869 < L_553654870)) break Label3; + x_1728054376 = myDrafts_1728054368[chckIndx(i_553654869, 0, (myDrafts_1728054368).length - 1)]; + if (!((!(contains_1728053911(opponentDrafts_1728054369, x_1728054376)) && !(eqStrings(x_1728054376.name, [78,111,116,104,105,110,103,46,32,78,111,116,104,105,110,103,46,46,46]))))) { + failedAssertImpl_268435541((makeNimstrLit("power.nim(198, 9) `x notin opponentDrafts and x.name != emptyPower.name` ") || []).concat(x_1728054376.name || [],[32,105,115,32,115,111,109,101,104,111,119,32,105,110,32,98,111,116,104,32,112,111,111,108,115] || [])); } - F.line = 13; - F.filename = "iterators.nim"; - i_520100437 += 1; - if (!(((myDrafts_1442841696).length == L_520100438))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + i_553654869 += 1; + if (!(((myDrafts_1728054368).length == L_553654870))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - F.line = 200; - F.filename = "power.nim"; - var mySynergizedDrafts_1442841748 = secretSynergize_1442841087(myDrafts_1442841696, HEX26_1442841714(secretSynergies_1442840651[0], secretSecretSynergies_1442840652[0])); - F.line = 201; - var opponentSynergizedDrafts_1442841753 = secretSynergize_1442841087(opponentDrafts_1442841697, HEX26_1442841714(secretSynergies_1442840651[0], secretSecretSynergies_1442840652[0])); + var mySynergizedDrafts_1728054420 = secretSynergize_1728053759(myDrafts_1728054368, HEX26_1728054386(secretSynergies_1728053323[0], secretSecretSynergies_1728053324[0])); + var opponentSynergizedDrafts_1728054425 = secretSynergize_1728053759(opponentDrafts_1728054369, HEX26_1728054386(secretSynergies_1728053323[0], secretSecretSynergies_1728053324[0])); Label4: { - F.line = 203; - var d_1442841941 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); - F.line = 247; - F.filename = "iterators.nim"; - var colontmp__520100441 = []; - F.line = 203; - F.filename = "power.nim"; - F.line = 499; - F.filename = "algorithm.nim"; - var resultHEX60gensym51_1442841937 = sorted_1442841838(concat_1442841754([nimCopy(null, mySynergizedDrafts_1442841748, NTI1442841453), nimCopy(null, opponentSynergizedDrafts_1442841753, NTI1442841458)]), HEX3Aanonymous_1442841820, 1); - colontmp__520100441 = resultHEX60gensym51_1442841937; - F.line = 249; - F.filename = "iterators.nim"; - var i_520100442 = 0; - F.line = 250; - var L_520100443 = (colontmp__520100441).length; + var d_1728054613 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); + var colontmp__553654873 = []; + var resultHEX60gensym51_1728054609 = sorted_1728054510(concat_1728054426([nimCopy(null, mySynergizedDrafts_1728054420, NTI1728054125), nimCopy(null, opponentSynergizedDrafts_1728054425, NTI1728054130)]), HEX3Aanonymous_1728054492, 1); + colontmp__553654873 = resultHEX60gensym51_1728054609; + var i_553654874 = 0; + var L_553654875 = (colontmp__553654873).length; Label5: { - F.line = 251; Label6: while (true) { - if (!(i_520100442 < L_520100443)) break Label6; - F.line = 203; - F.filename = "power.nim"; - d_1442841941 = colontmp__520100441[chckIndx(i_520100442, 0, (colontmp__520100441).length - 1)]; - if (contains_1442841239(mySynergizedDrafts_1442841748, d_1442841941)) { - F.line = 205; - d_1442841941.onStart(mySide_1442841698, mySide_1442841698, board_1442841699, state_1442841700); + if (!(i_553654874 < L_553654875)) break Label6; + d_1728054613 = colontmp__553654873[chckIndx(i_553654874, 0, (colontmp__553654873).length - 1)]; + if (contains_1728053911(mySynergizedDrafts_1728054420, d_1728054613)) { + d_1728054613.onStart(mySide_1728054370, mySide_1728054370, board_1728054371, state_1728054372); } else { - F.line = 207; - d_1442841941.onStart(otherSide_1224737821(mySide_1442841698), mySide_1442841698, board_1442841699, state_1442841700); + d_1728054613.onStart(otherSide_1476396061(mySide_1728054370), mySide_1728054370, board_1728054371, state_1728054372); } - F.line = 13; - F.filename = "iterators.nim"; - i_520100442 += 1; - if (!(((colontmp__520100441).length == L_520100443))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + i_553654874 += 1; + if (!(((colontmp__553654873).length == L_553654875))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - framePtr = F.prev; } -function add_520097287(x_520097289, x_520097289_Idx, y_520097290) { +function add_553651719(x_553651721, x_553651721_Idx, y_553651722) { var Temporary1; - var F = {procname: "add.add", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; - F.line = 1210; - F.filename = "system.nim"; - var xl_520097294 = (x_520097289[x_520097289_Idx]).length; - F.line = 1211; - if (x_520097289[x_520097289_Idx].length < (Temporary1 = chckRange(addInt(xl_520097294, (y_520097290).length), 0, 2147483647), Temporary1)) { for (var i = x_520097289[x_520097289_Idx].length ; i < Temporary1 ; ++i) x_520097289[x_520097289_Idx].push(({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0})); } - else { x_520097289[x_520097289_Idx].length = Temporary1; }; + var xl_553651726 = (x_553651721[x_553651721_Idx]).length; + if (x_553651721[x_553651721_Idx].length < (Temporary1 = chckRange(addInt(xl_553651726, (y_553651722).length), 0, 2147483647), Temporary1)) { for (var i = x_553651721[x_553651721_Idx].length ; i < Temporary1 ; ++i) x_553651721[x_553651721_Idx].push(({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0})); } + else { x_553651721[x_553651721_Idx].length = Temporary1; }; Label2: { - F.line = 1212; - var i_520097309 = 0; - F.line = 81; - F.filename = "iterators_1.nim"; - var colontmp__520100501 = 0; - F.line = 1212; - F.filename = "system.nim"; - colontmp__520100501 = (y_520097290).length - 1; - F.line = 96; - F.filename = "iterators_1.nim"; - var res_520100502 = 0; + var i_553651741 = 0; + var colontmp__553654933 = 0; + colontmp__553654933 = (y_553651722).length - 1; + var res_553654934 = 0; Label3: { - F.line = 97; Label4: while (true) { - if (!(res_520100502 <= colontmp__520100501)) break Label4; - F.line = 1212; - F.filename = "system.nim"; - i_520097309 = res_520100502; - F.line = 1212; - x_520097289[x_520097289_Idx][chckIndx(addInt(xl_520097294, i_520097309), 0, (x_520097289[x_520097289_Idx]).length - 1)] = nimCopy(x_520097289[x_520097289_Idx][chckIndx(addInt(xl_520097294, i_520097309), 0, (x_520097289[x_520097289_Idx]).length - 1)], y_520097290[chckIndx(i_520097309, 0, (y_520097290).length - 1)], NTI1442840581); - F.line = 102; - F.filename = "iterators_1.nim"; - res_520100502 = addInt(res_520100502, 1); + if (!(res_553654934 <= colontmp__553654933)) break Label4; + i_553651741 = res_553654934; + x_553651721[x_553651721_Idx][chckIndx(addInt(xl_553651726, i_553651741), 0, (x_553651721[x_553651721_Idx]).length - 1)] = nimCopy(x_553651721[x_553651721_Idx][chckIndx(addInt(xl_553651726, i_553651741), 0, (x_553651721[x_553651721_Idx]).length - 1)], y_553651722[chckIndx(i_553651741, 0, (y_553651722).length - 1)], NTI1728053253); + res_553654934 = addInt(res_553654934, 1); } }; }; - framePtr = F.prev; } -function HEX3Aanonymous_1493174231(taken_1493174232, taker_1493174233, board_1493174234, state_1493174235) { - var result_1493174238 = {Field0: {Field0: 0, Field1: 0}, Field1: false}; +function HEX3Aanonymous_1845495767(taken_1845495768, taker_1845495769, board_1845495770, state_1845495771) { + var result_1845495774 = {Field0: {Field0: 0, Field1: 0}, Field1: false}; - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; BeforeRet: { - F.line = 1308; - F.filename = "powers.nim"; - var colontmp__520100505 = nimCopy(null, taker_1493174233.tile, NTI1224736771); - F.line = 1308; - var colontmp__520100506 = false; - F.line = 1308; - result_1493174238 = nimCopy(result_1493174238, {Field0: nimCopy(null, colontmp__520100505, NTI1224736771), Field1: colontmp__520100506}, NTI1493174178); + var colontmp__553654937 = nimCopy(null, taker_1845495769.tile, NTI1476395011); + var colontmp__553654938 = false; + result_1845495774 = nimCopy(result_1845495774, {Field0: nimCopy(null, colontmp__553654937, NTI1476395011), Field1: colontmp__553654938}, NTI1845495714); break BeforeRet; }; - framePtr = F.prev; - return result_1493174238; + return result_1845495774; } -function HEX3Aanonymous_1493174194(piece_1493174195, board_1493174196, state_1493174197) { - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; +function HEX3Aanonymous_1845495730(piece_1845495731, board_1845495732, state_1845495733) { BeforeRet: { - if (!(piece_1493174195.drunk)) { - F.line = 1295; - F.filename = "powers.nim"; - piece_1493174195.drunk = true; - F.line = 1296; - randomize_1392509190(BigInt(addInt(addInt(mulInt(10, piece_1493174195.tile.Field1), mulInt(100, piece_1493174195.tile.Field0)), state_1493174197.Field0.randSeed))); - F.line = 1298; - piece_1493174195.moves.push(HEX3Aanonymous_1291845865);; - F.line = 1299; - var moves_1493174202 = HEX3Aanonymous_1291845865(board_1493174196, piece_1493174195); - F.line = 1300; - var takes_1493174203 = HEX3Aanonymous_1291845880(board_1493174196, piece_1493174195); - F.line = 1301; - F.line = 652; - F.filename = "sequtils.nim"; - var resultHEX60gensym80_1493174208 = newSeq_1224737519(0); + if (!(piece_1845495731.drunk)) { + piece_1845495731.drunk = true; + randomize_1644167430(BigInt(addInt(addInt(mulInt(10, piece_1845495731.tile.Field1), mulInt(100, piece_1845495731.tile.Field0)), state_1845495733.Field0.randSeed))); + piece_1845495731.moves.push(HEX3Aanonymous_1543504105);; + var moves_1845495738 = HEX3Aanonymous_1543504105(board_1845495732, piece_1845495731); + var takes_1845495739 = HEX3Aanonymous_1543504120(board_1845495732, piece_1845495731); + var resultHEX60gensym80_1845495744 = newSeq_1476395759(0); Label1: { - F.line = 653; - var it_1493174212 = {Field0: 0, Field1: 0}; - F.line = 249; - F.filename = "iterators.nim"; - var i_520100508 = 0; - F.line = 250; - var L_520100509 = (moves_1493174202).length; + var it_1845495748 = {Field0: 0, Field1: 0}; + var i_553654940 = 0; + var L_553654941 = (moves_1845495738).length; Label2: { - F.line = 251; Label3: while (true) { - if (!(i_520100508 < L_520100509)) break Label3; - F.line = 653; - F.filename = "sequtils.nim"; - it_1493174212 = moves_1493174202[chckIndx(i_520100508, 0, (moves_1493174202).length - 1)]; - if (!(contains_1224737421(takes_1493174203, it_1493174212))) { - F.line = 654; - var Temporary4 = nimCopy(null, it_1493174212, NTI1224736771); - resultHEX60gensym80_1493174208.push(Temporary4);; + if (!(i_553654940 < L_553654941)) break Label3; + it_1845495748 = moves_1845495738[chckIndx(i_553654940, 0, (moves_1845495738).length - 1)]; + if (!(contains_1476395661(takes_1845495739, it_1845495748))) { + var Temporary4 = nimCopy(null, it_1845495748, NTI1476395011); + resultHEX60gensym80_1845495744.push(Temporary4);; } - F.line = 13; - F.filename = "iterators.nim"; - i_520100508 += 1; - if (!(((moves_1493174202).length == L_520100509))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + i_553654940 += 1; + if (!(((moves_1845495738).length == L_553654941))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - var attempt_1493174221 = nimCopy(null, resultHEX60gensym80_1493174208, NTI1224737341); - if (((attempt_1493174221).length == 0)) { - F.line = 1303; - F.filename = "powers.nim"; + var attempt_1845495757 = nimCopy(null, resultHEX60gensym80_1845495744, NTI1476395581); + if (((attempt_1845495757).length == 0)) { break BeforeRet; } else { - F.line = 1304; - piece_1493174195.onMove(piece_1493174195, sample_1493173919(attempt_1493174221), board_1493174196, state_1493174197); + piece_1845495731.onMove(piece_1845495731, sample_1845495455(attempt_1845495757), board_1845495732, state_1845495733); } } }; - framePtr = F.prev; } -function HEX3Aanonymous_1493174240(side_1493174241, __1493174242, b_1493174243, state_1493174244) { +function HEX3Aanonymous_1845495776(side_1845495777, __1845495778, b_1845495779, state_1845495780) { var Temporary1; - var F = {procname: "powers.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/powers.nim", line: 0}; - framePtr = F; - F.line = 1319; - F.filename = "powers.nim"; - randomize_1392509190(BigInt(state_1493174244.Field0.randSeed)); - F.line = 1320; - if ((side_1493174241 == 0)) { + randomize_1644167430(BigInt(state_1845495780.Field0.randSeed)); + if ((side_1845495777 == 0)) { Temporary1 = 5; } else { Temporary1 = 2; } - var rank_1493174249 = Temporary1; - F.line = 1321; - var commoner_1493174266 = {item: 7, color: side_1493174241, moves: [HEX3Aanonymous_1291845865], takes: [], onMove: HEX3Aanonymous_1224737631, onTake: HEX3Aanonymous_1224737642, whenTaken: HEX3Aanonymous_1493174231, onEndTurn: [HEX3Aanonymous_1493174194], onPromote: [HEX3Aanonymous_1224737210], filePath: [99,105,118,105,108,105,97,110,46,115,118,103], timesMoved: 0, piecesTaken: 0, tile: nimCopy(null, {Field0: (-1), Field1: (-1)}, NTI1224736771), promoted: false, colorable: true, rotate: false, drunk: false, index: 0, casts: []}; - F.line = 1325; - var spawns_1493174267 = 0; - F.line = 1326; - var failsafe_1493174268 = 20; - F.line = 1327; - var attempt_1493174269 = rand_1392509064(7); + var rank_1845495785 = Temporary1; + var commoner_1845495802 = {item: 7, color: side_1845495777, moves: [HEX3Aanonymous_1543504105], takes: [], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1845495767, onEndTurn: [HEX3Aanonymous_1845495730], onPromote: [HEX3Aanonymous_1476395450], filePath: [99,105,118,105,108,105,97,110,46,115,118,103], timesMoved: 0, piecesTaken: 0, tile: nimCopy(null, {Field0: (-1), Field1: (-1)}, NTI1476395011), promoted: false, colorable: true, rotate: false, drunk: false, index: 0, casts: []}; + var spawns_1845495803 = 0; + var failsafe_1845495804 = 20; + var attempt_1845495805 = rand_1644167304(7); Label2: { - F.line = 1328; Label3: while (true) { - if (!(!((spawns_1493174267 == 3)) && !((failsafe_1493174268 == 0)))) break Label3; - if (isAir_1224737796(b_1493174243[chckIndx(rank_1493174249, 0, (b_1493174243).length - 1)][chckIndx(attempt_1493174269, 0, (b_1493174243[chckIndx(rank_1493174249, 0, (b_1493174243).length - 1)]).length - 1)])) { - F.line = 1330; - var tile_1493174270 = nimCopy(null, b_1493174243[chckIndx(rank_1493174249, 0, (b_1493174243).length - 1)][chckIndx(attempt_1493174269, 0, (b_1493174243[chckIndx(rank_1493174249, 0, (b_1493174243).length - 1)]).length - 1)].tile, NTI1224736771); - F.line = 1331; - b_1493174243[chckIndx(rank_1493174249, 0, (b_1493174243).length - 1)][chckIndx(attempt_1493174269, 0, (b_1493174243[chckIndx(rank_1493174249, 0, (b_1493174243).length - 1)]).length - 1)] = nimCopy(b_1493174243[chckIndx(rank_1493174249, 0, (b_1493174243).length - 1)][chckIndx(attempt_1493174269, 0, (b_1493174243[chckIndx(rank_1493174249, 0, (b_1493174243).length - 1)]).length - 1)], pieceCopy_1224737660(commoner_1493174266, newIndex_1224737255(state_1493174244), commoner_1493174266.item, commoner_1493174266.color, commoner_1493174266.timesMoved, commoner_1493174266.piecesTaken, tile_1493174270, commoner_1493174266.moves, commoner_1493174266.takes, commoner_1493174266.onMove, commoner_1493174266.onTake, commoner_1493174266.whenTaken, commoner_1493174266.onEndTurn, commoner_1493174266.onPromote, commoner_1493174266.promoted, commoner_1493174266.filePath, commoner_1493174266.colorable, commoner_1493174266.rotate, commoner_1493174266.drunk), NTI1224736794); - F.line = 1332; - spawns_1493174267 = addInt(spawns_1493174267, 1); + if (!(!((spawns_1845495803 == 3)) && !((failsafe_1845495804 == 0)))) break Label3; + if (isAir_1476396036(b_1845495779[chckIndx(rank_1845495785, 0, (b_1845495779).length - 1)][chckIndx(attempt_1845495805, 0, (b_1845495779[chckIndx(rank_1845495785, 0, (b_1845495779).length - 1)]).length - 1)])) { + var tile_1845495806 = nimCopy(null, b_1845495779[chckIndx(rank_1845495785, 0, (b_1845495779).length - 1)][chckIndx(attempt_1845495805, 0, (b_1845495779[chckIndx(rank_1845495785, 0, (b_1845495779).length - 1)]).length - 1)].tile, NTI1476395011); + b_1845495779[chckIndx(rank_1845495785, 0, (b_1845495779).length - 1)][chckIndx(attempt_1845495805, 0, (b_1845495779[chckIndx(rank_1845495785, 0, (b_1845495779).length - 1)]).length - 1)] = nimCopy(b_1845495779[chckIndx(rank_1845495785, 0, (b_1845495779).length - 1)][chckIndx(attempt_1845495805, 0, (b_1845495779[chckIndx(rank_1845495785, 0, (b_1845495779).length - 1)]).length - 1)], pieceCopy_1476395900(commoner_1845495802, newIndex_1476395495(state_1845495780), commoner_1845495802.item, commoner_1845495802.color, commoner_1845495802.timesMoved, commoner_1845495802.piecesTaken, tile_1845495806, commoner_1845495802.moves, commoner_1845495802.takes, commoner_1845495802.onMove, commoner_1845495802.onTake, commoner_1845495802.whenTaken, commoner_1845495802.onEndTurn, commoner_1845495802.onPromote, commoner_1845495802.promoted, commoner_1845495802.filePath, commoner_1845495802.colorable, commoner_1845495802.rotate, commoner_1845495802.drunk), NTI1476395034); + spawns_1845495803 = addInt(spawns_1845495803, 1); } else { - F.line = 1334; - failsafe_1493174268 = subInt(failsafe_1493174268, 1); + failsafe_1845495804 = subInt(failsafe_1845495804, 1); } - F.line = 1336; - attempt_1493174269 = rand_1392509064(7); + attempt_1845495805 = rand_1644167304(7); } }; - framePtr = F.prev; } -function synergize_1442840902(pool_1442840903, currentPowers_1442840904, t_1442840905) { - var result_1442840906 = []; +function synergize_1728053574(pool_1728053575, currentPowers_1728053576, t_1728053577) { + var result_1728053578 = []; - var F = {procname: "power.synergize", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/power.nim", line: 0}; - framePtr = F; - F.line = 128; - F.filename = "power.nim"; - result_1442840906 = nimCopy(null, pool_1442840903, NTI1442840845); + result_1728053578 = nimCopy(null, pool_1728053575, NTI1728053517); Label1: { - F.line = 129; - var s_1442840929 = {Field0: ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}), Field1: 0, Field2: [], Field3: []}; - F.line = 249; - F.filename = "iterators.nim"; - var i_520100547 = 0; - F.line = 250; - var L_520100548 = (draftSynergies_1442840650[0]).length; + var s_1728053601 = {Field0: ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}), Field1: 0, Field2: [], Field3: []}; + var i_553654979 = 0; + var L_553654980 = (draftSynergies_1728053322[0]).length; Label2: { - F.line = 251; Label3: while (true) { - if (!(i_520100547 < L_520100548)) break Label3; - F.line = 129; - F.filename = "power.nim"; - s_1442840929 = draftSynergies_1442840650[0][chckIndx(i_520100547, 0, (draftSynergies_1442840650[0]).length - 1)]; - F.line = 652; - F.filename = "sequtils.nim"; - var resultHEX60gensym16_1442840955 = newSeq_1442840931(0); + if (!(i_553654979 < L_553654980)) break Label3; + s_1728053601 = draftSynergies_1728053322[0][chckIndx(i_553654979, 0, (draftSynergies_1728053322[0]).length - 1)]; + var resultHEX60gensym16_1728053627 = newSeq_1728053603(0); Label4: { - F.line = 653; - var it_1442840977 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); - F.line = 249; - F.filename = "iterators.nim"; - var i_520100540 = 0; - F.line = 250; - var L_520100541 = (currentPowers_1442840904).length; + var it_1728053649 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); + var i_553654972 = 0; + var L_553654973 = (currentPowers_1728053576).length; Label5: { - F.line = 251; Label6: while (true) { - if (!(i_520100540 < L_520100541)) break Label6; - F.line = 653; - F.filename = "sequtils.nim"; - it_1442840977 = currentPowers_1442840904[chckIndx(i_520100540, 0, (currentPowers_1442840904).length - 1)]; - if (contains_1006633010(s_1442840929.Field2, it_1442840977.name)) { - F.line = 654; - var Temporary7 = nimCopy(null, it_1442840977, NTI1442840581); - resultHEX60gensym16_1442840955.push(Temporary7);; + if (!(i_553654972 < L_553654973)) break Label6; + it_1728053649 = currentPowers_1728053576[chckIndx(i_553654972, 0, (currentPowers_1728053576).length - 1)]; + if (contains_1090519090(s_1728053601.Field2, it_1728053649.name)) { + var Temporary7 = nimCopy(null, it_1728053649, NTI1728053253); + resultHEX60gensym16_1728053627.push(Temporary7);; } - F.line = 13; - F.filename = "iterators.nim"; - i_520100540 += 1; - if (!(((currentPowers_1442840904).length == L_520100541))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + i_553654972 += 1; + if (!(((currentPowers_1728053576).length == L_553654973))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - if (((resultHEX60gensym16_1442840955).length == (s_1442840929.Field2).length)) { - if (((s_1442840929.Field3).length == 0)) { - F.line = 132; - F.filename = "power.nim"; - var Temporary8 = nimCopy(null, powers_1442840649[0][chckIndx(s_1442840929.Field0.index, 0, (powers_1442840649[0]).length - 1)], NTI1442840581); - result_1442840906.push(Temporary8);; + if (((resultHEX60gensym16_1728053627).length == (s_1728053601.Field2).length)) { + if (((s_1728053601.Field3).length == 0)) { + var Temporary8 = nimCopy(null, powers_1728053321[0][chckIndx(s_1728053601.Field0.index, 0, (powers_1728053321[0]).length - 1)], NTI1728053253); + result_1728053578.push(Temporary8);; } else { - F.line = 134; - F.line = 652; - F.filename = "sequtils.nim"; - var resultHEX60gensym21_1442841003 = newSeq_1442840931(0); + var resultHEX60gensym21_1728053675 = newSeq_1728053603(0); Label9: { - F.line = 653; - var it_1442841007 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); - F.line = 249; - F.filename = "iterators.nim"; - var i_520100544 = 0; - F.line = 250; - var L_520100545 = (result_1442840906).length; + var it_1728053679 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); + var i_553654976 = 0; + var L_553654977 = (result_1728053578).length; Label10: { - F.line = 251; Label11: while (true) { - if (!(i_520100544 < L_520100545)) break Label11; - F.line = 653; - F.filename = "sequtils.nim"; - it_1442841007 = result_1442840906[chckIndx(i_520100544, 0, (result_1442840906).length - 1)]; - if (!(contains_1006633010(s_1442840929.Field3, it_1442841007.name))) { - F.line = 654; - var Temporary12 = nimCopy(null, it_1442841007, NTI1442840581); - resultHEX60gensym21_1442841003.push(Temporary12);; + if (!(i_553654976 < L_553654977)) break Label11; + it_1728053679 = result_1728053578[chckIndx(i_553654976, 0, (result_1728053578).length - 1)]; + if (!(contains_1090519090(s_1728053601.Field3, it_1728053679.name))) { + var Temporary12 = nimCopy(null, it_1728053679, NTI1728053253); + resultHEX60gensym21_1728053675.push(Temporary12);; } - F.line = 13; - F.filename = "iterators.nim"; - i_520100544 += 1; - if (!(((result_1442840906).length == L_520100545))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + i_553654976 += 1; + if (!(((result_1728053578).length == L_553654977))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - result_1442840906 = nimCopy(null, HEX26_1442841016(resultHEX60gensym21_1442841003, powers_1442840649[0][chckIndx(s_1442840929.Field0.index, 0, (powers_1442840649[0]).length - 1)]), NTI1442840934); + result_1728053578 = nimCopy(null, HEX26_1728053688(resultHEX60gensym21_1728053675, powers_1728053321[0][chckIndx(s_1728053601.Field0.index, 0, (powers_1728053321[0]).length - 1)]), NTI1728053606); } } - F.line = 13; - i_520100547 += 1; - if (!(((draftSynergies_1442840650[0]).length == L_520100548))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + i_553654979 += 1; + if (!(((draftSynergies_1728053322[0]).length == L_553654980))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - framePtr = F.prev; - return result_1442840906; + return result_1728053578; } -function newSeq_503317026(len_503317028) { - var result_503317029 = []; - - var F = {procname: "newSeq.newSeq", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; - F.line = 633; - F.filename = "system.nim"; - result_503317029 = new Array(len_503317028); for (var i = 0 ; i < len_503317028 ; ++i) { result_503317029[i] = []; } framePtr = F.prev; +function newSeq_536871458(len_536871460) { + var result_536871461 = []; - return result_503317029; + result_536871461 = new Array(len_536871460); for (var i = 0 ; i < len_536871460 ; ++i) { result_536871461[i] = []; } + return result_536871461; } -function newSeq_1442841512(len_1442841514) { - var result_1442841515 = []; +function newSeq_1728054184(len_1728054186) { + var result_1728054187 = []; - var F = {procname: "newSeq.newSeq", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; - F.line = 633; - F.filename = "system.nim"; - result_1442841515 = new Array(len_1442841514); for (var i = 0 ; i < len_1442841514 ; ++i) { result_1442841515[i] = 0; } framePtr = F.prev; - - return result_1442841515; + result_1728054187 = new Array(len_1728054186); for (var i = 0 ; i < len_1728054186 ; ++i) { result_1728054187[i] = 0; } + return result_1728054187; } -function randomPower_1442841418(t_1442841419, currentPowers_1442841420, alreadySelected_1442841425) { +function randomPower_1728054090(t_1728054091, currentPowers_1728054092, alreadySelected_1728054097) { var Temporary2; - var result_1442841426 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); + var result_1728054098 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); - var F = {procname: "power.randomPower", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/power.nim", line: 0}; - framePtr = F; BeforeRet: { - F.line = 163; - F.filename = "power.nim"; - F.line = 652; - F.filename = "sequtils.nim"; - var resultHEX60gensym32_1442841431 = newSeq_1442840931(0); + var resultHEX60gensym32_1728054103 = newSeq_1728053603(0); Label1: { - F.line = 653; - var it_1442841435 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); - F.line = 247; - F.filename = "iterators.nim"; - var colontmp__520100521 = []; - F.line = 163; - F.filename = "power.nim"; - colontmp__520100521 = synergize_1442840902((Temporary2 = seqOf_1442841385(t_1442841419), Temporary2)[0][Temporary2[1]], currentPowers_1442841420, t_1442841419); - F.line = 249; - F.filename = "iterators.nim"; - var i_520100522 = 0; - F.line = 250; - var L_520100523 = (colontmp__520100521).length; + var it_1728054107 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); + var colontmp__553654953 = []; + colontmp__553654953 = synergize_1728053574((Temporary2 = seqOf_1728054057(t_1728054091), Temporary2)[0][Temporary2[1]], currentPowers_1728054092, t_1728054091); + var i_553654954 = 0; + var L_553654955 = (colontmp__553654953).length; Label3: { - F.line = 251; Label4: while (true) { - if (!(i_520100522 < L_520100523)) break Label4; - F.line = 653; - F.filename = "sequtils.nim"; - it_1442841435 = colontmp__520100521[chckIndx(i_520100522, 0, (colontmp__520100521).length - 1)]; + if (!(i_553654954 < L_553654955)) break Label4; + it_1728054107 = colontmp__553654953[chckIndx(i_553654954, 0, (colontmp__553654953).length - 1)]; Label5: { - F.line = 1024; - var iHEX60gensym34_1442841456 = 0; - F.line = 1025; - var resultHEX60gensym34_1442841463 = newSeq_503317026(chckRange((alreadySelected_1442841425).length, 0, 2147483647)); + var iHEX60gensym34_1728054128 = 0; + var resultHEX60gensym34_1728054135 = newSeq_536871458(chckRange((alreadySelected_1728054097).length, 0, 2147483647)); Label6: { - F.line = 1026; - var it_1442841467 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); - F.line = 249; - F.filename = "iterators.nim"; - var i_520100518 = 0; - F.line = 250; - var L_520100519 = (alreadySelected_1442841425).length; + var it_1728054139 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); + var i_553654950 = 0; + var L_553654951 = (alreadySelected_1728054097).length; Label7: { - F.line = 251; Label8: while (true) { - if (!(i_520100518 < L_520100519)) break Label8; - F.line = 1026; - F.filename = "sequtils.nim"; - it_1442841467 = alreadySelected_1442841425[chckIndx(i_520100518, 0, (alreadySelected_1442841425).length - 1)]; - F.line = 163; - F.filename = "power.nim"; - resultHEX60gensym34_1442841463[chckIndx(iHEX60gensym34_1442841456, 0, (resultHEX60gensym34_1442841463).length - 1)] = nimCopy(null, it_1442841467.name, NTI33554449); - F.line = 1028; - F.filename = "sequtils.nim"; - iHEX60gensym34_1442841456 = addInt(iHEX60gensym34_1442841456, 1); - F.line = 13; - F.filename = "iterators.nim"; - i_520100518 += 1; - if (!(((alreadySelected_1442841425).length == L_520100519))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + if (!(i_553654950 < L_553654951)) break Label8; + it_1728054139 = alreadySelected_1728054097[chckIndx(i_553654950, 0, (alreadySelected_1728054097).length - 1)]; + resultHEX60gensym34_1728054135[chckIndx(iHEX60gensym34_1728054128, 0, (resultHEX60gensym34_1728054135).length - 1)] = nimCopy(null, it_1728054139.name, NTI33554449); + iHEX60gensym34_1728054128 = addInt(iHEX60gensym34_1728054128, 1); + i_553654950 += 1; + if (!(((alreadySelected_1728054097).length == L_553654951))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; }; - if (!(contains_1006633010(resultHEX60gensym34_1442841463, it_1442841435.name))) { - F.line = 654; - F.filename = "sequtils.nim"; - var Temporary9 = nimCopy(null, it_1442841435, NTI1442840581); - resultHEX60gensym32_1442841431.push(Temporary9);; + if (!(contains_1090519090(resultHEX60gensym34_1728054135, it_1728054107.name))) { + var Temporary9 = nimCopy(null, it_1728054107, NTI1728053253); + resultHEX60gensym32_1728054103.push(Temporary9);; } - F.line = 13; - F.filename = "iterators.nim"; - i_520100522 += 1; - if (!(((colontmp__520100521).length == L_520100523))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + i_553654954 += 1; + if (!(((colontmp__553654953).length == L_553654955))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - var search_1442841480 = nimCopy(null, resultHEX60gensym32_1442841431, NTI1442840869); - if (((search_1442841480).length == 0)) { - F.line = 164; - F.filename = "power.nim"; - result_1442841426 = nimCopy(result_1442841426, emptyPower_1442840638, NTI1442840581); + var search_1728054152 = nimCopy(null, resultHEX60gensym32_1728054103, NTI1728053541); + if (((search_1728054152).length == 0)) { + result_1728054098 = nimCopy(result_1728054098, emptyPower_1728053310, NTI1728053253); break BeforeRet; } - F.line = 166; - F.line = 975; - F.filename = "sequtils.nim"; Label10: { - F.line = 1024; - var iHEX60gensym38_1442841508 = 0; - F.line = 1025; - var resultHEX60gensym38_1442841536 = newSeq_1442841512(chckRange((search_1442841480).length, 0, 2147483647)); + var iHEX60gensym38_1728054180 = 0; + var resultHEX60gensym38_1728054208 = newSeq_1728054184(chckRange((search_1728054152).length, 0, 2147483647)); Label11: { - F.line = 1026; - var it_1442841540 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); - F.line = 249; - F.filename = "iterators.nim"; - var i_520100527 = 0; - F.line = 250; - var L_520100528 = (search_1442841480).length; + var it_1728054212 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); + var i_553654959 = 0; + var L_553654960 = (search_1728054152).length; Label12: { - F.line = 251; Label13: while (true) { - if (!(i_520100527 < L_520100528)) break Label13; - F.line = 1026; - F.filename = "sequtils.nim"; - it_1442841540 = search_1442841480[chckIndx(i_520100527, 0, (search_1442841480).length - 1)]; - F.line = 166; - F.filename = "power.nim"; - resultHEX60gensym38_1442841536[chckIndx(iHEX60gensym38_1442841508, 0, (resultHEX60gensym38_1442841536).length - 1)] = it_1442841540.rarity; - F.line = 1028; - F.filename = "sequtils.nim"; - iHEX60gensym38_1442841508 = addInt(iHEX60gensym38_1442841508, 1); - F.line = 13; - F.filename = "iterators.nim"; - i_520100527 += 1; - if (!(((search_1442841480).length == L_520100528))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + if (!(i_553654959 < L_553654960)) break Label13; + it_1728054212 = search_1728054152[chckIndx(i_553654959, 0, (search_1728054152).length - 1)]; + resultHEX60gensym38_1728054208[chckIndx(iHEX60gensym38_1728054180, 0, (resultHEX60gensym38_1728054208).length - 1)] = it_1728054212.rarity; + iHEX60gensym38_1728054180 = addInt(iHEX60gensym38_1728054180, 1); + i_553654959 += 1; + if (!(((search_1728054152).length == L_553654960))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; }; - var sHEX60gensym37_1442841545 = nimCopy(null, resultHEX60gensym38_1442841536, NTI1442841292); - F.line = 976; - F.filename = "sequtils.nim"; - var nHEX60gensym37_1442841550 = (sHEX60gensym37_1442841545).length; - if (!((0 < nHEX60gensym37_1442841550))) { - F.line = 977; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/collections/sequtils.nim(977, 3) `n`gensym37 > 0` Can\'t fold empty sequences")); + var sHEX60gensym37_1728054217 = nimCopy(null, resultHEX60gensym38_1728054208, NTI1728053964); + var nHEX60gensym37_1728054222 = (sHEX60gensym37_1728054217).length; + if (!((0 < nHEX60gensym37_1728054222))) { + failedAssertImpl_268435541([115,101,113,117,116,105,108,115,46,110,105,109,40,57,55,55,44,32,51,41,32,96,110,96,103,101,110,115,121,109,51,55,32,62,32,48,96,32,67,97,110,39,116,32,102,111,108,100,32,101,109,112,116,121,32,115,101,113,117,101,110,99,101,115]); } - F.line = 978; - var resultHEX60gensym37_1442841556 = sHEX60gensym37_1442841545[chckIndx(subInt(nHEX60gensym37_1442841550, 1), 0, (sHEX60gensym37_1442841545).length - 1)]; + var resultHEX60gensym37_1728054228 = sHEX60gensym37_1728054217[chckIndx(subInt(nHEX60gensym37_1728054222, 1), 0, (sHEX60gensym37_1728054217).length - 1)]; Label14: { - F.line = 979; - var iHEX60gensym37_1442841562 = 0; - F.line = 6; - F.filename = "iterators_1.nim"; - var colontmp__520100531 = 0; - F.line = 979; - F.filename = "sequtils.nim"; - colontmp__520100531 = subInt(nHEX60gensym37_1442841550, 2); - F.line = 33; - F.filename = "iterators_1.nim"; - var res_520100532 = colontmp__520100531; + var iHEX60gensym37_1728054234 = 0; + var colontmp__553654963 = 0; + colontmp__553654963 = subInt(nHEX60gensym37_1728054222, 2); + var res_553654964 = colontmp__553654963; Label15: { - F.line = 34; Label16: while (true) { - if (!(0 <= res_520100532)) break Label16; - F.line = 979; - F.filename = "sequtils.nim"; - iHEX60gensym37_1442841562 = res_520100532; - F.line = 981; - var a_1442841563 = sHEX60gensym37_1442841545[chckIndx(iHEX60gensym37_1442841562, 0, (sHEX60gensym37_1442841545).length - 1)]; - F.line = 982; - var b_1442841564 = resultHEX60gensym37_1442841556; - F.line = 166; - F.filename = "power.nim"; - resultHEX60gensym37_1442841556 = addInt(a_1442841563, b_1442841564); - F.line = 39; - F.filename = "iterators_1.nim"; - res_520100532 = subInt(res_520100532, 1); + if (!(0 <= res_553654964)) break Label16; + iHEX60gensym37_1728054234 = res_553654964; + var a_1728054235 = sHEX60gensym37_1728054217[chckIndx(iHEX60gensym37_1728054234, 0, (sHEX60gensym37_1728054217).length - 1)]; + var b_1728054236 = resultHEX60gensym37_1728054228; + resultHEX60gensym37_1728054228 = addInt(a_1728054235, b_1728054236); + res_553654964 = subInt(res_553654964, 1); } }; }; - var sum_1442841565 = resultHEX60gensym37_1442841556; - F.line = 167; - F.filename = "power.nim"; - var x_1442841566 = rand_1392509064(sum_1442841565); + var sum_1728054237 = resultHEX60gensym37_1728054228; + var x_1728054238 = rand_1644167304(sum_1728054237); Label17: { - F.line = 169; - var p_1442841570 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); - F.line = 249; - F.filename = "iterators.nim"; - var i_520100535 = 0; - F.line = 250; - var L_520100536 = (search_1442841480).length; + var p_1728054242 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); + var i_553654967 = 0; + var L_553654968 = (search_1728054152).length; Label18: { - F.line = 251; Label19: while (true) { - if (!(i_520100535 < L_520100536)) break Label19; - F.line = 169; - F.filename = "power.nim"; - p_1442841570 = search_1442841480[chckIndx(i_520100535, 0, (search_1442841480).length - 1)]; - F.line = 170; - x_1442841566 = subInt(x_1442841566, p_1442841570.rarity); - if ((x_1442841566 <= 0)) { - F.line = 171; - result_1442841426 = nimCopy(result_1442841426, p_1442841570, NTI1442840581); + if (!(i_553654967 < L_553654968)) break Label19; + p_1728054242 = search_1728054152[chckIndx(i_553654967, 0, (search_1728054152).length - 1)]; + x_1728054238 = subInt(x_1728054238, p_1728054242.rarity); + if ((x_1728054238 <= 0)) { + result_1728054098 = nimCopy(result_1728054098, p_1728054242, NTI1728053253); break BeforeRet; } - F.line = 13; - F.filename = "iterators.nim"; - i_520100535 += 1; - if (!(((search_1442841480).length == L_520100536))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + i_553654967 += 1; + if (!(((search_1728054152).length == L_553654968))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; }; - framePtr = F.prev; - return result_1442841426; + return result_1728054098; } -function randomTier_1442841575(w_1442841576) { - var result_1442841577 = 0; +function randomTier_1728054247(w_1728054248) { + var result_1728054249 = 0; - var F = {procname: "power.randomTier", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/power.nim", line: 0}; - framePtr = F; BeforeRet: { - if (!((addInt(addInt(addInt(w_1442841576.Field0, w_1442841576.Field1), w_1442841576.Field2), w_1442841576.Field3) == 100))) { - F.line = 174; - F.filename = "power.nim"; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/the-playground/chess/src/power.nim(174, 5) `w.common + w.uncommon + w.rare + w.ultraRare == 100` ")); + if (!((addInt(addInt(addInt(w_1728054248.Field0, w_1728054248.Field1), w_1728054248.Field2), w_1728054248.Field3) == 100))) { + failedAssertImpl_268435541(makeNimstrLit("power.nim(174, 5) `w.common + w.uncommon + w.rare + w.ultraRare == 100` ")); } - F.line = 175; - var x_1442841583 = rand_1392509064(100); - if ((x_1442841583 <= w_1442841576.Field0)) { - F.line = 178; - result_1442841577 = 0; + var x_1728054255 = rand_1644167304(100); + if ((x_1728054255 <= w_1728054248.Field0)) { + result_1728054249 = 0; break BeforeRet; } else { - if ((x_1442841583 <= addInt(w_1442841576.Field0, w_1442841576.Field1))) { - F.line = 180; - result_1442841577 = 1; + if ((x_1728054255 <= addInt(w_1728054248.Field0, w_1728054248.Field1))) { + result_1728054249 = 1; break BeforeRet; } else { - if ((x_1442841583 <= addInt(addInt(w_1442841576.Field0, w_1442841576.Field1), w_1442841576.Field2))) { - F.line = 182; - result_1442841577 = 2; + if ((x_1728054255 <= addInt(addInt(w_1728054248.Field0, w_1728054248.Field1), w_1728054248.Field2))) { + result_1728054249 = 2; break BeforeRet; } else { - F.line = 184; - result_1442841577 = 3; + result_1728054249 = 3; break BeforeRet; } }} }; - framePtr = F.prev; - - return result_1442841577; - -} - -function HEX26_1442841613(x_1442841615, y_1442841616) { - var result_1442841617 = []; - - var F = {procname: "&.&", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; - F.line = 1537; - F.filename = "system.nim"; - result_1442841617 = new Array(chckRange(addInt((x_1442841615).length, (y_1442841616).length), 0, 2147483647)); for (var i = 0 ; i < chckRange(addInt((x_1442841615).length, (y_1442841616).length), 0, 2147483647) ; ++i) { result_1442841617[i] = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); } Label1: { - F.line = 1538; - var i_1442841635 = 0; - F.line = 81; - F.filename = "iterators_1.nim"; - var colontmp__520100551 = 0; - F.line = 1538; - F.filename = "system.nim"; - colontmp__520100551 = subInt((x_1442841615).length, 1); - F.line = 96; - F.filename = "iterators_1.nim"; - var res_520100552 = 0; + + return result_1728054249; + +} + +function HEX26_1728054285(x_1728054287, y_1728054288) { + var result_1728054289 = []; + + result_1728054289 = new Array(chckRange(addInt((x_1728054287).length, (y_1728054288).length), 0, 2147483647)); for (var i = 0 ; i < chckRange(addInt((x_1728054287).length, (y_1728054288).length), 0, 2147483647) ; ++i) { result_1728054289[i] = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); } Label1: { + var i_1728054307 = 0; + var colontmp__553654983 = 0; + colontmp__553654983 = subInt((x_1728054287).length, 1); + var res_553654984 = 0; Label2: { - F.line = 97; Label3: while (true) { - if (!(res_520100552 <= colontmp__520100551)) break Label3; - F.line = 1538; - F.filename = "system.nim"; - i_1442841635 = res_520100552; - F.line = 1539; - result_1442841617[chckIndx(i_1442841635, 0, (result_1442841617).length - 1)] = nimCopy(result_1442841617[chckIndx(i_1442841635, 0, (result_1442841617).length - 1)], x_1442841615[chckIndx(i_1442841635, 0, (x_1442841615).length - 1)], NTI1442840581); - F.line = 102; - F.filename = "iterators_1.nim"; - res_520100552 = addInt(res_520100552, 1); + if (!(res_553654984 <= colontmp__553654983)) break Label3; + i_1728054307 = res_553654984; + result_1728054289[chckIndx(i_1728054307, 0, (result_1728054289).length - 1)] = nimCopy(result_1728054289[chckIndx(i_1728054307, 0, (result_1728054289).length - 1)], x_1728054287[chckIndx(i_1728054307, 0, (x_1728054287).length - 1)], NTI1728053253); + res_553654984 = addInt(res_553654984, 1); } }; }; Label4: { - F.line = 1540; - F.filename = "system.nim"; - var i_1442841643 = 0; - F.line = 81; - F.filename = "iterators_1.nim"; - var colontmp__520100555 = 0; - F.line = 1540; - F.filename = "system.nim"; - colontmp__520100555 = subInt((y_1442841616).length, 1); - F.line = 96; - F.filename = "iterators_1.nim"; - var res_520100556 = 0; + var i_1728054315 = 0; + var colontmp__553654987 = 0; + colontmp__553654987 = subInt((y_1728054288).length, 1); + var res_553654988 = 0; Label5: { - F.line = 97; Label6: while (true) { - if (!(res_520100556 <= colontmp__520100555)) break Label6; - F.line = 1540; - F.filename = "system.nim"; - i_1442841643 = res_520100556; - F.line = 1541; - result_1442841617[chckIndx(addInt(i_1442841643, (x_1442841615).length), 0, (result_1442841617).length - 1)] = nimCopy(result_1442841617[chckIndx(addInt(i_1442841643, (x_1442841615).length), 0, (result_1442841617).length - 1)], y_1442841616[chckIndx(i_1442841643, 0, (y_1442841616).length - 1)], NTI1442840581); - F.line = 102; - F.filename = "iterators_1.nim"; - res_520100556 = addInt(res_520100556, 1); + if (!(res_553654988 <= colontmp__553654987)) break Label6; + i_1728054315 = res_553654988; + result_1728054289[chckIndx(addInt(i_1728054315, (x_1728054287).length), 0, (result_1728054289).length - 1)] = nimCopy(result_1728054289[chckIndx(addInt(i_1728054315, (x_1728054287).length), 0, (result_1728054289).length - 1)], y_1728054288[chckIndx(i_1728054315, 0, (y_1728054288).length - 1)], NTI1728053253); + res_553654988 = addInt(res_553654988, 1); } }; }; - framePtr = F.prev; - return result_1442841617; + return result_1728054289; } -function draftRandomPower_1442841651(allSelected_1442841652, drafterSelected_1442841653, options_1442841654, normalWeights_1442841655, buffedWeights_1442841656) { +function draftRandomPower_1728054323(allSelected_1728054324, drafterSelected_1728054325, options_1728054326, normalWeights_1728054327, buffedWeights_1728054328) { var Temporary1; - var result_1442841657 = []; + var result_1728054329 = []; - var F = {procname: "power.draftRandomPower", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/power.nim", line: 0}; - framePtr = F; - F.line = 191; - F.filename = "power.nim"; - if (contains_1442841239(drafterSelected_1442841653, holy_1442840644)) { - Temporary1 = buffedWeights_1442841656; + if (contains_1728053911(drafterSelected_1728054325, holy_1728053316)) { + Temporary1 = buffedWeights_1728054328; } else { - Temporary1 = normalWeights_1442841655; + Temporary1 = normalWeights_1728054327; } - var weights_1442841662 = nimCopy(null, Temporary1, NTI1442840583); + var weights_1728054334 = nimCopy(null, Temporary1, NTI1728053255); Label2: { - F.line = 192; - var x_1442841667 = 0; - F.line = 81; - F.filename = "iterators_1.nim"; - var colontmp__520100512 = 0; - F.line = 192; - F.filename = "power.nim"; - colontmp__520100512 = subInt(options_1442841654, 1); - F.line = 96; - F.filename = "iterators_1.nim"; - var res_520100513 = 0; + var x_1728054339 = 0; + var colontmp__553654944 = 0; + colontmp__553654944 = subInt(options_1728054326, 1); + var res_553654945 = 0; Label3: { - F.line = 97; Label4: while (true) { - if (!(res_520100513 <= colontmp__520100512)) break Label4; - F.line = 192; - F.filename = "power.nim"; - x_1442841667 = res_520100513; - F.line = 193; - result_1442841657.push(randomPower_1442841418(randomTier_1442841575(weights_1442841662), drafterSelected_1442841653, HEX26_1442841613(allSelected_1442841652, result_1442841657)));; - F.line = 102; - F.filename = "iterators_1.nim"; - res_520100513 = addInt(res_520100513, 1); + if (!(res_553654945 <= colontmp__553654944)) break Label4; + x_1728054339 = res_553654945; + result_1728054329.push(randomPower_1728054090(randomTier_1728054247(weights_1728054334), drafterSelected_1728054325, HEX26_1728054285(allSelected_1728054324, result_1728054329)));; + res_553654945 = addInt(res_553654945, 1); } }; }; - framePtr = F.prev; - return result_1442841657; + return result_1728054329; } -function draftRandomPowerTier_1442841600(t_1442841601, allSelected_1442841602, drafterSelected_1442841603, options_1442841604, normalWeights_1442841605, buffedWeights_1442841606) { - var result_1442841607 = []; +function draftRandomPowerTier_1728054272(t_1728054273, allSelected_1728054274, drafterSelected_1728054275, options_1728054276, normalWeights_1728054277, buffedWeights_1728054278) { + var result_1728054279 = []; - var F = {procname: "power.draftRandomPowerTier", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/power.nim", line: 0}; - framePtr = F; Label1: { - F.line = 187; - F.filename = "power.nim"; - var x_1442841612 = 0; - F.line = 81; - F.filename = "iterators_1.nim"; - var colontmp__520100559 = 0; - F.line = 187; - F.filename = "power.nim"; - colontmp__520100559 = subInt(options_1442841604, 1); - F.line = 96; - F.filename = "iterators_1.nim"; - var res_520100560 = 0; + var x_1728054284 = 0; + var colontmp__553654991 = 0; + colontmp__553654991 = subInt(options_1728054276, 1); + var res_553654992 = 0; Label2: { - F.line = 97; Label3: while (true) { - if (!(res_520100560 <= colontmp__520100559)) break Label3; - F.line = 187; - F.filename = "power.nim"; - x_1442841612 = res_520100560; - F.line = 188; - result_1442841607.push(randomPower_1442841418(t_1442841601, drafterSelected_1442841603, HEX26_1442841613(allSelected_1442841602, result_1442841607)));; - F.line = 102; - F.filename = "iterators_1.nim"; - res_520100560 = addInt(res_520100560, 1); + if (!(res_553654992 <= colontmp__553654991)) break Label3; + x_1728054284 = res_553654992; + result_1728054279.push(randomPower_1728054090(t_1728054273, drafterSelected_1728054275, HEX26_1728054285(allSelected_1728054274, result_1728054279)));; + res_553654992 = addInt(res_553654992, 1); } }; }; - framePtr = F.prev; - return result_1442841607; + return result_1728054279; } -function draft_520097271(allDrafts_520097276, drafter_520097281) { - var F = {procname: "main.draft", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 368; - F.filename = "main.nim"; - var disabled_520097286 = [[]]; - if (disableRNGPowers_520093852[0]) { - F.line = 371; - add_520097287(disabled_520097286, 0, rngPowers_1493178726); +function draft_553651703(allDrafts_553651708, drafter_553651713) { + var disabled_553651718 = [[]]; + if (disableRNGPowers_553648284[0]) { + add_553651719(disabled_553651718, 0, rngPowers_1845500285); } - if (!(enableExperimental_520093854[0])) { - F.line = 373; - add_520097287(disabled_520097286, 0, experimentalPowers_1493178731); + if (!(enableExperimental_553648286[0])) { + add_553651719(disabled_553651718, 0, experimentalPowers_1845500290); } - if ((gameMode_520093857[0] == 2)) { - F.line = 376; - draftOptions_520093820[0] = nimCopy(null, draftRandomPower_1442841651(HEX26_1442841613(allDrafts_520097276, disabled_520097286[0]), drafter_520097281, draftChoices_520093821[0], {Field0: 60, Field1: 30, Field2: 9, Field3: 1}, {Field0: 50, Field1: 36, Field2: 12, Field3: 2}), NTI1442841384); + if ((gameMode_553648289[0] == 2)) { + draftOptions_553648252[0] = nimCopy(null, draftRandomPower_1728054323(HEX26_1728054285(allDrafts_553651708, disabled_553651718[0]), drafter_553651713, draftChoices_553648253[0], {Field0: 60, Field1: 30, Field2: 9, Field3: 1}, {Field0: 50, Field1: 36, Field2: 12, Field3: 2}), NTI1728054056); } else { - if ((gameMode_520093857[0] == 1)) { - F.line = 379; - draftOptions_520093820[0] = nimCopy(null, draftRandomPowerTier_1442841600(draftTier_520093823[0], HEX26_1442841613(HEX26_1442841016(allDrafts_520097276, holy_1442840644), disabled_520097286[0]), drafter_520097281, draftChoices_520093821[0], {Field0: 60, Field1: 30, Field2: 9, Field3: 1}, {Field0: 50, Field1: 36, Field2: 12, Field3: 2}), NTI1442841347); + if ((gameMode_553648289[0] == 1)) { + draftOptions_553648252[0] = nimCopy(null, draftRandomPowerTier_1728054272(draftTier_553648255[0], HEX26_1728054285(HEX26_1728053688(allDrafts_553651708, holy_1728053316), disabled_553651718[0]), drafter_553651713, draftChoices_553648253[0], {Field0: 60, Field1: 30, Field2: 9, Field3: 1}, {Field0: 50, Field1: 36, Field2: 12, Field3: 2}), NTI1728054019); } else { - if ((gameMode_520093857[0] == 3)) { - F.line = 381; - draftOptions_520093820[0] = nimCopy(null, draftRandomPower_1442841651(HEX26_1442841613(allDrafts_520097276, disabled_520097286[0]), drafter_520097281, draftChoices_520093821[0], {Field0: 25, Field1: 35, Field2: 30, Field3: 10}, {Field0: 15, Field1: 38, Field2: 35, Field3: 12}), NTI1442841384); + if ((gameMode_553648289[0] == 3)) { + draftOptions_553648252[0] = nimCopy(null, draftRandomPower_1728054323(HEX26_1728054285(allDrafts_553651708, disabled_553651718[0]), drafter_553651713, draftChoices_553648253[0], {Field0: 25, Field1: 35, Field2: 30, Field3: 10}, {Field0: 15, Field1: 38, Field2: 35, Field3: 12}), NTI1728054056); } }} - framePtr = F.prev; } -function newSeq_687867434(len_687867436) { - var result_687867437 = []; +function newSeq_721421866(len_721421868) { + var result_721421869 = []; - var F = {procname: "newSeq.newSeq", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; - F.line = 633; - F.filename = "system.nim"; - result_687867437 = new Array(len_687867436); for (var i = 0 ; i < len_687867436 ; ++i) { result_687867437[i] = ({k: 0, parent: null, current: null, newNode: null, oldNode: null}); } framePtr = F.prev; - - return result_687867437; + result_721421869 = new Array(len_721421868); for (var i = 0 ; i < len_721421868 ; ++i) { result_721421869[i] = ({k: 0, parent: null, current: null, newNode: null, oldNode: null}); } + return result_721421869; } -function newSeq_687867462(len_687867464) { - var result_687867465 = []; - - var F = {procname: "newSeq.newSeq", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; - F.line = 633; - F.filename = "system.nim"; - result_687867465 = new Array(len_687867464); for (var i = 0 ; i < len_687867464 ; ++i) { result_687867465[i] = ({parent: null, newChild: null, pos: 0}); } framePtr = F.prev; +function newSeq_721421894(len_721421896) { + var result_721421897 = []; - return result_687867465; + result_721421897 = new Array(len_721421896); for (var i = 0 ; i < len_721421896 ; ++i) { result_721421897[i] = ({parent: null, newChild: null, pos: 0}); } + return result_721421897; } -function init_687867382(ev_687867383) { +function init_721421814(ev_721421815) { -function HEX3Aanonymous_687867384() { - var F = {procname: "init.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/karax.nim", line: 0}; - framePtr = F; - F.line = 747; - F.filename = "karax.nim"; - dodraw_687867280(kxi__); - framePtr = F.prev; +function HEX3Aanonymous_721421816() { + dodraw_721421712(kxi__); } - var F = {procname: "karax.init", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/karax.nim", line: 0}; - framePtr = F; - F.line = 747; - F.filename = "karax.nim"; - kxi__.renderId = window.requestAnimationFrame(HEX3Aanonymous_687867384); - framePtr = F.prev; + kxi__.renderId = window.requestAnimationFrame(HEX3Aanonymous_721421816); } -function setRenderer_687867416(renderer_687867419, root_687867420, clientPostRenderCallback_687867423) { +function setRenderer_721421848(renderer_721421851, root_721421852, clientPostRenderCallback_721421855) { -function HEX3Aanonymous_687867496() { - var F = {procname: "setRenderer.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/karax.nim", line: 0}; - framePtr = F; - F.line = 770; - F.filename = "karax.nim"; - redraw_687867377(kxi__); - framePtr = F.prev; +function HEX3Aanonymous_721421928() { + redraw_721421809(kxi__); } - var result_687867424 = null; + var result_721421856 = null; - var F = {procname: "karax.setRenderer", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/karax.nim", line: 0}; - framePtr = F; - if ((document.getElementById(root_687867420) == null)) { - F.line = 756; - F.filename = "karax.nim"; - var msg_687867428 = (("Could not find a
with id=" + root_687867420) + ". Karax needs it as its rendering target."); - F.line = 758; - raiseException({message: cstrToNimstr(msg_687867428), parent: null, m_type: NTI33555177, name: null, trace: [], up: null}, "Exception"); + if ((document.getElementById(root_721421852) == null)) { + var msg_721421860 = (("Could not find a
with id=" + root_721421852) + ". Karax needs it as its rendering target."); + raiseException({message: cstrToNimstr(msg_721421860), parent: null, m_type: NTI33555177, name: null, trace: [], up: null}, "Exception"); } - F.line = 760; - result_687867424 = {rootId: root_687867420, renderer: renderer_687867419, postRenderCallback: clientPostRenderCallback_687867423, patches: newSeq_687867434(60), patchesV: newSeq_687867462(30), components: [], surpressRedraws: false, byId: {}, orphans: {}, currentTree: null, toFocus: null, toFocusV: null, renderId: 0, rendering: false, patchLen: 0, patchLenV: 0, runCount: 0}; - F.line = 768; - kxi__ = result_687867424; - F.line = 769; - window.addEventListener("load", init_687867382, false); - F.line = 770; - window.onhashchange = HEX3Aanonymous_687867496; - framePtr = F.prev; + result_721421856 = {rootId: root_721421852, renderer: renderer_721421851, postRenderCallback: clientPostRenderCallback_721421855, patches: newSeq_721421866(60), patchesV: newSeq_721421894(30), components: [], surpressRedraws: false, byId: {}, orphans: {}, currentTree: null, toFocus: null, toFocusV: null, renderId: 0, rendering: false, patchLen: 0, patchLenV: 0, runCount: 0}; + kxi__ = result_721421856; + window.addEventListener("load", init_721421814, false); + window.onhashchange = HEX3Aanonymous_721421928; - return result_687867424; + return result_721421856; } -function setRenderer_687867621(renderer_687867623, root_687867624, clientPostRenderCallback_687867626) { +function setRenderer_721422053(renderer_721422055, root_721422056, clientPostRenderCallback_721422058) { -function wrapRenderer_687867628(data_687867629) { - var result_687867630 = null; +function wrapRenderer_721422060(data_721422061) { + var result_721422062 = null; - var F = {procname: "setRenderer.wrapRenderer", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/karax.nim", line: 0}; - framePtr = F; - F.line = 775; - F.filename = "karax.nim"; - result_687867630 = renderer_687867623(); - framePtr = F.prev; + result_721422062 = renderer_721422055(); - return result_687867630; + return result_721422062; } -function wrapPostRender_687867631(data_687867632) { - var F = {procname: "setRenderer.wrapPostRender", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/karax.nim", line: 0}; - framePtr = F; - if (!((clientPostRenderCallback_687867626 == null))) { - F.line = 777; - F.filename = "karax.nim"; - clientPostRenderCallback_687867626(); +function wrapPostRender_721422063(data_721422064) { + if (!((clientPostRenderCallback_721422058 == null))) { + clientPostRenderCallback_721422058(); } - framePtr = F.prev; } - var result_687867627 = null; + var result_721422059 = null; - var F = {procname: "karax.setRenderer", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/karax.nim", line: 0}; - framePtr = F; - F.line = 774; - F.filename = "karax.nim"; - result_687867627 = setRenderer_687867416(wrapRenderer_687867628, root_687867624, wrapPostRender_687867631); - framePtr = F.prev; + result_721422059 = setRenderer_721421848(wrapRenderer_721422060, root_721422056, wrapPostRender_721422063); - return result_687867627; + return result_721422059; } -function newVNode_721421181(kind_721421182) { - var result_721421183 = null; +function newVNode_754975613(kind_754975614) { + var result_754975615 = null; - var F = {procname: "vdom.newVNode", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/vdom.nim", line: 0}; - framePtr = F; - F.line = 311; - F.filename = "vdom.nim"; - result_721421183 = {kind: kind_721421182, index: (-1), m_type: NTI721420388, id: null, class: null, text: null, kids: [], attrs: [], events: [], style: null, styleVersion: 0, dom: null}; - framePtr = F.prev; + result_754975615 = {kind: kind_754975614, index: (-1), m_type: NTI754974820, id: null, class: null, text: null, kids: [], attrs: [], events: [], style: null, styleVersion: 0, dom: null}; - return result_721421183; + return result_754975615; } -function add_721421120(parent_721421121, kid_721421122) { - var F = {procname: "vdom.add", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/vdom.nim", line: 0}; - framePtr = F; - F.line = 305; - F.filename = "vdom.nim"; - parent_721421121.kids.push(kid_721421122);; - framePtr = F.prev; +function add_754975552(parent_754975553, kid_754975554) { + parent_754975553.kids.push(kid_754975554);; } -function tree_721421184(kind_721421185, kids_721421186) { - var result_721421187 = null; +function tree_754975616(kind_754975617, kids_754975618) { + var result_754975619 = null; - var F = {procname: "vdom.tree", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/vdom.nim", line: 0}; - framePtr = F; - F.line = 314; - F.filename = "vdom.nim"; - result_721421187 = newVNode_721421181(kind_721421185); + result_754975619 = newVNode_754975613(kind_754975617); Label1: { - F.line = 315; - var k_721421200 = null; - F.line = 18; - F.filename = "iterators.nim"; - var i_520100564 = 0; + var k_754975632 = null; + var i_553654996 = 0; Label2: { - F.line = 19; Label3: while (true) { - if (!(i_520100564 < (kids_721421186).length)) break Label3; - F.line = 315; - F.filename = "vdom.nim"; - k_721421200 = kids_721421186[chckIndx(i_520100564, 0, (kids_721421186).length - 1)]; - F.line = 315; - add_721421120(result_721421187, k_721421200); - F.line = 13; - F.filename = "iterators.nim"; - i_520100564 += 1; + if (!(i_553654996 < (kids_754975618).length)) break Label3; + k_754975632 = kids_754975618[chckIndx(i_553654996, 0, (kids_754975618).length - 1)]; + add_754975552(result_754975619, k_754975632); + i_553654996 += 1; } }; }; - framePtr = F.prev; - return result_721421187; + return result_754975619; } -function text_721421252(s_721421253) { - var result_721421254 = null; +function text_754975684(s_754975685) { + var result_754975686 = null; - var F = {procname: "vdom.text", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/vdom.nim", line: 0}; - framePtr = F; - F.line = 323; - F.filename = "vdom.nim"; - result_721421254 = {kind: 0, text: toJSStr(s_721421253), index: (-1), m_type: NTI721420388, id: null, class: null, kids: [], attrs: [], events: [], style: null, styleVersion: 0, dom: null}; - framePtr = F.prev; + result_754975686 = {kind: 0, text: toJSStr(s_754975685), index: (-1), m_type: NTI754974820, id: null, class: null, kids: [], attrs: [], events: [], style: null, styleVersion: 0, dom: null}; - return result_721421254; + return result_754975686; } -function addEventListener_721421303(n_721421304, event_721421305, handler_721421306) { - var F = {procname: "vdom.addEventListener", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/vdom.nim", line: 0}; - framePtr = F; - F.line = 347; - F.filename = "vdom.nim"; - n_721421304.events.push({Field0: event_721421305, Field1: handler_721421306, Field2: null});; - framePtr = F.prev; +function addEventListener_754975735(n_754975736, event_754975737, handler_754975738) { + n_754975736.events.push({Field0: event_754975737, Field1: handler_754975738, Field2: null});; } -function addEventHandler_687867670(n_687867671, k_687867672, action_687867673, kxi_687867674) { +function addEventHandler_721422102(n_721422103, k_721422104, action_721422105, kxi_721422106) { -function wrapper_687867675(ev_687867676, n_687867677) { - var F = {procname: "addEventHandler.wrapper", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/karax.nim", line: 0}; - framePtr = F; - F.line = 816; - F.filename = "karax.nim"; - action_687867673(ev_687867676, n_687867677); - if (!(kxi_687867674.surpressRedraws)) { - F.line = 817; - redraw_687867377(kxi_687867674); +function wrapper_721422107(ev_721422108, n_721422109) { + action_721422105(ev_721422108, n_721422109); + if (!(kxi_721422106.surpressRedraws)) { + redraw_721421809(kxi_721422106); } - framePtr = F.prev; } - var F = {procname: "karax.addEventHandler", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/karax.nim", line: 0}; - framePtr = F; - F.line = 818; - F.filename = "karax.nim"; - addEventListener_721421303(n_687867671, k_687867672, wrapper_687867675); - framePtr = F.prev; + addEventListener_754975735(n_721422103, k_721422104, wrapper_721422107); } @@ -18615,12 +12274,7 @@ function wrapper_687867675(ev_687867676, n_687867677) { function toFloat_33556008(i_33556009) { var result_33556010 = 0.0; - var F = {procname: "system.toFloat", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; - F.line = 1298; - F.filename = "system.nim"; result_33556010 = i_33556009; - framePtr = F.prev; return result_33556010; @@ -18629,54 +12283,33 @@ function toFloat_33556008(i_33556009) { function HEX2F_33556020(x_33556021, y_33556022) { var result_33556023 = 0.0; - var F = {procname: "system./", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; - F.line = 1346; - F.filename = "system.nim"; result_33556023 = (toFloat_33556008(x_33556021) / toFloat_33556008(y_33556022)); - framePtr = F.prev; return result_33556023; } -function epochTime_1409290426() { - var result_1409290427 = 0.0; +function epochTime_1660948666() { + var result_1660948667 = 0.0; - var F = {procname: "times.epochTime", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/times.nim", line: 0}; - framePtr = F; - F.line = 2808; - F.filename = "times.nim"; - result_1409290427 = HEX2F_33556020(new Date().getTime(), 1000); - framePtr = F.prev; + result_1660948667 = HEX2F_33556020(new Date().getTime(), 1000); - return result_1409290427; + return result_1660948667; } -function initRand_1392509219() { - var result_1392509220 = ({a0: 0, a1: 0}); +function initRand_1644167459() { + var result_1644167460 = ({a0: 0, a1: 0}); - var F = {procname: "random.initRand", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/random.nim", line: 0}; - framePtr = F; - F.line = 691; - F.filename = "random.nim"; - var time_1392509221 = (BigInt(Math.trunc((epochTime_1409290426() * 1000.0))) & 2147483647n); - F.line = 692; - result_1392509220 = nimCopy(result_1392509220, initRand_1392509177(time_1392509221), NTI1392508932); - framePtr = F.prev; + var time_1644167461 = (BigInt(Math.trunc((epochTime_1660948666() * 1000.0))) & 2147483647n); + result_1644167460 = nimCopy(result_1644167460, initRand_1644167417(time_1644167461), NTI1644167172); - return result_1392509220; + return result_1644167460; } -function randomize_1392509226() { - var F = {procname: "random.randomize", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/random.nim", line: 0}; - framePtr = F; - F.line = 745; - F.filename = "random.nim"; - state_1392508942[0] = nimCopy(state_1392508942[0], initRand_1392509219(), NTI1392508932); - framePtr = F.prev; +function randomize_1644167466() { + state_1644167182[0] = nimCopy(state_1644167182[0], initRand_1644167459(), NTI1644167172); } @@ -18684,262 +12317,174 @@ function randomize_1392509226() { function substr_33558084(s_33558085, first_33558086, last_33558087) { var result_33558088 = []; - var F = {procname: "system.substr", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; - F.line = 2676; - F.filename = "system.nim"; var first_33558089 = nimMax(first_33558086, 0); - F.line = 2677; var L_33558090 = nimMax(addInt(subInt(nimMin(last_33558087, (s_33558085).length - 1), first_33558089), 1), 0); - F.line = 2678; result_33558088 = nimCopy(null, mnewString(chckRange(L_33558090, 0, 2147483647)), NTI33554449); Label1: { - F.line = 2679; var i_33558095 = 0; - F.line = 81; - F.filename = "iterators_1.nim"; - var colontmp__520100575 = 0; - F.line = 2679; - F.filename = "system.nim"; - colontmp__520100575 = subInt(L_33558090, 1); - F.line = 96; - F.filename = "iterators_1.nim"; - var res_520100576 = 0; + var colontmp__553655007 = 0; + colontmp__553655007 = subInt(L_33558090, 1); + var res_553655008 = 0; Label2: { - F.line = 97; Label3: while (true) { - if (!(res_520100576 <= colontmp__520100575)) break Label3; - F.line = 2679; - F.filename = "system.nim"; - i_33558095 = res_520100576; - F.line = 2680; + if (!(res_553655008 <= colontmp__553655007)) break Label3; + i_33558095 = res_553655008; result_33558088[chckIndx(i_33558095, 0, (result_33558088).length - 1)] = s_33558085[chckIndx(addInt(i_33558095, first_33558089), 0, (s_33558085).length - 1)]; - F.line = 102; - F.filename = "iterators_1.nim"; - res_520100576 = addInt(res_520100576, 1); + res_553655008 = addInt(res_553655008, 1); } }; }; - framePtr = F.prev; return result_33558088; } -function nsuSplitChar(s_838861345, sep_838861346, maxsplit_838861347) { - var result_838861348 = []; +function nsuSplitChar(s_889192993, sep_889192994, maxsplit_889192995) { + var result_889192996 = []; - var F = {procname: "strutils.split", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/strutils.nim", line: 0}; - framePtr = F; - F.line = 417; - F.filename = "strutils.nim"; - result_838861348 = nimCopy(null, [], NTI838861173); + result_889192996 = nimCopy(null, [], NTI889192821); Label1: { - F.line = 418; - var xHEX60gensym67_838861354 = []; - F.line = 389; - var lastHEX60gensym34_520100569 = 0; - F.line = 390; - var splitsHEX60gensym34_520100570 = maxsplit_838861347; + var xHEX60gensym67_889193002 = []; + var lastHEX60gensym34_553655001 = 0; + var splitsHEX60gensym34_553655002 = maxsplit_889192995; Label2: { - F.line = 450; Label3: while (true) { - if (!(lastHEX60gensym34_520100569 <= (s_838861345).length)) break Label3; - F.line = 393; - var firstHEX60gensym34_520100572 = lastHEX60gensym34_520100569; + if (!(lastHEX60gensym34_553655001 <= (s_889192993).length)) break Label3; + var firstHEX60gensym34_553655004 = lastHEX60gensym34_553655001; Label4: { - F.line = 394; Label5: while (true) { - if (!((lastHEX60gensym34_520100569 < (s_838861345).length) && !((s_838861345[chckIndx(lastHEX60gensym34_520100569, 0, (s_838861345).length - 1)] == sep_838861346)))) break Label5; - F.line = 395; - lastHEX60gensym34_520100569 = addInt(lastHEX60gensym34_520100569, 1); + if (!((lastHEX60gensym34_553655001 < (s_889192993).length) && !((s_889192993[chckIndx(lastHEX60gensym34_553655001, 0, (s_889192993).length - 1)] == sep_889192994)))) break Label5; + lastHEX60gensym34_553655001 = addInt(lastHEX60gensym34_553655001, 1); } }; - if ((splitsHEX60gensym34_520100570 == 0)) { - F.line = 396; - lastHEX60gensym34_520100569 = (s_838861345).length; + if ((splitsHEX60gensym34_553655002 == 0)) { + lastHEX60gensym34_553655001 = (s_889192993).length; } - F.line = 743; - xHEX60gensym67_838861354 = substr_33558084(s_838861345, firstHEX60gensym34_520100572, subInt(lastHEX60gensym34_520100569, 1)); - F.line = 418; - var Temporary6 = nimCopy(null, xHEX60gensym67_838861354, NTI33554449); - result_838861348.push(Temporary6);; - if ((splitsHEX60gensym34_520100570 == 0)) { - F.line = 398; + xHEX60gensym67_889193002 = substr_33558084(s_889192993, firstHEX60gensym34_553655004, subInt(lastHEX60gensym34_553655001, 1)); + var Temporary6 = nimCopy(null, xHEX60gensym67_889193002, NTI33554449); + result_889192996.push(Temporary6);; + if ((splitsHEX60gensym34_553655002 == 0)) { break Label2; } - F.line = 399; - splitsHEX60gensym34_520100570 = subInt(splitsHEX60gensym34_520100570, 1); - F.line = 400; - lastHEX60gensym34_520100569 = addInt(lastHEX60gensym34_520100569, 1); + splitsHEX60gensym34_553655002 = subInt(splitsHEX60gensym34_553655002, 1); + lastHEX60gensym34_553655001 = addInt(lastHEX60gensym34_553655001, 1); } }; }; - framePtr = F.prev; - return result_838861348; + return result_889192996; } -function cutMessage_1325400107(data_1325400108) { +function cutMessage_1577058347(data_1577058348) { var Temporary1; - var result_1325400109 = []; + var result_1577058349 = []; - var F = {procname: "port.cutMessage", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/port.nim", line: 0}; - framePtr = F; BeforeRet: { - F.line = 62; - F.filename = "port.nim"; - result_1325400109 = nimCopy(null, (Temporary1 = nsuSplitChar(cstrToNimstr(data_1325400108), 58, (-1)), Temporary1)[chckIndx(1, 0, (Temporary1).length - 1)], NTI33554449); + result_1577058349 = nimCopy(null, (Temporary1 = nsuSplitChar(cstrToNimstr(data_1577058348), 58, (-1)), Temporary1)[chckIndx(1, 0, (Temporary1).length - 1)], NTI33554449); break BeforeRet; }; - framePtr = F.prev; - return result_1325400109; + return result_1577058349; } -function messageType_1325400087(data_1325400088) { - var result_1325400089 = 0; +function messageType_1577058327(data_1577058328) { + var result_1577058329 = 0; - var F = {procname: "port.messageType", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/port.nim", line: 0}; - framePtr = F; BeforeRet: { - F.line = 45; - F.filename = "port.nim"; - var str_1325400090 = cstrToNimstr(data_1325400088); - if (contains_838862678(str_1325400090, [105,100,58])) { - F.line = 47; - result_1325400089 = 0; + var str_1577058330 = cstrToNimstr(data_1577058328); + if (contains_889194326(str_1577058330, [105,100,58])) { + result_1577058329 = 0; break BeforeRet; } else { - if (contains_838862678(str_1325400090, [104,97,110,100,115,104,97,107,101,58])) { - F.line = 49; - result_1325400089 = 1; + if (contains_889194326(str_1577058330, [104,97,110,100,115,104,97,107,101,58])) { + result_1577058329 = 1; break BeforeRet; } else { - if (contains_838862678(str_1325400090, [111,112,116,105,111,110,115,58])) { - F.line = 51; - result_1325400089 = 2; + if (contains_889194326(str_1577058330, [111,112,116,105,111,110,115,58])) { + result_1577058329 = 2; break BeforeRet; } else { - if (contains_838862678(str_1325400090, [100,114,97,102,116,58])) { - F.line = 53; - result_1325400089 = 3; + if (contains_889194326(str_1577058330, [100,114,97,102,116,58])) { + result_1577058329 = 3; break BeforeRet; } else { - if (contains_838862678(str_1325400090, [114,101,109,97,116,99,104,58])) { - F.line = 55; - result_1325400089 = 5; + if (contains_889194326(str_1577058330, [114,101,109,97,116,99,104,58])) { + result_1577058329 = 5; break BeforeRet; } else { - if (contains_838862678(str_1325400090, [101,110,100,58])) { - F.line = 57; - result_1325400089 = 4; + if (contains_889194326(str_1577058330, [101,110,100,58])) { + result_1577058329 = 4; break BeforeRet; } else { - if (contains_838862678(str_1325400090, [97,99,116,105,111,110,58])) { - F.line = 59; - result_1325400089 = 6; + if (contains_889194326(str_1577058330, [97,99,116,105,111,110,58])) { + result_1577058329 = 6; break BeforeRet; } }}}}}} }; - framePtr = F.prev; - return result_1325400089; + return result_1577058329; } -function newHost_1325400110(cb_1325400114) { +function newHost_1577058350(cb_1577058354) { -function HEX3Aanonymous_1325400174(id_1325400175) { - var F = {procname: "newHost.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/port.nim", line: 0}; - framePtr = F; - F.line = 70; - F.filename = "port.nim"; - cb_1325400114(HEX24_369098760(roomId_1325400153), 0); - framePtr = F.prev; +function HEX3Aanonymous_1577058414(id_1577058415) { + cb_1577058354(HEX24_385875976(roomId_1577058393), 0); } -function HEX3Aanonymous_1325400203(c_1325400204) { +function HEX3Aanonymous_1577058443(c_1577058444) { -function HEX3Aanonymous_1325400205(data_1325400206) { - var F = {procname: ":anonymous.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/port.nim", line: 0}; - framePtr = F; - F.line = 73; - F.filename = "port.nim"; - cb_1325400114(cutMessage_1325400107(data_1325400206), messageType_1325400087(data_1325400206)); - framePtr = F.prev; +function HEX3Aanonymous_1577058445(data_1577058446) { + cb_1577058354(cutMessage_1577058347(data_1577058446), messageType_1577058327(data_1577058446)); } - var F = {procname: "newHost.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/port.nim", line: 0}; - framePtr = F; - F.line = 72; - F.filename = "port.nim"; - conn_1325400155 = c_1325400204; - conn_1325400155.on(("data"), (HEX3Aanonymous_1325400205)); - framePtr = F.prev; + conn_1577058395 = c_1577058444; + conn_1577058395.on(("data"), (HEX3Aanonymous_1577058445)); } -function HEX3Aanonymous_1325400244() { - var F = {procname: "newHost.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/port.nim", line: 0}; - framePtr = F; - F.line = 75; - F.filename = "port.nim"; +function HEX3Aanonymous_1577058484() { rawEcho([68,73,83,67,79,78,78,69,67,84,32,68,73,83,67,79,78,78,69,67,84,32,68,73,83,67,79,78,78,69,67,84]); - F.line = 76; - peer_1325400154.id = ("9e4ada91-c493-4fd4-881d-3e05db99e100" + toJSStr(HEX24_369098760(roomId_1325400153))); - peer_1325400154.reconnect(); - framePtr = F.prev; + peer_1577058394.id = ("9e4ada91-c493-4fd4-881d-3e05db99e100" + toJSStr(HEX24_385875976(roomId_1577058393))); + peer_1577058394.reconnect(); } -function HEX3Aanonymous_1325400278() { - var F = {procname: "newHost.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/port.nim", line: 0}; - framePtr = F; - peer_1325400154.destroy(); - framePtr = F.prev; +function HEX3Aanonymous_1577058518() { + peer_1577058394.destroy(); } -function HEX3Aanonymous_1325400283(data_1325400284) { - var F = {procname: "newHost.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/port.nim", line: 0}; - framePtr = F; - conn_1325400155.send((data_1325400284)); - framePtr = F.prev; +function HEX3Aanonymous_1577058523(data_1577058524) { + conn_1577058395.send((data_1577058524)); } - var result_1325400120 = {Field0: null, Field1: null}; + var result_1577058360 = {Field0: null, Field1: null}; - var F = {procname: "port.newHost", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/port.nim", line: 0}; - framePtr = F; - F.line = 65; - F.filename = "port.nim"; - randomize_1392509226(); - F.line = 66; - var roomId_1325400153 = rand_1325400130(HEX2EHEX2E_1056964656(10000, 99999)); - F.line = 67; - var peer_1325400154 = new Peer(("9e4ada91-c493-4fd4-881d-3e05db99e100" + toJSStr(HEX24_369098760(roomId_1325400153))), {config: { + randomize_1644167466(); + var roomId_1577058393 = rand_1577058370(HEX2EHEX2E_1174405168(10000, 99999)); + var peer_1577058394 = new Peer(("9e4ada91-c493-4fd4-881d-3e05db99e100" + toJSStr(HEX24_385875976(roomId_1577058393))), {config: { iceServers: [ { urls: "turn:standard.relay.metered.ca:80", @@ -18950,1131 +12495,735 @@ function HEX3Aanonymous_1325400283(data_1325400284) { } }) ; - F.line = 68; - var conn_1325400155 = null; - peer_1325400154.on(("open"), (HEX3Aanonymous_1325400174)); - peer_1325400154.on(("connection"), (HEX3Aanonymous_1325400203)); - peer_1325400154.on(("disconnect"), (HEX3Aanonymous_1325400244)); - F.line = 79; - result_1325400120.Field1 = HEX3Aanonymous_1325400278; - F.line = 82; - result_1325400120.Field0 = HEX3Aanonymous_1325400283; - framePtr = F.prev; + var conn_1577058395 = null; + peer_1577058394.on(("open"), (HEX3Aanonymous_1577058414)); + peer_1577058394.on(("connection"), (HEX3Aanonymous_1577058443)); + peer_1577058394.on(("disconnect"), (HEX3Aanonymous_1577058484)); + result_1577058360.Field1 = HEX3Aanonymous_1577058518; + result_1577058360.Field0 = HEX3Aanonymous_1577058523; - return result_1325400120; + return result_1577058360; } -function substrEq_838861055(s_838861056, pos_838861057, substr_838861058) { +function substrEq_889192703(s_889192704, pos_889192705, substr_889192706) { var Temporary1; - var result_838861059 = false; - - var F = {procname: "strutils.substrEq", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/strutils.nim", line: 0}; - framePtr = F; - F.line = 370; - F.filename = "strutils.nim"; - F.line = 370; - var length_838861060 = (substr_838861058).length; - if ((0 < length_838861060)) { - F.line = 372; - var i_838861061 = 0; + var result_889192707 = false; + + var length_889192708 = (substr_889192706).length; + if ((0 < length_889192708)) { + var i_889192709 = 0; Label2: { - F.line = 373; Label3: while (true) { - if (!(((i_838861061 < length_838861060) && (addInt(pos_838861057, i_838861061) < (s_838861056).length)) && (s_838861056[chckIndx(addInt(pos_838861057, i_838861061), 0, (s_838861056).length - 1)] == substr_838861058[chckIndx(i_838861061, 0, (substr_838861058).length - 1)]))) break Label3; - F.line = 374; - i_838861061 = addInt(i_838861061, 1); + if (!(((i_889192709 < length_889192708) && (addInt(pos_889192705, i_889192709) < (s_889192704).length)) && (s_889192704[chckIndx(addInt(pos_889192705, i_889192709), 0, (s_889192704).length - 1)] == substr_889192706[chckIndx(i_889192709, 0, (substr_889192706).length - 1)]))) break Label3; + i_889192709 = addInt(i_889192709, 1); } }; - Temporary1 = (i_838861061 == length_838861060); + Temporary1 = (i_889192709 == length_889192708); } else { Temporary1 = false; } - result_838861059 = Temporary1; - framePtr = F.prev; + result_889192707 = Temporary1; - return result_838861059; + return result_889192707; } -function nsuSplitString(s_838861375, sep_838861376, maxsplit_838861377) { +function nsuSplitString(s_889193023, sep_889193024, maxsplit_889193025) { var Temporary2; - var result_838861378 = []; + var result_889193026 = []; - var F = {procname: "strutils.split", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/strutils.nim", line: 0}; - framePtr = F; - F.line = 417; - F.filename = "strutils.nim"; - result_838861378 = nimCopy(null, [], NTI838861206); + result_889193026 = nimCopy(null, [], NTI889192854); Label1: { - F.line = 418; - var xHEX60gensym69_838861384 = []; - F.line = 529; - if (((sep_838861376).length == 0)) { + var xHEX60gensym69_889193032 = []; + if (((sep_889193024).length == 0)) { Temporary2 = 1; } else { - Temporary2 = (sep_838861376).length; + Temporary2 = (sep_889193024).length; } - var sepLen_520100583 = Temporary2; - F.line = 389; - var lastHEX60gensym41_520100584 = 0; - F.line = 390; - var splitsHEX60gensym41_520100585 = maxsplit_838861377; + var sepLen_553655015 = Temporary2; + var lastHEX60gensym41_553655016 = 0; + var splitsHEX60gensym41_553655017 = maxsplit_889193025; Label3: { - F.line = 531; Label4: while (true) { - if (!(lastHEX60gensym41_520100584 <= (s_838861375).length)) break Label4; - F.line = 393; - var firstHEX60gensym41_520100587 = lastHEX60gensym41_520100584; + if (!(lastHEX60gensym41_553655016 <= (s_889193023).length)) break Label4; + var firstHEX60gensym41_553655019 = lastHEX60gensym41_553655016; Label5: { - F.line = 394; Label6: while (true) { - if (!((lastHEX60gensym41_520100584 < (s_838861375).length) && !(substrEq_838861055(s_838861375, lastHEX60gensym41_520100584, sep_838861376)))) break Label6; - F.line = 395; - lastHEX60gensym41_520100584 = addInt(lastHEX60gensym41_520100584, 1); + if (!((lastHEX60gensym41_553655016 < (s_889193023).length) && !(substrEq_889192703(s_889193023, lastHEX60gensym41_553655016, sep_889193024)))) break Label6; + lastHEX60gensym41_553655016 = addInt(lastHEX60gensym41_553655016, 1); } }; - if ((splitsHEX60gensym41_520100585 == 0)) { - F.line = 396; - lastHEX60gensym41_520100584 = (s_838861375).length; + if ((splitsHEX60gensym41_553655017 == 0)) { + lastHEX60gensym41_553655016 = (s_889193023).length; } - F.line = 787; - xHEX60gensym69_838861384 = substr_33558084(s_838861375, firstHEX60gensym41_520100587, subInt(lastHEX60gensym41_520100584, 1)); - F.line = 418; - var Temporary7 = nimCopy(null, xHEX60gensym69_838861384, NTI33554449); - result_838861378.push(Temporary7);; - if ((splitsHEX60gensym41_520100585 == 0)) { - F.line = 398; + xHEX60gensym69_889193032 = substr_33558084(s_889193023, firstHEX60gensym41_553655019, subInt(lastHEX60gensym41_553655016, 1)); + var Temporary7 = nimCopy(null, xHEX60gensym69_889193032, NTI33554449); + result_889193026.push(Temporary7);; + if ((splitsHEX60gensym41_553655017 == 0)) { break Label3; } - F.line = 399; - splitsHEX60gensym41_520100585 = subInt(splitsHEX60gensym41_520100585, 1); - F.line = 400; - lastHEX60gensym41_520100584 = addInt(lastHEX60gensym41_520100584, sepLen_520100583); + splitsHEX60gensym41_553655017 = subInt(splitsHEX60gensym41_553655017, 1); + lastHEX60gensym41_553655016 = addInt(lastHEX60gensym41_553655016, sepLen_553655015); } }; }; - framePtr = F.prev; - return result_838861378; + return result_889193026; } -function integerOutOfRangeError_855638341() { - var F = {procname: "parseutils.integerOutOfRangeError", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/parseutils.nim", line: 0}; - framePtr = F; - F.line = 421; - F.filename = "parseutils.nim"; +function integerOutOfRangeError_905969989() { raiseException({message: [80,97,114,115,101,100,32,105,110,116,101,103,101,114,32,111,117,116,115,105,100,101,32,111,102,32,118,97,108,105,100,32,114,97,110,103,101], parent: null, m_type: NTI134217746, name: null, trace: [], up: null}, "ValueError"); - framePtr = F.prev; } -function rawParseInt_855638343(s_855638344, b_855638345, b_855638345_Idx) { +function rawParseInt_905969991(s_905969992, b_905969993, b_905969993_Idx) { var Temporary1; var Temporary4; - var result_855638346 = 0; + var result_905969994 = 0; - var F = {procname: "parseutils.rawParseInt", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/parseutils.nim", line: 0}; - framePtr = F; - F.line = 429; - F.filename = "parseutils.nim"; - var sign_855638347 = (-1n); - F.line = 430; - var i_855638348 = 0; - if ((i_855638348 < (s_855638344).length)) { - if ((s_855638344[chckIndx(i_855638348, 0, (s_855638344).length - 1)] == 43)) { - F.line = 432; - i_855638348 += 1; + var sign_905969995 = (-1n); + var i_905969996 = 0; + if ((i_905969996 < (s_905969992).length)) { + if ((s_905969992[chckIndx(i_905969996, 0, (s_905969992).length - 1)] == 43)) { + i_905969996 += 1; } else { - if ((s_855638344[chckIndx(i_855638348, 0, (s_855638344).length - 1)] == 45)) { - F.line = 434; - i_855638348 += 1; - F.line = 435; - sign_855638347 = 1n; + if ((s_905969992[chckIndx(i_905969996, 0, (s_905969992).length - 1)] == 45)) { + i_905969996 += 1; + sign_905969995 = 1n; } } } - if (!(i_855638348 < (s_855638344).length)) Temporary1 = false; else { Temporary1 = (ConstSet6[s_855638344[chckIndx(i_855638348, 0, (s_855638344).length - 1)]] != undefined); } if (Temporary1) { - F.line = 437; - b_855638345[b_855638345_Idx] = 0n; + if (!(i_905969996 < (s_905969992).length)) Temporary1 = false; else { Temporary1 = (ConstSet6[s_905969992[chckIndx(i_905969996, 0, (s_905969992).length - 1)]] != undefined); } if (Temporary1) { + b_905969993[b_905969993_Idx] = 0n; Label2: { - F.line = 438; Label3: while (true) { - if (!(i_855638348 < (s_855638344).length)) Temporary4 = false; else { Temporary4 = (ConstSet7[s_855638344[chckIndx(i_855638348, 0, (s_855638344).length - 1)]] != undefined); } if (!Temporary4) break Label3; - F.line = 439; - var c_855638382 = (s_855638344[chckIndx(i_855638348, 0, (s_855638344).length - 1)] - 48); - if ((((-9223372036854775808n) + BigInt(c_855638382)) / 10n <= b_855638345[b_855638345_Idx])) { - F.line = 441; - b_855638345[b_855638345_Idx] = ((b_855638345[b_855638345_Idx] * 10n) - BigInt(c_855638382)); + if (!(i_905969996 < (s_905969992).length)) Temporary4 = false; else { Temporary4 = (ConstSet7[s_905969992[chckIndx(i_905969996, 0, (s_905969992).length - 1)]] != undefined); } if (!Temporary4) break Label3; + var c_905970030 = (s_905969992[chckIndx(i_905969996, 0, (s_905969992).length - 1)] - 48); + if ((((-9223372036854775808n) + BigInt(c_905970030)) / 10n <= b_905969993[b_905969993_Idx])) { + b_905969993[b_905969993_Idx] = ((b_905969993[b_905969993_Idx] * 10n) - BigInt(c_905970030)); } else { - F.line = 443; - integerOutOfRangeError_855638341(); + integerOutOfRangeError_905969989(); } - F.line = 444; - i_855638348 += 1; + i_905969996 += 1; Label5: { - F.line = 445; Label6: while (true) { - if (!((i_855638348 < (s_855638344).length) && (s_855638344[chckIndx(i_855638348, 0, (s_855638344).length - 1)] == 95))) break Label6; - F.line = 445; - i_855638348 += 1; + if (!((i_905969996 < (s_905969992).length) && (s_905969992[chckIndx(i_905969996, 0, (s_905969992).length - 1)] == 95))) break Label6; + i_905969996 += 1; } }; } }; - if (((sign_855638347 == (-1n)) && (b_855638345[b_855638345_Idx] == (-9223372036854775808n)))) { - F.line = 447; - integerOutOfRangeError_855638341(); + if (((sign_905969995 == (-1n)) && (b_905969993[b_905969993_Idx] == (-9223372036854775808n)))) { + integerOutOfRangeError_905969989(); } else { - F.line = 449; - b_855638345[b_855638345_Idx] = (b_855638345[b_855638345_Idx] * sign_855638347); - F.line = 450; - result_855638346 = i_855638348; + b_905969993[b_905969993_Idx] = (b_905969993[b_905969993_Idx] * sign_905969995); + result_905969994 = i_905969996; } } - framePtr = F.prev; - return result_855638346; + return result_905969994; } -function npuParseBiggestInt(s_855638405, number_855638406, number_855638406_Idx) { - var result_855638407 = 0; +function npuParseBiggestInt(s_905970053, number_905970054, number_905970054_Idx) { + var result_905970055 = 0; - var F = {procname: "parseutils.parseBiggestInt", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/parseutils.nim", line: 0}; - framePtr = F; - F.line = 464; - F.filename = "parseutils.nim"; - var res_855638408 = [0n]; - F.line = 467; - result_855638407 = rawParseInt_855638343(s_855638405, res_855638408, 0); - if (!((result_855638407 == 0))) { - F.line = 469; - number_855638406[number_855638406_Idx] = res_855638408[0]; + var res_905970056 = [0n]; + result_905970055 = rawParseInt_905969991(s_905970053, res_905970056, 0); + if (!((result_905970055 == 0))) { + number_905970054[number_905970054_Idx] = res_905970056[0]; } - framePtr = F.prev; - return result_855638407; + return result_905970055; } -function npuParseInt(s_855638410, number_855638411, number_855638411_Idx) { - var result_855638412 = 0; +function npuParseInt(s_905970058, number_905970059, number_905970059_Idx) { + var result_905970060 = 0; - var F = {procname: "parseutils.parseInt", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/parseutils.nim", line: 0}; - framePtr = F; - F.line = 482; - F.filename = "parseutils.nim"; - var res_855638413 = [0n]; - F.line = 483; - result_855638412 = npuParseBiggestInt(s_855638410, res_855638413, 0); - if (((res_855638413[0] < (-2147483648n)) || (2147483647n < res_855638413[0]))) { - F.line = 486; - integerOutOfRangeError_855638341(); + var res_905970061 = [0n]; + result_905970060 = npuParseBiggestInt(s_905970058, res_905970061, 0); + if (((res_905970061[0] < (-2147483648n)) || (2147483647n < res_905970061[0]))) { + integerOutOfRangeError_905969989(); } - if (!((result_855638412 == 0))) { - F.line = 488; - number_855638411[number_855638411_Idx] = chckRange(Number(res_855638413[0]), (-2147483648), 2147483647); + if (!((result_905970060 == 0))) { + number_905970059[number_905970059_Idx] = chckRange(Number(res_905970061[0]), (-2147483648), 2147483647); } - framePtr = F.prev; - return result_855638412; + return result_905970060; } -function parseInt_855638923(s_855638924, number_855638925, number_855638925_Idx, start_855638926) { - var result_855638927 = 0; +function parseInt_905970571(s_905970572, number_905970573, number_905970573_Idx, start_905970574) { + var result_905970575 = 0; - var F = {procname: "parseutils.parseInt", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/parseutils.nim", line: 0}; - framePtr = F; - F.line = 999; - F.filename = "parseutils.nim"; - result_855638927 = npuParseInt((s_855638924.slice(start_855638926, (s_855638924).length - 1 + 1)), number_855638925, number_855638925_Idx); - framePtr = F.prev; + result_905970575 = npuParseInt((s_905970572.slice(start_905970574, (s_905970572).length - 1 + 1)), number_905970573, number_905970573_Idx); - return result_855638927; + return result_905970575; } -function nsuParseInt(s_838861657) { - var result_838861658 = [0]; +function nsuParseInt(s_889193305) { + var result_889193306 = [0]; - var F = {procname: "strutils.parseInt", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/strutils.nim", line: 0}; - framePtr = F; - F.line = 1134; - F.filename = "strutils.nim"; - result_838861658[0] = 0; - F.line = 1135; - var L_838861659 = parseInt_855638923(s_838861657, result_838861658, 0, 0); - if ((!((L_838861659 == (s_838861657).length)) || (L_838861659 == 0))) { - F.line = 1137; - raiseException({message: ([105,110,118,97,108,105,100,32,105,110,116,101,103,101,114,58,32] || []).concat(s_838861657 || []), parent: null, m_type: NTI134217746, name: null, trace: [], up: null}, "ValueError"); + result_889193306[0] = 0; + var L_889193307 = parseInt_905970571(s_889193305, result_889193306, 0, 0); + if ((!((L_889193307 == (s_889193305).length)) || (L_889193307 == 0))) { + raiseException({message: ([105,110,118,97,108,105,100,32,105,110,116,101,103,101,114,58,32] || []).concat(s_889193305 || []), parent: null, m_type: NTI134217746, name: null, trace: [], up: null}, "ValueError"); } - framePtr = F.prev; - return result_838861658[0]; + return result_889193306[0]; } -function hasWallet_1526726660(side_1526726661, s_1526726662) { - var result_1526726663 = false; +function hasWallet_1879048196(side_1879048197, s_1879048198) { + var result_1879048199 = false; - var F = {procname: "capitalism.hasWallet", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/capitalism.nim", line: 0}; - framePtr = F; BeforeRet: { - F.line = 7; - F.filename = "capitalism.nim"; - result_1526726663 = isSome_1409289449(s_1526726662.Field1[chckIndx(side_1526726661, 0, (s_1526726662.Field1).length - 1)].wallet); + result_1879048199 = isSome_1660947689(s_1879048198.Field1[chckIndx(side_1879048197, 0, (s_1879048198.Field1).length - 1)].wallet); break BeforeRet; }; - framePtr = F.prev; - return result_1526726663; + return result_1879048199; } -function pieceOf_520093924(tile_520093925) { - var result_520093926 = null; +function pieceOf_553648356(tile_553648357) { + var result_553648358 = null; - var F = {procname: "main.pieceOf", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 151; - F.filename = "main.nim"; - result_520093926 = theBoard_520093825[0][chckIndx(tile_520093925.Field1, 0, (theBoard_520093825[0]).length - 1)][chckIndx(tile_520093925.Field0, 0, (theBoard_520093825[0][chckIndx(tile_520093925.Field1, 0, (theBoard_520093825[0]).length - 1)]).length - 1)]; - framePtr = F.prev; + result_553648358 = theBoard_553648257[0][chckIndx(tile_553648357.Field1, 0, (theBoard_553648257[0]).length - 1)][chckIndx(tile_553648357.Field0, 0, (theBoard_553648257[0][chckIndx(tile_553648357.Field1, 0, (theBoard_553648257[0]).length - 1)]).length - 1)]; - return result_520093926; + return result_553648358; } -function buy_1526726764(piece_1526726765, option_1526726766, b_1526726767, s_1526726768) { - var F = {procname: "capitalism.buy", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/capitalism.nim", line: 0}; - framePtr = F; - if (!(hasWallet_1526726660(piece_1526726765.color, s_1526726768))) { - F.line = 24; - F.filename = "capitalism.nim"; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/the-playground/chess/src/capitalism.nim(24, 5) `piece.color.hasWallet(s)` ")); +function buy_1879048300(piece_1879048301, option_1879048302, b_1879048303, s_1879048304) { + if (!(hasWallet_1879048196(piece_1879048301.color, s_1879048304))) { + failedAssertImpl_268435541([99,97,112,105,116,97,108,105,115,109,46,110,105,109,40,50,52,44,32,53,41,32,96,112,105,101,99,101,46,99,111,108,111,114,46,104,97,115,87,97,108,108,101,116,40,115,41,96,32]); } - if (!(option_1526726766.Field3(piece_1526726765, b_1526726767, s_1526726768))) { - F.line = 25; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/the-playground/chess/src/capitalism.nim(25, 5) `option.condition(piece, b, s)` ")); + if (!(option_1879048302.Field3(piece_1879048301, b_1879048303, s_1879048304))) { + failedAssertImpl_268435541([99,97,112,105,116,97,108,105,115,109,46,110,105,109,40,50,53,44,32,53,41,32,96,111,112,116,105,111,110,46,99,111,110,100,105,116,105,111,110,40,112,105,101,99,101,44,32,98,44,32,115,41,96,32]); } - if ((option_1526726766.Field1(piece_1526726765, b_1526726767, s_1526726768) <= getMoney_1526726671(piece_1526726765.color, s_1526726768))) { - F.line = 28; - addMoney_1526726698(piece_1526726765.color, negInt(option_1526726766.Field1(piece_1526726765, b_1526726767, s_1526726768)), s_1526726768); - F.line = 29; - option_1526726766.Field2(piece_1526726765, b_1526726767, s_1526726768); + if ((option_1879048302.Field1(piece_1879048301, b_1879048303, s_1879048304) <= getMoney_1879048207(piece_1879048301.color, s_1879048304))) { + addMoney_1879048234(piece_1879048301.color, negInt(option_1879048302.Field1(piece_1879048301, b_1879048303, s_1879048304)), s_1879048304); + option_1879048302.Field2(piece_1879048301, b_1879048303, s_1879048304); } - framePtr = F.prev; } -function otherBuy_520097018(d_520097019) { - var F = {procname: "main.otherBuy", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 274; - F.filename = "main.nim"; - var data_520097020 = nsuSplitString(d_520097019, [44], (-1)); - if (!(eqStrings(data_520097020[chckIndx(0, 0, (data_520097020).length - 1)], [98,117,121]))) { - F.line = 275; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/the-playground/chess/src/main.nim(275, 5) `data[0] == \"buy\"` ")); +function otherBuy_553651450(d_553651451) { + var data_553651452 = nsuSplitString(d_553651451, [44], (-1)); + if (!(eqStrings(data_553651452[chckIndx(0, 0, (data_553651452).length - 1)], [98,117,121]))) { + failedAssertImpl_268435541([109,97,105,110,46,110,105,109,40,50,55,53,44,32,53,41,32,96,100,97,116,97,91,48,93,32,61,61,32,34,98,117,121,34,96,32]); } - F.line = 276; - var piece_520097026 = {Field0: nsuParseInt(data_520097020[chckIndx(3, 0, (data_520097020).length - 1)]), Field1: nsuParseInt(data_520097020[chckIndx(2, 0, (data_520097020).length - 1)])}; - if (!(hasWallet_1526726660(pieceOf_520093924(piece_520097026).color, theState_520093826[0]))) { - F.line = 277; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/the-playground/chess/src/main.nim(277, 5) `pieceOf(piece).color.hasWallet(theState)` ")); + var piece_553651458 = {Field0: nsuParseInt(data_553651452[chckIndx(3, 0, (data_553651452).length - 1)]), Field1: nsuParseInt(data_553651452[chckIndx(2, 0, (data_553651452).length - 1)])}; + if (!(hasWallet_1879048196(pieceOf_553648356(piece_553651458).color, theState_553648258[0]))) { + failedAssertImpl_268435541([109,97,105,110,46,110,105,109,40,50,55,55,44,32,53,41,32,96,112,105,101,99,101,79,102,40,112,105,101,99,101,41,46,99,111,108,111,114,46,104,97,115,87,97,108,108,101,116,40,116,104,101,83,116,97,116,101,41,96,32]); } Label1: { - F.line = 279; - var option_520097035 = {Field0: [], Field1: null, Field2: null, Field3: null}; - F.line = 247; - F.filename = "iterators.nim"; - var colontmp__520100593 = []; - F.line = 279; - F.filename = "main.nim"; - colontmp__520100593 = theState_520093826[0].Field1[chckIndx(otherSide_1224737821(side_520093807[0]), 0, (theState_520093826[0].Field1).length - 1)].buys; - F.line = 249; - F.filename = "iterators.nim"; - var i_520100594 = 0; - F.line = 250; - var L_520100595 = (colontmp__520100593).length; + var option_553651467 = {Field0: [], Field1: null, Field2: null, Field3: null}; + var colontmp__553655025 = []; + colontmp__553655025 = theState_553648258[0].Field1[chckIndx(otherSide_1476396061(side_553648239[0]), 0, (theState_553648258[0].Field1).length - 1)].buys; + var i_553655026 = 0; + var L_553655027 = (colontmp__553655025).length; Label2: { - F.line = 251; Label3: while (true) { - if (!(i_520100594 < L_520100595)) break Label3; - F.line = 279; - F.filename = "main.nim"; - option_520097035 = colontmp__520100593[chckIndx(i_520100594, 0, (colontmp__520100593).length - 1)]; - if (eqStrings(option_520097035.Field0, data_520097020[chckIndx(1, 0, (data_520097020).length - 1)])) { - F.line = 281; - buy_1526726764(pieceOf_520093924(piece_520097026), option_520097035, theBoard_520093825[0], theState_520093826[0]); + if (!(i_553655026 < L_553655027)) break Label3; + option_553651467 = colontmp__553655025[chckIndx(i_553655026, 0, (colontmp__553655025).length - 1)]; + if (eqStrings(option_553651467.Field0, data_553651452[chckIndx(1, 0, (data_553651452).length - 1)])) { + buy_1879048300(pieceOf_553648356(piece_553651458), option_553651467, theBoard_553648257[0], theState_553648258[0]); } - F.line = 13; - F.filename = "iterators.nim"; - i_520100594 += 1; - if (!(((colontmp__520100593).length == L_520100595))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + i_553655026 += 1; + if (!(((colontmp__553655025).length == L_553655027))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - framePtr = F.prev; } -function gameIsOver_1224737904(b_1224737905) { - var result_1224737906 = false; +function gameIsOver_1476396144(b_1476396145) { + var result_1476396146 = false; - var F = {procname: "piece.gameIsOver", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/piece.nim", line: 0}; - framePtr = F; BeforeRet: { - F.line = 322; - F.filename = "piece.nim"; - var kings_1224737907 = 0; + var kings_1476396147 = 0; Label1: { - F.line = 323; - var row_1224737912 = [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})]; - F.line = 43; - F.filename = "iterators.nim"; - var i_520100641 = 0; + var row_1476396152 = [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})]; + var i_553655073 = 0; Label2: { - F.line = 44; Label3: while (true) { if (!true) break Label3; - F.line = 323; - F.filename = "piece.nim"; - row_1224737912 = nimCopy(row_1224737912, b_1224737905[chckIndx(i_520100641, 0, (b_1224737905).length - 1)], NTI1224736772); + row_1476396152 = nimCopy(row_1476396152, b_1476396145[chckIndx(i_553655073, 0, (b_1476396145).length - 1)], NTI1476395012); Label4: { - F.line = 324; - var p_1224737917 = ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}); - F.line = 43; - F.filename = "iterators.nim"; - var i_520100639 = 0; + var p_1476396157 = ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}); + var i_553655071 = 0; Label5: { - F.line = 44; Label6: while (true) { if (!true) break Label6; - F.line = 324; - F.filename = "piece.nim"; - p_1224737917 = nimCopy(p_1224737917, row_1224737912[chckIndx(i_520100639, 0, (row_1224737912).length - 1)], NTI1224736794); - if ((p_1224737917.item == 0)) { - F.line = 325; - kings_1224737907 = addInt(kings_1224737907, 1); + p_1476396157 = nimCopy(p_1476396157, row_1476396152[chckIndx(i_553655071, 0, (row_1476396152).length - 1)], NTI1476395034); + if ((p_1476396157.item == 0)) { + kings_1476396147 = addInt(kings_1476396147, 1); } - if ((7 <= i_520100639)) { - F.line = 46; - F.filename = "iterators.nim"; + if ((7 <= i_553655071)) { break Label5; } - F.line = 13; - i_520100639 += 1; + i_553655071 += 1; } }; }; - if ((7 <= i_520100641)) { - F.line = 46; + if ((7 <= i_553655073)) { break Label2; } - F.line = 13; - i_520100641 += 1; + i_553655073 += 1; } }; }; - F.line = 327; - F.filename = "piece.nim"; - result_1224737906 = !((kings_1224737907 == 2)); + result_1476396146 = !((kings_1476396147 == 2)); break BeforeRet; }; - framePtr = F.prev; - return result_1224737906; + return result_1476396146; } -function alive_1224737828(c_1224737829, b_1224737830) { - var result_1224737831 = false; +function alive_1476396068(c_1476396069, b_1476396070) { + var result_1476396071 = false; - var F = {procname: "piece.alive", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/piece.nim", line: 0}; - framePtr = F; BeforeRet: { Label1: { - F.line = 314; - F.filename = "piece.nim"; - var row_1224737857 = [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})]; - F.line = 43; - F.filename = "iterators.nim"; - var i_520100647 = 0; + var row_1476396097 = [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})]; + var i_553655079 = 0; Label2: { - F.line = 44; Label3: while (true) { if (!true) break Label3; - F.line = 314; - F.filename = "piece.nim"; - row_1224737857 = nimCopy(row_1224737857, b_1224737830[chckIndx(i_520100647, 0, (b_1224737830).length - 1)], NTI1224736772); + row_1476396097 = nimCopy(row_1476396097, b_1476396070[chckIndx(i_553655079, 0, (b_1476396070).length - 1)], NTI1476395012); Label4: { - F.line = 315; - var p_1224737883 = ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}); - F.line = 43; - F.filename = "iterators.nim"; - var i_520100645 = 0; + var p_1476396123 = ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}); + var i_553655077 = 0; Label5: { - F.line = 44; Label6: while (true) { if (!true) break Label6; - F.line = 315; - F.filename = "piece.nim"; - p_1224737883 = nimCopy(p_1224737883, row_1224737857[chckIndx(i_520100645, 0, (row_1224737857).length - 1)], NTI1224736794); - if (((p_1224737883.item == 0) && isColor_1224737813(p_1224737883, c_1224737829))) { - F.line = 317; - result_1224737831 = true; + p_1476396123 = nimCopy(p_1476396123, row_1476396097[chckIndx(i_553655077, 0, (row_1476396097).length - 1)], NTI1476395034); + if (((p_1476396123.item == 0) && isColor_1476396053(p_1476396123, c_1476396069))) { + result_1476396071 = true; break BeforeRet; } - if ((7 <= i_520100645)) { - F.line = 46; - F.filename = "iterators.nim"; + if ((7 <= i_553655077)) { break Label5; } - F.line = 13; - i_520100645 += 1; + i_553655077 += 1; } }; }; - if ((7 <= i_520100647)) { - F.line = 46; + if ((7 <= i_553655079)) { break Label2; } - F.line = 13; - i_520100647 += 1; + i_553655079 += 1; } }; }; - F.line = 319; - F.filename = "piece.nim"; - result_1224737831 = false; + result_1476396071 = false; break BeforeRet; }; - framePtr = F.prev; - return result_1224737831; + return result_1476396071; } -function addWins_1543503892(with_1543503893) { - var F = {procname: "store.addWins", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/store.nim", line: 0}; - framePtr = F; +function addWins_1929379860(with_1929379861) { Label1: { - F.line = 35; - F.filename = "store.nim"; - var power_1543503897 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); - F.line = 249; - F.filename = "iterators.nim"; - var i_520100650 = 0; - F.line = 250; - var L_520100651 = (with_1543503893).length; + var power_1929379865 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); + var i_553655082 = 0; + var L_553655083 = (with_1929379861).length; Label2: { - F.line = 251; Label3: while (true) { - if (!(i_520100650 < L_520100651)) break Label3; - F.line = 35; - F.filename = "store.nim"; - power_1543503897 = with_1543503893[chckIndx(i_520100650, 0, (with_1543503893).length - 1)]; - if (!(localStorage.getItem(toJSStr(power_1543503897.technicalName)) !== null)) { - F.line = 37; - localStorage.setItem(toJSStr(power_1543503897.technicalName), JSON.stringify({wins: 0, losses: 0})); + if (!(i_553655082 < L_553655083)) break Label3; + power_1929379865 = with_1929379861[chckIndx(i_553655082, 0, (with_1929379861).length - 1)]; + if (!(localStorage.getItem(toJSStr(power_1929379865.technicalName)) !== null)) { + localStorage.setItem(toJSStr(power_1929379865.technicalName), JSON.stringify({wins: 0, losses: 0})); } - F.line = 38; - incrementWins(toJSStr(power_1543503897.technicalName)); - F.line = 13; - F.filename = "iterators.nim"; - i_520100650 += 1; - if (!(((with_1543503893).length == L_520100651))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + incrementWins(toJSStr(power_1929379865.technicalName)); + i_553655082 += 1; + if (!(((with_1929379861).length == L_553655083))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - F.line = 39; - F.filename = "store.nim"; incrementWins("wins"); - framePtr = F.prev; } -function addLosses_1543503898(with_1543503899) { - var F = {procname: "store.addLosses", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/store.nim", line: 0}; - framePtr = F; +function addLosses_1929379866(with_1929379867) { Label1: { - F.line = 42; - F.filename = "store.nim"; - var power_1543503903 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); - F.line = 249; - F.filename = "iterators.nim"; - var i_520100654 = 0; - F.line = 250; - var L_520100655 = (with_1543503899).length; + var power_1929379871 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); + var i_553655086 = 0; + var L_553655087 = (with_1929379867).length; Label2: { - F.line = 251; Label3: while (true) { - if (!(i_520100654 < L_520100655)) break Label3; - F.line = 42; - F.filename = "store.nim"; - power_1543503903 = with_1543503899[chckIndx(i_520100654, 0, (with_1543503899).length - 1)]; - if (!(localStorage.getItem(toJSStr(power_1543503903.technicalName)) !== null)) { - F.line = 44; - localStorage.setItem(toJSStr(power_1543503903.technicalName), JSON.stringify({wins: 0, losses: 0})); + if (!(i_553655086 < L_553655087)) break Label3; + power_1929379871 = with_1929379867[chckIndx(i_553655086, 0, (with_1929379867).length - 1)]; + if (!(localStorage.getItem(toJSStr(power_1929379871.technicalName)) !== null)) { + localStorage.setItem(toJSStr(power_1929379871.technicalName), JSON.stringify({wins: 0, losses: 0})); } - F.line = 45; - incrementLosses(toJSStr(power_1543503903.technicalName)); - F.line = 13; - F.filename = "iterators.nim"; - i_520100654 += 1; - if (!(((with_1543503899).length == L_520100655))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + incrementLosses(toJSStr(power_1929379871.technicalName)); + i_553655086 += 1; + if (!(((with_1929379867).length == L_553655087))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - F.line = 46; - F.filename = "store.nim"; incrementLosses("losses"); - framePtr = F.prev; } -function find_520096343(a_520096346, item_520096347) { - var result_520096348 = 0; +function find_553650775(a_553650778, item_553650779) { + var result_553650780 = 0; - var F = {procname: "find.find", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; BeforeRet: { - F.line = 1671; - F.filename = "system.nim"; - result_520096348 = 0; + result_553650780 = 0; Label1: { - F.line = 1672; - var i_520096352 = 0; - F.line = 18; - F.filename = "iterators.nim"; - var i_520100658 = 0; + var i_553650784 = 0; + var i_553655090 = 0; Label2: { - F.line = 19; Label3: while (true) { - if (!(i_520100658 < (a_520096346).length)) break Label3; - F.line = 1672; - F.filename = "system.nim"; - i_520096352 = a_520096346[chckIndx(i_520100658, 0, (a_520096346).length - 1)]; - if ((i_520096352 == item_520096347)) { - F.line = 1673; + if (!(i_553655090 < (a_553650778).length)) break Label3; + i_553650784 = a_553650778[chckIndx(i_553655090, 0, (a_553650778).length - 1)]; + if ((i_553650784 == item_553650779)) { break BeforeRet; } - F.line = 1674; - result_520096348 = addInt(result_520096348, 1); - F.line = 13; - F.filename = "iterators.nim"; - i_520100658 += 1; + result_553650780 = addInt(result_553650780, 1); + i_553655090 += 1; } }; }; - F.line = 1675; - F.filename = "system.nim"; - result_520096348 = (-1); + result_553650780 = (-1); }; - framePtr = F.prev; - return result_520096348; + return result_553650780; } -function contains_520096338(a_520096340, item_520096341) { - var result_520096342 = false; +function contains_553650770(a_553650772, item_553650773) { + var result_553650774 = false; - var F = {procname: "contains.contains", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; BeforeRet: { - F.line = 1689; - F.filename = "system.nim"; - result_520096342 = (0 <= find_520096343(a_520096340, item_520096341)); + result_553650774 = (0 <= find_553650775(a_553650772, item_553650773)); break BeforeRet; }; - framePtr = F.prev; - return result_520096342; + return result_553650774; } -function formatValue_520096324(result_520096327, result_520096327_Idx, value_520096328) { - var F = {procname: "formatValue.formatValue", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/strformat.nim", line: 0}; - framePtr = F; - F.line = 626; - F.filename = "strformat.nim"; - formatValue_1442840708(result_520096327, result_520096327_Idx, HEX24_1493176549(value_520096328)); - framePtr = F.prev; +function formatValue_553650756(result_553650759, result_553650759_Idx, value_553650760) { + formatValue_1728053380(result_553650759, result_553650759_Idx, HEX24_1845498108(value_553650760)); } -function endRound_520096229() { - var F = {procname: "main.endRound", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 186; - F.filename = "main.nim"; - theState_520093826[0].Field0.turnNumber = addInt(theState_520093826[0].Field0.turnNumber, 1); +function endRound_553650661() { + theState_553648258[0].Field0.turnNumber = addInt(theState_553648258[0].Field0.turnNumber, 1); Label1: { - F.line = 188; - var i_520096235 = 0; - F.line = 188; - var j_520096236 = 0; + var i_553650667 = 0; + var j_553650668 = 0; Label2: { - F.line = 124; - F.filename = "piece.nim"; - var i_520100604 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_520100605 = 0; + var i_553655036 = 0; + var i_553655037 = 0; Label3: { - F.line = 129; Label4: while (true) { - if (!(i_520100605 < 8)) break Label4; - F.line = 124; - F.filename = "piece.nim"; - i_520100604 = i_520100605; + if (!(i_553655037 < 8)) break Label4; + i_553655036 = i_553655037; Label5: { - F.line = 125; - var j_520100608 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_520100609 = 0; + var j_553655040 = 0; + var i_553655041 = 0; Label6: { - F.line = 129; Label7: while (true) { - if (!(i_520100609 < 8)) break Label7; - F.line = 125; - F.filename = "piece.nim"; - j_520100608 = i_520100609; - F.line = 188; - F.filename = "main.nim"; - i_520096235 = i_520100604; - F.line = 188; - j_520096236 = j_520100608; + if (!(i_553655041 < 8)) break Label7; + j_553655040 = i_553655041; + i_553650667 = i_553655036; + j_553650668 = j_553655040; Label8: { - F.line = 186; - F.filename = "piece.nim"; - var xHEX60gensym22_520096241 = null; - F.line = 247; - F.filename = "iterators.nim"; - var colontmp__520100599 = []; - F.line = 186; - F.filename = "piece.nim"; - colontmp__520100599 = theBoard_520093825[0][chckIndx(i_520096235, 0, (theBoard_520093825[0]).length - 1)][chckIndx(j_520096236, 0, (theBoard_520093825[0][chckIndx(i_520096235, 0, (theBoard_520093825[0]).length - 1)]).length - 1)].onEndTurn; - F.line = 249; - F.filename = "iterators.nim"; - var i_520100600 = 0; - F.line = 250; - var L_520100601 = (colontmp__520100599).length; + var xHEX60gensym22_553650673 = null; + var colontmp__553655031 = []; + colontmp__553655031 = theBoard_553648257[0][chckIndx(i_553650667, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553650668, 0, (theBoard_553648257[0][chckIndx(i_553650667, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].onEndTurn; + var i_553655032 = 0; + var L_553655033 = (colontmp__553655031).length; Label9: { - F.line = 251; Label10: while (true) { - if (!(i_520100600 < L_520100601)) break Label10; - F.line = 189; - F.filename = "main.nim"; - xHEX60gensym22_520096241 = colontmp__520100599[chckIndx(i_520100600, 0, (colontmp__520100599).length - 1)]; - F.line = 187; - F.filename = "piece.nim"; - xHEX60gensym22_520096241(theBoard_520093825[0][chckIndx(i_520096235, 0, (theBoard_520093825[0]).length - 1)][chckIndx(j_520096236, 0, (theBoard_520093825[0][chckIndx(i_520096235, 0, (theBoard_520093825[0]).length - 1)]).length - 1)], theBoard_520093825[0], theState_520093826[0]); - F.line = 13; - F.filename = "iterators.nim"; - i_520100600 += 1; - if (!(((colontmp__520100599).length == L_520100601))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + if (!(i_553655032 < L_553655033)) break Label10; + xHEX60gensym22_553650673 = colontmp__553655031[chckIndx(i_553655032, 0, (colontmp__553655031).length - 1)]; + xHEX60gensym22_553650673(theBoard_553648257[0][chckIndx(i_553650667, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553650668, 0, (theBoard_553648257[0][chckIndx(i_553650667, 0, (theBoard_553648257[0]).length - 1)]).length - 1)], theBoard_553648257[0], theState_553648258[0]); + i_553655032 += 1; + if (!(((colontmp__553655031).length == L_553655033))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - F.line = 131; - F.filename = "iterators_1.nim"; - i_520100609 = addInt(i_520100609, 1); + i_553655041 = addInt(i_553655041, 1); } }; }; - F.line = 131; - i_520100605 = addInt(i_520100605, 1); + i_553655037 = addInt(i_553655037, 1); } }; }; }; Label11: { - F.line = 193; - F.filename = "main.nim"; - var i_520096242 = 0; - F.line = 193; - var j_520096243 = 0; + var i_553650674 = 0; + var j_553650675 = 0; Label12: { - F.line = 124; - F.filename = "piece.nim"; - var i_520100619 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_520100620 = 0; + var i_553655051 = 0; + var i_553655052 = 0; Label13: { - F.line = 129; Label14: while (true) { - if (!(i_520100620 < 8)) break Label14; - F.line = 124; - F.filename = "piece.nim"; - i_520100619 = i_520100620; + if (!(i_553655052 < 8)) break Label14; + i_553655051 = i_553655052; Label15: { - F.line = 125; - var j_520100623 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_520100624 = 0; + var j_553655055 = 0; + var i_553655056 = 0; Label16: { - F.line = 129; Label17: while (true) { - if (!(i_520100624 < 8)) break Label17; - F.line = 125; - F.filename = "piece.nim"; - j_520100623 = i_520100624; - F.line = 193; - F.filename = "main.nim"; - i_520096242 = i_520100619; - F.line = 193; - j_520096243 = j_520100623; + if (!(i_553655056 < 8)) break Label17; + j_553655055 = i_553655056; + i_553650674 = i_553655051; + j_553650675 = j_553655055; Label18: { - F.line = 200; - var ic_520096306 = 0; - F.line = 200; - var c_520096307 = {Field0: {Field0: 0, Field1: 0}, Field1: 0, Field2: 0}; - F.line = 180; - F.filename = "iterators.nim"; - var colontmp__520100613 = []; - F.line = 200; - F.filename = "main.nim"; - colontmp__520100613 = theBoard_520093825[0][chckIndx(i_520096242, 0, (theBoard_520093825[0]).length - 1)][chckIndx(j_520096243, 0, (theBoard_520093825[0][chckIndx(i_520096242, 0, (theBoard_520093825[0]).length - 1)]).length - 1)].casts; - F.line = 182; - F.filename = "iterators.nim"; - var i_520100615 = 0; - F.line = 183; - var L_520100616 = (colontmp__520100613).length; + var ic_553650738 = 0; + var c_553650739 = {Field0: {Field0: 0, Field1: 0}, Field1: 0, Field2: 0}; + var colontmp__553655045 = []; + colontmp__553655045 = theBoard_553648257[0][chckIndx(i_553650674, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553650675, 0, (theBoard_553648257[0][chckIndx(i_553650674, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].casts; + var i_553655047 = 0; + var L_553655048 = (colontmp__553655045).length; Label19: { - F.line = 184; Label20: while (true) { - if (!(i_520100615 < L_520100616)) break Label20; - F.line = 200; - F.filename = "main.nim"; - ic_520096306 = i_520100615; - F.line = 200; - c_520096307 = nimCopy(c_520096307, colontmp__520100613[chckIndx(i_520100615, 0, (colontmp__520100613).length - 1)], NTI1224736788); - if ((c_520096307.Field2 == 2)) { - if (isColor_1224737813(theBoard_520093825[0][chckIndx(i_520096242, 0, (theBoard_520093825[0]).length - 1)][chckIndx(j_520096243, 0, (theBoard_520093825[0][chckIndx(i_520096242, 0, (theBoard_520093825[0]).length - 1)]).length - 1)], 1)) { - F.line = 203; - theBoard_520093825[0][chckIndx(i_520096242, 0, (theBoard_520093825[0]).length - 1)][chckIndx(j_520096243, 0, (theBoard_520093825[0][chckIndx(i_520096242, 0, (theBoard_520093825[0]).length - 1)]).length - 1)].casts[chckIndx(ic_520096306, 0, (theBoard_520093825[0][chckIndx(i_520096242, 0, (theBoard_520093825[0]).length - 1)][chckIndx(j_520096243, 0, (theBoard_520093825[0][chckIndx(i_520096242, 0, (theBoard_520093825[0]).length - 1)]).length - 1)].casts).length - 1)].Field0 = nimCopy(theBoard_520093825[0][chckIndx(i_520096242, 0, (theBoard_520093825[0]).length - 1)][chckIndx(j_520096243, 0, (theBoard_520093825[0][chckIndx(i_520096242, 0, (theBoard_520093825[0]).length - 1)]).length - 1)].casts[chckIndx(ic_520096306, 0, (theBoard_520093825[0][chckIndx(i_520096242, 0, (theBoard_520093825[0]).length - 1)][chckIndx(j_520096243, 0, (theBoard_520093825[0][chckIndx(i_520096242, 0, (theBoard_520093825[0]).length - 1)]).length - 1)].casts).length - 1)].Field0, tileAbove_1308622990(theBoard_520093825[0][chckIndx(i_520096242, 0, (theBoard_520093825[0]).length - 1)][chckIndx(j_520096243, 0, (theBoard_520093825[0][chckIndx(i_520096242, 0, (theBoard_520093825[0]).length - 1)]).length - 1)].tile), NTI1224736771); + if (!(i_553655047 < L_553655048)) break Label20; + ic_553650738 = i_553655047; + c_553650739 = nimCopy(c_553650739, colontmp__553655045[chckIndx(i_553655047, 0, (colontmp__553655045).length - 1)], NTI1476395028); + if ((c_553650739.Field2 == 2)) { + if (isColor_1476396053(theBoard_553648257[0][chckIndx(i_553650674, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553650675, 0, (theBoard_553648257[0][chckIndx(i_553650674, 0, (theBoard_553648257[0]).length - 1)]).length - 1)], 1)) { + theBoard_553648257[0][chckIndx(i_553650674, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553650675, 0, (theBoard_553648257[0][chckIndx(i_553650674, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].casts[chckIndx(ic_553650738, 0, (theBoard_553648257[0][chckIndx(i_553650674, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553650675, 0, (theBoard_553648257[0][chckIndx(i_553650674, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].casts).length - 1)].Field0 = nimCopy(theBoard_553648257[0][chckIndx(i_553650674, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553650675, 0, (theBoard_553648257[0][chckIndx(i_553650674, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].casts[chckIndx(ic_553650738, 0, (theBoard_553648257[0][chckIndx(i_553650674, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553650675, 0, (theBoard_553648257[0][chckIndx(i_553650674, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].casts).length - 1)].Field0, tileAbove_1560281230(theBoard_553648257[0][chckIndx(i_553650674, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553650675, 0, (theBoard_553648257[0][chckIndx(i_553650674, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].tile), NTI1476395011); } else { - F.line = 205; - theBoard_520093825[0][chckIndx(i_520096242, 0, (theBoard_520093825[0]).length - 1)][chckIndx(j_520096243, 0, (theBoard_520093825[0][chckIndx(i_520096242, 0, (theBoard_520093825[0]).length - 1)]).length - 1)].casts[chckIndx(ic_520096306, 0, (theBoard_520093825[0][chckIndx(i_520096242, 0, (theBoard_520093825[0]).length - 1)][chckIndx(j_520096243, 0, (theBoard_520093825[0][chckIndx(i_520096242, 0, (theBoard_520093825[0]).length - 1)]).length - 1)].casts).length - 1)].Field0 = nimCopy(theBoard_520093825[0][chckIndx(i_520096242, 0, (theBoard_520093825[0]).length - 1)][chckIndx(j_520096243, 0, (theBoard_520093825[0][chckIndx(i_520096242, 0, (theBoard_520093825[0]).length - 1)]).length - 1)].casts[chckIndx(ic_520096306, 0, (theBoard_520093825[0][chckIndx(i_520096242, 0, (theBoard_520093825[0]).length - 1)][chckIndx(j_520096243, 0, (theBoard_520093825[0][chckIndx(i_520096242, 0, (theBoard_520093825[0]).length - 1)]).length - 1)].casts).length - 1)].Field0, tileBelow_1308622993(theBoard_520093825[0][chckIndx(i_520096242, 0, (theBoard_520093825[0]).length - 1)][chckIndx(j_520096243, 0, (theBoard_520093825[0][chckIndx(i_520096242, 0, (theBoard_520093825[0]).length - 1)]).length - 1)].tile), NTI1224736771); + theBoard_553648257[0][chckIndx(i_553650674, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553650675, 0, (theBoard_553648257[0][chckIndx(i_553650674, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].casts[chckIndx(ic_553650738, 0, (theBoard_553648257[0][chckIndx(i_553650674, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553650675, 0, (theBoard_553648257[0][chckIndx(i_553650674, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].casts).length - 1)].Field0 = nimCopy(theBoard_553648257[0][chckIndx(i_553650674, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553650675, 0, (theBoard_553648257[0][chckIndx(i_553650674, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].casts[chckIndx(ic_553650738, 0, (theBoard_553648257[0][chckIndx(i_553650674, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553650675, 0, (theBoard_553648257[0][chckIndx(i_553650674, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].casts).length - 1)].Field0, tileBelow_1560281233(theBoard_553648257[0][chckIndx(i_553650674, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553650675, 0, (theBoard_553648257[0][chckIndx(i_553650674, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].tile), NTI1476395011); } } - F.line = 13; - F.filename = "iterators.nim"; - i_520100615 += 1; - if (!(((colontmp__520100613).length == L_520100616))) { - F.line = 187; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(187, 11) `len(a) == L` the length of the seq changed while iterating over it")); + i_553655047 += 1; + if (!(((colontmp__553655045).length == L_553655048))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(187, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - F.line = 206; - F.filename = "main.nim"; - theBoard_520093825[0][chckIndx(i_520096242, 0, (theBoard_520093825[0]).length - 1)][chckIndx(j_520096243, 0, (theBoard_520093825[0][chckIndx(i_520096242, 0, (theBoard_520093825[0]).length - 1)]).length - 1)].drunk = false; - F.line = 131; - F.filename = "iterators_1.nim"; - i_520100624 = addInt(i_520100624, 1); + theBoard_553648257[0][chckIndx(i_553650674, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553650675, 0, (theBoard_553648257[0][chckIndx(i_553650674, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].drunk = false; + i_553655056 = addInt(i_553655056, 1); } }; }; - F.line = 131; - i_520100620 = addInt(i_520100620, 1); + i_553655052 = addInt(i_553655052, 1); } }; }; }; - F.line = 208; - F.filename = "main.nim"; - piecesChecking_520093849[0] = nimCopy(null, getPiecesChecking_1224737927(theBoard_520093825[0], side_520093807[0]), NTI1224737583); - if (gameIsOver_1224737904(theBoard_520093825[0])) { - F.line = 210; - currentScreen_520093855[0] = 6; - if (!(practiceMode_520093850[0])) { - if (alive_1224737828(side_520093807[0], theBoard_520093825[0])) { - F.line = 214; - addWins_1543503892(myDrafts_520093813[0]); + piecesChecking_553648281[0] = nimCopy(null, getPiecesChecking_1476396167(theBoard_553648257[0], side_553648239[0]), NTI1476395823); + if (gameIsOver_1476396144(theBoard_553648257[0])) { + currentScreen_553648287[0] = 6; + if (!(practiceMode_553648282[0])) { + if (alive_1476396068(side_553648239[0], theBoard_553648257[0])) { + addWins_1929379860(myDrafts_553648245[0]); } else { - F.line = 216; - addLosses_1543503898(myDrafts_520093813[0]); + addLosses_1929379866(myDrafts_553648245[0]); } } } - F.line = 221; - var test_520096316 = []; + var test_553650748 = []; Label21: { - F.line = 222; - var i_520096317 = 0; - F.line = 222; - var j_520096318 = 0; + var i_553650749 = 0; + var j_553650750 = 0; Label22: { - F.line = 124; - F.filename = "piece.nim"; - var i_520100630 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_520100631 = 0; + var i_553655062 = 0; + var i_553655063 = 0; Label23: { - F.line = 129; Label24: while (true) { - if (!(i_520100631 < 8)) break Label24; - F.line = 124; - F.filename = "piece.nim"; - i_520100630 = i_520100631; + if (!(i_553655063 < 8)) break Label24; + i_553655062 = i_553655063; Label25: { - F.line = 125; - var j_520100634 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_520100635 = 0; + var j_553655066 = 0; + var i_553655067 = 0; Label26: { - F.line = 129; Label27: while (true) { - if (!(i_520100635 < 8)) break Label27; - F.line = 125; - F.filename = "piece.nim"; - j_520100634 = i_520100635; - F.line = 222; - F.filename = "main.nim"; - i_520096317 = i_520100630; - F.line = 222; - j_520096318 = j_520100634; - if (!(!(contains_520096338(test_520096316, theBoard_520093825[0][chckIndx(i_520096317, 0, (theBoard_520093825[0]).length - 1)][chckIndx(j_520096318, 0, (theBoard_520093825[0][chckIndx(i_520096317, 0, (theBoard_520093825[0]).length - 1)]).length - 1)].index)))) { - F.line = 223; + if (!(i_553655067 < 8)) break Label27; + j_553655066 = i_553655067; + i_553650749 = i_553655062; + j_553650750 = j_553655066; + if (!(!(contains_553650770(test_553650748, theBoard_553648257[0][chckIndx(i_553650749, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553650750, 0, (theBoard_553648257[0][chckIndx(i_553650749, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].index)))) { Label28: { - F.line = 223; - var fmtRes_520096323 = [mnewString(0)]; - F.line = 223; - formatValue_520096324(fmtRes_520096323, 0, theBoard_520093825[0][chckIndx(i_520096317, 0, (theBoard_520093825[0]).length - 1)][chckIndx(j_520096318, 0, (theBoard_520093825[0][chckIndx(i_520096317, 0, (theBoard_520093825[0]).length - 1)]).length - 1)]); - F.line = 223; - fmtRes_520096323[0].push.apply(fmtRes_520096323[0], [32,104,97,115,32,115,111,109,101,32,105,115,115,117,101,115]);; + var fmtRes_553650755 = [mnewString(0)]; + formatValue_553650756(fmtRes_553650755, 0, theBoard_553648257[0][chckIndx(i_553650749, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553650750, 0, (theBoard_553648257[0][chckIndx(i_553650749, 0, (theBoard_553648257[0]).length - 1)]).length - 1)]); + fmtRes_553650755[0].push.apply(fmtRes_553650755[0], [32,104,97,115,32,115,111,109,101,32,105,115,115,117,101,115]);; }; - failedAssertImpl_268435541((makeNimstrLit("/Users/ajayvallurupalli/the-playground/chess/src/main.nim(223, 9) `theBoard[i][j].index notin test` ") || []).concat(fmtRes_520096323[0] || [])); + failedAssertImpl_268435541(([109,97,105,110,46,110,105,109,40,50,50,51,44,32,57,41,32,96,116,104,101,66,111,97,114,100,91,105,93,91,106,93,46,105,110,100,101,120,32,110,111,116,105,110,32,116,101,115,116,96,32] || []).concat(fmtRes_553650755[0] || [])); } - F.line = 224; - test_520096316.push(theBoard_520093825[0][chckIndx(i_520096317, 0, (theBoard_520093825[0]).length - 1)][chckIndx(j_520096318, 0, (theBoard_520093825[0][chckIndx(i_520096317, 0, (theBoard_520093825[0]).length - 1)]).length - 1)].index);; - F.line = 131; - F.filename = "iterators_1.nim"; - i_520100635 = addInt(i_520100635, 1); + test_553650748.push(theBoard_553648257[0][chckIndx(i_553650749, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553650750, 0, (theBoard_553648257[0][chckIndx(i_553650749, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].index);; + i_553655067 = addInt(i_553655067, 1); } }; }; - F.line = 131; - i_520100631 = addInt(i_520100631, 1); + i_553655063 = addInt(i_553655063, 1); } }; }; }; - framePtr = F.prev; - - -} - -function otherMove_520097036(d_520097037) { - var F = {procname: "main.otherMove", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 284; - F.filename = "main.nim"; - var data_520097038 = nsuSplitString(d_520097037, [44], (-1)); - F.line = 285; - var mover_520097039 = nimCopy(null, {Field0: nsuParseInt(data_520097038[chckIndx(2, 0, (data_520097038).length - 1)]), Field1: nsuParseInt(data_520097038[chckIndx(1, 0, (data_520097038).length - 1)])}, NTI1224736771); - F.line = 286; - var moveTo_520097040 = nimCopy(null, {Field0: nsuParseInt(data_520097038[chckIndx(4, 0, (data_520097038).length - 1)]), Field1: nsuParseInt(data_520097038[chckIndx(3, 0, (data_520097038).length - 1)])}, NTI1224736771); - F.line = 288; - lastMove_520093844[0] = nimCopy(null, [nimCopy(null, mover_520097039, NTI1224736771), nimCopy(null, moveTo_520097040, NTI1224736771)], NTI520095807); - F.line = 289; - possibleMoves_520093834[0] = nimCopy(null, [], NTI1291845837); - F.line = 290; - possibleTakes_520093839[0] = nimCopy(null, [], NTI1291845837); - F.line = 292; - rawEcho(d_520097037, data_520097038[chckIndx(0, 0, (data_520097038).length - 1)], HEX24_1224737476(mover_520097039), HEX24_1224737476(moveTo_520097040)); - if (eqStrings(data_520097038[chckIndx(0, 0, (data_520097038).length - 1)], [109,111,118,101])) { - F.line = 294; - pieceOf_520093924(mover_520097039).onMove(pieceOf_520093924(mover_520097039), moveTo_520097040, theBoard_520093825[0], theState_520093826[0]); + + +} + +function otherMove_553651468(d_553651469) { + var data_553651470 = nsuSplitString(d_553651469, [44], (-1)); + var mover_553651471 = nimCopy(null, {Field0: nsuParseInt(data_553651470[chckIndx(2, 0, (data_553651470).length - 1)]), Field1: nsuParseInt(data_553651470[chckIndx(1, 0, (data_553651470).length - 1)])}, NTI1476395011); + var moveTo_553651472 = nimCopy(null, {Field0: nsuParseInt(data_553651470[chckIndx(4, 0, (data_553651470).length - 1)]), Field1: nsuParseInt(data_553651470[chckIndx(3, 0, (data_553651470).length - 1)])}, NTI1476395011); + lastMove_553648276[0] = nimCopy(null, [nimCopy(null, mover_553651471, NTI1476395011), nimCopy(null, moveTo_553651472, NTI1476395011)], NTI553650239); + possibleMoves_553648266[0] = nimCopy(null, [], NTI1543504077); + possibleTakes_553648271[0] = nimCopy(null, [], NTI1543504077); + rawEcho(d_553651469, data_553651470[chckIndx(0, 0, (data_553651470).length - 1)], HEX24_1476395716(mover_553651471), HEX24_1476395716(moveTo_553651472)); + if (eqStrings(data_553651470[chckIndx(0, 0, (data_553651470).length - 1)], [109,111,118,101])) { + pieceOf_553648356(mover_553651471).onMove(pieceOf_553648356(mover_553651471), moveTo_553651472, theBoard_553648257[0], theState_553648258[0]); } else { - if (eqStrings(data_520097038[chckIndx(0, 0, (data_520097038).length - 1)], [116,97,107,101])) { - F.line = 296; - pieceOf_520093924(mover_520097039).onTake(pieceOf_520093924(mover_520097039), moveTo_520097040, theBoard_520093825[0], theState_520093826[0]); + if (eqStrings(data_553651470[chckIndx(0, 0, (data_553651470).length - 1)], [116,97,107,101])) { + pieceOf_553648356(mover_553651471).onTake(pieceOf_553648356(mover_553651471), moveTo_553651472, theBoard_553648257[0], theState_553648258[0]); } } - framePtr = F.prev; } -function binarySearch_1040188413(c_1040188414, tab_1040188415, len_1040188416, stride_1040188417) { - var result_1040188418 = 0; +function binarySearch_1157628925(c_1157628926, tab_1157628927, len_1157628928, stride_1157628929) { + var result_1157628930 = 0; - var F = {procname: "unicode.binarySearch", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/unicode.nim", line: 0}; - framePtr = F; BeforeRet: { - F.line = 468; - F.filename = "unicode.nim"; - var n_1040188419 = len_1040188416; - F.line = 469; - var t_1040188420 = 0; + var n_1157628931 = len_1157628928; + var t_1157628932 = 0; Label1: { - F.line = 470; Label2: while (true) { - if (!(1 < n_1040188419)) break Label2; - F.line = 471; - var m_1040188421 = divInt(n_1040188419, 2); - F.line = 472; - var p_1040188422 = addInt(t_1040188420, mulInt(m_1040188421, stride_1040188417)); - if ((tab_1040188415[chckIndx(p_1040188422, 0, (tab_1040188415).length - 1)] <= c_1040188414)) { - F.line = 474; - t_1040188420 = p_1040188422; - F.line = 475; - n_1040188419 = subInt(n_1040188419, m_1040188421); + if (!(1 < n_1157628931)) break Label2; + var m_1157628933 = divInt(n_1157628931, 2); + var p_1157628934 = addInt(t_1157628932, mulInt(m_1157628933, stride_1157628929)); + if ((tab_1157628927[chckIndx(p_1157628934, 0, (tab_1157628927).length - 1)] <= c_1157628926)) { + t_1157628932 = p_1157628934; + n_1157628931 = subInt(n_1157628931, m_1157628933); } else { - F.line = 477; - n_1040188419 = m_1040188421; + n_1157628931 = m_1157628933; } } }; - if ((!((n_1040188419 == 0)) && (tab_1040188415[chckIndx(t_1040188420, 0, (tab_1040188415).length - 1)] <= c_1040188414))) { - F.line = 479; - result_1040188418 = t_1040188420; + if ((!((n_1157628931 == 0)) && (tab_1157628927[chckIndx(t_1157628932, 0, (tab_1157628927).length - 1)] <= c_1157628926))) { + result_1157628930 = t_1157628932; break BeforeRet; } - F.line = 480; - result_1040188418 = (-1); + result_1157628930 = (-1); break BeforeRet; }; - framePtr = F.prev; - return result_1040188418; + return result_1157628930; } -function nuctoLower(c_1040188424) { - var result_1040188425 = 0; +function nuctoLower(c_1157628936) { + var result_1157628937 = 0; - var F = {procname: "unicode.toLower", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/unicode.nim", line: 0}; - framePtr = F; BeforeRet: { - F.line = 491; - F.filename = "unicode.nim"; - var c_1040188426 = c_1040188424; - F.line = 492; - var p_1040188435 = binarySearch_1040188413(c_1040188426, toLowerRanges_1040188404, 45, 3); - if ((((0 <= p_1040188435) && (toLowerRanges_1040188404[chckIndx(p_1040188435, 0, (toLowerRanges_1040188404).length - 1)] <= c_1040188426)) && (c_1040188426 <= toLowerRanges_1040188404[chckIndx(addInt(p_1040188435, 1), 0, (toLowerRanges_1040188404).length - 1)]))) { - F.line = 494; - result_1040188425 = subInt(addInt(c_1040188426, toLowerRanges_1040188404[chckIndx(addInt(p_1040188435, 2), 0, (toLowerRanges_1040188404).length - 1)]), 500); + var c_1157628938 = c_1157628936; + var p_1157628947 = binarySearch_1157628925(c_1157628938, toLowerRanges_1157628916, 45, 3); + if ((((0 <= p_1157628947) && (toLowerRanges_1157628916[chckIndx(p_1157628947, 0, (toLowerRanges_1157628916).length - 1)] <= c_1157628938)) && (c_1157628938 <= toLowerRanges_1157628916[chckIndx(addInt(p_1157628947, 1), 0, (toLowerRanges_1157628916).length - 1)]))) { + result_1157628937 = subInt(addInt(c_1157628938, toLowerRanges_1157628916[chckIndx(addInt(p_1157628947, 2), 0, (toLowerRanges_1157628916).length - 1)]), 500); break BeforeRet; } - F.line = 495; - p_1040188435 = binarySearch_1040188413(c_1040188426, toLowerSinglets_1040188405, 610, 2); - if (((0 <= p_1040188435) && (c_1040188426 == toLowerSinglets_1040188405[chckIndx(p_1040188435, 0, (toLowerSinglets_1040188405).length - 1)]))) { - F.line = 497; - result_1040188425 = subInt(addInt(c_1040188426, toLowerSinglets_1040188405[chckIndx(addInt(p_1040188435, 1), 0, (toLowerSinglets_1040188405).length - 1)]), 500); + p_1157628947 = binarySearch_1157628925(c_1157628938, toLowerSinglets_1157628917, 610, 2); + if (((0 <= p_1157628947) && (c_1157628938 == toLowerSinglets_1157628917[chckIndx(p_1157628947, 0, (toLowerSinglets_1157628917).length - 1)]))) { + result_1157628937 = subInt(addInt(c_1157628938, toLowerSinglets_1157628917[chckIndx(addInt(p_1157628947, 1), 0, (toLowerSinglets_1157628917).length - 1)]), 500); break BeforeRet; } - F.line = 498; - result_1040188425 = c_1040188426; + result_1157628937 = c_1157628938; break BeforeRet; }; - framePtr = F.prev; - return result_1040188425; + return result_1157628937; } function HEX3CHEX3DHEX25_33555507(x_33555508, y_33555509) { var result_33555510 = false; - var F = {procname: "system.<=%", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/comparisons.nim", line: 0}; - framePtr = F; - F.line = 185; - F.filename = "comparisons.nim"; result_33555510 = (Number(BigInt.asUintN(32, BigInt(x_33555508))) <= Number(BigInt.asUintN(32, BigInt(y_33555509)))); - framePtr = F.prev; return result_33555510; } -function nuctoLowerStr(s_1040189725) { +function nuctoLowerStr(s_1157630237) { var Temporary3; var Temporary4; var Temporary5; @@ -20082,1097 +13231,694 @@ function nuctoLowerStr(s_1040189725) { var Temporary7; var Temporary8; - var result_1040189726 = []; - - var F = {procname: "unicode.toLower", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/unicode.nim", line: 0}; - framePtr = F; - F.line = 658; - F.filename = "unicode.nim"; - result_1040189726 = nimCopy(null, mnewString(chckRange((s_1040189725).length, 0, 2147483647)), NTI33554449); - F.line = 660; - var iHEX60gensym252_1040189733 = 0; - F.line = 661; - var resultIndexHEX60gensym252_1040189734 = 0; - F.line = 662; - var runeHEX60gensym252_1040189735 = 0; + var result_1157630238 = []; + + result_1157630238 = nimCopy(null, mnewString(chckRange((s_1157630237).length, 0, 2147483647)), NTI33554449); + var iHEX60gensym252_1157630245 = 0; + var resultIndexHEX60gensym252_1157630246 = 0; + var runeHEX60gensym252_1157630247 = 0; Label1: { - F.line = 680; Label2: while (true) { - if (!(iHEX60gensym252_1040189733 < (s_1040189725).length)) break Label2; - if ((s_1040189725[chckIndx(iHEX60gensym252_1040189733, 0, (s_1040189725).length - 1)] <= 127)) { - F.line = 91; - runeHEX60gensym252_1040189735 = chckRange(s_1040189725[chckIndx(iHEX60gensym252_1040189733, 0, (s_1040189725).length - 1)], (-2147483648), 2147483647); - F.line = 92; - iHEX60gensym252_1040189733 = addInt(iHEX60gensym252_1040189733, 1); + if (!(iHEX60gensym252_1157630245 < (s_1157630237).length)) break Label2; + if ((s_1157630237[chckIndx(iHEX60gensym252_1157630245, 0, (s_1157630237).length - 1)] <= 127)) { + runeHEX60gensym252_1157630247 = chckRange(s_1157630237[chckIndx(iHEX60gensym252_1157630245, 0, (s_1157630237).length - 1)], (-2147483648), 2147483647); + iHEX60gensym252_1157630245 = addInt(iHEX60gensym252_1157630245, 1); } else { - if (((s_1040189725[chckIndx(iHEX60gensym252_1040189733, 0, (s_1040189725).length - 1)] >>> 5) == 6)) { - if ((iHEX60gensym252_1040189733 <= subInt((s_1040189725).length, 2))) { - F.line = 96; - runeHEX60gensym252_1040189735 = chckRange(((((((s_1040189725[chckIndx(iHEX60gensym252_1040189733, 0, (s_1040189725).length - 1)] & 31) >>> 0) << 6) >>> 0) | ((s_1040189725[chckIndx(addInt(iHEX60gensym252_1040189733, 1), 0, (s_1040189725).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); - F.line = 98; - iHEX60gensym252_1040189733 = addInt(iHEX60gensym252_1040189733, 2); + if (((s_1157630237[chckIndx(iHEX60gensym252_1157630245, 0, (s_1157630237).length - 1)] >>> 5) == 6)) { + if ((iHEX60gensym252_1157630245 <= subInt((s_1157630237).length, 2))) { + runeHEX60gensym252_1157630247 = chckRange(((((((s_1157630237[chckIndx(iHEX60gensym252_1157630245, 0, (s_1157630237).length - 1)] & 31) >>> 0) << 6) >>> 0) | ((s_1157630237[chckIndx(addInt(iHEX60gensym252_1157630245, 1), 0, (s_1157630237).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); + iHEX60gensym252_1157630245 = addInt(iHEX60gensym252_1157630245, 2); } else { - F.line = 100; - runeHEX60gensym252_1040189735 = 65533; - F.line = 101; - iHEX60gensym252_1040189733 = addInt(iHEX60gensym252_1040189733, 1); + runeHEX60gensym252_1157630247 = 65533; + iHEX60gensym252_1157630245 = addInt(iHEX60gensym252_1157630245, 1); } } else { - if (((s_1040189725[chckIndx(iHEX60gensym252_1040189733, 0, (s_1040189725).length - 1)] >>> 4) == 14)) { - if ((iHEX60gensym252_1040189733 <= subInt((s_1040189725).length, 3))) { - F.line = 106; - runeHEX60gensym252_1040189735 = chckRange(((((((((s_1040189725[chckIndx(iHEX60gensym252_1040189733, 0, (s_1040189725).length - 1)] & 15) >>> 0) << 12) >>> 0) | ((((s_1040189725[chckIndx(addInt(iHEX60gensym252_1040189733, 1), 0, (s_1040189725).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((s_1040189725[chckIndx(addInt(iHEX60gensym252_1040189733, 2), 0, (s_1040189725).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); - F.line = 109; - iHEX60gensym252_1040189733 = addInt(iHEX60gensym252_1040189733, 3); + if (((s_1157630237[chckIndx(iHEX60gensym252_1157630245, 0, (s_1157630237).length - 1)] >>> 4) == 14)) { + if ((iHEX60gensym252_1157630245 <= subInt((s_1157630237).length, 3))) { + runeHEX60gensym252_1157630247 = chckRange(((((((((s_1157630237[chckIndx(iHEX60gensym252_1157630245, 0, (s_1157630237).length - 1)] & 15) >>> 0) << 12) >>> 0) | ((((s_1157630237[chckIndx(addInt(iHEX60gensym252_1157630245, 1), 0, (s_1157630237).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((s_1157630237[chckIndx(addInt(iHEX60gensym252_1157630245, 2), 0, (s_1157630237).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); + iHEX60gensym252_1157630245 = addInt(iHEX60gensym252_1157630245, 3); } else { - F.line = 111; - runeHEX60gensym252_1040189735 = 65533; - F.line = 112; - iHEX60gensym252_1040189733 = addInt(iHEX60gensym252_1040189733, 1); + runeHEX60gensym252_1157630247 = 65533; + iHEX60gensym252_1157630245 = addInt(iHEX60gensym252_1157630245, 1); } } else { - if (((s_1040189725[chckIndx(iHEX60gensym252_1040189733, 0, (s_1040189725).length - 1)] >>> 3) == 30)) { - if ((iHEX60gensym252_1040189733 <= subInt((s_1040189725).length, 4))) { - F.line = 118; - runeHEX60gensym252_1040189735 = chckRange(((((((((((s_1040189725[chckIndx(iHEX60gensym252_1040189733, 0, (s_1040189725).length - 1)] & 7) >>> 0) << 18) >>> 0) | ((((s_1040189725[chckIndx(addInt(iHEX60gensym252_1040189733, 1), 0, (s_1040189725).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((s_1040189725[chckIndx(addInt(iHEX60gensym252_1040189733, 2), 0, (s_1040189725).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((s_1040189725[chckIndx(addInt(iHEX60gensym252_1040189733, 3), 0, (s_1040189725).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); - F.line = 122; - iHEX60gensym252_1040189733 = addInt(iHEX60gensym252_1040189733, 4); + if (((s_1157630237[chckIndx(iHEX60gensym252_1157630245, 0, (s_1157630237).length - 1)] >>> 3) == 30)) { + if ((iHEX60gensym252_1157630245 <= subInt((s_1157630237).length, 4))) { + runeHEX60gensym252_1157630247 = chckRange(((((((((((s_1157630237[chckIndx(iHEX60gensym252_1157630245, 0, (s_1157630237).length - 1)] & 7) >>> 0) << 18) >>> 0) | ((((s_1157630237[chckIndx(addInt(iHEX60gensym252_1157630245, 1), 0, (s_1157630237).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((s_1157630237[chckIndx(addInt(iHEX60gensym252_1157630245, 2), 0, (s_1157630237).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((s_1157630237[chckIndx(addInt(iHEX60gensym252_1157630245, 3), 0, (s_1157630237).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); + iHEX60gensym252_1157630245 = addInt(iHEX60gensym252_1157630245, 4); } else { - F.line = 124; - runeHEX60gensym252_1040189735 = 65533; - F.line = 125; - iHEX60gensym252_1040189733 = addInt(iHEX60gensym252_1040189733, 1); + runeHEX60gensym252_1157630247 = 65533; + iHEX60gensym252_1157630245 = addInt(iHEX60gensym252_1157630245, 1); } } else { - if (((s_1040189725[chckIndx(iHEX60gensym252_1040189733, 0, (s_1040189725).length - 1)] >>> 2) == 62)) { - if ((iHEX60gensym252_1040189733 <= subInt((s_1040189725).length, 5))) { - F.line = 132; - runeHEX60gensym252_1040189735 = chckRange(((((((((((((s_1040189725[chckIndx(iHEX60gensym252_1040189733, 0, (s_1040189725).length - 1)] & 3) >>> 0) << 24) >>> 0) | ((((s_1040189725[chckIndx(addInt(iHEX60gensym252_1040189733, 1), 0, (s_1040189725).length - 1)] & 63) >>> 0) << 18) >>> 0)) >>> 0) | ((((s_1040189725[chckIndx(addInt(iHEX60gensym252_1040189733, 2), 0, (s_1040189725).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((s_1040189725[chckIndx(addInt(iHEX60gensym252_1040189733, 3), 0, (s_1040189725).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((s_1040189725[chckIndx(addInt(iHEX60gensym252_1040189733, 4), 0, (s_1040189725).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); - F.line = 137; - iHEX60gensym252_1040189733 = addInt(iHEX60gensym252_1040189733, 5); + if (((s_1157630237[chckIndx(iHEX60gensym252_1157630245, 0, (s_1157630237).length - 1)] >>> 2) == 62)) { + if ((iHEX60gensym252_1157630245 <= subInt((s_1157630237).length, 5))) { + runeHEX60gensym252_1157630247 = chckRange(((((((((((((s_1157630237[chckIndx(iHEX60gensym252_1157630245, 0, (s_1157630237).length - 1)] & 3) >>> 0) << 24) >>> 0) | ((((s_1157630237[chckIndx(addInt(iHEX60gensym252_1157630245, 1), 0, (s_1157630237).length - 1)] & 63) >>> 0) << 18) >>> 0)) >>> 0) | ((((s_1157630237[chckIndx(addInt(iHEX60gensym252_1157630245, 2), 0, (s_1157630237).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((s_1157630237[chckIndx(addInt(iHEX60gensym252_1157630245, 3), 0, (s_1157630237).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((s_1157630237[chckIndx(addInt(iHEX60gensym252_1157630245, 4), 0, (s_1157630237).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); + iHEX60gensym252_1157630245 = addInt(iHEX60gensym252_1157630245, 5); } else { - F.line = 139; - runeHEX60gensym252_1040189735 = 65533; - F.line = 140; - iHEX60gensym252_1040189733 = addInt(iHEX60gensym252_1040189733, 1); + runeHEX60gensym252_1157630247 = 65533; + iHEX60gensym252_1157630245 = addInt(iHEX60gensym252_1157630245, 1); } } else { - if (((s_1040189725[chckIndx(iHEX60gensym252_1040189733, 0, (s_1040189725).length - 1)] >>> 1) == 126)) { - if ((iHEX60gensym252_1040189733 <= subInt((s_1040189725).length, 6))) { - F.line = 148; - runeHEX60gensym252_1040189735 = chckRange(((((((((((((((s_1040189725[chckIndx(iHEX60gensym252_1040189733, 0, (s_1040189725).length - 1)] & 1) >>> 0) << 30) >>> 0) | ((((s_1040189725[chckIndx(addInt(iHEX60gensym252_1040189733, 1), 0, (s_1040189725).length - 1)] & 63) >>> 0) << 24) >>> 0)) >>> 0) | ((((s_1040189725[chckIndx(addInt(iHEX60gensym252_1040189733, 2), 0, (s_1040189725).length - 1)] & 63) >>> 0) << 18) >>> 0)) >>> 0) | ((((s_1040189725[chckIndx(addInt(iHEX60gensym252_1040189733, 3), 0, (s_1040189725).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((s_1040189725[chckIndx(addInt(iHEX60gensym252_1040189733, 4), 0, (s_1040189725).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((s_1040189725[chckIndx(addInt(iHEX60gensym252_1040189733, 5), 0, (s_1040189725).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); - F.line = 154; - iHEX60gensym252_1040189733 = addInt(iHEX60gensym252_1040189733, 6); + if (((s_1157630237[chckIndx(iHEX60gensym252_1157630245, 0, (s_1157630237).length - 1)] >>> 1) == 126)) { + if ((iHEX60gensym252_1157630245 <= subInt((s_1157630237).length, 6))) { + runeHEX60gensym252_1157630247 = chckRange(((((((((((((((s_1157630237[chckIndx(iHEX60gensym252_1157630245, 0, (s_1157630237).length - 1)] & 1) >>> 0) << 30) >>> 0) | ((((s_1157630237[chckIndx(addInt(iHEX60gensym252_1157630245, 1), 0, (s_1157630237).length - 1)] & 63) >>> 0) << 24) >>> 0)) >>> 0) | ((((s_1157630237[chckIndx(addInt(iHEX60gensym252_1157630245, 2), 0, (s_1157630237).length - 1)] & 63) >>> 0) << 18) >>> 0)) >>> 0) | ((((s_1157630237[chckIndx(addInt(iHEX60gensym252_1157630245, 3), 0, (s_1157630237).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((s_1157630237[chckIndx(addInt(iHEX60gensym252_1157630245, 4), 0, (s_1157630237).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((s_1157630237[chckIndx(addInt(iHEX60gensym252_1157630245, 5), 0, (s_1157630237).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); + iHEX60gensym252_1157630245 = addInt(iHEX60gensym252_1157630245, 6); } else { - F.line = 156; - runeHEX60gensym252_1040189735 = 65533; - F.line = 157; - iHEX60gensym252_1040189733 = addInt(iHEX60gensym252_1040189733, 1); + runeHEX60gensym252_1157630247 = 65533; + iHEX60gensym252_1157630245 = addInt(iHEX60gensym252_1157630245, 1); } } else { - F.line = 159; - runeHEX60gensym252_1040189735 = chckRange(s_1040189725[chckIndx(iHEX60gensym252_1040189733, 0, (s_1040189725).length - 1)], (-2147483648), 2147483647); - F.line = 160; - iHEX60gensym252_1040189733 = addInt(iHEX60gensym252_1040189733, 1); + runeHEX60gensym252_1157630247 = chckRange(s_1157630237[chckIndx(iHEX60gensym252_1157630245, 0, (s_1157630237).length - 1)], (-2147483648), 2147483647); + iHEX60gensym252_1157630245 = addInt(iHEX60gensym252_1157630245, 1); } }}}}} - F.line = 665; - runeHEX60gensym252_1040189735 = nuctoLower(runeHEX60gensym252_1040189735); - F.line = 221; - var iHEX60gensym274_1040189976 = runeHEX60gensym252_1040189735; - if (HEX3CHEX3DHEX25_33555507(iHEX60gensym274_1040189976, 127)) { - F.line = 223; - if (result_1040189726.length < (Temporary3 = chckRange(addInt(resultIndexHEX60gensym252_1040189734, 1), 0, 2147483647), Temporary3)) { for (var i = result_1040189726.length; i < Temporary3; ++i) result_1040189726.push(0); } - else {result_1040189726.length = Temporary3; }; - F.line = 224; - result_1040189726[chckIndx(addInt(resultIndexHEX60gensym252_1040189734, 0), 0, (result_1040189726).length - 1)] = chckRange(iHEX60gensym274_1040189976, 0, 255); - F.line = 225; - resultIndexHEX60gensym252_1040189734 = addInt(resultIndexHEX60gensym252_1040189734, 1); + runeHEX60gensym252_1157630247 = nuctoLower(runeHEX60gensym252_1157630247); + var iHEX60gensym274_1157630488 = runeHEX60gensym252_1157630247; + if (HEX3CHEX3DHEX25_33555507(iHEX60gensym274_1157630488, 127)) { + if (result_1157630238.length < (Temporary3 = chckRange(addInt(resultIndexHEX60gensym252_1157630246, 1), 0, 2147483647), Temporary3)) { for (var i = result_1157630238.length; i < Temporary3; ++i) result_1157630238.push(0); } + else {result_1157630238.length = Temporary3; }; + result_1157630238[chckIndx(addInt(resultIndexHEX60gensym252_1157630246, 0), 0, (result_1157630238).length - 1)] = chckRange(iHEX60gensym274_1157630488, 0, 255); + resultIndexHEX60gensym252_1157630246 = addInt(resultIndexHEX60gensym252_1157630246, 1); } else { - if (HEX3CHEX3DHEX25_33555507(iHEX60gensym274_1040189976, 2047)) { - F.line = 227; - if (result_1040189726.length < (Temporary4 = chckRange(addInt(resultIndexHEX60gensym252_1040189734, 2), 0, 2147483647), Temporary4)) { for (var i = result_1040189726.length; i < Temporary4; ++i) result_1040189726.push(0); } - else {result_1040189726.length = Temporary4; }; - F.line = 228; - result_1040189726[chckIndx(addInt(resultIndexHEX60gensym252_1040189734, 0), 0, (result_1040189726).length - 1)] = chckRange(((iHEX60gensym274_1040189976 >> 6) | 192), 0, 255); - F.line = 229; - result_1040189726[chckIndx(addInt(resultIndexHEX60gensym252_1040189734, 1), 0, (result_1040189726).length - 1)] = chckRange(((iHEX60gensym274_1040189976 & 63) | 128), 0, 255); - F.line = 230; - resultIndexHEX60gensym252_1040189734 = addInt(resultIndexHEX60gensym252_1040189734, 2); + if (HEX3CHEX3DHEX25_33555507(iHEX60gensym274_1157630488, 2047)) { + if (result_1157630238.length < (Temporary4 = chckRange(addInt(resultIndexHEX60gensym252_1157630246, 2), 0, 2147483647), Temporary4)) { for (var i = result_1157630238.length; i < Temporary4; ++i) result_1157630238.push(0); } + else {result_1157630238.length = Temporary4; }; + result_1157630238[chckIndx(addInt(resultIndexHEX60gensym252_1157630246, 0), 0, (result_1157630238).length - 1)] = chckRange(((iHEX60gensym274_1157630488 >> 6) | 192), 0, 255); + result_1157630238[chckIndx(addInt(resultIndexHEX60gensym252_1157630246, 1), 0, (result_1157630238).length - 1)] = chckRange(((iHEX60gensym274_1157630488 & 63) | 128), 0, 255); + resultIndexHEX60gensym252_1157630246 = addInt(resultIndexHEX60gensym252_1157630246, 2); } else { - if (HEX3CHEX3DHEX25_33555507(iHEX60gensym274_1040189976, 65535)) { - F.line = 232; - if (result_1040189726.length < (Temporary5 = chckRange(addInt(resultIndexHEX60gensym252_1040189734, 3), 0, 2147483647), Temporary5)) { for (var i = result_1040189726.length; i < Temporary5; ++i) result_1040189726.push(0); } - else {result_1040189726.length = Temporary5; }; - F.line = 233; - result_1040189726[chckIndx(addInt(resultIndexHEX60gensym252_1040189734, 0), 0, (result_1040189726).length - 1)] = chckRange(((iHEX60gensym274_1040189976 >> 12) | 224), 0, 255); - F.line = 234; - result_1040189726[chckIndx(addInt(resultIndexHEX60gensym252_1040189734, 1), 0, (result_1040189726).length - 1)] = chckRange((((iHEX60gensym274_1040189976 >> 6) & 63) | 128), 0, 255); - F.line = 235; - result_1040189726[chckIndx(addInt(resultIndexHEX60gensym252_1040189734, 2), 0, (result_1040189726).length - 1)] = chckRange(((iHEX60gensym274_1040189976 & 63) | 128), 0, 255); - F.line = 236; - resultIndexHEX60gensym252_1040189734 = addInt(resultIndexHEX60gensym252_1040189734, 3); + if (HEX3CHEX3DHEX25_33555507(iHEX60gensym274_1157630488, 65535)) { + if (result_1157630238.length < (Temporary5 = chckRange(addInt(resultIndexHEX60gensym252_1157630246, 3), 0, 2147483647), Temporary5)) { for (var i = result_1157630238.length; i < Temporary5; ++i) result_1157630238.push(0); } + else {result_1157630238.length = Temporary5; }; + result_1157630238[chckIndx(addInt(resultIndexHEX60gensym252_1157630246, 0), 0, (result_1157630238).length - 1)] = chckRange(((iHEX60gensym274_1157630488 >> 12) | 224), 0, 255); + result_1157630238[chckIndx(addInt(resultIndexHEX60gensym252_1157630246, 1), 0, (result_1157630238).length - 1)] = chckRange((((iHEX60gensym274_1157630488 >> 6) & 63) | 128), 0, 255); + result_1157630238[chckIndx(addInt(resultIndexHEX60gensym252_1157630246, 2), 0, (result_1157630238).length - 1)] = chckRange(((iHEX60gensym274_1157630488 & 63) | 128), 0, 255); + resultIndexHEX60gensym252_1157630246 = addInt(resultIndexHEX60gensym252_1157630246, 3); } else { - if (HEX3CHEX3DHEX25_33555507(iHEX60gensym274_1040189976, 2097151)) { - F.line = 238; - if (result_1040189726.length < (Temporary6 = chckRange(addInt(resultIndexHEX60gensym252_1040189734, 4), 0, 2147483647), Temporary6)) { for (var i = result_1040189726.length; i < Temporary6; ++i) result_1040189726.push(0); } - else {result_1040189726.length = Temporary6; }; - F.line = 239; - result_1040189726[chckIndx(addInt(resultIndexHEX60gensym252_1040189734, 0), 0, (result_1040189726).length - 1)] = chckRange(((iHEX60gensym274_1040189976 >> 18) | 240), 0, 255); - F.line = 240; - result_1040189726[chckIndx(addInt(resultIndexHEX60gensym252_1040189734, 1), 0, (result_1040189726).length - 1)] = chckRange((((iHEX60gensym274_1040189976 >> 12) & 63) | 128), 0, 255); - F.line = 241; - result_1040189726[chckIndx(addInt(resultIndexHEX60gensym252_1040189734, 2), 0, (result_1040189726).length - 1)] = chckRange((((iHEX60gensym274_1040189976 >> 6) & 63) | 128), 0, 255); - F.line = 242; - result_1040189726[chckIndx(addInt(resultIndexHEX60gensym252_1040189734, 3), 0, (result_1040189726).length - 1)] = chckRange(((iHEX60gensym274_1040189976 & 63) | 128), 0, 255); - F.line = 243; - resultIndexHEX60gensym252_1040189734 = addInt(resultIndexHEX60gensym252_1040189734, 4); + if (HEX3CHEX3DHEX25_33555507(iHEX60gensym274_1157630488, 2097151)) { + if (result_1157630238.length < (Temporary6 = chckRange(addInt(resultIndexHEX60gensym252_1157630246, 4), 0, 2147483647), Temporary6)) { for (var i = result_1157630238.length; i < Temporary6; ++i) result_1157630238.push(0); } + else {result_1157630238.length = Temporary6; }; + result_1157630238[chckIndx(addInt(resultIndexHEX60gensym252_1157630246, 0), 0, (result_1157630238).length - 1)] = chckRange(((iHEX60gensym274_1157630488 >> 18) | 240), 0, 255); + result_1157630238[chckIndx(addInt(resultIndexHEX60gensym252_1157630246, 1), 0, (result_1157630238).length - 1)] = chckRange((((iHEX60gensym274_1157630488 >> 12) & 63) | 128), 0, 255); + result_1157630238[chckIndx(addInt(resultIndexHEX60gensym252_1157630246, 2), 0, (result_1157630238).length - 1)] = chckRange((((iHEX60gensym274_1157630488 >> 6) & 63) | 128), 0, 255); + result_1157630238[chckIndx(addInt(resultIndexHEX60gensym252_1157630246, 3), 0, (result_1157630238).length - 1)] = chckRange(((iHEX60gensym274_1157630488 & 63) | 128), 0, 255); + resultIndexHEX60gensym252_1157630246 = addInt(resultIndexHEX60gensym252_1157630246, 4); } else { - if (HEX3CHEX3DHEX25_33555507(iHEX60gensym274_1040189976, 67108863)) { - F.line = 245; - if (result_1040189726.length < (Temporary7 = chckRange(addInt(resultIndexHEX60gensym252_1040189734, 5), 0, 2147483647), Temporary7)) { for (var i = result_1040189726.length; i < Temporary7; ++i) result_1040189726.push(0); } - else {result_1040189726.length = Temporary7; }; - F.line = 246; - result_1040189726[chckIndx(addInt(resultIndexHEX60gensym252_1040189734, 0), 0, (result_1040189726).length - 1)] = chckRange(((iHEX60gensym274_1040189976 >> 24) | 248), 0, 255); - F.line = 247; - result_1040189726[chckIndx(addInt(resultIndexHEX60gensym252_1040189734, 1), 0, (result_1040189726).length - 1)] = chckRange((((iHEX60gensym274_1040189976 >> 18) & 63) | 128), 0, 255); - F.line = 248; - result_1040189726[chckIndx(addInt(resultIndexHEX60gensym252_1040189734, 2), 0, (result_1040189726).length - 1)] = chckRange((((iHEX60gensym274_1040189976 >> 12) & 63) | 128), 0, 255); - F.line = 249; - result_1040189726[chckIndx(addInt(resultIndexHEX60gensym252_1040189734, 3), 0, (result_1040189726).length - 1)] = chckRange((((iHEX60gensym274_1040189976 >> 6) & 63) | 128), 0, 255); - F.line = 250; - result_1040189726[chckIndx(addInt(resultIndexHEX60gensym252_1040189734, 4), 0, (result_1040189726).length - 1)] = chckRange(((iHEX60gensym274_1040189976 & 63) | 128), 0, 255); - F.line = 251; - resultIndexHEX60gensym252_1040189734 = addInt(resultIndexHEX60gensym252_1040189734, 5); + if (HEX3CHEX3DHEX25_33555507(iHEX60gensym274_1157630488, 67108863)) { + if (result_1157630238.length < (Temporary7 = chckRange(addInt(resultIndexHEX60gensym252_1157630246, 5), 0, 2147483647), Temporary7)) { for (var i = result_1157630238.length; i < Temporary7; ++i) result_1157630238.push(0); } + else {result_1157630238.length = Temporary7; }; + result_1157630238[chckIndx(addInt(resultIndexHEX60gensym252_1157630246, 0), 0, (result_1157630238).length - 1)] = chckRange(((iHEX60gensym274_1157630488 >> 24) | 248), 0, 255); + result_1157630238[chckIndx(addInt(resultIndexHEX60gensym252_1157630246, 1), 0, (result_1157630238).length - 1)] = chckRange((((iHEX60gensym274_1157630488 >> 18) & 63) | 128), 0, 255); + result_1157630238[chckIndx(addInt(resultIndexHEX60gensym252_1157630246, 2), 0, (result_1157630238).length - 1)] = chckRange((((iHEX60gensym274_1157630488 >> 12) & 63) | 128), 0, 255); + result_1157630238[chckIndx(addInt(resultIndexHEX60gensym252_1157630246, 3), 0, (result_1157630238).length - 1)] = chckRange((((iHEX60gensym274_1157630488 >> 6) & 63) | 128), 0, 255); + result_1157630238[chckIndx(addInt(resultIndexHEX60gensym252_1157630246, 4), 0, (result_1157630238).length - 1)] = chckRange(((iHEX60gensym274_1157630488 & 63) | 128), 0, 255); + resultIndexHEX60gensym252_1157630246 = addInt(resultIndexHEX60gensym252_1157630246, 5); } else { - if (HEX3CHEX3DHEX25_33555507(iHEX60gensym274_1040189976, 2147483647)) { - F.line = 253; - if (result_1040189726.length < (Temporary8 = chckRange(addInt(resultIndexHEX60gensym252_1040189734, 6), 0, 2147483647), Temporary8)) { for (var i = result_1040189726.length; i < Temporary8; ++i) result_1040189726.push(0); } - else {result_1040189726.length = Temporary8; }; - F.line = 254; - result_1040189726[chckIndx(addInt(resultIndexHEX60gensym252_1040189734, 0), 0, (result_1040189726).length - 1)] = chckRange(((iHEX60gensym274_1040189976 >> 30) | 252), 0, 255); - F.line = 255; - result_1040189726[chckIndx(addInt(resultIndexHEX60gensym252_1040189734, 1), 0, (result_1040189726).length - 1)] = chckRange((((iHEX60gensym274_1040189976 >> 24) & 63) | 128), 0, 255); - F.line = 256; - result_1040189726[chckIndx(addInt(resultIndexHEX60gensym252_1040189734, 2), 0, (result_1040189726).length - 1)] = chckRange((((iHEX60gensym274_1040189976 >> 18) & 63) | 128), 0, 255); - F.line = 257; - result_1040189726[chckIndx(addInt(resultIndexHEX60gensym252_1040189734, 3), 0, (result_1040189726).length - 1)] = chckRange((((iHEX60gensym274_1040189976 >> 12) & 63) | 128), 0, 255); - F.line = 258; - result_1040189726[chckIndx(addInt(resultIndexHEX60gensym252_1040189734, 4), 0, (result_1040189726).length - 1)] = chckRange((((iHEX60gensym274_1040189976 >> 6) & 63) | 128), 0, 255); - F.line = 259; - result_1040189726[chckIndx(addInt(resultIndexHEX60gensym252_1040189734, 5), 0, (result_1040189726).length - 1)] = chckRange(((iHEX60gensym274_1040189976 & 63) | 128), 0, 255); - F.line = 260; - resultIndexHEX60gensym252_1040189734 = addInt(resultIndexHEX60gensym252_1040189734, 6); + if (HEX3CHEX3DHEX25_33555507(iHEX60gensym274_1157630488, 2147483647)) { + if (result_1157630238.length < (Temporary8 = chckRange(addInt(resultIndexHEX60gensym252_1157630246, 6), 0, 2147483647), Temporary8)) { for (var i = result_1157630238.length; i < Temporary8; ++i) result_1157630238.push(0); } + else {result_1157630238.length = Temporary8; }; + result_1157630238[chckIndx(addInt(resultIndexHEX60gensym252_1157630246, 0), 0, (result_1157630238).length - 1)] = chckRange(((iHEX60gensym274_1157630488 >> 30) | 252), 0, 255); + result_1157630238[chckIndx(addInt(resultIndexHEX60gensym252_1157630246, 1), 0, (result_1157630238).length - 1)] = chckRange((((iHEX60gensym274_1157630488 >> 24) & 63) | 128), 0, 255); + result_1157630238[chckIndx(addInt(resultIndexHEX60gensym252_1157630246, 2), 0, (result_1157630238).length - 1)] = chckRange((((iHEX60gensym274_1157630488 >> 18) & 63) | 128), 0, 255); + result_1157630238[chckIndx(addInt(resultIndexHEX60gensym252_1157630246, 3), 0, (result_1157630238).length - 1)] = chckRange((((iHEX60gensym274_1157630488 >> 12) & 63) | 128), 0, 255); + result_1157630238[chckIndx(addInt(resultIndexHEX60gensym252_1157630246, 4), 0, (result_1157630238).length - 1)] = chckRange((((iHEX60gensym274_1157630488 >> 6) & 63) | 128), 0, 255); + result_1157630238[chckIndx(addInt(resultIndexHEX60gensym252_1157630246, 5), 0, (result_1157630238).length - 1)] = chckRange(((iHEX60gensym274_1157630488 & 63) | 128), 0, 255); + resultIndexHEX60gensym252_1157630246 = addInt(resultIndexHEX60gensym252_1157630246, 6); } else { } }}}}} } }; - framePtr = F.prev; - return result_1040189726; + return result_1157630238; } -function toLower_1040194968(s_1040194969) { - var result_1040194970 = []; +function toLower_1157635480(s_1157635481) { + var result_1157635482 = []; - var F = {procname: "unicode.toLower", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/unicode.nim", line: 0}; - framePtr = F; - F.line = 1302; - F.filename = "unicode.nim"; - result_1040194970 = nimCopy(null, nuctoLowerStr((s_1040194969.slice(0, (s_1040194969).length - 1 + 1))), NTI33554449); - framePtr = F.prev; + result_1157635482 = nimCopy(null, nuctoLowerStr((s_1157635481.slice(0, (s_1157635481).length - 1 + 1))), NTI33554449); - return result_1040194970; + return result_1157635482; } -function toGlassType_1560281093(str_1560281094) { - var result_1560281095 = 0; +function toGlassType_1946157061(str_1946157062) { + var result_1946157063 = 0; - var F = {procname: "glass.toGlassType", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/extrapower/glass.nim", line: 0}; - framePtr = F; BeforeRet: { - if (eqStrings(toLower_1040194968(str_1560281094), [115,107,121])) { - F.line = 8; - F.filename = "glass.nim"; - result_1560281095 = 0; + if (eqStrings(toLower_1157635480(str_1946157062), [115,107,121])) { + result_1946157063 = 0; break BeforeRet; } else { - if (eqStrings(toLower_1040194968(str_1560281094), [122,101,114,111])) { - F.line = 10; - result_1560281095 = 1; + if (eqStrings(toLower_1157635480(str_1946157062), [122,101,114,111])) { + result_1946157063 = 1; break BeforeRet; } else { - if (eqStrings(toLower_1040194968(str_1560281094), [115,116,101,101,108])) { - F.line = 12; - result_1560281095 = 2; + if (eqStrings(toLower_1157635480(str_1946157062), [115,116,101,101,108])) { + result_1946157063 = 2; break BeforeRet; } else { - if (eqStrings(toLower_1040194968(str_1560281094), [114,101,118,101,114,105,101])) { - F.line = 14; - result_1560281095 = 3; + if (eqStrings(toLower_1157635480(str_1946157062), [114,101,118,101,114,105,101])) { + result_1946157063 = 3; break BeforeRet; } else { - F.line = 16; - raiseAssert_268435499(([63,63,63,63,44,32] || []).concat(str_1560281094 || [],[32,105,115,32,110,111,116,32,97,32,103,108,97,115,115] || [])); + raiseAssert_268435499(([63,63,63,63,44,32] || []).concat(str_1946157062 || [],[32,105,115,32,110,111,116,32,97,32,103,108,97,115,115] || [])); } }}} }; - framePtr = F.prev; - return result_1560281095; + return result_1946157063; } -function newGroup_1224737263(s_1224737264) { - var result_1224737265 = 0; +function newGroup_1476395503(s_1476395504) { + var result_1476395505 = 0; - var F = {procname: "piece.newGroup", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/piece.nim", line: 0}; - framePtr = F; BeforeRet: { - F.line = 204; - F.filename = "piece.nim"; - s_1224737264.Field0.nextGroup = addInt(s_1224737264.Field0.nextGroup, 1); - F.line = 205; - result_1224737265 = s_1224737264.Field0.nextGroup; + s_1476395504.Field0.nextGroup = addInt(s_1476395504.Field0.nextGroup, 1); + result_1476395505 = s_1476395504.Field0.nextGroup; break BeforeRet; }; - framePtr = F.prev; - return result_1224737265; + return result_1476395505; } -function newSeq_520096990(len_520096992) { - var result_520096993 = []; +function newSeq_553651422(len_553651424) { + var result_553651425 = []; - var F = {procname: "newSeq.newSeq", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; - F.line = 633; - F.filename = "system.nim"; - result_520096993 = new Array(len_520096992); for (var i = 0 ; i < len_520096992 ; ++i) { result_520096993[i] = {Field0: {Field0: 0, Field1: 0}, Field1: 0, Field2: 0}; } framePtr = F.prev; - - return result_520096993; + result_553651425 = new Array(len_553651424); for (var i = 0 ; i < len_553651424 ; ++i) { result_553651425[i] = {Field0: {Field0: 0, Field1: 0}, Field1: 0, Field2: 0}; } + return result_553651425; } -function isNone_520097169(self_520097171) { - var result_520097172 = false; +function isNone_553651601(self_553651603) { + var result_553651604 = false; - var F = {procname: "isNone.isNone", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/options.nim", line: 0}; - framePtr = F; - F.line = 176; - F.filename = "options.nim"; - result_520097172 = !(self_520097171.has); - framePtr = F.prev; + result_553651604 = !(self_553651603.has); - return result_520097172; + return result_553651604; } -function get_520097161(self_520097163) { - var result_520097164 = null; +function get_553651593(self_553651595) { + var result_553651596 = null; - var F = {procname: "get.get", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/options.nim", line: 0}; - framePtr = F; BeforeRet: { - if (isNone_520097169(self_520097163)) { - F.line = 230; - F.filename = "options.nim"; - raiseException({message: [67,97,110,39,116,32,111,98,116,97,105,110,32,97,32,118,97,108,117,101,32,102,114,111,109,32,97,32,96,110,111,110,101,96], parent: null, m_type: NTI1241514007, name: null, trace: [], up: null}, "UnpackDefect"); + if (isNone_553651601(self_553651595)) { + raiseException({message: [67,97,110,39,116,32,111,98,116,97,105,110,32,97,32,118,97,108,117,101,32,102,114,111,109,32,97,32,96,110,111,110,101,96], parent: null, m_type: NTI1493172247, name: null, trace: [], up: null}, "UnpackDefect"); } - F.line = 231; - result_520097164 = self_520097163.val; + result_553651596 = self_553651595.val; break BeforeRet; }; - framePtr = F.prev; - return result_520097164; + return result_553651596; } -function otherGlass_520097101(d_520097102) { +function otherGlass_553651533(d_553651534) { var Temporary1; var Temporary27; - var F = {procname: "main.otherGlass", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 299; - F.filename = "main.nim"; - var data_520097103 = nsuSplitString(d_520097102, [44], (-1)); - if (eqStrings(data_520097103[chckIndx(0, 0, (data_520097103).length - 1)], [99,97,115,116,105,110,103,115,116,97,114,116])) { - F.line = 301; - (Temporary1 = theBoard_520093825[0][chckIndx(nsuParseInt(data_520097103[chckIndx(1, 0, (data_520097103).length - 1)]), 0, (theBoard_520093825[0]).length - 1)], Temporary1)[chckIndx(nsuParseInt(data_520097103[chckIndx(2, 0, (data_520097103).length - 1)]), 0, (Temporary1).length - 1)].casts.push({Field0: nimCopy(null, {Field0: nsuParseInt(data_520097103[chckIndx(4, 0, (data_520097103).length - 1)]), Field1: nsuParseInt(data_520097103[chckIndx(3, 0, (data_520097103).length - 1)])}, NTI1224736771), Field1: nsuParseInt(data_520097103[chckIndx(5, 0, (data_520097103).length - 1)]), Field2: toGlassType_1560281093(data_520097103[chckIndx(6, 0, (data_520097103).length - 1)])});; - F.line = 306; - var _ = newGroup_1224737263(theState_520093826[0]); + var data_553651535 = nsuSplitString(d_553651534, [44], (-1)); + if (eqStrings(data_553651535[chckIndx(0, 0, (data_553651535).length - 1)], [99,97,115,116,105,110,103,115,116,97,114,116])) { + (Temporary1 = theBoard_553648257[0][chckIndx(nsuParseInt(data_553651535[chckIndx(1, 0, (data_553651535).length - 1)]), 0, (theBoard_553648257[0]).length - 1)], Temporary1)[chckIndx(nsuParseInt(data_553651535[chckIndx(2, 0, (data_553651535).length - 1)]), 0, (Temporary1).length - 1)].casts.push({Field0: nimCopy(null, {Field0: nsuParseInt(data_553651535[chckIndx(4, 0, (data_553651535).length - 1)]), Field1: nsuParseInt(data_553651535[chckIndx(3, 0, (data_553651535).length - 1)])}, NTI1476395011), Field1: nsuParseInt(data_553651535[chckIndx(5, 0, (data_553651535).length - 1)]), Field2: toGlassType_1946157061(data_553651535[chckIndx(6, 0, (data_553651535).length - 1)])});; + var _ = newGroup_1476395503(theState_553648258[0]); } else { - if (eqStrings(data_520097103[chckIndx(0, 0, (data_520097103).length - 1)], [99,97,115,116,105,110,103,99,97,110,99,101,108])) { - F.line = 309; - turn_520093808[0] = true; - F.line = 310; + if (eqStrings(data_553651535[chckIndx(0, 0, (data_553651535).length - 1)], [99,97,115,116,105,110,103,99,97,110,99,101,108])) { + turn_553648240[0] = true; rawEcho([116,117,114,110,32,101,113,117,97,108,115,32,116,114,117,101,58,32,111,116,104,101,114,103,108,97,115,115,32,99,97,110,99,101,108]); Label2: { - F.line = 311; - var i_520097115 = 0; - F.line = 311; - var j_520097116 = 0; + var i_553651547 = 0; + var j_553651548 = 0; Label3: { - F.line = 124; - F.filename = "piece.nim"; - var i_520100667 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_520100668 = 0; + var i_553655099 = 0; + var i_553655100 = 0; Label4: { - F.line = 129; Label5: while (true) { - if (!(i_520100668 < 8)) break Label5; - F.line = 124; - F.filename = "piece.nim"; - i_520100667 = i_520100668; + if (!(i_553655100 < 8)) break Label5; + i_553655099 = i_553655100; Label6: { - F.line = 125; - var j_520100671 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_520100672 = 0; + var j_553655103 = 0; + var i_553655104 = 0; Label7: { - F.line = 129; Label8: while (true) { - if (!(i_520100672 < 8)) break Label8; - F.line = 125; - F.filename = "piece.nim"; - j_520100671 = i_520100672; - F.line = 311; - F.filename = "main.nim"; - i_520097115 = i_520100667; - F.line = 311; - j_520097116 = j_520100671; - F.line = 312; - F.line = 652; - F.filename = "sequtils.nim"; - var resultHEX60gensym97_520097121 = newSeq_520096990(0); + if (!(i_553655104 < 8)) break Label8; + j_553655103 = i_553655104; + i_553651547 = i_553655099; + j_553651548 = j_553655103; + var resultHEX60gensym97_553651553 = newSeq_553651422(0); Label9: { - F.line = 653; - var it_520097125 = {Field0: {Field0: 0, Field1: 0}, Field1: 0, Field2: 0}; - F.line = 247; - F.filename = "iterators.nim"; - var colontmp__520100662 = []; - F.line = 312; - F.filename = "main.nim"; - colontmp__520100662 = theBoard_520093825[0][chckIndx(i_520097115, 0, (theBoard_520093825[0]).length - 1)][chckIndx(j_520097116, 0, (theBoard_520093825[0][chckIndx(i_520097115, 0, (theBoard_520093825[0]).length - 1)]).length - 1)].casts; - F.line = 249; - F.filename = "iterators.nim"; - var i_520100663 = 0; - F.line = 250; - var L_520100664 = (colontmp__520100662).length; + var it_553651557 = {Field0: {Field0: 0, Field1: 0}, Field1: 0, Field2: 0}; + var colontmp__553655094 = []; + colontmp__553655094 = theBoard_553648257[0][chckIndx(i_553651547, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553651548, 0, (theBoard_553648257[0][chckIndx(i_553651547, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].casts; + var i_553655095 = 0; + var L_553655096 = (colontmp__553655094).length; Label10: { - F.line = 251; Label11: while (true) { - if (!(i_520100663 < L_520100664)) break Label11; - F.line = 653; - F.filename = "sequtils.nim"; - it_520097125 = colontmp__520100662[chckIndx(i_520100663, 0, (colontmp__520100662).length - 1)]; - if (!((it_520097125.Field1 == nsuParseInt(data_520097103[chckIndx(1, 0, (data_520097103).length - 1)])))) { - F.line = 654; - var Temporary12 = nimCopy(null, it_520097125, NTI1224736788); - resultHEX60gensym97_520097121.push(Temporary12);; + if (!(i_553655095 < L_553655096)) break Label11; + it_553651557 = colontmp__553655094[chckIndx(i_553655095, 0, (colontmp__553655094).length - 1)]; + if (!((it_553651557.Field1 == nsuParseInt(data_553651535[chckIndx(1, 0, (data_553651535).length - 1)])))) { + var Temporary12 = nimCopy(null, it_553651557, NTI1476395028); + resultHEX60gensym97_553651553.push(Temporary12);; } - F.line = 13; - F.filename = "iterators.nim"; - i_520100663 += 1; - if (!(((colontmp__520100662).length == L_520100664))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + i_553655095 += 1; + if (!(((colontmp__553655094).length == L_553655096))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - theBoard_520093825[0][chckIndx(i_520097115, 0, (theBoard_520093825[0]).length - 1)][chckIndx(j_520097116, 0, (theBoard_520093825[0][chckIndx(i_520097115, 0, (theBoard_520093825[0]).length - 1)]).length - 1)].casts = nimCopy(null, resultHEX60gensym97_520097121, NTI520095757); - F.line = 131; - F.filename = "iterators_1.nim"; - i_520100672 = addInt(i_520100672, 1); + theBoard_553648257[0][chckIndx(i_553651547, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553651548, 0, (theBoard_553648257[0][chckIndx(i_553651547, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].casts = nimCopy(null, resultHEX60gensym97_553651553, NTI553650189); + i_553655104 = addInt(i_553655104, 1); } }; }; - F.line = 131; - i_520100668 = addInt(i_520100668, 1); + i_553655100 = addInt(i_553655100, 1); } }; }; }; } else { - if (eqStrings(data_520097103[chckIndx(0, 0, (data_520097103).length - 1)], [99,97,115,116,105,110,103,99,111,109,112,108,101,116,101])) { - F.line = 314; - F.filename = "main.nim"; - turn_520093808[0] = true; - F.line = 315; + if (eqStrings(data_553651535[chckIndx(0, 0, (data_553651535).length - 1)], [99,97,115,116,105,110,103,99,111,109,112,108,101,116,101])) { + turn_553648240[0] = true; rawEcho([116,117,114,110,32,101,113,117,97,108,115,32,116,114,117,101,58,32,111,116,104,101,114,103,108,97,115,115,32,99,111,109,112,108,101,116,101]); Label13: { - F.line = 316; - var i_520097130 = 0; - F.line = 316; - var j_520097131 = 0; + var i_553651562 = 0; + var j_553651563 = 0; Label14: { - F.line = 124; - F.filename = "piece.nim"; - var i_520100686 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_520100687 = 0; + var i_553655118 = 0; + var i_553655119 = 0; Label15: { - F.line = 129; Label16: while (true) { - if (!(i_520100687 < 8)) break Label16; - F.line = 124; - F.filename = "piece.nim"; - i_520100686 = i_520100687; + if (!(i_553655119 < 8)) break Label16; + i_553655118 = i_553655119; Label17: { - F.line = 125; - var j_520100690 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_520100691 = 0; + var j_553655122 = 0; + var i_553655123 = 0; Label18: { - F.line = 129; Label19: while (true) { - if (!(i_520100691 < 8)) break Label19; - F.line = 125; - F.filename = "piece.nim"; - j_520100690 = i_520100691; - F.line = 316; - F.filename = "main.nim"; - i_520097130 = i_520100686; - F.line = 316; - j_520097131 = j_520100690; + if (!(i_553655123 < 8)) break Label19; + j_553655122 = i_553655123; + i_553651562 = i_553655118; + j_553651563 = j_553655122; Label20: { - F.line = 317; - var c_520097135 = {Field0: {Field0: 0, Field1: 0}, Field1: 0, Field2: 0}; - F.line = 247; - F.filename = "iterators.nim"; - var colontmp__520100681 = []; - F.line = 317; - F.filename = "main.nim"; - colontmp__520100681 = theBoard_520093825[0][chckIndx(i_520097130, 0, (theBoard_520093825[0]).length - 1)][chckIndx(j_520097131, 0, (theBoard_520093825[0][chckIndx(i_520097130, 0, (theBoard_520093825[0]).length - 1)]).length - 1)].casts; - F.line = 249; - F.filename = "iterators.nim"; - var i_520100682 = 0; - F.line = 250; - var L_520100683 = (colontmp__520100681).length; + var c_553651567 = {Field0: {Field0: 0, Field1: 0}, Field1: 0, Field2: 0}; + var colontmp__553655113 = []; + colontmp__553655113 = theBoard_553648257[0][chckIndx(i_553651562, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553651563, 0, (theBoard_553648257[0][chckIndx(i_553651562, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].casts; + var i_553655114 = 0; + var L_553655115 = (colontmp__553655113).length; Label21: { - F.line = 251; Label22: while (true) { - if (!(i_520100682 < L_520100683)) break Label22; - F.line = 317; - F.filename = "main.nim"; - c_520097135 = colontmp__520100681[chckIndx(i_520100682, 0, (colontmp__520100681).length - 1)]; - if ((c_520097135.Field1 == nsuParseInt(data_520097103[chckIndx(1, 0, (data_520097103).length - 1)]))) { - F.line = 320; - F.line = 652; - F.filename = "sequtils.nim"; - var resultHEX60gensym99_520097140 = newSeq_520096990(0); + if (!(i_553655114 < L_553655115)) break Label22; + c_553651567 = colontmp__553655113[chckIndx(i_553655114, 0, (colontmp__553655113).length - 1)]; + if ((c_553651567.Field1 == nsuParseInt(data_553651535[chckIndx(1, 0, (data_553651535).length - 1)]))) { + var resultHEX60gensym99_553651572 = newSeq_553651422(0); Label23: { - F.line = 653; - var it_520097144 = {Field0: {Field0: 0, Field1: 0}, Field1: 0, Field2: 0}; - F.line = 247; - F.filename = "iterators.nim"; - var colontmp__520100677 = []; - F.line = 320; - F.filename = "main.nim"; - colontmp__520100677 = theBoard_520093825[0][chckIndx(i_520097130, 0, (theBoard_520093825[0]).length - 1)][chckIndx(j_520097131, 0, (theBoard_520093825[0][chckIndx(i_520097130, 0, (theBoard_520093825[0]).length - 1)]).length - 1)].casts; - F.line = 249; - F.filename = "iterators.nim"; - var i_520100678 = 0; - F.line = 250; - var L_520100679 = (colontmp__520100677).length; + var it_553651576 = {Field0: {Field0: 0, Field1: 0}, Field1: 0, Field2: 0}; + var colontmp__553655109 = []; + colontmp__553655109 = theBoard_553648257[0][chckIndx(i_553651562, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553651563, 0, (theBoard_553648257[0][chckIndx(i_553651562, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].casts; + var i_553655110 = 0; + var L_553655111 = (colontmp__553655109).length; Label24: { - F.line = 251; Label25: while (true) { - if (!(i_520100678 < L_520100679)) break Label25; - F.line = 653; - F.filename = "sequtils.nim"; - it_520097144 = colontmp__520100677[chckIndx(i_520100678, 0, (colontmp__520100677).length - 1)]; - if (!((it_520097144.Field1 == c_520097135.Field1))) { - F.line = 654; - var Temporary26 = nimCopy(null, it_520097144, NTI1224736788); - resultHEX60gensym99_520097140.push(Temporary26);; + if (!(i_553655110 < L_553655111)) break Label25; + it_553651576 = colontmp__553655109[chckIndx(i_553655110, 0, (colontmp__553655109).length - 1)]; + if (!((it_553651576.Field1 == c_553651567.Field1))) { + var Temporary26 = nimCopy(null, it_553651576, NTI1476395028); + resultHEX60gensym99_553651572.push(Temporary26);; } - F.line = 13; - F.filename = "iterators.nim"; - i_520100678 += 1; - if (!(((colontmp__520100677).length == L_520100679))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + i_553655110 += 1; + if (!(((colontmp__553655109).length == L_553655111))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - theBoard_520093825[0][chckIndx(i_520097130, 0, (theBoard_520093825[0]).length - 1)][chckIndx(j_520097131, 0, (theBoard_520093825[0][chckIndx(i_520097130, 0, (theBoard_520093825[0]).length - 1)]).length - 1)].casts = nimCopy(null, resultHEX60gensym99_520097140, NTI520095757); - F.line = 321; - F.filename = "main.nim"; - get_520097161((Temporary27 = theState_520093826[0].Field1[chckIndx(otherSide_1224737821(side_520093807[0]), 0, (theState_520093826[0].Field1).length - 1)].glass, Temporary27)[chckIndx(c_520097135.Field2, 0, (Temporary27).length - 1)]).Field1(theBoard_520093825[0][chckIndx(i_520097130, 0, (theBoard_520093825[0]).length - 1)][chckIndx(j_520097131, 0, (theBoard_520093825[0][chckIndx(i_520097130, 0, (theBoard_520093825[0]).length - 1)]).length - 1)], c_520097135.Field0, theBoard_520093825[0], theState_520093826[0]); + theBoard_553648257[0][chckIndx(i_553651562, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553651563, 0, (theBoard_553648257[0][chckIndx(i_553651562, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].casts = nimCopy(null, resultHEX60gensym99_553651572, NTI553650189); + get_553651593((Temporary27 = theState_553648258[0].Field1[chckIndx(otherSide_1476396061(side_553648239[0]), 0, (theState_553648258[0].Field1).length - 1)].glass, Temporary27)[chckIndx(c_553651567.Field2, 0, (Temporary27).length - 1)]).Field1(theBoard_553648257[0][chckIndx(i_553651562, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553651563, 0, (theBoard_553648257[0][chckIndx(i_553651562, 0, (theBoard_553648257[0]).length - 1)]).length - 1)], c_553651567.Field0, theBoard_553648257[0], theState_553648258[0]); } - F.line = 13; - F.filename = "iterators.nim"; - i_520100682 += 1; - if (!(((colontmp__520100681).length == L_520100683))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + i_553655114 += 1; + if (!(((colontmp__553655113).length == L_553655115))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - F.line = 131; - F.filename = "iterators_1.nim"; - i_520100691 = addInt(i_520100691, 1); + i_553655123 = addInt(i_553655123, 1); } }; }; - F.line = 131; - i_520100687 = addInt(i_520100687, 1); + i_553655119 = addInt(i_553655119, 1); } }; }; }; } }} - framePtr = F.prev; } -function otherAction_520097193(d_520097194) { - var F = {procname: "main.otherAction", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 327; - F.filename = "main.nim"; - var data_520097195 = nsuSplitString(d_520097194, [44], (-1)); - if (eqStrings(data_520097195[chckIndx(0, 0, (data_520097195).length - 1)], [98,117,121])) { - F.line = 329; - otherBuy_520097018(d_520097194); - F.line = 330; - endRound_520096229(); +function otherAction_553651625(d_553651626) { + var data_553651627 = nsuSplitString(d_553651626, [44], (-1)); + if (eqStrings(data_553651627[chckIndx(0, 0, (data_553651627).length - 1)], [98,117,121])) { + otherBuy_553651450(d_553651626); + endRound_553650661(); } else { - if ((eqStrings(data_520097195[chckIndx(0, 0, (data_520097195).length - 1)], [109,111,118,101]) || eqStrings(data_520097195[chckIndx(0, 0, (data_520097195).length - 1)], [116,97,107,101]))) { - F.line = 332; - turn_520093808[0] = true; - F.line = 333; + if ((eqStrings(data_553651627[chckIndx(0, 0, (data_553651627).length - 1)], [109,111,118,101]) || eqStrings(data_553651627[chckIndx(0, 0, (data_553651627).length - 1)], [116,97,107,101]))) { + turn_553648240[0] = true; rawEcho([111,116,104,101,114,97,99,116,105,111,110,32,111,102,32,109,111,118,101,47,116,97,107,101,58,32,116,117,114,110,32,101,113,117,97,108,115,32,116,114,117,101]); - F.line = 334; - otherMove_520097036(d_520097194); - F.line = 335; - endRound_520096229(); + otherMove_553651468(d_553651626); + endRound_553650661(); } else { - if ((toJSStr(data_520097195[chckIndx(0, 0, (data_520097195).length - 1)]).indexOf("casting")>=0)) { - F.line = 337; - otherGlass_520097101(d_520097194); + if ((toJSStr(data_553651627[chckIndx(0, 0, (data_553651627).length - 1)]).indexOf("casting")>=0)) { + otherGlass_553651533(d_553651626); } else { - if (eqStrings(data_520097195[chckIndx(0, 0, (data_520097195).length - 1)], [112,97,115,115])) { - F.line = 339; - turn_520093808[0] = true; - F.line = 340; + if (eqStrings(data_553651627[chckIndx(0, 0, (data_553651627).length - 1)], [112,97,115,115])) { + turn_553648240[0] = true; rawEcho([111,116,104,101,114,97,99,116,105,111,110,32,111,102,32,112,97,115,115,58,32,116,117,114,110,32,101,113,117,97,108,115,32,116,114,117,101]); - F.line = 341; - endRound_520096229(); + endRound_553650661(); } }}} - framePtr = F.prev; } -function hostLogic_520097343(d_520097344, m_520097345) { - var F = {procname: "main.hostLogic", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 384; - F.filename = "main.nim"; - rawEcho(reprEnum(m_520097345, NTI1325400069), [32,111,102,32], d_520097344, [10]); - F.line = 385; - switch (m_520097345) { +function hostLogic_553651775(d_553651776, m_553651777) { + rawEcho(reprEnum(m_553651777, NTI1577058309), [32,111,102,32], d_553651776, [10]); + switch (m_553651777) { case 0: - F.line = 387; - var colontmp__520100578 = true; - F.line = 387; - var colontmp__520100579 = toJSStr(d_520097344); - F.line = 387; - roomId_520093800[0] = nimCopy(roomId_520093800[0], {Field0: colontmp__520100578, Field1: colontmp__520100579}, NTI520093737); - F.line = 388; - side_520093807[0] = 1; + var colontmp__553655010 = true; + var colontmp__553655011 = toJSStr(d_553651776); + roomId_553648232[0] = nimCopy(roomId_553648232[0], {Field0: colontmp__553655010, Field1: colontmp__553655011}, NTI553648169); + side_553648239[0] = 1; break; case 1: - F.line = 390; - peer_520093806[0].Field0("options:deciding"); - F.line = 391; - currentScreen_520093855[0] = 4; - F.line = 392; - initGame_520093937(); - F.line = 394; - draftTier_520093823[0] = randomTier_1442841575({Field0: 50, Field1: 36, Field2: 12, Field3: 2}); + peer_553648238[0].Field0("options:deciding"); + currentScreen_553648287[0] = 4; + initGame_553648369(); + draftTier_553648255[0] = randomTier_1728054247({Field0: 50, Field1: 36, Field2: 12, Field3: 2}); break; case 3: - F.line = 396; - var x_520097349 = nsuSplitString(d_520097344, [44], (-1)); - if (eqStrings(x_520097349[chckIndx(0, 0, (x_520097349).length - 1)], [109,121])) { - F.line = 398; - turn_520093808[0] = true; - F.line = 399; - var Temporary1 = nimCopy(null, powers_1442840649[0][chckIndx(nsuParseInt(x_520097349[chckIndx(1, 0, (x_520097349).length - 1)]), 0, (powers_1442840649[0]).length - 1)], NTI1442840581); - opponentDrafts_520093818[0].push(Temporary1);; - if ((1 <= draftsLeft_520093822[0])) { - F.line = 401; - draftsLeft_520093822[0] = subInt(draftsLeft_520093822[0], 1); - F.line = 402; - draftTier_520093823[0] = randomTier_1442841575({Field0: 50, Field1: 36, Field2: 12, Field3: 2}); - F.line = 403; - draft_520097271(HEX26_1442841613(myDrafts_520093813[0], opponentDrafts_520093818[0]), myDrafts_520093813[0]); + var x_553651781 = nsuSplitString(d_553651776, [44], (-1)); + if (eqStrings(x_553651781[chckIndx(0, 0, (x_553651781).length - 1)], [109,121])) { + turn_553648240[0] = true; + var Temporary1 = nimCopy(null, powers_1728053321[0][chckIndx(nsuParseInt(x_553651781[chckIndx(1, 0, (x_553651781).length - 1)]), 0, (powers_1728053321[0]).length - 1)], NTI1728053253); + opponentDrafts_553648250[0].push(Temporary1);; + if ((1 <= draftsLeft_553648254[0])) { + draftsLeft_553648254[0] = subInt(draftsLeft_553648254[0], 1); + draftTier_553648255[0] = randomTier_1728054247({Field0: 50, Field1: 36, Field2: 12, Field3: 2}); + draft_553651703(HEX26_1728054285(myDrafts_553648245[0], opponentDrafts_553648250[0]), myDrafts_553648245[0]); } else { - F.line = 405; - execute_1442841695(myDrafts_520093813[0], opponentDrafts_520093818[0], side_520093807[0], theBoard_520093825[0], theState_520093826[0]); - F.line = 406; - peer_520093806[0].Field0("handshake:gamestart"); - F.line = 407; - currentScreen_520093855[0] = 3; + execute_1728054367(myDrafts_553648245[0], opponentDrafts_553648250[0], side_553648239[0], theBoard_553648257[0], theState_553648258[0]); + peer_553648238[0].Field0("handshake:gamestart"); + currentScreen_553648287[0] = 3; } } break; case 6: - F.line = 408; - otherAction_520097193(d_520097344); + otherAction_553651625(d_553651776); break; case 4: - if ((eqStrings(d_520097344, [100,105,115,99,111,110,110]) || eqStrings(d_520097344, [101,120,105,116]))) { - F.line = 411; - currentScreen_520093855[0] = 8; + if ((eqStrings(d_553651776, [100,105,115,99,111,110,110]) || eqStrings(d_553651776, [101,120,105,116]))) { + currentScreen_553648287[0] = 8; } else { - F.line = 413; - peer_520093806[0].Field0("end:exit"); + peer_553648238[0].Field0("end:exit"); } - F.line = 414; - peer_520093806[0].Field1(); - F.line = 415; - roomId_520093800[0].Field0 = false; + peer_553648238[0].Field1(); + roomId_553648232[0].Field0 = false; break; default: - F.line = 416; rawEcho([117,110,105,109,112,108,101,109,101,110,116,101,100]); break; } - F.line = 417; - redraw_687867377(kxi__); - framePtr = F.prev; + redraw_721421809(kxi__); } -function createLobby_520097653() { +function createLobby_553652085() { -function HEX3Aanonymous_520097663(__520097664, __520097665) { - var F = {procname: "createLobby.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 557; - F.filename = "main.nim"; - currentScreen_520093855[0] = 2; - framePtr = F.prev; +function HEX3Aanonymous_553652095(__553652096, __553652097) { + currentScreen_553648287[0] = 2; } -function HEX3Aanonymous_520097666(ev_520097667, __520097668) { - var F = {procname: "createLobby.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 561; - F.filename = "main.nim"; - initSelectedSubPower_520094035(); - F.line = 562; +function HEX3Aanonymous_553652098(ev_553652099, __553652100) { + initSelectedSubPower_553648467(); rawEcho([115,101,116,116,105,110,103,32,115,99,114,101,101,110,32,116,111,32,83,101,101,32,80,111,119,101,114]); - F.line = 563; - currentScreen_520093855[0] = 11; - framePtr = F.prev; + currentScreen_553648287[0] = 11; } -function HEX3Aanonymous_520097669(ev_520097670, __520097671) { - var F = {procname: "createLobby.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - if (!((peer_520093806[0].Field1 == null))) { - F.line = 571; - F.filename = "main.nim"; - peer_520093806[0].Field1(); +function HEX3Aanonymous_553652101(ev_553652102, __553652103) { + if (!((peer_553648238[0].Field1 == null))) { + peer_553648238[0].Field1(); } - F.line = 572; - peer_520093806[0] = nimCopy(peer_520093806[0], newHost_1325400110(hostLogic_520097343), NTI520093739); - F.line = 574; - currentScreen_520093855[0] = 1; - framePtr = F.prev; + peer_553648238[0] = nimCopy(peer_553648238[0], newHost_1577058350(hostLogic_553651775), NTI553648171); + currentScreen_553648287[0] = 1; } -function HEX3Aanonymous_520097723(ev_520097724, __520097725) { - var F = {procname: "createLobby.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 579; - F.filename = "main.nim"; - currentScreen_520093855[0] = 10; - framePtr = F.prev; +function HEX3Aanonymous_553652155(ev_553652156, __553652157) { + currentScreen_553648287[0] = 10; } - var result_520097654 = null; - - var F = {procname: "main.createLobby", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 551; - F.filename = "main.nim"; - F.line = 551; - var tmp_520097655 = tree_721421184(44, []); - F.line = 551; - tmp_520097655.class = "start-column height-100"; - F.line = 552; - var tmp_520097656 = tree_721421184(44, []); - F.line = 552; - tmp_520097656.class = "main"; - F.line = 553; - var tmp_520097657 = tree_721421184(44, []); - F.line = 553; - tmp_520097657.class = "start-column"; - F.line = 554; - var tmp_520097658 = tree_721421184(195, []); - F.line = 554; - tmp_520097658.class = " menu-button "; - F.line = 555; - add_721421120(tmp_520097658, text_721421252([74,111,105,110,32,97,32,82,111,111,109])); - F.line = 556; - addEventHandler_687867670(tmp_520097658, 0, HEX3Aanonymous_520097663, kxi__); - F.line = 551; - add_721421120(tmp_520097657, tmp_520097658); - F.line = 558; - var tmp_520097659 = tree_721421184(195, []); - F.line = 558; - tmp_520097659.class = " menu-button "; - F.line = 559; - add_721421120(tmp_520097659, text_721421252([83,101,101,32,80,111,119,101,114,115])); - F.line = 560; - addEventHandler_687867670(tmp_520097659, 0, HEX3Aanonymous_520097666, kxi__); - F.line = 551; - add_721421120(tmp_520097657, tmp_520097659); - F.line = 551; - add_721421120(tmp_520097656, tmp_520097657); - F.line = 566; - var tmp_520097660 = tree_721421184(44, []); - F.line = 566; - tmp_520097660.class = "start-column"; - F.line = 567; - var tmp_520097661 = tree_721421184(195, []); - F.line = 567; - tmp_520097661.class = " menu-button "; - F.line = 568; - add_721421120(tmp_520097661, text_721421252([67,114,101,97,116,101,32,97,32,82,111,111,109])); - F.line = 569; - addEventHandler_687867670(tmp_520097661, 0, HEX3Aanonymous_520097669, kxi__); - F.line = 551; - add_721421120(tmp_520097660, tmp_520097661); - F.line = 576; - var tmp_520097662 = tree_721421184(195, []); - F.line = 576; - tmp_520097662.class = " menu-button "; - F.line = 577; - add_721421120(tmp_520097662, text_721421252([79,116,104,101,114])); - F.line = 578; - addEventHandler_687867670(tmp_520097662, 0, HEX3Aanonymous_520097723, kxi__); - F.line = 551; - add_721421120(tmp_520097660, tmp_520097662); - F.line = 551; - add_721421120(tmp_520097656, tmp_520097660); - F.line = 551; - add_721421120(tmp_520097655, tmp_520097656); - result_520097654 = tmp_520097655; - framePtr = F.prev; - - return result_520097654; - -} - -function text_721421255(s_721421256) { - var result_721421257 = null; - - var F = {procname: "vdom.text", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/vdom.nim", line: 0}; - framePtr = F; - F.line = 324; - F.filename = "vdom.nim"; - result_721421257 = {kind: 0, text: s_721421256, index: (-1), m_type: NTI721420388, id: null, class: null, kids: [], attrs: [], events: [], style: null, styleVersion: 0, dom: null}; - framePtr = F.prev; - - return result_721421257; - -} - -function createRoomMenu_520097742() { - var result_520097743 = null; - - var F = {procname: "main.createRoomMenu", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 582; - F.filename = "main.nim"; - F.line = 582; - var tmp_520097744 = tree_721421184(44, []); - F.line = 582; - tmp_520097744.class = "main"; - if (!(roomId_520093800[0].Field0)) { - F.line = 584; - add_721421120(tmp_520097744, text_721421252([67,114,101,97,116,105,110,103,32,114,111,111,109,32,107,101,121])); + var result_553652086 = null; + + var tmp_553652087 = tree_754975616(44, []); + tmp_553652087.class = "start-column height-100"; + var tmp_553652088 = tree_754975616(44, []); + tmp_553652088.class = "main"; + var tmp_553652089 = tree_754975616(44, []); + tmp_553652089.class = "start-column"; + var tmp_553652090 = tree_754975616(195, []); + tmp_553652090.class = " menu-button "; + add_754975552(tmp_553652090, text_754975684([74,111,105,110,32,97,32,82,111,111,109])); + addEventHandler_721422102(tmp_553652090, 0, HEX3Aanonymous_553652095, kxi__); + add_754975552(tmp_553652089, tmp_553652090); + var tmp_553652091 = tree_754975616(195, []); + tmp_553652091.class = " menu-button "; + add_754975552(tmp_553652091, text_754975684([83,101,101,32,80,111,119,101,114,115])); + addEventHandler_721422102(tmp_553652091, 0, HEX3Aanonymous_553652098, kxi__); + add_754975552(tmp_553652089, tmp_553652091); + add_754975552(tmp_553652088, tmp_553652089); + var tmp_553652092 = tree_754975616(44, []); + tmp_553652092.class = "start-column"; + var tmp_553652093 = tree_754975616(195, []); + tmp_553652093.class = " menu-button "; + add_754975552(tmp_553652093, text_754975684([67,114,101,97,116,101,32,97,32,82,111,111,109])); + addEventHandler_721422102(tmp_553652093, 0, HEX3Aanonymous_553652101, kxi__); + add_754975552(tmp_553652092, tmp_553652093); + var tmp_553652094 = tree_754975616(195, []); + tmp_553652094.class = " menu-button "; + add_754975552(tmp_553652094, text_754975684([79,116,104,101,114])); + addEventHandler_721422102(tmp_553652094, 0, HEX3Aanonymous_553652155, kxi__); + add_754975552(tmp_553652092, tmp_553652094); + add_754975552(tmp_553652088, tmp_553652092); + add_754975552(tmp_553652087, tmp_553652088); + result_553652086 = tmp_553652087; + + return result_553652086; + +} + +function text_754975687(s_754975688) { + var result_754975689 = null; + + result_754975689 = {kind: 0, text: s_754975688, index: (-1), m_type: NTI754974820, id: null, class: null, kids: [], attrs: [], events: [], style: null, styleVersion: 0, dom: null}; + + return result_754975689; + +} + +function createRoomMenu_553652174() { + var result_553652175 = null; + + var tmp_553652176 = tree_754975616(44, []); + tmp_553652176.class = "main"; + if (!(roomId_553648232[0].Field0)) { + add_754975552(tmp_553652176, text_754975684([67,114,101,97,116,105,110,103,32,114,111,111,109,32,107,101,121])); } else { - F.line = 586; - var tmp_520097745 = tree_721421184(22, []); - F.line = 587; - add_721421120(tmp_520097745, text_721421252([82,111,111,109,32,75,101,121,58,32])); - F.line = 587; - add_721421120(tmp_520097744, tmp_520097745); - F.line = 588; - var tmp_520097746 = tree_721421184(72, []); - F.line = 588; - add_721421120(tmp_520097744, tmp_520097746); - F.line = 589; - add_721421120(tmp_520097744, text_721421255(roomId_520093800[0].Field1)); + var tmp_553652177 = tree_754975616(22, []); + add_754975552(tmp_553652177, text_754975684([82,111,111,109,32,75,101,121,58,32])); + add_754975552(tmp_553652176, tmp_553652177); + var tmp_553652178 = tree_754975616(72, []); + add_754975552(tmp_553652176, tmp_553652178); + add_754975552(tmp_553652176, text_754975687(roomId_553648232[0].Field1)); } - result_520097743 = tmp_520097744; - framePtr = F.prev; + result_553652175 = tmp_553652176; - return result_520097743; + return result_553652175; } -function getInputText_687867761(n_687867762) { - var result_687867763 = null; +function getInputText_721422193(n_721422194) { + var result_721422195 = null; - var F = {procname: "karax.getInputText", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/karax.nim", line: 0}; - framePtr = F; - if (!((n_687867762.dom == null))) { - F.line = 891; - F.filename = "karax.nim"; - result_687867763 = n_687867762.dom.value; + if (!((n_721422194.dom == null))) { + result_721422195 = n_721422194.dom.value; } - framePtr = F.prev; - return result_687867763; + return result_721422195; } -function getVNodeById_687866162(id_687866163, kxi_687866164) { - var result_687866165 = null; +function getVNodeById_721420594(id_721420595, kxi_721420596) { + var result_721420597 = null; - var F = {procname: "karax.getVNodeById", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/karax.nim", line: 0}; - framePtr = F; - if (kxi_687866164.byId.hasOwnProperty(id_687866163)) { - F.line = 162; - F.filename = "karax.nim"; - result_687866165 = kxi_687866164.byId[id_687866163]; + if (kxi_721420596.byId.hasOwnProperty(id_721420595)) { + result_721420597 = kxi_721420596.byId[id_721420595]; } - framePtr = F.prev; - return result_687866165; + return result_721420597; } -function len_721421311(a_721421312) { +function len_754975743(a_754975744) { var Temporary1; - var result_721421313 = 0; + var result_754975745 = 0; - var F = {procname: "vdom.len", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/vdom.nim", line: 0}; - framePtr = F; - F.line = 353; - F.filename = "vdom.nim"; - if ((a_721421312 == null)) { + if ((a_754975744 == null)) { Temporary1 = 0; } else { - Temporary1 = ((a_721421312) == null ? 0 : (a_721421312).length); + Temporary1 = ((a_754975744) == null ? 0 : (a_754975744).length); } - result_721421313 = Temporary1; - framePtr = F.prev; + result_754975745 = Temporary1; - return result_721421313; + return result_754975745; } -function toString_721421316(n_721421317, result_721421318, result_721421318_Idx, indent_721421319) { - var F = {procname: "vdom.toString", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/vdom.nim", line: 0}; - framePtr = F; +function toString_754975748(n_754975749, result_754975750, result_754975750_Idx, indent_754975751) { Label1: { - F.line = 360; - F.filename = "vdom.nim"; - var i_721421324 = 0; - F.line = 96; - F.filename = "iterators_1.nim"; - var res_520100696 = 1; + var i_754975756 = 0; + var res_553655128 = 1; Label2: { - F.line = 97; Label3: while (true) { - if (!(res_520100696 <= indent_721421319)) break Label3; - F.line = 360; - F.filename = "vdom.nim"; - i_721421324 = res_520100696; - F.line = 360; - addChar(result_721421318[result_721421318_Idx], 32);; - F.line = 102; - F.filename = "iterators_1.nim"; - res_520100696 = addInt(res_520100696, 1); + if (!(res_553655128 <= indent_754975751)) break Label3; + i_754975756 = res_553655128; + addChar(result_754975750[result_754975750_Idx], 32);; + res_553655128 = addInt(res_553655128, 1); } }; }; - if ((0 < (result_721421318[result_721421318_Idx]).length)) { - F.line = 361; - F.filename = "vdom.nim"; - addChar(result_721421318[result_721421318_Idx], 10);; + if ((0 < (result_754975750[result_754975750_Idx]).length)) { + addChar(result_754975750[result_754975750_Idx], 10);; } - F.line = 362; - result_721421318[result_721421318_Idx].push.apply(result_721421318[result_721421318_Idx], ([60] || []).concat(reprEnum(n_721421317.kind, NTI721420291) || []));; - if ((0 < len_721421311(n_721421317.id))) { - F.line = 357; - result_721421318[result_721421318_Idx].push.apply(result_721421318[result_721421318_Idx], ([32,105,100,32,61,32] || []).concat(cstrToNimstr(n_721421317.id) || []));; + result_754975750[result_754975750_Idx].push.apply(result_754975750[result_754975750_Idx], ([60] || []).concat(reprEnum(n_754975749.kind, NTI754974723) || []));; + if ((0 < len_754975743(n_754975749.id))) { + result_754975750[result_754975750_Idx].push.apply(result_754975750[result_754975750_Idx], ([32,105,100,32,61,32] || []).concat(cstrToNimstr(n_754975749.id) || []));; } - if ((0 < len_721421311(n_721421317.class))) { - F.line = 357; - result_721421318[result_721421318_Idx].push.apply(result_721421318[result_721421318_Idx], ([32,99,108,97,115,115,32,61,32] || []).concat(cstrToNimstr(n_721421317.class) || []));; + if ((0 < len_754975743(n_754975749.class))) { + result_754975750[result_754975750_Idx].push.apply(result_754975750[result_754975750_Idx], ([32,99,108,97,115,115,32,61,32] || []).concat(cstrToNimstr(n_754975749.class) || []));; } Label4: { - F.line = 365; - var k_721421328 = null; - F.line = 365; - var v_721421329 = null; + var k_754975760 = null; + var v_754975761 = null; Label5: { - F.line = 337; - var i_520100700 = 0; - F.line = 46; - F.filename = "iterators_1.nim"; - var colontmp__520100701 = 0; - F.line = 337; - F.filename = "vdom.nim"; - colontmp__520100701 = subInt((n_721421317.attrs).length, 2); - F.line = 68; - F.filename = "iterators_1.nim"; - var res_520100702 = 0; + var i_553655132 = 0; + var colontmp__553655133 = 0; + colontmp__553655133 = subInt((n_754975749.attrs).length, 2); + var res_553655134 = 0; Label6: { - F.line = 69; Label7: while (true) { - if (!(res_520100702 <= colontmp__520100701)) break Label7; - F.line = 337; - F.filename = "vdom.nim"; - i_520100700 = res_520100702; - F.line = 365; - k_721421328 = n_721421317.attrs[chckIndx(i_520100700, 0, (n_721421317.attrs).length - 1)]; - F.line = 365; - v_721421329 = n_721421317.attrs[chckIndx(addInt(i_520100700, 1), 0, (n_721421317.attrs).length - 1)]; - F.line = 366; - result_721421318[result_721421318_Idx].push.apply(result_721421318[result_721421318_Idx], ([32] || []).concat(cstrToNimstr(k_721421328) || [],[32,61,32] || [],cstrToNimstr(v_721421329) || []));; - F.line = 74; - F.filename = "iterators_1.nim"; - res_520100702 = addInt(res_520100702, 2); + if (!(res_553655134 <= colontmp__553655133)) break Label7; + i_553655132 = res_553655134; + k_754975760 = n_754975749.attrs[chckIndx(i_553655132, 0, (n_754975749.attrs).length - 1)]; + v_754975761 = n_754975749.attrs[chckIndx(addInt(i_553655132, 1), 0, (n_754975749.attrs).length - 1)]; + result_754975750[result_754975750_Idx].push.apply(result_754975750[result_754975750_Idx], ([32] || []).concat(cstrToNimstr(k_754975760) || [],[32,61,32] || [],cstrToNimstr(v_754975761) || []));; + res_553655134 = addInt(res_553655134, 2); } }; }; }; - F.line = 367; - F.filename = "vdom.nim"; - result_721421318[result_721421318_Idx].push.apply(result_721421318[result_721421318_Idx], [62,10]);; - if ((n_721421317.kind == 0)) { - F.line = 369; - add_33556373(result_721421318, result_721421318_Idx, n_721421317.text); + result_754975750[result_754975750_Idx].push.apply(result_754975750[result_754975750_Idx], [62,10]);; + if ((n_754975749.kind == 0)) { + add_33556373(result_754975750, result_754975750_Idx, n_754975749.text); } else { - if ((0 < len_721421311(n_721421317.text))) { - F.line = 372; - result_721421318[result_721421318_Idx].push.apply(result_721421318[result_721421318_Idx], [32,118,97,108,117,101,32,61,32]);; - F.line = 373; - add_33556373(result_721421318, result_721421318_Idx, n_721421317.text); + if ((0 < len_754975743(n_754975749.text))) { + result_754975750[result_754975750_Idx].push.apply(result_754975750[result_754975750_Idx], [32,118,97,108,117,101,32,61,32]);; + add_33556373(result_754975750, result_754975750_Idx, n_754975749.text); } Label8: { - F.line = 374; - var child_721421335 = null; + var child_754975767 = null; Label9: { - F.line = 334; - var i_520100706 = 0; - F.line = 126; - F.filename = "iterators_1.nim"; - var colontmp__520100707 = 0; - F.line = 334; - F.filename = "vdom.nim"; - colontmp__520100707 = (n_721421317.kids).length; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_520100708 = 0; + var i_553655138 = 0; + var colontmp__553655139 = 0; + colontmp__553655139 = (n_754975749.kids).length; + var i_553655140 = 0; Label10: { - F.line = 129; Label11: while (true) { - if (!(i_520100708 < colontmp__520100707)) break Label11; - F.line = 334; - F.filename = "vdom.nim"; - i_520100706 = i_520100708; - F.line = 374; - child_721421335 = n_721421317.kids[chckIndx(i_520100706, 0, (n_721421317.kids).length - 1)]; - F.line = 375; - toString_721421316(child_721421335, result_721421318, result_721421318_Idx, addInt(indent_721421319, 2)); - F.line = 131; - F.filename = "iterators_1.nim"; - i_520100708 = addInt(i_520100708, 1); + if (!(i_553655140 < colontmp__553655139)) break Label11; + i_553655138 = i_553655140; + child_754975767 = n_754975749.kids[chckIndx(i_553655138, 0, (n_754975749.kids).length - 1)]; + toString_754975748(child_754975767, result_754975750, result_754975750_Idx, addInt(indent_754975751, 2)); + i_553655140 = addInt(i_553655140, 1); } }; }; @@ -21180,133 +13926,82 @@ function toString_721421316(n_721421317, result_721421318, result_721421318_Idx, } Label12: { - F.line = 376; - F.filename = "vdom.nim"; - var i_721421340 = 0; - F.line = 96; - F.filename = "iterators_1.nim"; - var res_520100711 = 1; + var i_754975772 = 0; + var res_553655143 = 1; Label13: { - F.line = 97; Label14: while (true) { - if (!(res_520100711 <= indent_721421319)) break Label14; - F.line = 376; - F.filename = "vdom.nim"; - i_721421340 = res_520100711; - F.line = 376; - addChar(result_721421318[result_721421318_Idx], 32);; - F.line = 102; - F.filename = "iterators_1.nim"; - res_520100711 = addInt(res_520100711, 1); + if (!(res_553655143 <= indent_754975751)) break Label14; + i_754975772 = res_553655143; + addChar(result_754975750[result_754975750_Idx], 32);; + res_553655143 = addInt(res_553655143, 1); } }; }; - F.line = 377; - F.filename = "vdom.nim"; - result_721421318[result_721421318_Idx].push.apply(result_721421318[result_721421318_Idx], ([10,60,47] || []).concat(reprEnum(n_721421317.kind, NTI721420291) || [],[62] || []));; - framePtr = F.prev; + result_754975750[result_754975750_Idx].push.apply(result_754975750[result_754975750_Idx], ([10,60,47] || []).concat(reprEnum(n_754975749.kind, NTI754974723) || [],[62] || []));; } -function HEX24_721421411(n_721421412) { - var result_721421413 = null; +function HEX24_754975843(n_754975844) { + var result_754975845 = null; - var F = {procname: "vdom.$", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/vdom.nim", line: 0}; - framePtr = F; - F.line = 506; - F.filename = "vdom.nim"; - var res_721421414 = [[]]; - F.line = 507; - toString_721421316(n_721421412, res_721421414, 0, 0); - F.line = 508; - result_721421413 = toJSStr(res_721421414[0]); - framePtr = F.prev; + var res_754975846 = [[]]; + toString_754975748(n_754975844, res_754975846, 0, 0); + result_754975845 = toJSStr(res_754975846[0]); - return result_721421413; + return result_754975845; } -function newJoin_1325400311(id_1325400312, cb_1325400316) { +function newJoin_1577058551(id_1577058552, cb_1577058556) { -function HEX3Aanonymous_1325400325() { +function HEX3Aanonymous_1577058565() { -function HEX3Aanonymous_1325400337() { - var result_1325400338 = null; +function HEX3Aanonymous_1577058577() { + var result_1577058578 = null; - var F = {procname: ":anonymous.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/port.nim", line: 0}; - framePtr = F; - F.line = 91; - F.filename = "port.nim"; - result_1325400338 = conn_1325400324.send(("handshake:hello")); - framePtr = F.prev; + result_1577058578 = conn_1577058564.send(("handshake:hello")); - return result_1325400338; + return result_1577058578; } -function HEX3Aanonymous_1325400368(data_1325400369) { - var F = {procname: ":anonymous.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/port.nim", line: 0}; - framePtr = F; - F.line = 92; - F.filename = "port.nim"; - cb_1325400316(cutMessage_1325400107(data_1325400369), messageType_1325400087(data_1325400369)); - framePtr = F.prev; +function HEX3Aanonymous_1577058608(data_1577058609) { + cb_1577058556(cutMessage_1577058347(data_1577058609), messageType_1577058327(data_1577058609)); } - var F = {procname: "newJoin.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/port.nim", line: 0}; - framePtr = F; - F.line = 90; - F.filename = "port.nim"; - conn_1325400324 = peer_1325400323.connect((("9e4ada91-c493-4fd4-881d-3e05db99e100" + id_1325400312))); - conn_1325400324.on(("open"), (HEX3Aanonymous_1325400337)); - conn_1325400324.on(("data"), (HEX3Aanonymous_1325400368)); - framePtr = F.prev; + conn_1577058564 = peer_1577058563.connect((("9e4ada91-c493-4fd4-881d-3e05db99e100" + id_1577058552))); + conn_1577058564.on(("open"), (HEX3Aanonymous_1577058577)); + conn_1577058564.on(("data"), (HEX3Aanonymous_1577058608)); } -function HEX3Aanonymous_1325400407() { - var F = {procname: "newJoin.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/port.nim", line: 0}; - framePtr = F; - F.line = 94; - F.filename = "port.nim"; +function HEX3Aanonymous_1577058647() { rawEcho([68,73,83,67,79,78,78,69,67,84,32,68,73,83,67,79,78,78,69,67,84,32,68,73,83,67,79,78,78,69,67,84]); - F.line = 95; - peer_1325400323.id = ("9e4ada91-c493-4fd4-881d-3e05db99e100" + id_1325400312); - peer_1325400323.reconnect(); - framePtr = F.prev; + peer_1577058563.id = ("9e4ada91-c493-4fd4-881d-3e05db99e100" + id_1577058552); + peer_1577058563.reconnect(); } -function HEX3Aanonymous_1325400441() { - var F = {procname: "newJoin.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/port.nim", line: 0}; - framePtr = F; - peer_1325400323.destroy(); - framePtr = F.prev; +function HEX3Aanonymous_1577058681() { + peer_1577058563.destroy(); } -function HEX3Aanonymous_1325400446(data_1325400447) { - var F = {procname: "newJoin.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/port.nim", line: 0}; - framePtr = F; - conn_1325400324.send((data_1325400447)); - framePtr = F.prev; +function HEX3Aanonymous_1577058686(data_1577058687) { + conn_1577058564.send((data_1577058687)); } - var result_1325400322 = {Field0: null, Field1: null}; + var result_1577058562 = {Field0: null, Field1: null}; - var F = {procname: "port.newJoin", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/port.nim", line: 0}; - framePtr = F; - F.line = 87; - F.filename = "port.nim"; - var peer_1325400323 = new Peer(null, {config: { + var peer_1577058563 = new Peer(null, {config: { iceServers: [ { urls: "turn:standard.relay.metered.ca:80", @@ -21317,992 +14012,578 @@ function HEX3Aanonymous_1325400446(data_1325400447) { } }) ; - F.line = 88; - var conn_1325400324 = null; - peer_1325400323.on(("open"), (HEX3Aanonymous_1325400325)); - peer_1325400323.on(("disconnect"), (HEX3Aanonymous_1325400407)); - F.line = 98; - result_1325400322.Field1 = HEX3Aanonymous_1325400441; - F.line = 101; - result_1325400322.Field0 = HEX3Aanonymous_1325400446; - framePtr = F.prev; - - return result_1325400322; - -} - -function HEX5BHEX5D_520097412(s_520097416, x_520097417) { - var result_520097418 = []; - - var F = {procname: "[].[]", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/indices.nim", line: 0}; - framePtr = F; - F.line = 139; - F.filename = "indices.nim"; - var a_520097420 = x_520097417.a; - F.line = 140; - var L_520097425 = addInt(subInt(subInt((s_520097416).length, x_520097417.b), a_520097420), 1); - F.line = 141; - result_520097418 = new Array(chckRange(L_520097425, 0, 2147483647)); for (var i = 0 ; i < chckRange(L_520097425, 0, 2147483647) ; ++i) { result_520097418[i] = []; } Label1: { - F.line = 142; - var i_520097434 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_520100720 = 0; + var conn_1577058564 = null; + peer_1577058563.on(("open"), (HEX3Aanonymous_1577058565)); + peer_1577058563.on(("disconnect"), (HEX3Aanonymous_1577058647)); + result_1577058562.Field1 = HEX3Aanonymous_1577058681; + result_1577058562.Field0 = HEX3Aanonymous_1577058686; + + return result_1577058562; + +} + +function HEX5BHEX5D_553651844(s_553651848, x_553651849) { + var result_553651850 = []; + + var a_553651852 = x_553651849.a; + var L_553651857 = addInt(subInt(subInt((s_553651848).length, x_553651849.b), a_553651852), 1); + result_553651850 = new Array(chckRange(L_553651857, 0, 2147483647)); for (var i = 0 ; i < chckRange(L_553651857, 0, 2147483647) ; ++i) { result_553651850[i] = []; } Label1: { + var i_553651866 = 0; + var i_553655152 = 0; Label2: { - F.line = 129; Label3: while (true) { - if (!(i_520100720 < L_520097425)) break Label3; - F.line = 142; - F.filename = "indices.nim"; - i_520097434 = i_520100720; - F.line = 142; - result_520097418[chckIndx(i_520097434, 0, (result_520097418).length - 1)] = nimCopy(null, s_520097416[chckIndx(addInt(i_520097434, a_520097420), 0, (s_520097416).length - 1)], NTI33554449); - F.line = 131; - F.filename = "iterators_1.nim"; - i_520100720 = addInt(i_520100720, 1); + if (!(i_553655152 < L_553651857)) break Label3; + i_553651866 = i_553655152; + result_553651850[chckIndx(i_553651866, 0, (result_553651850).length - 1)] = nimCopy(null, s_553651848[chckIndx(addInt(i_553651866, a_553651852), 0, (s_553651848).length - 1)], NTI33554449); + i_553655152 = addInt(i_553655152, 1); } }; }; - framePtr = F.prev; - return result_520097418; + return result_553651850; } -function joinLogic_520097388(d_520097389, m_520097390) { - var F = {procname: "main.joinLogic", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 420; - F.filename = "main.nim"; - rawEcho(reprEnum(m_520097390, NTI1325400069), [32,111,102,32], d_520097389, [10]); - F.line = 421; - switch (m_520097390) { +function joinLogic_553651820(d_553651821, m_553651822) { + rawEcho(reprEnum(m_553651822, NTI1577058309), [32,111,102,32], d_553651821, [10]); + switch (m_553651822) { case 2: - F.line = 423; - currentScreen_520093855[0] = 4; - F.line = 424; - side_520093807[0] = 0; - F.line = 425; - turn_520093808[0] = false; - F.line = 426; - initGame_520093937(); + currentScreen_553648287[0] = 4; + side_553648239[0] = 0; + turn_553648240[0] = false; + initGame_553648369(); break; case 1: - F.line = 428; - execute_1442841695(myDrafts_520093813[0], opponentDrafts_520093818[0], side_520093807[0], theBoard_520093825[0], theState_520093826[0]); - F.line = 429; - currentScreen_520093855[0] = 3; + execute_1728054367(myDrafts_553648245[0], opponentDrafts_553648250[0], side_553648239[0], theBoard_553648257[0], theState_553648258[0]); + currentScreen_553648287[0] = 3; break; case 5: - if (rematch_520093824[0]) { - F.line = 432; - rematch_520093824[0] = false; - F.line = 433; - peer_520093806[0].Field0("handshake:newgame"); + if (rematch_553648256[0]) { + rematch_553648256[0] = false; + peer_553648238[0].Field0("handshake:newgame"); } else { - F.line = 435; - rematch_520093824[0] = true; + rematch_553648256[0] = true; } break; case 3: - F.line = 437; - var x_520097394 = nsuSplitString(d_520097389, [44], (-1)); - if (eqStrings(d_520097389, [115,116,97,114,116])) { - F.line = 439; - currentScreen_520093855[0] = 5; + var x_553651826 = nsuSplitString(d_553651821, [44], (-1)); + if (eqStrings(d_553651821, [115,116,97,114,116])) { + currentScreen_553648287[0] = 5; } else { - if (eqStrings(x_520097394[chckIndx(0, 0, (x_520097394).length - 1)], [109,121])) { - F.line = 441; - var Temporary1 = nimCopy(null, powers_1442840649[0][chckIndx(nsuParseInt(x_520097394[chckIndx(1, 0, (x_520097394).length - 1)]), 0, (powers_1442840649[0]).length - 1)], NTI1442840581); - opponentDrafts_520093818[0].push(Temporary1);; + if (eqStrings(x_553651826[chckIndx(0, 0, (x_553651826).length - 1)], [109,121])) { + var Temporary1 = nimCopy(null, powers_1728053321[0][chckIndx(nsuParseInt(x_553651826[chckIndx(1, 0, (x_553651826).length - 1)]), 0, (powers_1728053321[0]).length - 1)], NTI1728053253); + opponentDrafts_553648250[0].push(Temporary1);; } else { - if (eqStrings(x_520097394[chckIndx(0, 0, (x_520097394).length - 1)], [103,111])) { - F.line = 443; - draftOptions_520093820[0] = nimCopy(null, [], NTI1442841214); + if (eqStrings(x_553651826[chckIndx(0, 0, (x_553651826).length - 1)], [103,111])) { + draftOptions_553648252[0] = nimCopy(null, [], NTI1728053886); Label2: { - F.line = 444; - var i_520097456 = []; - F.line = 247; - F.filename = "iterators.nim"; - var colontmp__520100714 = []; - F.line = 444; - F.filename = "main.nim"; - colontmp__520100714 = HEX5BHEX5D_520097412(x_520097394, HEX2EHEX2E_1006633065(1, 1)); - F.line = 249; - F.filename = "iterators.nim"; - var i_520100716 = 0; - F.line = 250; - var L_520100717 = (colontmp__520100714).length; + var i_553651888 = []; + var colontmp__553655146 = []; + colontmp__553655146 = HEX5BHEX5D_553651844(x_553651826, HEX2EHEX2E_1090519145(1, 1)); + var i_553655148 = 0; + var L_553655149 = (colontmp__553655146).length; Label3: { - F.line = 251; Label4: while (true) { - if (!(i_520100716 < L_520100717)) break Label4; - F.line = 444; - F.filename = "main.nim"; - i_520097456 = colontmp__520100714[chckIndx(i_520100716, 0, (colontmp__520100714).length - 1)]; - F.line = 445; - var Temporary5 = nimCopy(null, powers_1442840649[0][chckIndx(nsuParseInt(i_520097456), 0, (powers_1442840649[0]).length - 1)], NTI1442840581); - draftOptions_520093820[0].push(Temporary5);; - F.line = 13; - F.filename = "iterators.nim"; - i_520100716 += 1; - if (!(((colontmp__520100714).length == L_520100717))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + if (!(i_553655148 < L_553655149)) break Label4; + i_553651888 = colontmp__553655146[chckIndx(i_553655148, 0, (colontmp__553655146).length - 1)]; + var Temporary5 = nimCopy(null, powers_1728053321[0][chckIndx(nsuParseInt(i_553651888), 0, (powers_1728053321[0]).length - 1)], NTI1728053253); + draftOptions_553648252[0].push(Temporary5);; + i_553655148 += 1; + if (!(((colontmp__553655146).length == L_553655149))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - F.line = 447; - F.filename = "main.nim"; - turn_520093808[0] = true; + turn_553648240[0] = true; } }} break; case 6: - F.line = 448; - otherAction_520097193(d_520097389); + otherAction_553651625(d_553651821); break; case 4: - if ((eqStrings(d_520097389, [100,105,115,99,111,110,110]) || eqStrings(d_520097389, [101,120,105,116]))) { - F.line = 451; - currentScreen_520093855[0] = 8; + if ((eqStrings(d_553651821, [100,105,115,99,111,110,110]) || eqStrings(d_553651821, [101,120,105,116]))) { + currentScreen_553648287[0] = 8; } else { - F.line = 453; - peer_520093806[0].Field0("end:exit"); + peer_553648238[0].Field0("end:exit"); } - F.line = 454; - peer_520093806[0].Field1(); + peer_553648238[0].Field1(); break; default: - F.line = 455; rawEcho([117,110,105,109,112,108,101,109,101,110,116,101,100]); break; } - F.line = 456; - redraw_687867377(kxi__); - framePtr = F.prev; + redraw_721421809(kxi__); } -function join_520097747(__520097748, __520097749) { - var F = {procname: "main.join", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 592; - F.filename = "main.nim"; - var id_520097750 = getInputText_687867761(getVNodeById_687866162("joincode", kxi__)); - F.line = 593; - roomId_520093800[0].Field1 = id_520097750; - F.line = 594; - rawEcho(HEX24_721421411(getVNodeById_687866162("joincode", kxi__))); - if (!((peer_520093806[0].Field1 == null))) { - F.line = 596; - peer_520093806[0].Field1(); +function join_553652179(__553652180, __553652181) { + var id_553652182 = getInputText_721422193(getVNodeById_721420594("joincode", kxi__)); + roomId_553648232[0].Field1 = id_553652182; + rawEcho(HEX24_754975843(getVNodeById_721420594("joincode", kxi__))); + if (!((peer_553648238[0].Field1 == null))) { + peer_553648238[0].Field1(); } - F.line = 597; - peer_520093806[0] = nimCopy(peer_520093806[0], newJoin_1325400311(id_520097750, joinLogic_520097388), NTI520093739); - framePtr = F.prev; + peer_553648238[0] = nimCopy(peer_553648238[0], newJoin_1577058551(id_553652182, joinLogic_553651820), NTI553648171); } -function setAttr_721421035(n_721421036, key_721421037, val_721421038) { - var F = {procname: "vdom.setAttr", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/vdom.nim", line: 0}; - framePtr = F; +function setAttr_754975467(n_754975468, key_754975469, val_754975470) { BeforeRet: { - if (((n_721421036.attrs).length == 0)) { - F.line = 248; - F.filename = "vdom.nim"; - n_721421036.attrs = nimCopy(null, [key_721421037, val_721421038], NTI721420574); + if (((n_754975468.attrs).length == 0)) { + n_754975468.attrs = nimCopy(null, [key_754975469, val_754975470], NTI754975006); } else { Label1: { - F.line = 250; - var i_721421055 = 0; - F.line = 46; - F.filename = "iterators_1.nim"; - var colontmp__520100723 = 0; - F.line = 250; - F.filename = "vdom.nim"; - colontmp__520100723 = subInt((n_721421036.attrs).length, 2); - F.line = 68; - F.filename = "iterators_1.nim"; - var res_520100724 = 0; + var i_754975487 = 0; + var colontmp__553655155 = 0; + colontmp__553655155 = subInt((n_754975468.attrs).length, 2); + var res_553655156 = 0; Label2: { - F.line = 69; Label3: while (true) { - if (!(res_520100724 <= colontmp__520100723)) break Label3; - F.line = 250; - F.filename = "vdom.nim"; - i_721421055 = res_520100724; - if ((n_721421036.attrs[chckIndx(i_721421055, 0, (n_721421036.attrs).length - 1)] == key_721421037)) { - F.line = 252; - n_721421036.attrs[chckIndx(addInt(i_721421055, 1), 0, (n_721421036.attrs).length - 1)] = val_721421038; - F.line = 253; + if (!(res_553655156 <= colontmp__553655155)) break Label3; + i_754975487 = res_553655156; + if ((n_754975468.attrs[chckIndx(i_754975487, 0, (n_754975468.attrs).length - 1)] == key_754975469)) { + n_754975468.attrs[chckIndx(addInt(i_754975487, 1), 0, (n_754975468.attrs).length - 1)] = val_754975470; break BeforeRet; } - F.line = 74; - F.filename = "iterators_1.nim"; - res_520100724 = addInt(res_520100724, 2); + res_553655156 = addInt(res_553655156, 2); } }; }; - F.line = 254; - F.filename = "vdom.nim"; - n_721421036.attrs.push(key_721421037);; - F.line = 255; - n_721421036.attrs.push(val_721421038);; + n_754975468.attrs.push(key_754975469);; + n_754975468.attrs.push(val_754975470);; } }; - framePtr = F.prev; } -function addEventHandler_687867678(n_687867679, k_687867680, action_687867682, kxi_687867683) { +function addEventHandler_721422110(n_721422111, k_721422112, action_721422114, kxi_721422115) { -function wrapper_687867684(ev_687867685, n_687867686) { - var F = {procname: "addEventHandler.wrapper", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/karax.nim", line: 0}; - framePtr = F; - F.line = 828; - F.filename = "karax.nim"; - action_687867682(); - if (!(kxi_687867683.surpressRedraws)) { - F.line = 829; - redraw_687867377(kxi_687867683); +function wrapper_721422116(ev_721422117, n_721422118) { + action_721422114(); + if (!(kxi_721422115.surpressRedraws)) { + redraw_721421809(kxi_721422115); } - framePtr = F.prev; } - var F = {procname: "karax.addEventHandler", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/karax.nim", line: 0}; - framePtr = F; - F.line = 830; - F.filename = "karax.nim"; - addEventListener_721421303(n_687867679, k_687867680, wrapper_687867684); - framePtr = F.prev; + addEventListener_754975735(n_721422111, k_721422112, wrapper_721422116); } -function getError_1207959579(field_1207959580) { - var result_1207959581 = null; +function getError_1459617819(field_1459617820) { + var result_1459617821 = null; - var F = {procname: "errors.getError", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/errors.nim", line: 0}; - framePtr = F; - if (!(gerrorMsgs_1207959558[0].hasOwnProperty(field_1207959580))) { - F.line = 17; - F.filename = "errors.nim"; - result_1207959581 = ""; + if (!(gerrorMsgs_1459617798[0].hasOwnProperty(field_1459617820))) { + result_1459617821 = ""; } else { - F.line = 19; - result_1207959581 = gerrorMsgs_1207959558[0][field_1207959580]; + result_1459617821 = gerrorMsgs_1459617798[0][field_1459617820]; } - framePtr = F.prev; - return result_1207959581; + return result_1459617821; } -function setError_1207959594(field_1207959595, msg_1207959596) { - var F = {procname: "errors.setError", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/errors.nim", line: 0}; - framePtr = F; - F.line = 22; - F.filename = "errors.nim"; - var previous_1207959597 = getError_1207959579(field_1207959595); - if ((((msg_1207959596) == null ? 0 : (msg_1207959596).length) == 0)) { - if (!((((previous_1207959597) == null ? 0 : (previous_1207959597).length) == 0))) { - F.line = 24; - gerrorCounter_1207959559[0] = subInt(gerrorCounter_1207959559[0], 1); +function setError_1459617834(field_1459617835, msg_1459617836) { + var previous_1459617837 = getError_1459617819(field_1459617835); + if ((((msg_1459617836) == null ? 0 : (msg_1459617836).length) == 0)) { + if (!((((previous_1459617837) == null ? 0 : (previous_1459617837).length) == 0))) { + gerrorCounter_1459617799[0] = subInt(gerrorCounter_1459617799[0], 1); } } else { - if ((((previous_1207959597) == null ? 0 : (previous_1207959597).length) == 0)) { - F.line = 26; - gerrorCounter_1207959559[0] = addInt(gerrorCounter_1207959559[0], 1); + if ((((previous_1459617837) == null ? 0 : (previous_1459617837).length) == 0)) { + gerrorCounter_1459617799[0] = addInt(gerrorCounter_1459617799[0], 1); } } - F.line = 27; - gerrorMsgs_1207959558[0][field_1207959595] = msg_1207959596; - framePtr = F.prev; + gerrorMsgs_1459617798[0][field_1459617835] = msg_1459617836; } -function validateNotEmpty_520097467(field_520097468) { +function validateNotEmpty_553651899(field_553651900) { -function HEX3Aanonymous_520097471() { - var F = {procname: "validateNotEmpty.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 460; - F.filename = "main.nim"; - var x_520097472 = getInputText_687867761(getVNodeById_687866162(field_520097468, kxi__)); - if (((x_520097472 == null) || (x_520097472 == ""))) { - F.line = 462; - setError_1207959594(field_520097468, (field_520097468 + " must not be empty")); +function HEX3Aanonymous_553651903() { + var x_553651904 = getInputText_721422193(getVNodeById_721420594(field_553651900, kxi__)); + if (((x_553651904 == null) || (x_553651904 == ""))) { + setError_1459617834(field_553651900, (field_553651900 + " must not be empty")); } else { - F.line = 464; - setError_1207959594(field_520097468, ""); + setError_1459617834(field_553651900, ""); } - framePtr = F.prev; } - var result_520097470 = null; - - var F = {procname: "main.validateNotEmpty", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 459; - F.filename = "main.nim"; - result_520097470 = HEX3Aanonymous_520097471; - framePtr = F.prev; - - return result_520097470; - -} - -function createJoinMenu_520097772() { - var result_520097773 = null; - - var F = {procname: "main.createJoinMenu", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 600; - F.filename = "main.nim"; - F.line = 600; - var tmp_520097774 = tree_721421184(44, []); - F.line = 600; - tmp_520097774.class = "main cut-down"; - F.line = 600; - tmp_520097774.id = "join"; - F.line = 600; - addEventHandler_687867670(tmp_520097774, 29, join_520097747, kxi__); - F.line = 601; - var tmp_520097775 = tree_721421184(193, []); - F.line = 601; - setAttr_721421035(tmp_520097775, "for", "joincode"); - F.line = 602; - add_721421120(tmp_520097775, text_721421252([74,111,105,110,32,67,111,100,101,58])); - F.line = 602; - add_721421120(tmp_520097774, tmp_520097775); - F.line = 603; - var tmp_520097776 = tree_721421184(194, []); - F.line = 603; - tmp_520097776.id = "joincode"; - F.line = 603; - addEventHandler_687867678(tmp_520097776, 8, validateNotEmpty_520097467("joincode"), kxi__); - F.line = 603; - add_721421120(tmp_520097774, tmp_520097776); - F.line = 604; - var tmp_520097777 = tree_721421184(195, []); - F.line = 604; - addEventHandler_687867670(tmp_520097777, 0, join_520097747, kxi__); - F.line = 605; - add_721421120(tmp_520097777, text_721421252([69,110,116,101,114])); - F.line = 605; - add_721421120(tmp_520097774, tmp_520097777); - result_520097773 = tmp_520097774; - framePtr = F.prev; - - return result_520097773; - -} - -function createOptionsMenu_520097778() { + var result_553651902 = null; + + result_553651902 = HEX3Aanonymous_553651903; + + return result_553651902; + +} + +function createJoinMenu_553652204() { + var result_553652205 = null; + + var tmp_553652206 = tree_754975616(44, []); + tmp_553652206.class = "main cut-down"; + tmp_553652206.id = "join"; + addEventHandler_721422102(tmp_553652206, 29, join_553652179, kxi__); + var tmp_553652207 = tree_754975616(193, []); + setAttr_754975467(tmp_553652207, "for", "joincode"); + add_754975552(tmp_553652207, text_754975684([74,111,105,110,32,67,111,100,101,58])); + add_754975552(tmp_553652206, tmp_553652207); + var tmp_553652208 = tree_754975616(194, []); + tmp_553652208.id = "joincode"; + addEventHandler_721422110(tmp_553652208, 8, validateNotEmpty_553651899("joincode"), kxi__); + add_754975552(tmp_553652206, tmp_553652208); + var tmp_553652209 = tree_754975616(195, []); + addEventHandler_721422102(tmp_553652209, 0, join_553652179, kxi__); + add_754975552(tmp_553652209, text_754975684([69,110,116,101,114])); + add_754975552(tmp_553652206, tmp_553652209); + result_553652205 = tmp_553652206; + + return result_553652205; + +} + +function createOptionsMenu_553652210() { -function HEX3Aanonymous_520097808(__520097809, __520097810) { - var F = {procname: "createOptionsMenu.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 615; - F.filename = "main.nim"; - peer_520093806[0].Field0("handshake:gamestart"); - F.line = 616; - turn_520093808[0] = true; - F.line = 617; - currentScreen_520093855[0] = 3; - framePtr = F.prev; +function HEX3Aanonymous_553652240(__553652241, __553652242) { + peer_553648238[0].Field0("handshake:gamestart"); + turn_553648240[0] = true; + currentScreen_553648287[0] = 3; } -function HEX3Aanonymous_520097813(__520097814, __520097815) { - var F = {procname: "createOptionsMenu.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 628; - F.filename = "main.nim"; - peer_520093806[0].Field0("draft:start"); - F.line = 629; - currentScreen_520093855[0] = 5; - F.line = 630; - gameMode_520093857[0] = 1; - F.line = 631; - turn_520093808[0] = true; - F.line = 632; - baseDrafts_520093819[0] = parseInt(getInputText_687867761(getVNodeById_687866162("draftTierNumber", kxi__)), 10); - F.line = 633; - draftsLeft_520093822[0] = subInt(baseDrafts_520093819[0], 1); - F.line = 634; - draftChoices_520093821[0] = parseInt(getInputText_687867761(getVNodeById_687866162("draftChoiceTierNumber", kxi__)), 10); - F.line = 636; - draft_520097271([], []); - framePtr = F.prev; +function HEX3Aanonymous_553652245(__553652246, __553652247) { + peer_553648238[0].Field0("draft:start"); + currentScreen_553648287[0] = 5; + gameMode_553648289[0] = 1; + turn_553648240[0] = true; + baseDrafts_553648251[0] = parseInt(getInputText_721422193(getVNodeById_721420594("draftTierNumber", kxi__)), 10); + draftsLeft_553648254[0] = subInt(baseDrafts_553648251[0], 1); + draftChoices_553648253[0] = parseInt(getInputText_721422193(getVNodeById_721420594("draftChoiceTierNumber", kxi__)), 10); + draft_553651703([], []); } -function HEX3Aanonymous_520097834(__520097835, __520097836) { - var F = {procname: "createOptionsMenu.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 657; - F.filename = "main.nim"; - peer_520093806[0].Field0("draft:start"); - F.line = 658; - currentScreen_520093855[0] = 5; - F.line = 659; - gameMode_520093857[0] = 2; - F.line = 660; - turn_520093808[0] = true; - F.line = 662; - baseDrafts_520093819[0] = parseInt(getInputText_687867761(getVNodeById_687866162("draftRandNumber", kxi__)), 10); - F.line = 663; - draftsLeft_520093822[0] = subInt(baseDrafts_520093819[0], 1); - F.line = 664; - draftChoices_520093821[0] = parseInt(getInputText_687867761(getVNodeById_687866162("draftChoiceRandNumber", kxi__)), 10); - F.line = 666; - draft_520097271([], []); - framePtr = F.prev; +function HEX3Aanonymous_553652266(__553652267, __553652268) { + peer_553648238[0].Field0("draft:start"); + currentScreen_553648287[0] = 5; + gameMode_553648289[0] = 2; + turn_553648240[0] = true; + baseDrafts_553648251[0] = parseInt(getInputText_721422193(getVNodeById_721420594("draftRandNumber", kxi__)), 10); + draftsLeft_553648254[0] = subInt(baseDrafts_553648251[0], 1); + draftChoices_553648253[0] = parseInt(getInputText_721422193(getVNodeById_721420594("draftChoiceRandNumber", kxi__)), 10); + draft_553651703([], []); } -function HEX3Aanonymous_520097839(__520097840, __520097841) { - var F = {procname: "createOptionsMenu.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 689; - F.filename = "main.nim"; - peer_520093806[0].Field0("draft:start"); - F.line = 690; - currentScreen_520093855[0] = 5; - F.line = 691; - gameMode_520093857[0] = 3; - F.line = 692; - turn_520093808[0] = true; - F.line = 694; - baseDrafts_520093819[0] = parseInt(getInputText_687867761(getVNodeById_687866162("draftSuperRandNumber", kxi__)), 10); - F.line = 695; - draftsLeft_520093822[0] = subInt(baseDrafts_520093819[0], 1); - F.line = 696; - draftChoices_520093821[0] = parseInt(getInputText_687867761(getVNodeById_687866162("draftChoiceSuperRandNumber", kxi__)), 10); - F.line = 698; - draft_520097271([], []); - framePtr = F.prev; +function HEX3Aanonymous_553652271(__553652272, __553652273) { + peer_553648238[0].Field0("draft:start"); + currentScreen_553648287[0] = 5; + gameMode_553648289[0] = 3; + turn_553648240[0] = true; + baseDrafts_553648251[0] = parseInt(getInputText_721422193(getVNodeById_721420594("draftSuperRandNumber", kxi__)), 10); + draftsLeft_553648254[0] = subInt(baseDrafts_553648251[0], 1); + draftChoices_553648253[0] = parseInt(getInputText_721422193(getVNodeById_721420594("draftChoiceSuperRandNumber", kxi__)), 10); + draft_553651703([], []); } - var result_520097779 = null; + var result_553652211 = null; - var F = {procname: "main.createOptionsMenu", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 608; - F.filename = "main.nim"; - F.line = 608; - var tmp_520097780 = tree_721421184(44, []); - F.line = 608; - tmp_520097780.class = "main"; - if ((side_520093807[0] == 0)) { - F.line = 610; - add_721421120(tmp_520097780, text_721421252([87,97,105,116,105,110,103,32,102,111,114,32,104,111,115,116,32,116,111,32,100,101,99,105,100,101,32,114,117,108,101,115,101,116,46,46,46])); + var tmp_553652212 = tree_754975616(44, []); + tmp_553652212.class = "main"; + if ((side_553648239[0] == 0)) { + add_754975552(tmp_553652212, text_754975684([87,97,105,116,105,110,103,32,102,111,114,32,104,111,115,116,32,116,111,32,100,101,99,105,100,101,32,114,117,108,101,115,101,116,46,46,46])); } else { - F.line = 612; - var tmp_520097781 = tree_721421184(44, []); - F.line = 612; - tmp_520097781.class = "column cut-down"; - F.line = 613; - var tmp_520097782 = tree_721421184(195, []); - F.line = 614; - addEventHandler_687867670(tmp_520097782, 0, HEX3Aanonymous_520097808, kxi__); - F.line = 619; - add_721421120(tmp_520097782, text_721421252([78,111,114,109,97,108,32,67,104,101,115,115])); - F.line = 619; - add_721421120(tmp_520097781, tmp_520097782); - F.line = 621; - add_721421120(tmp_520097781, text_721421252([67,108,97,115,115,105,99,32,67,104,101,115,115,44,32,119,105,116,104,32,110,111,32,115,112,101,99,105,97,108,32,114,117,108,101,115,32,111,114,32,97,98,105,108,105,116,101,115,46])); - F.line = 621; - add_721421120(tmp_520097780, tmp_520097781); - F.line = 624; - var tmp_520097783 = tree_721421184(44, []); - F.line = 624; - tmp_520097783.class = "column cut-down"; - F.line = 625; - var tmp_520097784 = tree_721421184(44, []); - F.line = 625; - tmp_520097784.class = "column"; - F.line = 626; - var tmp_520097785 = tree_721421184(195, []); - F.line = 627; - addEventHandler_687867670(tmp_520097785, 0, HEX3Aanonymous_520097813, kxi__); - F.line = 638; - add_721421120(tmp_520097785, text_721421252([68,114,97,102,116,32,109,111,100,101])); - F.line = 638; - add_721421120(tmp_520097784, tmp_520097785); - F.line = 639; - add_721421120(tmp_520097784, text_721421252(makeNimstrLit("Take turns drafting power ups for your pieces, then play. \x0A Each side is guaranteed to get power ups of the same tier."))); - F.line = 642; - var tmp_520097786 = tree_721421184(193, []); - F.line = 642; - setAttr_721421035(tmp_520097786, "for", "draftTierNumber"); - F.line = 643; - add_721421120(tmp_520097786, text_721421252([78,117,109,98,101,114,32,111,102,32,112,111,119,101,114,115,32,100,114,97,102,116,101,100])); - F.line = 643; - add_721421120(tmp_520097784, tmp_520097786); - F.line = 644; - var tmp_520097787 = tree_721421184(194, []); - F.line = 644; - tmp_520097787.id = "draftTierNumber"; - F.line = 644; - setAttr_721421035(tmp_520097787, "type", "number"); - F.line = 644; - addEventHandler_687867678(tmp_520097787, 8, validateNotEmpty_520097467("draftTierNumber"), kxi__); - F.line = 645; - setAttr_721421035(tmp_520097787, "step", "1"); - F.line = 645; - setAttr_721421035(tmp_520097787, "min", "1"); - F.line = 645; - setAttr_721421035(tmp_520097787, "max", "10"); - F.line = 645; - valueHEX3D_721420741(tmp_520097787, "3"); - F.line = 645; - setAttr_721421035(tmp_520097787, "value", "3"); - F.line = 645; - add_721421120(tmp_520097784, tmp_520097787); - F.line = 647; - var tmp_520097788 = tree_721421184(193, []); - F.line = 647; - setAttr_721421035(tmp_520097788, "for", "draftChoiceTierNumber"); - F.line = 648; - add_721421120(tmp_520097788, text_721421252([78,117,109,98,101,114,32,111,102,32,99,104,111,105,99,101,115,32,101,97,99,104,32,114,111,117,110,100])); - F.line = 648; - add_721421120(tmp_520097784, tmp_520097788); - F.line = 649; - var tmp_520097789 = tree_721421184(194, []); - F.line = 649; - tmp_520097789.id = "draftChoiceTierNumber"; - F.line = 649; - setAttr_721421035(tmp_520097789, "type", "number"); - F.line = 649; - addEventHandler_687867678(tmp_520097789, 8, validateNotEmpty_520097467("draftChoiceTierNumber"), kxi__); - F.line = 650; - setAttr_721421035(tmp_520097789, "step", "1"); - F.line = 650; - setAttr_721421035(tmp_520097789, "min", "1"); - F.line = 650; - setAttr_721421035(tmp_520097789, "max", "5"); - F.line = 650; - valueHEX3D_721420741(tmp_520097789, "3"); - F.line = 650; - setAttr_721421035(tmp_520097789, "value", "3"); - F.line = 650; - add_721421120(tmp_520097784, tmp_520097789); - F.line = 650; - add_721421120(tmp_520097783, tmp_520097784); - F.line = 652; - var tmp_520097790 = tree_721421184(33, []); - F.line = 652; - add_721421120(tmp_520097783, tmp_520097790); - F.line = 654; - var tmp_520097791 = tree_721421184(44, []); - F.line = 654; - tmp_520097791.class = "column"; - F.line = 655; - var tmp_520097792 = tree_721421184(195, []); - F.line = 656; - addEventHandler_687867670(tmp_520097792, 0, HEX3Aanonymous_520097834, kxi__); - F.line = 669; - add_721421120(tmp_520097792, text_721421252([82,97,110,100,111,109,32,109,111,100,101])); - F.line = 669; - add_721421120(tmp_520097791, tmp_520097792); - F.line = 671; - add_721421120(tmp_520097791, text_721421252(makeNimstrLit("Draft powerups of random strength and quality, then play. \x0A Completely luck based."))); - F.line = 674; - var tmp_520097793 = tree_721421184(193, []); - F.line = 674; - setAttr_721421035(tmp_520097793, "for", "draftRandNumber"); - F.line = 675; - add_721421120(tmp_520097793, text_721421252([78,117,109,98,101,114,32,111,102,32,112,111,119,101,114,115,32,100,114,97,102,116,101,100])); - F.line = 675; - add_721421120(tmp_520097791, tmp_520097793); - F.line = 676; - var tmp_520097794 = tree_721421184(194, []); - F.line = 676; - tmp_520097794.id = "draftRandNumber"; - F.line = 676; - setAttr_721421035(tmp_520097794, "type", "number"); - F.line = 676; - addEventHandler_687867678(tmp_520097794, 8, validateNotEmpty_520097467("draftRandNumber"), kxi__); - F.line = 677; - setAttr_721421035(tmp_520097794, "step", "1"); - F.line = 677; - setAttr_721421035(tmp_520097794, "min", "1"); - F.line = 677; - setAttr_721421035(tmp_520097794, "max", "10"); - F.line = 677; - valueHEX3D_721420741(tmp_520097794, "3"); - F.line = 677; - setAttr_721421035(tmp_520097794, "value", "3"); - F.line = 677; - add_721421120(tmp_520097791, tmp_520097794); - F.line = 679; - var tmp_520097795 = tree_721421184(193, []); - F.line = 679; - setAttr_721421035(tmp_520097795, "for", "draftChoiceRandNumber"); - F.line = 680; - add_721421120(tmp_520097795, text_721421252([78,117,109,98,101,114,32,111,102,32,99,104,111,105,99,101,115,32,101,97,99,104,32,114,111,117,110,100])); - F.line = 680; - add_721421120(tmp_520097791, tmp_520097795); - F.line = 681; - var tmp_520097796 = tree_721421184(194, []); - F.line = 681; - tmp_520097796.id = "draftChoiceRandNumber"; - F.line = 681; - setAttr_721421035(tmp_520097796, "type", "number"); - F.line = 681; - addEventHandler_687867678(tmp_520097796, 8, validateNotEmpty_520097467("draftChoiceRandNumber"), kxi__); - F.line = 682; - setAttr_721421035(tmp_520097796, "step", "1"); - F.line = 682; - setAttr_721421035(tmp_520097796, "min", "1"); - F.line = 682; - setAttr_721421035(tmp_520097796, "max", "5"); - F.line = 682; - valueHEX3D_721420741(tmp_520097796, "3"); - F.line = 682; - setAttr_721421035(tmp_520097796, "value", "3"); - F.line = 682; - add_721421120(tmp_520097791, tmp_520097796); - F.line = 682; - add_721421120(tmp_520097783, tmp_520097791); - F.line = 684; - var tmp_520097797 = tree_721421184(33, []); - F.line = 684; - add_721421120(tmp_520097783, tmp_520097797); - F.line = 686; - var tmp_520097798 = tree_721421184(44, []); - F.line = 686; - tmp_520097798.class = "column"; - F.line = 687; - var tmp_520097799 = tree_721421184(195, []); - F.line = 688; - addEventHandler_687867670(tmp_520097799, 0, HEX3Aanonymous_520097839, kxi__); - F.line = 701; - add_721421120(tmp_520097799, text_721421252([83,117,112,101,114,32,82,97,110,100,111,109,32,109,111,100,101])); - F.line = 701; - add_721421120(tmp_520097798, tmp_520097799); - F.line = 703; - add_721421120(tmp_520097798, text_721421252(makeNimstrLit("Draft powerups of random strength and quality, then play. \x0A Completely luck based, with higher chances for rare pieces."))); - F.line = 706; - var tmp_520097800 = tree_721421184(193, []); - F.line = 706; - setAttr_721421035(tmp_520097800, "for", "draftSuperRandNumber"); - F.line = 707; - add_721421120(tmp_520097800, text_721421252([78,117,109,98,101,114,32,111,102,32,112,111,119,101,114,115,32,100,114,97,102,116,101,100])); - F.line = 707; - add_721421120(tmp_520097798, tmp_520097800); - F.line = 708; - var tmp_520097801 = tree_721421184(194, []); - F.line = 708; - tmp_520097801.id = "draftSuperRandNumber"; - F.line = 708; - setAttr_721421035(tmp_520097801, "type", "number"); - F.line = 708; - addEventHandler_687867678(tmp_520097801, 8, validateNotEmpty_520097467("draftSuperRandNumber"), kxi__); - F.line = 709; - setAttr_721421035(tmp_520097801, "step", "1"); - F.line = 709; - setAttr_721421035(tmp_520097801, "min", "1"); - F.line = 709; - setAttr_721421035(tmp_520097801, "max", "10"); - F.line = 709; - valueHEX3D_721420741(tmp_520097801, "3"); - F.line = 709; - setAttr_721421035(tmp_520097801, "value", "3"); - F.line = 709; - add_721421120(tmp_520097798, tmp_520097801); - F.line = 711; - var tmp_520097802 = tree_721421184(193, []); - F.line = 711; - setAttr_721421035(tmp_520097802, "for", "draftChoiceSuperRandNumber"); - F.line = 712; - add_721421120(tmp_520097802, text_721421252([78,117,109,98,101,114,32,111,102,32,99,104,111,105,99,101,115,32,101,97,99,104,32,114,111,117,110,100])); - F.line = 712; - add_721421120(tmp_520097798, tmp_520097802); - F.line = 713; - var tmp_520097803 = tree_721421184(194, []); - F.line = 713; - tmp_520097803.id = "draftChoiceSuperRandNumber"; - F.line = 713; - setAttr_721421035(tmp_520097803, "type", "number"); - F.line = 713; - addEventHandler_687867678(tmp_520097803, 8, validateNotEmpty_520097467("draftChoiceSuperRandNumber"), kxi__); - F.line = 714; - setAttr_721421035(tmp_520097803, "step", "1"); - F.line = 714; - setAttr_721421035(tmp_520097803, "min", "1"); - F.line = 714; - setAttr_721421035(tmp_520097803, "max", "5"); - F.line = 714; - valueHEX3D_721420741(tmp_520097803, "3"); - F.line = 714; - setAttr_721421035(tmp_520097803, "value", "3"); - F.line = 714; - add_721421120(tmp_520097798, tmp_520097803); - F.line = 714; - add_721421120(tmp_520097783, tmp_520097798); - F.line = 714; - add_721421120(tmp_520097780, tmp_520097783); - } - - result_520097779 = tmp_520097780; - framePtr = F.prev; - - return result_520097779; - -} - -function createPowerMenu_520097844(p_520097845) { + var tmp_553652213 = tree_754975616(44, []); + tmp_553652213.class = "column cut-down"; + var tmp_553652214 = tree_754975616(195, []); + addEventHandler_721422102(tmp_553652214, 0, HEX3Aanonymous_553652240, kxi__); + add_754975552(tmp_553652214, text_754975684([78,111,114,109,97,108,32,67,104,101,115,115])); + add_754975552(tmp_553652213, tmp_553652214); + add_754975552(tmp_553652213, text_754975684([67,108,97,115,115,105,99,32,67,104,101,115,115,44,32,119,105,116,104,32,110,111,32,115,112,101,99,105,97,108,32,114,117,108,101,115,32,111,114,32,97,98,105,108,105,116,101,115,46])); + add_754975552(tmp_553652212, tmp_553652213); + var tmp_553652215 = tree_754975616(44, []); + tmp_553652215.class = "column cut-down"; + var tmp_553652216 = tree_754975616(44, []); + tmp_553652216.class = "column"; + var tmp_553652217 = tree_754975616(195, []); + addEventHandler_721422102(tmp_553652217, 0, HEX3Aanonymous_553652245, kxi__); + add_754975552(tmp_553652217, text_754975684([68,114,97,102,116,32,109,111,100,101])); + add_754975552(tmp_553652216, tmp_553652217); + add_754975552(tmp_553652216, text_754975684(makeNimstrLit("Take turns drafting power ups for your pieces, then play. \x0A Each side is guaranteed to get power ups of the same tier."))); + var tmp_553652218 = tree_754975616(193, []); + setAttr_754975467(tmp_553652218, "for", "draftTierNumber"); + add_754975552(tmp_553652218, text_754975684([78,117,109,98,101,114,32,111,102,32,112,111,119,101,114,115,32,100,114,97,102,116,101,100])); + add_754975552(tmp_553652216, tmp_553652218); + var tmp_553652219 = tree_754975616(194, []); + tmp_553652219.id = "draftTierNumber"; + setAttr_754975467(tmp_553652219, "type", "number"); + addEventHandler_721422110(tmp_553652219, 8, validateNotEmpty_553651899("draftTierNumber"), kxi__); + setAttr_754975467(tmp_553652219, "step", "1"); + setAttr_754975467(tmp_553652219, "min", "1"); + setAttr_754975467(tmp_553652219, "max", "10"); + valueHEX3D_754975173(tmp_553652219, "3"); + setAttr_754975467(tmp_553652219, "value", "3"); + add_754975552(tmp_553652216, tmp_553652219); + var tmp_553652220 = tree_754975616(193, []); + setAttr_754975467(tmp_553652220, "for", "draftChoiceTierNumber"); + add_754975552(tmp_553652220, text_754975684([78,117,109,98,101,114,32,111,102,32,99,104,111,105,99,101,115,32,101,97,99,104,32,114,111,117,110,100])); + add_754975552(tmp_553652216, tmp_553652220); + var tmp_553652221 = tree_754975616(194, []); + tmp_553652221.id = "draftChoiceTierNumber"; + setAttr_754975467(tmp_553652221, "type", "number"); + addEventHandler_721422110(tmp_553652221, 8, validateNotEmpty_553651899("draftChoiceTierNumber"), kxi__); + setAttr_754975467(tmp_553652221, "step", "1"); + setAttr_754975467(tmp_553652221, "min", "1"); + setAttr_754975467(tmp_553652221, "max", "5"); + valueHEX3D_754975173(tmp_553652221, "3"); + setAttr_754975467(tmp_553652221, "value", "3"); + add_754975552(tmp_553652216, tmp_553652221); + add_754975552(tmp_553652215, tmp_553652216); + var tmp_553652222 = tree_754975616(33, []); + add_754975552(tmp_553652215, tmp_553652222); + var tmp_553652223 = tree_754975616(44, []); + tmp_553652223.class = "column"; + var tmp_553652224 = tree_754975616(195, []); + addEventHandler_721422102(tmp_553652224, 0, HEX3Aanonymous_553652266, kxi__); + add_754975552(tmp_553652224, text_754975684([82,97,110,100,111,109,32,109,111,100,101])); + add_754975552(tmp_553652223, tmp_553652224); + add_754975552(tmp_553652223, text_754975684(makeNimstrLit("Draft powerups of random strength and quality, then play. \x0A Completely luck based."))); + var tmp_553652225 = tree_754975616(193, []); + setAttr_754975467(tmp_553652225, "for", "draftRandNumber"); + add_754975552(tmp_553652225, text_754975684([78,117,109,98,101,114,32,111,102,32,112,111,119,101,114,115,32,100,114,97,102,116,101,100])); + add_754975552(tmp_553652223, tmp_553652225); + var tmp_553652226 = tree_754975616(194, []); + tmp_553652226.id = "draftRandNumber"; + setAttr_754975467(tmp_553652226, "type", "number"); + addEventHandler_721422110(tmp_553652226, 8, validateNotEmpty_553651899("draftRandNumber"), kxi__); + setAttr_754975467(tmp_553652226, "step", "1"); + setAttr_754975467(tmp_553652226, "min", "1"); + setAttr_754975467(tmp_553652226, "max", "10"); + valueHEX3D_754975173(tmp_553652226, "3"); + setAttr_754975467(tmp_553652226, "value", "3"); + add_754975552(tmp_553652223, tmp_553652226); + var tmp_553652227 = tree_754975616(193, []); + setAttr_754975467(tmp_553652227, "for", "draftChoiceRandNumber"); + add_754975552(tmp_553652227, text_754975684([78,117,109,98,101,114,32,111,102,32,99,104,111,105,99,101,115,32,101,97,99,104,32,114,111,117,110,100])); + add_754975552(tmp_553652223, tmp_553652227); + var tmp_553652228 = tree_754975616(194, []); + tmp_553652228.id = "draftChoiceRandNumber"; + setAttr_754975467(tmp_553652228, "type", "number"); + addEventHandler_721422110(tmp_553652228, 8, validateNotEmpty_553651899("draftChoiceRandNumber"), kxi__); + setAttr_754975467(tmp_553652228, "step", "1"); + setAttr_754975467(tmp_553652228, "min", "1"); + setAttr_754975467(tmp_553652228, "max", "5"); + valueHEX3D_754975173(tmp_553652228, "3"); + setAttr_754975467(tmp_553652228, "value", "3"); + add_754975552(tmp_553652223, tmp_553652228); + add_754975552(tmp_553652215, tmp_553652223); + var tmp_553652229 = tree_754975616(33, []); + add_754975552(tmp_553652215, tmp_553652229); + var tmp_553652230 = tree_754975616(44, []); + tmp_553652230.class = "column"; + var tmp_553652231 = tree_754975616(195, []); + addEventHandler_721422102(tmp_553652231, 0, HEX3Aanonymous_553652271, kxi__); + add_754975552(tmp_553652231, text_754975684([83,117,112,101,114,32,82,97,110,100,111,109,32,109,111,100,101])); + add_754975552(tmp_553652230, tmp_553652231); + add_754975552(tmp_553652230, text_754975684(makeNimstrLit("Draft powerups of random strength and quality, then play. \x0A Completely luck based, with higher chances for rare pieces."))); + var tmp_553652232 = tree_754975616(193, []); + setAttr_754975467(tmp_553652232, "for", "draftSuperRandNumber"); + add_754975552(tmp_553652232, text_754975684([78,117,109,98,101,114,32,111,102,32,112,111,119,101,114,115,32,100,114,97,102,116,101,100])); + add_754975552(tmp_553652230, tmp_553652232); + var tmp_553652233 = tree_754975616(194, []); + tmp_553652233.id = "draftSuperRandNumber"; + setAttr_754975467(tmp_553652233, "type", "number"); + addEventHandler_721422110(tmp_553652233, 8, validateNotEmpty_553651899("draftSuperRandNumber"), kxi__); + setAttr_754975467(tmp_553652233, "step", "1"); + setAttr_754975467(tmp_553652233, "min", "1"); + setAttr_754975467(tmp_553652233, "max", "10"); + valueHEX3D_754975173(tmp_553652233, "3"); + setAttr_754975467(tmp_553652233, "value", "3"); + add_754975552(tmp_553652230, tmp_553652233); + var tmp_553652234 = tree_754975616(193, []); + setAttr_754975467(tmp_553652234, "for", "draftChoiceSuperRandNumber"); + add_754975552(tmp_553652234, text_754975684([78,117,109,98,101,114,32,111,102,32,99,104,111,105,99,101,115,32,101,97,99,104,32,114,111,117,110,100])); + add_754975552(tmp_553652230, tmp_553652234); + var tmp_553652235 = tree_754975616(194, []); + tmp_553652235.id = "draftChoiceSuperRandNumber"; + setAttr_754975467(tmp_553652235, "type", "number"); + addEventHandler_721422110(tmp_553652235, 8, validateNotEmpty_553651899("draftChoiceSuperRandNumber"), kxi__); + setAttr_754975467(tmp_553652235, "step", "1"); + setAttr_754975467(tmp_553652235, "min", "1"); + setAttr_754975467(tmp_553652235, "max", "5"); + valueHEX3D_754975173(tmp_553652235, "3"); + setAttr_754975467(tmp_553652235, "value", "3"); + add_754975552(tmp_553652230, tmp_553652235); + add_754975552(tmp_553652215, tmp_553652230); + add_754975552(tmp_553652212, tmp_553652215); + } + + result_553652211 = tmp_553652212; + + return result_553652211; + +} + +function createPowerMenu_553652276(p_553652277) { var Temporary1; - p_520097845 = nimCopy(null, p_520097845, NTI1442840581); - -function HEX3Aanonymous_520097860(__520097861, __520097862) { - var F = {procname: "createPowerMenu.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 732; - F.filename = "main.nim"; - peer_520093806[0].Field0(toJSStr(([100,114,97,102,116,58,109,121,44] || []).concat(HEX24_369098760(p_520097845.index) || []))); - F.line = 733; - var Temporary1 = nimCopy(null, p_520097845, NTI1442840581); - myDrafts_520093813[0].push(Temporary1);; - F.line = 734; - turn_520093808[0] = false; - if ((side_520093807[0] == 1)) { - F.line = 736; - draft_520097271(HEX26_1442841613(myDrafts_520093813[0], opponentDrafts_520093818[0]), opponentDrafts_520093818[0]); - F.line = 737; - F.line = 975; - F.filename = "sequtils.nim"; + p_553652277 = nimCopy(null, p_553652277, NTI1728053253); + +function HEX3Aanonymous_553652292(__553652293, __553652294) { + peer_553648238[0].Field0(toJSStr(([100,114,97,102,116,58,109,121,44] || []).concat(HEX24_385875976(p_553652277.index) || []))); + var Temporary1 = nimCopy(null, p_553652277, NTI1728053253); + myDrafts_553648245[0].push(Temporary1);; + turn_553648240[0] = false; + if ((side_553648239[0] == 1)) { + draft_553651703(HEX26_1728054285(myDrafts_553648245[0], opponentDrafts_553648250[0]), opponentDrafts_553648250[0]); Label2: { - F.line = 1024; - var iHEX60gensym118_520097895 = 0; - F.line = 1025; - var resultHEX60gensym118_520097902 = newSeq_503317026(chckRange((draftOptions_520093820[0]).length, 0, 2147483647)); + var iHEX60gensym118_553652327 = 0; + var resultHEX60gensym118_553652334 = newSeq_536871458(chckRange((draftOptions_553648252[0]).length, 0, 2147483647)); Label3: { - F.line = 1026; - var it_520097906 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); - F.line = 249; - F.filename = "iterators.nim"; - var i_520100741 = 0; - F.line = 250; - var L_520100742 = (draftOptions_520093820[0]).length; + var it_553652338 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); + var i_553655173 = 0; + var L_553655174 = (draftOptions_553648252[0]).length; Label4: { - F.line = 251; Label5: while (true) { - if (!(i_520100741 < L_520100742)) break Label5; - F.line = 1026; - F.filename = "sequtils.nim"; - it_520097906 = draftOptions_520093820[0][chckIndx(i_520100741, 0, (draftOptions_520093820[0]).length - 1)]; - F.line = 737; - F.filename = "main.nim"; - resultHEX60gensym118_520097902[chckIndx(iHEX60gensym118_520097895, 0, (resultHEX60gensym118_520097902).length - 1)] = nimCopy(null, ([44] || []).concat(HEX24_369098760(it_520097906.index) || []), NTI33554449); - F.line = 1028; - F.filename = "sequtils.nim"; - iHEX60gensym118_520097895 = addInt(iHEX60gensym118_520097895, 1); - F.line = 13; - F.filename = "iterators.nim"; - i_520100741 += 1; - if (!(((draftOptions_520093820[0]).length == L_520100742))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + if (!(i_553655173 < L_553655174)) break Label5; + it_553652338 = draftOptions_553648252[0][chckIndx(i_553655173, 0, (draftOptions_553648252[0]).length - 1)]; + resultHEX60gensym118_553652334[chckIndx(iHEX60gensym118_553652327, 0, (resultHEX60gensym118_553652334).length - 1)] = nimCopy(null, ([44] || []).concat(HEX24_385875976(it_553652338.index) || []), NTI33554449); + iHEX60gensym118_553652327 = addInt(iHEX60gensym118_553652327, 1); + i_553655173 += 1; + if (!(((draftOptions_553648252[0]).length == L_553655174))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; }; - var sHEX60gensym121_520097918 = nimCopy(null, resultHEX60gensym118_520097902, NTI503316801); - F.line = 976; - F.filename = "sequtils.nim"; - var nHEX60gensym121_520097922 = (sHEX60gensym121_520097918).length; - if (!((0 < nHEX60gensym121_520097922))) { - F.line = 977; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/collections/sequtils.nim(977, 3) `n`gensym121 > 0` Can\'t fold empty sequences")); + var sHEX60gensym121_553652350 = nimCopy(null, resultHEX60gensym118_553652334, NTI536871233); + var nHEX60gensym121_553652354 = (sHEX60gensym121_553652350).length; + if (!((0 < nHEX60gensym121_553652354))) { + failedAssertImpl_268435541(makeNimstrLit("sequtils.nim(977, 3) `n`gensym121 > 0` Can\'t fold empty sequences")); } - F.line = 978; - var resultHEX60gensym121_520097928 = nimCopy(null, sHEX60gensym121_520097918[chckIndx(subInt(nHEX60gensym121_520097922, 1), 0, (sHEX60gensym121_520097918).length - 1)], NTI33554449); + var resultHEX60gensym121_553652360 = nimCopy(null, sHEX60gensym121_553652350[chckIndx(subInt(nHEX60gensym121_553652354, 1), 0, (sHEX60gensym121_553652350).length - 1)], NTI33554449); Label6: { - F.line = 979; - var iHEX60gensym121_520097934 = 0; - F.line = 6; - F.filename = "iterators_1.nim"; - var colontmp__520100745 = 0; - F.line = 979; - F.filename = "sequtils.nim"; - colontmp__520100745 = subInt(nHEX60gensym121_520097922, 2); - F.line = 33; - F.filename = "iterators_1.nim"; - var res_520100746 = colontmp__520100745; + var iHEX60gensym121_553652366 = 0; + var colontmp__553655177 = 0; + colontmp__553655177 = subInt(nHEX60gensym121_553652354, 2); + var res_553655178 = colontmp__553655177; Label7: { - F.line = 34; Label8: while (true) { - if (!(0 <= res_520100746)) break Label8; - F.line = 979; - F.filename = "sequtils.nim"; - iHEX60gensym121_520097934 = res_520100746; - F.line = 981; - var a_520097935 = nimCopy(null, sHEX60gensym121_520097918[chckIndx(iHEX60gensym121_520097934, 0, (sHEX60gensym121_520097918).length - 1)], NTI33554449); - F.line = 982; - var b_520097936 = nimCopy(null, resultHEX60gensym121_520097928, NTI33554449); - F.line = 737; - F.filename = "main.nim"; - resultHEX60gensym121_520097928 = nimCopy(null, (a_520097935 || []).concat(b_520097936 || []), NTI33554449); - F.line = 39; - F.filename = "iterators_1.nim"; - res_520100746 = subInt(res_520100746, 1); + if (!(0 <= res_553655178)) break Label8; + iHEX60gensym121_553652366 = res_553655178; + var a_553652367 = nimCopy(null, sHEX60gensym121_553652350[chckIndx(iHEX60gensym121_553652366, 0, (sHEX60gensym121_553652350).length - 1)], NTI33554449); + var b_553652368 = nimCopy(null, resultHEX60gensym121_553652360, NTI33554449); + resultHEX60gensym121_553652360 = nimCopy(null, (a_553652367 || []).concat(b_553652368 || []), NTI33554449); + res_553655178 = subInt(res_553655178, 1); } }; }; - peer_520093806[0].Field0(toJSStr(([100,114,97,102,116,58,103,111] || []).concat(resultHEX60gensym121_520097928 || []))); + peer_553648238[0].Field0(toJSStr(([100,114,97,102,116,58,103,111] || []).concat(resultHEX60gensym121_553652360 || []))); } - framePtr = F.prev; } - var result_520097846 = null; + var result_553652278 = null; - var F = {procname: "main.createPowerMenu", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 717; - F.filename = "main.nim"; - F.line = 717; - var tmp_520097847 = tree_721421184(44, []); - F.line = 717; - tmp_520097847.class = "power"; - F.line = 718; - var tmp_520097848 = tree_721421184(21, []); - F.line = 719; - if ((showTechnicalNames_520093851[0] && !(eqStrings(p_520097845.technicalName, [])))) { - Temporary1 = p_520097845.technicalName; + var tmp_553652279 = tree_754975616(44, []); + tmp_553652279.class = "power"; + var tmp_553652280 = tree_754975616(21, []); + if ((showTechnicalNames_553648283[0] && !(eqStrings(p_553652277.technicalName, [])))) { + Temporary1 = p_553652277.technicalName; } else { - Temporary1 = p_520097845.name; + Temporary1 = p_553652277.name; } - add_721421120(tmp_520097848, text_721421252(Temporary1)); - F.line = 719; - add_721421120(tmp_520097847, tmp_520097848); - if (!(eqStrings(p_520097845.icon, []))) { - F.line = 721; - var src_520097853 = [46,47,105,99,111,110,115,47]; - if (!(p_520097845.noColor)) { - F.line = 722; - src_520097853.push.apply(src_520097853, reprEnum(side_520093807[0], NTI1224736777));; + add_754975552(tmp_553652280, text_754975684(Temporary1)); + add_754975552(tmp_553652279, tmp_553652280); + if (!(eqStrings(p_553652277.icon, []))) { + var src_553652285 = [46,47,105,99,111,110,115,47]; + if (!(p_553652277.noColor)) { + src_553652285.push.apply(src_553652285, reprEnum(side_553648239[0], NTI1476395017));; } - F.line = 723; - var tmp_520097849 = tree_721421184(76, []); - F.line = 723; - setAttr_721421035(tmp_520097849, "src", toJSStr((src_520097853 || []).concat(p_520097845.icon || []))); - F.line = 723; - add_721421120(tmp_520097847, tmp_520097849); + var tmp_553652281 = tree_754975616(76, []); + setAttr_754975467(tmp_553652281, "src", toJSStr((src_553652285 || []).concat(p_553652277.icon || []))); + add_754975552(tmp_553652279, tmp_553652281); } else { - F.line = 725; - var tmp_520097850 = tree_721421184(76, []); - F.line = 725; - setAttr_721421035(tmp_520097850, "src", "./icons/blackbishop.svg"); - F.line = 725; - add_721421120(tmp_520097847, tmp_520097850); - } - - F.line = 726; - var tmp_520097851 = tree_721421184(22, []); - F.line = 727; - add_721421120(tmp_520097851, text_721421252(reprEnum(p_520097845.tier, NTI1442840579))); - F.line = 727; - add_721421120(tmp_520097847, tmp_520097851); - F.line = 728; - var tmp_520097852 = tree_721421184(32, []); - F.line = 729; - add_721421120(tmp_520097852, text_721421252(p_520097845.description)); - F.line = 729; - add_721421120(tmp_520097847, tmp_520097852); - F.line = 731; - addEventHandler_687867670(tmp_520097847, 0, HEX3Aanonymous_520097860, kxi__); - result_520097846 = tmp_520097847; - framePtr = F.prev; - - return result_520097846; - -} - -function createDraftMenu_520097941() { - var result_520097942 = null; - - var F = {procname: "main.createDraftMenu", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 740; - F.filename = "main.nim"; - F.line = 740; - var tmp_520097943 = tree_721421184(44, []); - F.line = 740; - tmp_520097943.class = "main power-menu"; - if (turn_520093808[0]) { + var tmp_553652282 = tree_754975616(76, []); + setAttr_754975467(tmp_553652282, "src", "./icons/blackbishop.svg"); + add_754975552(tmp_553652279, tmp_553652282); + } + + var tmp_553652283 = tree_754975616(22, []); + add_754975552(tmp_553652283, text_754975684(reprEnum(p_553652277.tier, NTI1728053251))); + add_754975552(tmp_553652279, tmp_553652283); + var tmp_553652284 = tree_754975616(32, []); + add_754975552(tmp_553652284, text_754975684(p_553652277.description)); + add_754975552(tmp_553652279, tmp_553652284); + addEventHandler_721422102(tmp_553652279, 0, HEX3Aanonymous_553652292, kxi__); + result_553652278 = tmp_553652279; + + return result_553652278; + +} + +function createDraftMenu_553652373() { + var result_553652374 = null; + + var tmp_553652375 = tree_754975616(44, []); + tmp_553652375.class = "main power-menu"; + if (turn_553648240[0]) { Label1: { - F.line = 742; - var p_520097947 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); - F.line = 249; - F.filename = "iterators.nim"; - var i_520100727 = 0; - F.line = 250; - var L_520100728 = (draftOptions_520093820[0]).length; + var p_553652379 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); + var i_553655159 = 0; + var L_553655160 = (draftOptions_553648252[0]).length; Label2: { - F.line = 251; Label3: while (true) { - if (!(i_520100727 < L_520100728)) break Label3; - F.line = 742; - F.filename = "main.nim"; - p_520097947 = draftOptions_520093820[0][chckIndx(i_520100727, 0, (draftOptions_520093820[0]).length - 1)]; - F.line = 743; - add_721421120(tmp_520097943, createPowerMenu_520097844(p_520097947)); - F.line = 13; - F.filename = "iterators.nim"; - i_520100727 += 1; - if (!(((draftOptions_520093820[0]).length == L_520100728))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + if (!(i_553655159 < L_553655160)) break Label3; + p_553652379 = draftOptions_553648252[0][chckIndx(i_553655159, 0, (draftOptions_553648252[0]).length - 1)]; + add_754975552(tmp_553652375, createPowerMenu_553652276(p_553652379)); + i_553655159 += 1; + if (!(((draftOptions_553648252[0]).length == L_553655160))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } @@ -22310,2361 +14591,1450 @@ function createDraftMenu_520097941() { }; } else { - F.line = 745; - F.filename = "main.nim"; - add_721421120(tmp_520097943, text_721421252([79,112,112,111,110,101,110,116,32,105,115,32,100,114,97,102,116,105,110,103,46,46,46])); + add_754975552(tmp_553652375, text_754975684([79,112,112,111,110,101,110,116,32,105,115,32,100,114,97,102,116,105,110,103,46,46,46])); } - result_520097942 = tmp_520097943; - framePtr = F.prev; + result_553652374 = tmp_553652375; - return result_520097942; + return result_553652374; } -function clear_520094026() { - var F = {procname: "main.clear", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 176; - F.filename = "main.nim"; - var colontmp__520100764 = (-1); - F.line = 176; - var colontmp__520100765 = (-1); - F.line = 176; - selectedTile_520093829[0] = nimCopy(selectedTile_520093829[0], {Field0: colontmp__520100764, Field1: colontmp__520100765}, NTI1224736771); - F.line = 177; - possibleMoves_520093834[0] = nimCopy(null, [], NTI1291845837); - F.line = 178; - possibleTakes_520093839[0] = nimCopy(null, [], NTI1291845837); - framePtr = F.prev; +function clear_553648458() { + var colontmp__553655196 = (-1); + var colontmp__553655197 = (-1); + selectedTile_553648261[0] = nimCopy(selectedTile_553648261[0], {Field0: colontmp__553655196, Field1: colontmp__553655197}, NTI1476395011); + possibleMoves_553648266[0] = nimCopy(null, [], NTI1543504077); + possibleTakes_553648271[0] = nimCopy(null, [], NTI1543504077); } -function replaceAnySynergies_1442842012(powers_1442842013) { - var result_1442842014 = []; +function replaceAnySynergies_1728054684(powers_1728054685) { + var result_1728054686 = []; - var F = {procname: "power.replaceAnySynergies", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/power.nim", line: 0}; - framePtr = F; BeforeRet: { - F.line = 210; - F.filename = "power.nim"; - result_1442842014 = nimCopy(null, secretSynergize_1442841087(powers_1442842013, secretSynergies_1442840651[0]), NTI1442840978); + result_1728054686 = nimCopy(null, secretSynergize_1728053759(powers_1728054685, secretSynergies_1728053323[0]), NTI1728053650); break BeforeRet; }; - framePtr = F.prev; - return result_1442842014; + return result_1728054686; } -function createPowerSummary_520097948(p_520097949, ofSide_520097950) { +function createPowerSummary_553652380(p_553652381, ofSide_553652382) { var Temporary1; - var result_520097951 = null; - - var F = {procname: "main.createPowerSummary", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 748; - F.filename = "main.nim"; - var class_520097952 = [105,109,97,103,101,32]; - if ((!((side_520093807[0] == ofSide_520097950)) && p_520097949.rotatable)) { - F.line = 750; - class_520097952.push.apply(class_520097952, [32,114,111,116,97,116,101,32]);; - } - - F.line = 752; - var src_520097957 = [46,47,105,99,111,110,115,47]; - if (!(p_520097949.noColor)) { - F.line = 753; - src_520097957.push.apply(src_520097957, reprEnum(ofSide_520097950, NTI1224736777));; - } - - F.line = 755; - F.line = 755; - var tmp_520097961 = tree_721421184(44, []); - F.line = 755; - tmp_520097961.class = "power-grid"; - F.line = 756; - var tmp_520097962 = tree_721421184(24, []); - F.line = 756; - tmp_520097962.class = "title"; - F.line = 757; - if ((showTechnicalNames_520093851[0] && !(eqStrings(p_520097949.technicalName, [])))) { - Temporary1 = p_520097949.technicalName; + var result_553652383 = null; + + var class_553652384 = [105,109,97,103,101,32]; + if ((!((side_553648239[0] == ofSide_553652382)) && p_553652381.rotatable)) { + class_553652384.push.apply(class_553652384, [32,114,111,116,97,116,101,32]);; + } + + var src_553652389 = [46,47,105,99,111,110,115,47]; + if (!(p_553652381.noColor)) { + src_553652389.push.apply(src_553652389, reprEnum(ofSide_553652382, NTI1476395017));; + } + + var tmp_553652393 = tree_754975616(44, []); + tmp_553652393.class = "power-grid"; + var tmp_553652394 = tree_754975616(24, []); + tmp_553652394.class = "title"; + if ((showTechnicalNames_553648283[0] && !(eqStrings(p_553652381.technicalName, [])))) { + Temporary1 = p_553652381.technicalName; } else { - Temporary1 = p_520097949.name; - } - - add_721421120(tmp_520097962, text_721421252(Temporary1)); - F.line = 757; - add_721421120(tmp_520097961, tmp_520097962); - F.line = 758; - var tmp_520097963 = tree_721421184(32, []); - F.line = 758; - tmp_520097963.class = "desc"; - F.line = 759; - add_721421120(tmp_520097963, text_721421252(p_520097949.description)); - F.line = 759; - add_721421120(tmp_520097961, tmp_520097963); - if (!(eqStrings(p_520097949.icon, []))) { - F.line = 761; - var tmp_520097964 = tree_721421184(76, []); - F.line = 761; - tmp_520097964.class = toJSStr(class_520097952); - F.line = 761; - setAttr_721421035(tmp_520097964, "src", toJSStr((src_520097957 || []).concat(p_520097949.icon || []))); - F.line = 761; - add_721421120(tmp_520097961, tmp_520097964); + Temporary1 = p_553652381.name; + } + + add_754975552(tmp_553652394, text_754975684(Temporary1)); + add_754975552(tmp_553652393, tmp_553652394); + var tmp_553652395 = tree_754975616(32, []); + tmp_553652395.class = "desc"; + add_754975552(tmp_553652395, text_754975684(p_553652381.description)); + add_754975552(tmp_553652393, tmp_553652395); + if (!(eqStrings(p_553652381.icon, []))) { + var tmp_553652396 = tree_754975616(76, []); + tmp_553652396.class = toJSStr(class_553652384); + setAttr_754975467(tmp_553652396, "src", toJSStr((src_553652389 || []).concat(p_553652381.icon || []))); + add_754975552(tmp_553652393, tmp_553652396); } else { - F.line = 763; - var tmp_520097965 = tree_721421184(76, []); - F.line = 763; - tmp_520097965.class = toJSStr(class_520097952); - F.line = 763; - setAttr_721421035(tmp_520097965, "src", "./icons/blackbishop.svg"); - F.line = 763; - add_721421120(tmp_520097961, tmp_520097965); + var tmp_553652397 = tree_754975616(76, []); + tmp_553652397.class = toJSStr(class_553652384); + setAttr_754975467(tmp_553652397, "src", "./icons/blackbishop.svg"); + add_754975552(tmp_553652393, tmp_553652397); } - result_520097951 = tmp_520097961; - framePtr = F.prev; + result_553652383 = tmp_553652393; - return result_520097951; + return result_553652383; } -function isSelected_520093927(n_520093928, m_520093929) { - var result_520093930 = false; +function isSelected_553648359(n_553648360, m_553648361) { + var result_553648362 = false; - var F = {procname: "main.isSelected", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; BeforeRet: { - F.line = 154; - F.filename = "main.nim"; - result_520093930 = ((selectedTile_520093829[0].Field1 == n_520093928) && (selectedTile_520093829[0].Field0 == m_520093929)); + result_553648362 = ((selectedTile_553648261[0].Field1 == n_553648360) && (selectedTile_553648261[0].Field0 == m_553648361)); break BeforeRet; }; - framePtr = F.prev; - return result_520093930; + return result_553648362; } -function formatValue_520096976(result_520096979, result_520096979_Idx, value_520096980) { - var F = {procname: "formatValue.formatValue", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/strformat.nim", line: 0}; - framePtr = F; - F.line = 492; - F.filename = "strformat.nim"; - result_520096979[result_520096979_Idx].push.apply(result_520096979[result_520096979_Idx], HEX24_369098760(value_520096980));; - framePtr = F.prev; +function formatValue_553651408(result_553651411, result_553651411_Idx, value_553651412) { + result_553651411[result_553651411_Idx].push.apply(result_553651411[result_553651411_Idx], HEX24_385875976(value_553651412));; } -function busy_520093931() { - var result_520093932 = false; +function busy_553648363() { + var result_553648364 = false; - var F = {procname: "main.busy", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; BeforeRet: { - F.line = 157; - F.filename = "main.nim"; - result_520093932 = ((!(((actionStack_520093877[0]).length == 0)) || !((picksLeft_520093898[0] == 0))) || !(turn_520093808[0])); + result_553648364 = ((!(((actionStack_553648309[0]).length == 0)) || !((picksLeft_553648330[0] == 0))) || !(turn_553648240[0])); break BeforeRet; }; - framePtr = F.prev; - return result_520093932; + return result_553648364; } -function setAttr_721421080(n_721421081, key_721421082, val_721421083) { +function setAttr_754975512(n_754975513, key_754975514, val_754975515) { var Temporary1; - var F = {procname: "vdom.setAttr", prev: framePtr, filename: "/Users/ajayvallurupalli/.nimble/pkgs2/karax-1.3.3-6683189b4456437c2809be72e3404adde77f5c34/karax/vdom.nim", line: 0}; - framePtr = F; - F.line = 259; - F.filename = "vdom.nim"; - if (val_721421083) { + if (val_754975515) { Temporary1 = ""; } else { Temporary1 = null; } - setAttr_721421035(n_721421081, key_721421082, Temporary1); - framePtr = F.prev; + setAttr_754975467(n_754975513, key_754975514, Temporary1); } -function sendAction_520096401(data_520096402, end_520096403) { - var F = {procname: "main.sendAction", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - if ((false && !(practiceMode_520093850[0]))) { - F.line = 228; - F.filename = "main.nim"; +function sendAction_553650833(data_553650834, end_553650835) { + if ((true && !(practiceMode_553648282[0]))) { Label1: { - F.line = 228; - var fmtRes_520096408 = [mnewString(0)]; - F.line = 228; - fmtRes_520096408[0].push.apply(fmtRes_520096408[0], [97,99,116,105,111,110,58]);; - F.line = 228; - formatValue_1442840708(fmtRes_520096408, 0, data_520096402); + var fmtRes_553650840 = [mnewString(0)]; + fmtRes_553650840[0].push.apply(fmtRes_553650840[0], [97,99,116,105,111,110,58]);; + formatValue_1728053380(fmtRes_553650840, 0, data_553650834); }; - peer_520093806[0].Field0(toJSStr(fmtRes_520096408[0])); - if (end_520096403) { - F.line = 230; - turn_520093808[0] = false; - F.line = 231; + peer_553648238[0].Field0(toJSStr(fmtRes_553650840[0])); + if (end_553650835) { + turn_553648240[0] = false; rawEcho([115,101,110,100,32,97,99,116,105,111,110,32,99,104,97,110,103,105,110,103,32,116,117,114,110]); } } - if (end_520096403) { - F.line = 232; - endRound_520096229(); + if (end_553650835) { + endRound_553650661(); } - framePtr = F.prev; } -function sendBuy_520096943(option_520096944, tile_520096945) { - var F = {procname: "main.sendBuy", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 261; - F.filename = "main.nim"; +function sendBuy_553651375(option_553651376, tile_553651377) { Label1: { - F.line = 261; - var fmtRes_520096950 = [mnewString(0)]; - F.line = 261; - fmtRes_520096950[0].push.apply(fmtRes_520096950[0], [98,117,121,44]);; - F.line = 261; - formatValue_1442840708(fmtRes_520096950, 0, option_520096944.Field0); - F.line = 261; - fmtRes_520096950[0].push.apply(fmtRes_520096950[0], [44]);; - F.line = 261; - formatValue_1442840708(fmtRes_520096950, 0, HEX24_369098760(tile_520096945.Field1)); - F.line = 261; - fmtRes_520096950[0].push.apply(fmtRes_520096950[0], [44]);; - F.line = 261; - formatValue_1442840708(fmtRes_520096950, 0, HEX24_369098760(tile_520096945.Field0)); + var fmtRes_553651382 = [mnewString(0)]; + fmtRes_553651382[0].push.apply(fmtRes_553651382[0], [98,117,121,44]);; + formatValue_1728053380(fmtRes_553651382, 0, option_553651376.Field0); + fmtRes_553651382[0].push.apply(fmtRes_553651382[0], [44]);; + formatValue_1728053380(fmtRes_553651382, 0, HEX24_385875976(tile_553651377.Field1)); + fmtRes_553651382[0].push.apply(fmtRes_553651382[0], [44]);; + formatValue_1728053380(fmtRes_553651382, 0, HEX24_385875976(tile_553651377.Field0)); }; - sendAction_520096401(fmtRes_520096950[0], false); - framePtr = F.prev; + sendAction_553650833(fmtRes_553651382[0], false); } -function createBuyButton_520097966(option_520097967, p_520097968) { +function createBuyButton_553652398(option_553652399, p_553652400) { var Temporary1; var Temporary2; - option_520097967 = nimCopy(null, option_520097967, NTI1224736787); + option_553652399 = nimCopy(null, option_553652399, NTI1476395027); -function HEX3Aanonymous_520097996(__520097997, __520097998) { - var F = {procname: "createBuyButton.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 776; - F.filename = "main.nim"; - sendBuy_520096943(option_520097967, p_520097968.tile); - F.line = 777; - buy_1526726764(p_520097968, option_520097967, theBoard_520093825[0], theState_520093826[0]); - F.line = 778; - clear_520094026(); - framePtr = F.prev; +function HEX3Aanonymous_553652428(__553652429, __553652430) { + sendBuy_553651375(option_553652399, p_553652400.tile); + buy_1879048300(p_553652400, option_553652399, theBoard_553648257[0], theState_553648258[0]); + clear_553648458(); } - var result_520097969 = null; + var result_553652401 = null; - var F = {procname: "main.createBuyButton", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; BeforeRet: { - F.line = 766; - F.filename = "main.nim"; - if (!(option_520097967.Field3(p_520097968, theBoard_520093825[0], theState_520093826[0]))) { - F.line = 767; - F.line = 767; - var tmp_520097970 = tree_721421184(44, []); - result_520097969 = tmp_520097970; + if (!(option_553652399.Field3(p_553652400, theBoard_553648257[0], theState_553648258[0]))) { + var tmp_553652402 = tree_754975616(44, []); + result_553652401 = tmp_553652402; break BeforeRet; } else { - F.line = 769; - var cost_520097971 = option_520097967.Field1(p_520097968, theBoard_520093825[0], theState_520093826[0]); - F.line = 770; - var disabled_520097972 = (busy_520093931() || (getMoney_1526726671(side_520093807[0], theState_520093826[0]) < cost_520097971)); - F.line = 772; - if ((0 <= cost_520097971)) { + var cost_553652403 = option_553652399.Field1(p_553652400, theBoard_553648257[0], theState_553648258[0]); + var disabled_553652404 = (busy_553648363() || (getMoney_1879048207(side_553648239[0], theState_553648258[0]) < cost_553652403)); + if ((0 <= cost_553652403)) { Temporary2 = [45]; } else { Temporary2 = [43]; } - var sign_520097973 = nimCopy(null, Temporary2, NTI33554449); - F.line = 773; - var tmp_520097974 = tree_721421184(195, []); - F.line = 773; - setAttr_721421080(tmp_520097974, "disabled", disabled_520097972); - F.line = 774; + var sign_553652405 = nimCopy(null, Temporary2, NTI33554449); + var tmp_553652406 = tree_754975616(195, []); + setAttr_754975512(tmp_553652406, "disabled", disabled_553652404); Label3: { - F.line = 774; - var fmtRes_520097979 = [mnewString(0)]; - F.line = 774; - formatValue_1442840708(fmtRes_520097979, 0, option_520097967.Field0); - F.line = 774; - fmtRes_520097979[0].push.apply(fmtRes_520097979[0], [58,32]);; - F.line = 774; - formatValue_1442840708(fmtRes_520097979, 0, sign_520097973); - F.line = 774; - fmtRes_520097979[0].push.apply(fmtRes_520097979[0], [36]);; - F.line = 774; - formatValue_520096976(fmtRes_520097979, 0, absInt(cost_520097971)); + var fmtRes_553652411 = [mnewString(0)]; + formatValue_1728053380(fmtRes_553652411, 0, option_553652399.Field0); + fmtRes_553652411[0].push.apply(fmtRes_553652411[0], [58,32]);; + formatValue_1728053380(fmtRes_553652411, 0, sign_553652405); + fmtRes_553652411[0].push.apply(fmtRes_553652411[0], [36]);; + formatValue_553651408(fmtRes_553652411, 0, absInt(cost_553652403)); }; - add_721421120(tmp_520097974, text_721421252(fmtRes_520097979[0])); - F.line = 775; - addEventHandler_687867670(tmp_520097974, 0, HEX3Aanonymous_520097996, kxi__); - Temporary1 = tmp_520097974; + add_754975552(tmp_553652406, text_754975684(fmtRes_553652411[0])); + addEventHandler_721422102(tmp_553652406, 0, HEX3Aanonymous_553652428, kxi__); + Temporary1 = tmp_553652406; } - result_520097969 = Temporary1; + result_553652401 = Temporary1; }; - framePtr = F.prev; - - return result_520097969; - -} - -function createPieceProfile_520097999(p_520098000) { - var result_520098001 = null; - - var F = {procname: "main.createPieceProfile", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 781; - F.filename = "main.nim"; - var imgClass_520098002 = []; - if ((!((side_520093807[0] == p_520098000.color)) && p_520098000.rotate)) { - F.line = 783; - imgClass_520098002.push.apply(imgClass_520098002, [114,111,116,97,116,101,32]);; - } - - F.line = 785; - var src_520098007 = [46,47,105,99,111,110,115,47]; - if (p_520098000.colorable) { - F.line = 786; - src_520098007.push.apply(src_520098007, reprEnum(p_520098000.color, NTI1224736777));; - } - - F.line = 788; - var name_520098014 = reprEnum(p_520098000.item, NTI1224736776); - F.line = 790; - F.line = 790; - var tmp_520098015 = tree_721421184(44, []); - F.line = 790; - tmp_520098015.class = " piece-row "; - F.line = 791; - var tmp_520098016 = tree_721421184(24, []); - F.line = 792; - add_721421120(tmp_520098016, text_721421252(name_520098014)); - F.line = 792; - add_721421120(tmp_520098015, tmp_520098016); - F.line = 793; - var tmp_520098017 = tree_721421184(76, []); - F.line = 793; - tmp_520098017.class = toJSStr(imgClass_520098002); - F.line = 793; - setAttr_721421035(tmp_520098017, "src", toJSStr((src_520098007 || []).concat(p_520098000.filePath || []))); - F.line = 793; - add_721421120(tmp_520098015, tmp_520098017); - F.line = 794; - var tmp_520098018 = tree_721421184(32, []); - F.line = 794; - tmp_520098018.class = "take"; - F.line = 795; + + return result_553652401; + +} + +function createPieceProfile_553652431(p_553652432) { + var result_553652433 = null; + + var imgClass_553652434 = []; + if ((!((side_553648239[0] == p_553652432.color)) && p_553652432.rotate)) { + imgClass_553652434.push.apply(imgClass_553652434, [114,111,116,97,116,101,32]);; + } + + var src_553652439 = [46,47,105,99,111,110,115,47]; + if (p_553652432.colorable) { + src_553652439.push.apply(src_553652439, reprEnum(p_553652432.color, NTI1476395017));; + } + + var name_553652446 = reprEnum(p_553652432.item, NTI1476395016); + var tmp_553652447 = tree_754975616(44, []); + tmp_553652447.class = " piece-row "; + var tmp_553652448 = tree_754975616(24, []); + add_754975552(tmp_553652448, text_754975684(name_553652446)); + add_754975552(tmp_553652447, tmp_553652448); + var tmp_553652449 = tree_754975616(76, []); + tmp_553652449.class = toJSStr(imgClass_553652434); + setAttr_754975467(tmp_553652449, "src", toJSStr((src_553652439 || []).concat(p_553652432.filePath || []))); + add_754975552(tmp_553652447, tmp_553652449); + var tmp_553652450 = tree_754975616(32, []); + tmp_553652450.class = "take"; Label1: { - F.line = 795; - var fmtRes_520098024 = [mnewString(0)]; - F.line = 795; - fmtRes_520098024[0].push.apply(fmtRes_520098024[0], [75,105,108,108,115,58,32]);; - F.line = 795; - formatValue_520096976(fmtRes_520098024, 0, p_520098000.piecesTaken); - F.line = 795; - fmtRes_520098024[0].push.apply(fmtRes_520098024[0], [32,112,105,101,99,101,115,46]);; + var fmtRes_553652456 = [mnewString(0)]; + fmtRes_553652456[0].push.apply(fmtRes_553652456[0], [75,105,108,108,115,58,32]);; + formatValue_553651408(fmtRes_553652456, 0, p_553652432.piecesTaken); + fmtRes_553652456[0].push.apply(fmtRes_553652456[0], [32,112,105,101,99,101,115,46]);; }; - add_721421120(tmp_520098018, text_721421252(fmtRes_520098024[0])); - F.line = 795; - add_721421120(tmp_520098015, tmp_520098018); - if (isColor_1224737813(p_520098000, side_520093807[0])) { - F.line = 797; - var tmp_520098019 = tree_721421184(44, []); - F.line = 797; - tmp_520098019.class = "row"; + add_754975552(tmp_553652450, text_754975684(fmtRes_553652456[0])); + add_754975552(tmp_553652447, tmp_553652450); + if (isColor_1476396053(p_553652432, side_553648239[0])) { + var tmp_553652451 = tree_754975616(44, []); + tmp_553652451.class = "row"; Label2: { - F.line = 798; - var option_520098034 = {Field0: [], Field1: null, Field2: null, Field3: null}; - F.line = 247; - F.filename = "iterators.nim"; - var colontmp__520100768 = []; - F.line = 798; - F.filename = "main.nim"; - colontmp__520100768 = theState_520093826[0].Field1[chckIndx(p_520098000.color, 0, (theState_520093826[0].Field1).length - 1)].buys; - F.line = 249; - F.filename = "iterators.nim"; - var i_520100769 = 0; - F.line = 250; - var L_520100770 = (colontmp__520100768).length; + var option_553652466 = {Field0: [], Field1: null, Field2: null, Field3: null}; + var colontmp__553655200 = []; + colontmp__553655200 = theState_553648258[0].Field1[chckIndx(p_553652432.color, 0, (theState_553648258[0].Field1).length - 1)].buys; + var i_553655201 = 0; + var L_553655202 = (colontmp__553655200).length; Label3: { - F.line = 251; Label4: while (true) { - if (!(i_520100769 < L_520100770)) break Label4; - F.line = 798; - F.filename = "main.nim"; - option_520098034 = colontmp__520100768[chckIndx(i_520100769, 0, (colontmp__520100768).length - 1)]; - F.line = 799; - add_721421120(tmp_520098019, createBuyButton_520097966(option_520098034, p_520098000)); - F.line = 13; - F.filename = "iterators.nim"; - i_520100769 += 1; - if (!(((colontmp__520100768).length == L_520100770))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + if (!(i_553655201 < L_553655202)) break Label4; + option_553652466 = colontmp__553655200[chckIndx(i_553655201, 0, (colontmp__553655200).length - 1)]; + add_754975552(tmp_553652451, createBuyButton_553652398(option_553652466, p_553652432)); + i_553655201 += 1; + if (!(((colontmp__553655200).length == L_553655202))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - F.line = 799; - F.filename = "main.nim"; - add_721421120(tmp_520098015, tmp_520098019); + add_754975552(tmp_553652447, tmp_553652451); } - result_520098001 = tmp_520098015; - framePtr = F.prev; + result_553652433 = tmp_553652447; - return result_520098001; + return result_553652433; } -function getKing_1224738009(side_1224738010, board_1224738011) { - var result_1224738012 = {Field0: 0, Field1: 0}; +function getKing_1476396249(side_1476396250, board_1476396251) { + var result_1476396252 = {Field0: 0, Field1: 0}; - var F = {procname: "piece.getKing", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/piece.nim", line: 0}; - framePtr = F; BeforeRet: { Label1: { - F.line = 354; - F.filename = "piece.nim"; - var i_1224738013 = 0; - F.line = 354; - var j_1224738014 = 0; + var i_1476396253 = 0; + var j_1476396254 = 0; Label2: { - F.line = 124; - var i_520100777 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_520100778 = 0; + var i_553655209 = 0; + var i_553655210 = 0; Label3: { - F.line = 129; Label4: while (true) { - if (!(i_520100778 < 8)) break Label4; - F.line = 124; - F.filename = "piece.nim"; - i_520100777 = i_520100778; + if (!(i_553655210 < 8)) break Label4; + i_553655209 = i_553655210; Label5: { - F.line = 125; - var j_520100781 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_520100782 = 0; + var j_553655213 = 0; + var i_553655214 = 0; Label6: { - F.line = 129; Label7: while (true) { - if (!(i_520100782 < 8)) break Label7; - F.line = 125; - F.filename = "piece.nim"; - j_520100781 = i_520100782; - F.line = 354; - i_1224738013 = i_520100777; - F.line = 354; - j_1224738014 = j_520100781; - if (((board_1224738011[chckIndx(i_1224738013, 0, (board_1224738011).length - 1)][chckIndx(j_1224738014, 0, (board_1224738011[chckIndx(i_1224738013, 0, (board_1224738011).length - 1)]).length - 1)].item == 0) && (board_1224738011[chckIndx(i_1224738013, 0, (board_1224738011).length - 1)][chckIndx(j_1224738014, 0, (board_1224738011[chckIndx(i_1224738013, 0, (board_1224738011).length - 1)]).length - 1)].color == side_1224738010))) { - F.line = 356; - result_1224738012 = nimCopy(result_1224738012, board_1224738011[chckIndx(i_1224738013, 0, (board_1224738011).length - 1)][chckIndx(j_1224738014, 0, (board_1224738011[chckIndx(i_1224738013, 0, (board_1224738011).length - 1)]).length - 1)].tile, NTI1224736771); + if (!(i_553655214 < 8)) break Label7; + j_553655213 = i_553655214; + i_1476396253 = i_553655209; + j_1476396254 = j_553655213; + if (((board_1476396251[chckIndx(i_1476396253, 0, (board_1476396251).length - 1)][chckIndx(j_1476396254, 0, (board_1476396251[chckIndx(i_1476396253, 0, (board_1476396251).length - 1)]).length - 1)].item == 0) && (board_1476396251[chckIndx(i_1476396253, 0, (board_1476396251).length - 1)][chckIndx(j_1476396254, 0, (board_1476396251[chckIndx(i_1476396253, 0, (board_1476396251).length - 1)]).length - 1)].color == side_1476396250))) { + result_1476396252 = nimCopy(result_1476396252, board_1476396251[chckIndx(i_1476396253, 0, (board_1476396251).length - 1)][chckIndx(j_1476396254, 0, (board_1476396251[chckIndx(i_1476396253, 0, (board_1476396251).length - 1)]).length - 1)].tile, NTI1476395011); break BeforeRet; } - F.line = 131; - F.filename = "iterators_1.nim"; - i_520100782 = addInt(i_520100782, 1); + i_553655214 = addInt(i_553655214, 1); } }; }; - F.line = 131; - i_520100778 = addInt(i_520100778, 1); + i_553655210 = addInt(i_553655210, 1); } }; }; }; }; - framePtr = F.prev; - return result_1224738012; + return result_1476396252; } -function hasGlass_1560281096(side_1560281097, state_1560281098) { - var result_1560281099 = false; +function hasGlass_1946157064(side_1946157065, state_1946157066) { + var result_1946157067 = false; - var F = {procname: "glass.hasGlass", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/extrapower/glass.nim", line: 0}; - framePtr = F; BeforeRet: { Label1: { - F.line = 21; - F.filename = "glass.nim"; - var g_1560281124 = 0; + var g_1946157092 = 0; Label2: { - F.line = 137; - F.filename = "iterators.nim"; - var v_520100790 = 0; - F.line = 96; - F.filename = "iterators_1.nim"; - var res_520100791 = 0; + var v_553655222 = 0; + var res_553655223 = 0; Label3: { - F.line = 97; Label4: while (true) { - if (!(res_520100791 <= 4)) break Label4; - F.line = 137; - F.filename = "iterators.nim"; - v_520100790 = res_520100791; - F.line = 21; - F.filename = "glass.nim"; - g_1560281124 = v_520100790; - if (isSome_1493177705(state_1560281098.Field1[chckIndx(side_1560281097, 0, (state_1560281098.Field1).length - 1)].glass[chckIndx(g_1560281124, 0, (state_1560281098.Field1[chckIndx(side_1560281097, 0, (state_1560281098.Field1).length - 1)].glass).length - 1)])) { - F.line = 22; - result_1560281099 = true; + if (!(res_553655223 <= 4)) break Label4; + v_553655222 = res_553655223; + g_1946157092 = v_553655222; + if (isSome_1845499264(state_1946157066.Field1[chckIndx(side_1946157065, 0, (state_1946157066.Field1).length - 1)].glass[chckIndx(g_1946157092, 0, (state_1946157066.Field1[chckIndx(side_1946157065, 0, (state_1946157066.Field1).length - 1)].glass).length - 1)])) { + result_1946157067 = true; break BeforeRet; } - F.line = 102; - F.filename = "iterators_1.nim"; - res_520100791 = addInt(res_520100791, 1); + res_553655223 = addInt(res_553655223, 1); } }; }; }; - F.line = 23; - F.filename = "glass.nim"; - result_1560281099 = false; + result_1946157067 = false; break BeforeRet; }; - framePtr = F.prev; - return result_1560281099; + return result_1946157067; } -function isNone_520098344(self_520098346) { - var result_520098347 = false; +function isNone_553652776(self_553652778) { + var result_553652779 = false; - var F = {procname: "isNone.isNone", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/options.nim", line: 0}; - framePtr = F; - F.line = 176; - F.filename = "options.nim"; - result_520098347 = !(self_520098346.has); - framePtr = F.prev; + result_553652779 = !(self_553652778.has); - return result_520098347; + return result_553652779; } -function get_520098361(self_520098363) { - var result_520098364 = null; - var result_520098364_Idx = 0; +function get_553652793(self_553652795) { + var result_553652796 = null; + var result_553652796_Idx = 0; - var F = {procname: "get.get", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/options.nim", line: 0}; - framePtr = F; BeforeRet: { - if (isNone_520098344(self_520098363)) { - F.line = 230; - F.filename = "options.nim"; - raiseException({message: [67,97,110,39,116,32,111,98,116,97,105,110,32,97,32,118,97,108,117,101,32,102,114,111,109,32,97,32,96,110,111,110,101,96], parent: null, m_type: NTI1241514007, name: null, trace: [], up: null}, "UnpackDefect"); + if (isNone_553652776(self_553652795)) { + raiseException({message: [67,97,110,39,116,32,111,98,116,97,105,110,32,97,32,118,97,108,117,101,32,102,114,111,109,32,97,32,96,110,111,110,101,96], parent: null, m_type: NTI1493172247, name: null, trace: [], up: null}, "UnpackDefect"); } - F.line = 231; - result_520098364 = self_520098363; result_520098364_Idx = "val"; + result_553652796 = self_553652795; result_553652796_Idx = "val"; break BeforeRet; }; - framePtr = F.prev; - return [result_520098364, result_520098364_Idx]; + return [result_553652796, result_553652796_Idx]; } -function some_520098393(val_520098395) { - var result_520098396 = ({val: 0, has: false}); +function some_553652825(val_553652827) { + var result_553652828 = ({val: 0, has: false}); - var F = {procname: "some.some", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/options.nim", line: 0}; - framePtr = F; - F.line = 140; - F.filename = "options.nim"; - result_520098396.has = true; - F.line = 141; - result_520098396.val = val_520098395; - framePtr = F.prev; + result_553652828.has = true; + result_553652828.val = val_553652827; - return result_520098396; + return result_553652828; } -function createGlassOnClick_520098331(glass_520098332) { +function createGlassOnClick_553652763(glass_553652764) { -function HEX3Aanonymous_520098337(__520098338, __520098339) { +function HEX3Aanonymous_553652769(__553652770, __553652771) { var Temporary1; - var F = {procname: "createGlassOnClick.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - if ((isNone_520098344(selectedGlass_520093872[0]) || !(((Temporary1 = get_520098361(selectedGlass_520093872[0]), Temporary1)[0][Temporary1[1]] == glass_520098332)))) { - F.line = 866; - F.filename = "main.nim"; - selectedGlass_520093872[0] = nimCopy(selectedGlass_520093872[0], some_520098393(glass_520098332), NTI520093799); + if ((isNone_553652776(selectedGlass_553648304[0]) || !(((Temporary1 = get_553652793(selectedGlass_553648304[0]), Temporary1)[0][Temporary1[1]] == glass_553652764)))) { + selectedGlass_553648304[0] = nimCopy(selectedGlass_553648304[0], some_553652825(glass_553652764), NTI553648231); } else { - F.line = 868; - selectedGlass_520093872[0] = nimCopy(selectedGlass_520093872[0], none_520093864(), NTI520093799); + selectedGlass_553648304[0] = nimCopy(selectedGlass_553648304[0], none_553648296(), NTI553648231); } - framePtr = F.prev; } - var result_520098336 = null; + var result_553652768 = null; - var F = {procname: "main.createGlassOnClick", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 864; - F.filename = "main.nim"; - result_520098336 = HEX3Aanonymous_520098337; - framePtr = F.prev; + result_553652768 = HEX3Aanonymous_553652769; - return result_520098336; + return result_553652768; } -function isSome_520098455(self_520098457) { - var result_520098458 = false; +function isSome_553652887(self_553652889) { + var result_553652890 = false; - var F = {procname: "isSome.isSome", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/options.nim", line: 0}; - framePtr = F; - F.line = 161; - F.filename = "options.nim"; - result_520098458 = self_520098457.has; - framePtr = F.prev; + result_553652890 = self_553652889.has; - return result_520098458; + return result_553652890; } -function cancelAllPicks_520097236() { - var F = {procname: "main.cancelAllPicks", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 354; - F.filename = "main.nim"; - promptHistory_520093892[0] = nimCopy(null, [], NTI1006632986); - F.line = 355; - promptStack_520093897[0] = nimCopy(null, [], NTI1006632986); - F.line = 356; - picks_520093906[0] = nimCopy(null, [], NTI1291845837); - F.line = 357; - picksLeft_520093898[0] = 0; - F.line = 359; - pickOptions_520093901[0] = nimCopy(null, [], NTI1291845837); - F.line = 361; - whenCollected_520093908[0] = null; - F.line = 362; - getPickOptions_520093900[0] = null; - framePtr = F.prev; +function cancelAllPicks_553651668() { + promptHistory_553648324[0] = nimCopy(null, [], NTI1090519066); + promptStack_553648329[0] = nimCopy(null, [], NTI1090519066); + picks_553648338[0] = nimCopy(null, [], NTI1543504077); + picksLeft_553648330[0] = 0; + pickOptions_553648333[0] = nimCopy(null, [], NTI1543504077); + whenCollected_553648340[0] = null; + getPickOptions_553648332[0] = null; } -function cancelAllPicks_520097268(__520097269, __520097270) { - var F = {procname: "main.cancelAllPicks", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 365; - F.filename = "main.nim"; - cancelAllPicks_520097236(); - framePtr = F.prev; +function cancelAllPicks_553651700(__553651701, __553651702) { + cancelAllPicks_553651668(); } -function formatValue_520098486(result_520098489, result_520098489_Idx, value_520098490) { - var F = {procname: "formatValue.formatValue", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/strformat.nim", line: 0}; - framePtr = F; - F.line = 626; - F.filename = "strformat.nim"; - formatValue_1442840708(result_520098489, result_520098489_Idx, reprEnum(value_520098490, NTI1224736789)); - framePtr = F.prev; +function formatValue_553652918(result_553652921, result_553652921_Idx, value_553652922) { + formatValue_1728053380(result_553652921, result_553652921_Idx, reprEnum(value_553652922, NTI1476395029)); } -function reversed_520098595(a_520098597) { - var result_520098598 = []; +function reversed_553653027(a_553653029) { + var result_553653030 = []; - var F = {procname: "reversed.reversed", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/algorithm.nim", line: 0}; - framePtr = F; - F.line = 146; - F.filename = "algorithm.nim"; - var n_520098602 = (a_520098597).length; - F.line = 147; - if (result_520098598.length < chckRange(n_520098602, 0, 2147483647)) { for (var i = result_520098598.length ; i < chckRange(n_520098602, 0, 2147483647) ; ++i) result_520098598.push([]); } - else { result_520098598.length = chckRange(n_520098602, 0, 2147483647); }; + var n_553653034 = (a_553653029).length; + if (result_553653030.length < chckRange(n_553653034, 0, 2147483647)) { for (var i = result_553653030.length ; i < chckRange(n_553653034, 0, 2147483647) ; ++i) result_553653030.push([]); } + else { result_553653030.length = chckRange(n_553653034, 0, 2147483647); }; Label1: { - F.line = 148; - var i_520098611 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_520100816 = 0; + var i_553653043 = 0; + var i_553655248 = 0; Label2: { - F.line = 129; Label3: while (true) { - if (!(i_520100816 < n_520098602)) break Label3; - F.line = 148; - F.filename = "algorithm.nim"; - i_520098611 = i_520100816; - F.line = 148; - result_520098598[chckIndx(i_520098611, 0, (result_520098598).length - 1)] = nimCopy(null, a_520098597[chckIndx(subInt(n_520098602, addInt(i_520098611, 1)), 0, (a_520098597).length - 1)], NTI33554449); - F.line = 131; - F.filename = "iterators_1.nim"; - i_520100816 = addInt(i_520100816, 1); + if (!(i_553655248 < n_553653034)) break Label3; + i_553653043 = i_553655248; + result_553653030[chckIndx(i_553653043, 0, (result_553653030).length - 1)] = nimCopy(null, a_553653029[chckIndx(subInt(n_553653034, addInt(i_553653043, 1)), 0, (a_553653029).length - 1)], NTI33554449); + i_553655248 = addInt(i_553655248, 1); } }; }; - framePtr = F.prev; - return result_520098598; + return result_553653030; } -function cycle_520098569(s_520098571, n_520098572) { - var result_520098573 = []; +function cycle_553653001(s_553653003, n_553653004) { + var result_553653005 = []; - var F = {procname: "cycle.cycle", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/collections/sequtils.nim", line: 0}; - framePtr = F; - F.line = 169; - F.filename = "sequtils.nim"; - result_520098573 = nimCopy(null, newSeq_503317026(chckRange(mulInt(n_520098572, (s_520098571).length), 0, 2147483647)), NTI503316801); - F.line = 170; - var o_520098580 = 0; + result_553653005 = nimCopy(null, newSeq_536871458(chckRange(mulInt(n_553653004, (s_553653003).length), 0, 2147483647)), NTI536871233); + var o_553653012 = 0; Label1: { - F.line = 171; - var x_520098585 = 0; - F.line = 126; - F.filename = "iterators_1.nim"; - var colontmp__520100822 = 0; - F.line = 171; - F.filename = "sequtils.nim"; - colontmp__520100822 = n_520098572; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_520100823 = 0; + var x_553653017 = 0; + var colontmp__553655254 = 0; + colontmp__553655254 = n_553653004; + var i_553655255 = 0; Label2: { - F.line = 129; Label3: while (true) { - if (!(i_520100823 < colontmp__520100822)) break Label3; - F.line = 171; - F.filename = "sequtils.nim"; - x_520098585 = i_520100823; + if (!(i_553655255 < colontmp__553655254)) break Label3; + x_553653017 = i_553655255; Label4: { - F.line = 172; - var e_520098589 = []; - F.line = 18; - F.filename = "iterators.nim"; - var i_520100820 = 0; + var e_553653021 = []; + var i_553655252 = 0; Label5: { - F.line = 19; Label6: while (true) { - if (!(i_520100820 < (s_520098571).length)) break Label6; - F.line = 172; - F.filename = "sequtils.nim"; - e_520098589 = s_520098571[chckIndx(i_520100820, 0, (s_520098571).length - 1)]; - F.line = 173; - result_520098573[chckIndx(o_520098580, 0, (result_520098573).length - 1)] = nimCopy(null, e_520098589, NTI33554449); - F.line = 174; - o_520098580 = addInt(o_520098580, 1); - F.line = 13; - F.filename = "iterators.nim"; - i_520100820 += 1; + if (!(i_553655252 < (s_553653003).length)) break Label6; + e_553653021 = s_553653003[chckIndx(i_553655252, 0, (s_553653003).length - 1)]; + result_553653005[chckIndx(o_553653012, 0, (result_553653005).length - 1)] = nimCopy(null, e_553653021, NTI33554449); + o_553653012 = addInt(o_553653012, 1); + i_553655252 += 1; } }; }; - F.line = 131; - F.filename = "iterators_1.nim"; - i_520100823 = addInt(i_520100823, 1); + i_553655255 = addInt(i_553655255, 1); } }; }; - framePtr = F.prev; - return result_520098573; + return result_553653005; } -function packageGlass_1560281132(pieces_1560281133, tiles_1560281134, action_1560281135) { - tiles_1560281134 = nimCopy(null, tiles_1560281134, NTI1560281120); +function packageGlass_1946157100(pieces_1946157101, tiles_1946157102, action_1946157103) { + tiles_1946157102 = nimCopy(null, tiles_1946157102, NTI1946157088); -function HEX3Aanonymous_1560281209(board_1560281210, state_1560281211) { - var F = {procname: "packageGlass.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/extrapower/glass.nim", line: 0}; - framePtr = F; +function HEX3Aanonymous_1946157177(board_1946157178, state_1946157179) { Label1: { - F.line = 31; - F.filename = "glass.nim"; - var i_1560281212 = 0; - F.line = 31; - var j_1560281213 = 0; + var i_1946157180 = 0; + var j_1946157181 = 0; Label2: { - F.line = 124; - F.filename = "piece.nim"; - var i_520100838 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_520100839 = 0; + var i_553655270 = 0; + var i_553655271 = 0; Label3: { - F.line = 129; Label4: while (true) { - if (!(i_520100839 < 8)) break Label4; - F.line = 124; - F.filename = "piece.nim"; - i_520100838 = i_520100839; + if (!(i_553655271 < 8)) break Label4; + i_553655270 = i_553655271; Label5: { - F.line = 125; - var j_520100842 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_520100843 = 0; + var j_553655274 = 0; + var i_553655275 = 0; Label6: { - F.line = 129; Label7: while (true) { - if (!(i_520100843 < 8)) break Label7; - F.line = 125; - F.filename = "piece.nim"; - j_520100842 = i_520100843; - F.line = 31; - F.filename = "glass.nim"; - i_1560281212 = i_520100838; - F.line = 31; - j_1560281213 = j_520100842; + if (!(i_553655275 < 8)) break Label7; + j_553655274 = i_553655275; + i_1946157180 = i_553655270; + j_1946157181 = j_553655274; Label8: { - F.line = 32; - var indexIndex_1560281237 = 0; - F.line = 32; - var index_1560281238 = 0; - F.line = 182; - F.filename = "iterators.nim"; - var i_520100834 = 0; - F.line = 183; - var L_520100835 = (indexes_1560281208).length; + var indexIndex_1946157205 = 0; + var index_1946157206 = 0; + var i_553655266 = 0; + var L_553655267 = (indexes_1946157176).length; Label9: { - F.line = 184; Label10: while (true) { - if (!(i_520100834 < L_520100835)) break Label10; - F.line = 32; - F.filename = "glass.nim"; - indexIndex_1560281237 = i_520100834; - F.line = 32; - index_1560281238 = indexes_1560281208[chckIndx(i_520100834, 0, (indexes_1560281208).length - 1)]; - if ((index_1560281238 == board_1560281210[chckIndx(i_1560281212, 0, (board_1560281210).length - 1)][chckIndx(j_1560281213, 0, (board_1560281210[chckIndx(i_1560281212, 0, (board_1560281210).length - 1)]).length - 1)].index)) { - F.line = 34; - action_1560281135(board_1560281210[chckIndx(i_1560281212, 0, (board_1560281210).length - 1)][chckIndx(j_1560281213, 0, (board_1560281210[chckIndx(i_1560281212, 0, (board_1560281210).length - 1)]).length - 1)], tiles_1560281134[chckIndx(indexIndex_1560281237, 0, (tiles_1560281134).length - 1)], board_1560281210, state_1560281211); + if (!(i_553655266 < L_553655267)) break Label10; + indexIndex_1946157205 = i_553655266; + index_1946157206 = indexes_1946157176[chckIndx(i_553655266, 0, (indexes_1946157176).length - 1)]; + if ((index_1946157206 == board_1946157178[chckIndx(i_1946157180, 0, (board_1946157178).length - 1)][chckIndx(j_1946157181, 0, (board_1946157178[chckIndx(i_1946157180, 0, (board_1946157178).length - 1)]).length - 1)].index)) { + action_1946157103(board_1946157178[chckIndx(i_1946157180, 0, (board_1946157178).length - 1)][chckIndx(j_1946157181, 0, (board_1946157178[chckIndx(i_1946157180, 0, (board_1946157178).length - 1)]).length - 1)], tiles_1946157102[chckIndx(indexIndex_1946157205, 0, (tiles_1946157102).length - 1)], board_1946157178, state_1946157179); } - F.line = 13; - F.filename = "iterators.nim"; - i_520100834 += 1; - if (!(((indexes_1560281208).length == L_520100835))) { - F.line = 187; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(187, 11) `len(a) == L` the length of the seq changed while iterating over it")); + i_553655266 += 1; + if (!(((indexes_1946157176).length == L_553655267))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(187, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - F.line = 131; - F.filename = "iterators_1.nim"; - i_520100843 = addInt(i_520100843, 1); + i_553655275 = addInt(i_553655275, 1); } }; }; - F.line = 131; - i_520100839 = addInt(i_520100839, 1); + i_553655271 = addInt(i_553655271, 1); } }; }; }; - framePtr = F.prev; } - var result_1560281136 = null; + var result_1946157104 = null; - var F = {procname: "glass.packageGlass", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/extrapower/glass.nim", line: 0}; - framePtr = F; - F.line = 29; - F.filename = "glass.nim"; Label1: { - F.line = 1024; - F.filename = "sequtils.nim"; - var iHEX60gensym0_1560281192 = 0; - F.line = 1025; - var resultHEX60gensym0_1560281199 = newSeq_1442841512(chckRange((pieces_1560281133).length, 0, 2147483647)); + var iHEX60gensym0_1946157160 = 0; + var resultHEX60gensym0_1946157167 = newSeq_1728054184(chckRange((pieces_1946157101).length, 0, 2147483647)); Label2: { - F.line = 1026; - var it_1560281203 = ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}); - F.line = 249; - F.filename = "iterators.nim"; - var i_520100828 = 0; - F.line = 250; - var L_520100829 = (pieces_1560281133).length; + var it_1946157171 = ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}); + var i_553655260 = 0; + var L_553655261 = (pieces_1946157101).length; Label3: { - F.line = 251; Label4: while (true) { - if (!(i_520100828 < L_520100829)) break Label4; - F.line = 1026; - F.filename = "sequtils.nim"; - it_1560281203 = pieces_1560281133[chckIndx(i_520100828, 0, (pieces_1560281133).length - 1)]; - F.line = 29; - F.filename = "glass.nim"; - resultHEX60gensym0_1560281199[chckIndx(iHEX60gensym0_1560281192, 0, (resultHEX60gensym0_1560281199).length - 1)] = it_1560281203.index; - F.line = 1028; - F.filename = "sequtils.nim"; - iHEX60gensym0_1560281192 = addInt(iHEX60gensym0_1560281192, 1); - F.line = 13; - F.filename = "iterators.nim"; - i_520100828 += 1; - if (!(((pieces_1560281133).length == L_520100829))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + if (!(i_553655260 < L_553655261)) break Label4; + it_1946157171 = pieces_1946157101[chckIndx(i_553655260, 0, (pieces_1946157101).length - 1)]; + resultHEX60gensym0_1946157167[chckIndx(iHEX60gensym0_1946157160, 0, (resultHEX60gensym0_1946157167).length - 1)] = it_1946157171.index; + iHEX60gensym0_1946157160 = addInt(iHEX60gensym0_1946157160, 1); + i_553655260 += 1; + if (!(((pieces_1946157101).length == L_553655261))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; }; - var indexes_1560281208 = nimCopy(null, resultHEX60gensym0_1560281199, NTI1442841292); - F.line = 30; - F.filename = "glass.nim"; - result_1560281136 = HEX3Aanonymous_1560281209; - framePtr = F.prev; + var indexes_1946157176 = nimCopy(null, resultHEX60gensym0_1946157167, NTI1728053964); + result_1946157104 = HEX3Aanonymous_1946157177; - return result_1560281136; + return result_1946157104; } -function createSendGlass_520096966(group_520096967) { +function createSendGlass_553651398(group_553651399) { -function HEX3Aanonymous_520096970() { - var F = {procname: "createSendGlass.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 265; - F.filename = "main.nim"; +function HEX3Aanonymous_553651402() { Label1: { - F.line = 265; - var fmtRes_520096975 = [mnewString(0)]; - F.line = 265; - fmtRes_520096975[0].push.apply(fmtRes_520096975[0], [99,97,115,116,105,110,103,99,111,109,112,108,101,116,101,44]);; - F.line = 265; - formatValue_520096976(fmtRes_520096975, 0, group_520096967); + var fmtRes_553651407 = [mnewString(0)]; + fmtRes_553651407[0].push.apply(fmtRes_553651407[0], [99,97,115,116,105,110,103,99,111,109,112,108,101,116,101,44]);; + formatValue_553651408(fmtRes_553651407, 0, group_553651399); }; - sendAction_520096401(fmtRes_520096975[0], true); - framePtr = F.prev; + sendAction_553650833(fmtRes_553651407[0], true); } - var result_520096969 = null; + var result_553651401 = null; - var F = {procname: "main.createSendGlass", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 264; - F.filename = "main.nim"; - result_520096969 = HEX3Aanonymous_520096970; - framePtr = F.prev; + result_553651401 = HEX3Aanonymous_553651402; - return result_520096969; + return result_553651401; } -function createCancelGlass_520096982(group_520096983) { +function createCancelGlass_553651414(group_553651415) { -function HEX3Aanonymous_520096986() { - var F = {procname: "createCancelGlass.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; +function HEX3Aanonymous_553651418() { Label1: { - F.line = 269; - F.filename = "main.nim"; - var i_520096987 = 0; - F.line = 269; - var j_520096988 = 0; + var i_553651419 = 0; + var j_553651420 = 0; Label2: { - F.line = 124; - F.filename = "piece.nim"; - var i_520100853 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_520100854 = 0; + var i_553655285 = 0; + var i_553655286 = 0; Label3: { - F.line = 129; Label4: while (true) { - if (!(i_520100854 < 8)) break Label4; - F.line = 124; - F.filename = "piece.nim"; - i_520100853 = i_520100854; + if (!(i_553655286 < 8)) break Label4; + i_553655285 = i_553655286; Label5: { - F.line = 125; - var j_520100857 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_520100858 = 0; + var j_553655289 = 0; + var i_553655290 = 0; Label6: { - F.line = 129; Label7: while (true) { - if (!(i_520100858 < 8)) break Label7; - F.line = 125; - F.filename = "piece.nim"; - j_520100857 = i_520100858; - F.line = 269; - F.filename = "main.nim"; - i_520096987 = i_520100853; - F.line = 269; - j_520096988 = j_520100857; - F.line = 270; - F.line = 652; - F.filename = "sequtils.nim"; - var resultHEX60gensym88_520096998 = newSeq_520096990(0); + if (!(i_553655290 < 8)) break Label7; + j_553655289 = i_553655290; + i_553651419 = i_553655285; + j_553651420 = j_553655289; + var resultHEX60gensym88_553651430 = newSeq_553651422(0); Label8: { - F.line = 653; - var it_520097002 = {Field0: {Field0: 0, Field1: 0}, Field1: 0, Field2: 0}; - F.line = 247; - F.filename = "iterators.nim"; - var colontmp__520100848 = []; - F.line = 270; - F.filename = "main.nim"; - colontmp__520100848 = theBoard_520093825[0][chckIndx(i_520096987, 0, (theBoard_520093825[0]).length - 1)][chckIndx(j_520096988, 0, (theBoard_520093825[0][chckIndx(i_520096987, 0, (theBoard_520093825[0]).length - 1)]).length - 1)].casts; - F.line = 249; - F.filename = "iterators.nim"; - var i_520100849 = 0; - F.line = 250; - var L_520100850 = (colontmp__520100848).length; + var it_553651434 = {Field0: {Field0: 0, Field1: 0}, Field1: 0, Field2: 0}; + var colontmp__553655280 = []; + colontmp__553655280 = theBoard_553648257[0][chckIndx(i_553651419, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553651420, 0, (theBoard_553648257[0][chckIndx(i_553651419, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].casts; + var i_553655281 = 0; + var L_553655282 = (colontmp__553655280).length; Label9: { - F.line = 251; Label10: while (true) { - if (!(i_520100849 < L_520100850)) break Label10; - F.line = 653; - F.filename = "sequtils.nim"; - it_520097002 = colontmp__520100848[chckIndx(i_520100849, 0, (colontmp__520100848).length - 1)]; - if (!((it_520097002.Field1 == group_520096983))) { - F.line = 654; - var Temporary11 = nimCopy(null, it_520097002, NTI1224736788); - resultHEX60gensym88_520096998.push(Temporary11);; + if (!(i_553655281 < L_553655282)) break Label10; + it_553651434 = colontmp__553655280[chckIndx(i_553655281, 0, (colontmp__553655280).length - 1)]; + if (!((it_553651434.Field1 == group_553651415))) { + var Temporary11 = nimCopy(null, it_553651434, NTI1476395028); + resultHEX60gensym88_553651430.push(Temporary11);; } - F.line = 13; - F.filename = "iterators.nim"; - i_520100849 += 1; - if (!(((colontmp__520100848).length == L_520100850))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + i_553655281 += 1; + if (!(((colontmp__553655280).length == L_553655282))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - theBoard_520093825[0][chckIndx(i_520096987, 0, (theBoard_520093825[0]).length - 1)][chckIndx(j_520096988, 0, (theBoard_520093825[0][chckIndx(i_520096987, 0, (theBoard_520093825[0]).length - 1)]).length - 1)].casts = nimCopy(null, resultHEX60gensym88_520096998, NTI520095757); - F.line = 131; - F.filename = "iterators_1.nim"; - i_520100858 = addInt(i_520100858, 1); + theBoard_553648257[0][chckIndx(i_553651419, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553651420, 0, (theBoard_553648257[0][chckIndx(i_553651419, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].casts = nimCopy(null, resultHEX60gensym88_553651430, NTI553650189); + i_553655290 = addInt(i_553655290, 1); } }; }; - F.line = 131; - i_520100854 = addInt(i_520100854, 1); + i_553655286 = addInt(i_553655286, 1); } }; }; }; - F.line = 271; - F.filename = "main.nim"; Label12: { - F.line = 271; - var fmtRes_520097011 = [mnewString(0)]; - F.line = 271; - fmtRes_520097011[0].push.apply(fmtRes_520097011[0], [99,97,115,116,105,110,103,99,97,110,99,101,108,44]);; - F.line = 271; - formatValue_520096976(fmtRes_520097011, 0, group_520096983); + var fmtRes_553651443 = [mnewString(0)]; + fmtRes_553651443[0].push.apply(fmtRes_553651443[0], [99,97,115,116,105,110,103,99,97,110,99,101,108,44]);; + formatValue_553651408(fmtRes_553651443, 0, group_553651415); }; - sendAction_520096401(fmtRes_520097011[0], true); - framePtr = F.prev; + sendAction_553650833(fmtRes_553651443[0], true); } - var result_520096985 = null; + var result_553651417 = null; - var F = {procname: "main.createCancelGlass", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 268; - F.filename = "main.nim"; - result_520096985 = HEX3Aanonymous_520096986; - framePtr = F.prev; + result_553651417 = HEX3Aanonymous_553651418; - return result_520096985; + return result_553651417; } -function HEX5BHEX5D_520098875(s_520098877, i_520098878) { - var result_520098879 = null; +function HEX5BHEX5D_553653307(s_553653309, i_553653310) { + var result_553653311 = null; - var F = {procname: "[].[]", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/indices.nim", line: 0}; - framePtr = F; - F.line = 30; - F.filename = "indices.nim"; - result_520098879 = s_520098877[chckIndx(subInt((s_520098877).length, i_520098878), 0, (s_520098877).length - 1)]; - framePtr = F.prev; + result_553653311 = s_553653309[chckIndx(subInt((s_553653309).length, i_553653310), 0, (s_553653309).length - 1)]; - return result_520098879; + return result_553653311; } -function createGlassMenu_520098422() { +function createGlassMenu_553652854() { var Temporary5; -function HEX3Aanonymous_520098500(__520098501, __520098502) { +function HEX3Aanonymous_553652932(__553652933, __553652934) { -function HEX3Aanonymous_520098620() { - var F = {procname: ":anonymous.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; +function HEX3Aanonymous_553653052() { Label1: { - F.line = 908; - F.filename = "main.nim"; - var piece_520098661 = {Field0: 0, Field1: 0}; - F.line = 908; - var tile_520098662 = {Field0: 0, Field1: 0}; - if (!((modInt((picks_520093906[0]).length, 2) == 0))) { - F.line = 130; - F.filename = "piece.nim"; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/the-playground/chess/src/piece.nim(130, 5) `s.len mod 2 == 0` ")); + var piece_553653093 = {Field0: 0, Field1: 0}; + var tile_553653094 = {Field0: 0, Field1: 0}; + if (!((modInt((picks_553648338[0]).length, 2) == 0))) { + failedAssertImpl_268435541([112,105,101,99,101,46,110,105,109,40,49,51,48,44,32,53,41,32,96,115,46,108,101,110,32,109,111,100,32,50,32,61,61,32,48,96,32]); } - F.line = 131; - var index_520100804 = 0; + var index_553655236 = 0; Label2: { - F.line = 132; Label3: while (true) { - if (!(index_520100804 < (picks_520093906[0]).length)) break Label3; - F.line = 908; - F.filename = "main.nim"; - piece_520098661 = nimCopy(piece_520098661, picks_520093906[0][chckIndx(index_520100804, 0, (picks_520093906[0]).length - 1)], NTI1224736771); - F.line = 908; - tile_520098662 = nimCopy(tile_520098662, picks_520093906[0][chckIndx(addInt(index_520100804, 1), 0, (picks_520093906[0]).length - 1)], NTI1224736771); - F.line = 909; - rawEcho([112,105,101,99,101,116,105,108,101], HEX24_1224737476(piece_520098661), [116,105,108,101,44,32], HEX24_1224737476(tile_520098662)); - F.line = 910; - var Temporary4 = nimCopy(null, HEX5BHEX5D_1224737124(theBoard_520093825[0], piece_520098661), NTI1224736794); - pieces_520098525.push(Temporary4);; - F.line = 911; - var Temporary5 = nimCopy(null, tile_520098662, NTI1224736771); - tiles_520098530.push(Temporary5);; - F.line = 912; - newCasting_520098520.push({Field0: nimCopy(null, tile_520098662, NTI1224736771), Field1: group_520098519, Field2: glass_520098475});; - F.line = 918; - HEX5BHEX5D_1224737124(theBoard_520093825[0], piece_520098661).casts.push({Field0: nimCopy(null, tile_520098662, NTI1224736771), Field1: group_520098519, Field2: glass_520098475});; - F.line = 924; + if (!(index_553655236 < (picks_553648338[0]).length)) break Label3; + piece_553653093 = nimCopy(piece_553653093, picks_553648338[0][chckIndx(index_553655236, 0, (picks_553648338[0]).length - 1)], NTI1476395011); + tile_553653094 = nimCopy(tile_553653094, picks_553648338[0][chckIndx(addInt(index_553655236, 1), 0, (picks_553648338[0]).length - 1)], NTI1476395011); + rawEcho([112,105,101,99,101,116,105,108,101], HEX24_1476395716(piece_553653093), [116,105,108,101,44,32], HEX24_1476395716(tile_553653094)); + var Temporary4 = nimCopy(null, HEX5BHEX5D_1476395364(theBoard_553648257[0], piece_553653093), NTI1476395034); + pieces_553652957.push(Temporary4);; + var Temporary5 = nimCopy(null, tile_553653094, NTI1476395011); + tiles_553652962.push(Temporary5);; + newCasting_553652952.push({Field0: nimCopy(null, tile_553653094, NTI1476395011), Field1: group_553652951, Field2: glass_553652907});; + HEX5BHEX5D_1476395364(theBoard_553648257[0], piece_553653093).casts.push({Field0: nimCopy(null, tile_553653094, NTI1476395011), Field1: group_553652951, Field2: glass_553652907});; Label6: { - F.line = 924; - var fmtRes_520098799 = [mnewString(0)]; - F.line = 924; - fmtRes_520098799[0].push.apply(fmtRes_520098799[0], [99,97,115,116,105,110,103,115,116,97,114,116,44]);; - F.line = 924; - formatValue_520096976(fmtRes_520098799, 0, piece_520098661.Field1); - F.line = 924; - fmtRes_520098799[0].push.apply(fmtRes_520098799[0], [44]);; - F.line = 924; - formatValue_520096976(fmtRes_520098799, 0, piece_520098661.Field0); - F.line = 924; - fmtRes_520098799[0].push.apply(fmtRes_520098799[0], [44]);; - F.line = 924; - formatValue_520096976(fmtRes_520098799, 0, tile_520098662.Field1); - F.line = 924; - fmtRes_520098799[0].push.apply(fmtRes_520098799[0], [44]);; - F.line = 924; - formatValue_520096976(fmtRes_520098799, 0, tile_520098662.Field0); - F.line = 924; - fmtRes_520098799[0].push.apply(fmtRes_520098799[0], [44]);; - F.line = 924; - formatValue_520096976(fmtRes_520098799, 0, group_520098519); - F.line = 924; - fmtRes_520098799[0].push.apply(fmtRes_520098799[0], [44]);; - F.line = 924; - formatValue_520098486(fmtRes_520098799, 0, glass_520098475); + var fmtRes_553653231 = [mnewString(0)]; + fmtRes_553653231[0].push.apply(fmtRes_553653231[0], [99,97,115,116,105,110,103,115,116,97,114,116,44]);; + formatValue_553651408(fmtRes_553653231, 0, piece_553653093.Field1); + fmtRes_553653231[0].push.apply(fmtRes_553653231[0], [44]);; + formatValue_553651408(fmtRes_553653231, 0, piece_553653093.Field0); + fmtRes_553653231[0].push.apply(fmtRes_553653231[0], [44]);; + formatValue_553651408(fmtRes_553653231, 0, tile_553653094.Field1); + fmtRes_553653231[0].push.apply(fmtRes_553653231[0], [44]);; + formatValue_553651408(fmtRes_553653231, 0, tile_553653094.Field0); + fmtRes_553653231[0].push.apply(fmtRes_553653231[0], [44]);; + formatValue_553651408(fmtRes_553653231, 0, group_553652951); + fmtRes_553653231[0].push.apply(fmtRes_553653231[0], [44]);; + formatValue_553652918(fmtRes_553653231, 0, glass_553652907); }; - sendAction_520096401(fmtRes_520098799[0], false); - F.line = 925; - var _ = newGroup_1224737263(theState_520093826[0]); - F.line = 134; - F.filename = "piece.nim"; - index_520100804 = addInt(index_520100804, 2); + sendAction_553650833(fmtRes_553653231[0], false); + var _ = newGroup_1476395503(theState_553648258[0]); + index_553655236 = addInt(index_553655236, 2); } }; }; - F.line = 927; - F.filename = "main.nim"; rawEcho([97,100,100,105,110,103,32,97,99,116,105,111,110,83,116,97,99,107]); - F.line = 928; - actionStack_520093877[0].push({Field0: ([67,97,115,116,105,110,103,32] || []).concat(reprEnum(glass_520098475, NTI1224736789) || []), Field1: 1, Field2: group_520098519, Field3: packageGlass_1560281132(pieces_520098525, tiles_520098530, action_520098546), Field4: true, Field5: false, Field6: createSendGlass_520096966(group_520098519), Field7: createCancelGlass_520096982(group_520098519)});; - F.line = 938; + actionStack_553648309[0].push({Field0: ([67,97,115,116,105,110,103,32] || []).concat(reprEnum(glass_553652907, NTI1476395029) || []), Field1: 1, Field2: group_553652951, Field3: packageGlass_1946157100(pieces_553652957, tiles_553652962, action_553652978), Field4: true, Field5: false, Field6: createSendGlass_553651398(group_553652951), Field7: createCancelGlass_553651414(group_553652951)});; rawEcho([97,118,116,105,111,110,115,116,97,99,107,32,97,100,100,101,100]); - F.line = 939; - sendAction_520096401([112,97,115,115], true); - framePtr = F.prev; + sendAction_553650833([112,97,115,115], true); } -function HEX3Aanonymous_520098851() { - var result_520098852 = [[]]; +function HEX3Aanonymous_553653283() { + var result_553653284 = [[]]; - var F = {procname: ":anonymous.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - if ((modInt(picksLeft_520093898[0], 2) == 0)) { + if ((modInt(picksLeft_553648330[0], 2) == 0)) { Label1: { - F.line = 942; - F.filename = "main.nim"; - var i_520098853 = 0; - F.line = 942; - var j_520098854 = 0; + var i_553653285 = 0; + var j_553653286 = 0; Label2: { - F.line = 124; - F.filename = "piece.nim"; - var i_520100808 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_520100809 = 0; + var i_553655240 = 0; + var i_553655241 = 0; Label3: { - F.line = 129; Label4: while (true) { - if (!(i_520100809 < 8)) break Label4; - F.line = 124; - F.filename = "piece.nim"; - i_520100808 = i_520100809; + if (!(i_553655241 < 8)) break Label4; + i_553655240 = i_553655241; Label5: { - F.line = 125; - var j_520100812 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_520100813 = 0; + var j_553655244 = 0; + var i_553655245 = 0; Label6: { - F.line = 129; Label7: while (true) { - if (!(i_520100813 < 8)) break Label7; - F.line = 125; - F.filename = "piece.nim"; - j_520100812 = i_520100813; - F.line = 942; - F.filename = "main.nim"; - i_520098853 = i_520100808; - F.line = 942; - j_520098854 = j_520100812; - if (isColor_1224737813(theBoard_520093825[0][chckIndx(i_520098853, 0, (theBoard_520093825[0]).length - 1)][chckIndx(j_520098854, 0, (theBoard_520093825[0][chckIndx(i_520098853, 0, (theBoard_520093825[0]).length - 1)]).length - 1)], side_520093807[0])) { - F.line = 944; - var Temporary8 = nimCopy(null, theBoard_520093825[0][chckIndx(i_520098853, 0, (theBoard_520093825[0]).length - 1)][chckIndx(j_520098854, 0, (theBoard_520093825[0][chckIndx(i_520098853, 0, (theBoard_520093825[0]).length - 1)]).length - 1)].tile, NTI1224736771); - result_520098852[0].push(Temporary8);; + if (!(i_553655245 < 8)) break Label7; + j_553655244 = i_553655245; + i_553653285 = i_553655240; + j_553653286 = j_553655244; + if (isColor_1476396053(theBoard_553648257[0][chckIndx(i_553653285, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553653286, 0, (theBoard_553648257[0][chckIndx(i_553653285, 0, (theBoard_553648257[0]).length - 1)]).length - 1)], side_553648239[0])) { + var Temporary8 = nimCopy(null, theBoard_553648257[0][chckIndx(i_553653285, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553653286, 0, (theBoard_553648257[0][chckIndx(i_553653285, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].tile, NTI1476395011); + result_553653284[0].push(Temporary8);; } - F.line = 131; - F.filename = "iterators_1.nim"; - i_520100813 = addInt(i_520100813, 1); + i_553655245 = addInt(i_553655245, 1); } }; }; - F.line = 131; - i_520100809 = addInt(i_520100809, 1); + i_553655241 = addInt(i_553655241, 1); } }; }; }; } else { - F.line = 946; - F.filename = "main.nim"; - var condition_520098874 = get_520097161(theState_520093826[0].Field1[chckIndx(side_520093807[0], 0, (theState_520093826[0].Field1).length - 1)].glass[chckIndx(glass_520098475, 0, (theState_520093826[0].Field1[chckIndx(side_520093807[0], 0, (theState_520093826[0].Field1).length - 1)].glass).length - 1)]).Field2; - F.line = 948; - add_1224737298(result_520098852, 0, condition_520098874(side_520093807[0], HEX5BHEX5D_1224737124(theBoard_520093825[0], HEX5BHEX5D_520098875(picks_520093906[0], 1)), theBoard_520093825[0], theState_520093826[0])); + var condition_553653306 = get_553651593(theState_553648258[0].Field1[chckIndx(side_553648239[0], 0, (theState_553648258[0].Field1).length - 1)].glass[chckIndx(glass_553652907, 0, (theState_553648258[0].Field1[chckIndx(side_553648239[0], 0, (theState_553648258[0].Field1).length - 1)].glass).length - 1)]).Field2; + add_1476395538(result_553653284, 0, condition_553653306(side_553648239[0], HEX5BHEX5D_1476395364(theBoard_553648257[0], HEX5BHEX5D_553653307(picks_553648338[0], 1)), theBoard_553648257[0], theState_553648258[0])); } - framePtr = F.prev; - return result_520098852[0]; + return result_553653284[0]; } - var F = {procname: "createGlassMenu.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 894; - F.filename = "main.nim"; - var strength_520098518 = get_520097161(theState_520093826[0].Field1[chckIndx(side_520093807[0], 0, (theState_520093826[0].Field1).length - 1)].glass[chckIndx(glass_520098475, 0, (theState_520093826[0].Field1[chckIndx(side_520093807[0], 0, (theState_520093826[0].Field1).length - 1)].glass).length - 1)]).Field0; - F.line = 895; - var group_520098519 = newGroup_1224737263(theState_520093826[0]); - F.line = 896; - var newCasting_520098520 = []; - F.line = 897; - var pieces_520098525 = []; - F.line = 898; - var tiles_520098530 = []; - F.line = 899; - var action_520098546 = get_520097161(theState_520093826[0].Field1[chckIndx(side_520093807[0], 0, (theState_520093826[0].Field1).length - 1)].glass[chckIndx(glass_520098475, 0, (theState_520093826[0].Field1[chckIndx(side_520093807[0], 0, (theState_520093826[0].Field1).length - 1)].glass).length - 1)]).Field1; - F.line = 901; - picksLeft_520093898[0] = mulInt(strength_520098518, 2); - F.line = 905; + var strength_553652950 = get_553651593(theState_553648258[0].Field1[chckIndx(side_553648239[0], 0, (theState_553648258[0].Field1).length - 1)].glass[chckIndx(glass_553652907, 0, (theState_553648258[0].Field1[chckIndx(side_553648239[0], 0, (theState_553648258[0].Field1).length - 1)].glass).length - 1)]).Field0; + var group_553652951 = newGroup_1476395503(theState_553648258[0]); + var newCasting_553652952 = []; + var pieces_553652957 = []; + var tiles_553652962 = []; + var action_553652978 = get_553651593(theState_553648258[0].Field1[chckIndx(side_553648239[0], 0, (theState_553648258[0].Field1).length - 1)].glass[chckIndx(glass_553652907, 0, (theState_553648258[0].Field1[chckIndx(side_553648239[0], 0, (theState_553648258[0].Field1).length - 1)].glass).length - 1)]).Field1; + picksLeft_553648330[0] = mulInt(strength_553652950, 2); Label1: { - F.line = 903; - var fmtRes_520098551 = [mnewString(0)]; - F.line = 903; - fmtRes_520098551[0].push.apply(fmtRes_520098551[0], [80,105,99,107,32,97,32,112,105,101,99,101,32,116,111,32,115,116,97,114,116,32,99,97,115,116,105,110,103,32]);; - F.line = 903; - formatValue_520098486(fmtRes_520098551, 0, glass_520098475); - F.line = 903; - fmtRes_520098551[0].push.apply(fmtRes_520098551[0], [46]);; + var fmtRes_553652983 = [mnewString(0)]; + fmtRes_553652983[0].push.apply(fmtRes_553652983[0], [80,105,99,107,32,97,32,112,105,101,99,101,32,116,111,32,115,116,97,114,116,32,99,97,115,116,105,110,103,32]);; + formatValue_553652918(fmtRes_553652983, 0, glass_553652907); + fmtRes_553652983[0].push.apply(fmtRes_553652983[0], [46]);; }; Label2: { - F.line = 904; - var fmtRes_520098562 = [mnewString(0)]; - F.line = 904; - fmtRes_520098562[0].push.apply(fmtRes_520098562[0], [80,105,99,107,32,97,32,116,105,108,101,32,116,111,32,99,97,115,116,32]);; - F.line = 904; - formatValue_520098486(fmtRes_520098562, 0, glass_520098475); - F.line = 904; - fmtRes_520098562[0].push.apply(fmtRes_520098562[0], [32,111,110,46]);; + var fmtRes_553652994 = [mnewString(0)]; + fmtRes_553652994[0].push.apply(fmtRes_553652994[0], [80,105,99,107,32,97,32,116,105,108,101,32,116,111,32,99,97,115,116,32]);; + formatValue_553652918(fmtRes_553652994, 0, glass_553652907); + fmtRes_553652994[0].push.apply(fmtRes_553652994[0], [32,111,110,46]);; }; - promptStack_520093897[0] = nimCopy(null, reversed_520098595(cycle_520098569([nimCopy(null, fmtRes_520098551[0], NTI33554449), nimCopy(null, fmtRes_520098562[0], NTI33554449)], chckRange(strength_520098518, 0, 2147483647))), NTI520097539); - if (!(((promptStack_520093897[0]).length == picksLeft_520093898[0]))) { - F.line = 906; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/the-playground/chess/src/main.nim(906, 21) `promptStack.len == picksLeft` ")); + promptStack_553648329[0] = nimCopy(null, reversed_553653027(cycle_553653001([nimCopy(null, fmtRes_553652983[0], NTI33554449), nimCopy(null, fmtRes_553652994[0], NTI33554449)], chckRange(strength_553652950, 0, 2147483647))), NTI553651971); + if (!(((promptStack_553648329[0]).length == picksLeft_553648330[0]))) { + failedAssertImpl_268435541([109,97,105,110,46,110,105,109,40,57,48,54,44,32,50,49,41,32,96,112,114,111,109,112,116,83,116,97,99,107,46,108,101,110,32,61,61,32,112,105,99,107,115,76,101,102,116,96,32]); } - F.line = 907; - whenCollected_520093908[0] = HEX3Aanonymous_520098620; - F.line = 940; - getPickOptions_520093900[0] = HEX3Aanonymous_520098851; - F.line = 949; - pickOptions_520093901[0] = nimCopy(null, getPickOptions_520093900[0](), NTI520093867); - F.line = 950; - clear_520094026(); - framePtr = F.prev; + whenCollected_553648340[0] = HEX3Aanonymous_553653052; + getPickOptions_553648332[0] = HEX3Aanonymous_553653283; + pickOptions_553648333[0] = nimCopy(null, getPickOptions_553648332[0](), NTI553648299); + clear_553648458(); } - var result_520098423 = null; - - var F = {procname: "main.createGlassMenu", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 871; - F.filename = "main.nim"; - F.line = 871; - var tmp_520098424 = tree_721421184(44, []); - F.line = 871; - tmp_520098424.class = " glass-menu "; - F.line = 872; - var tmp_520098425 = tree_721421184(24, []); - F.line = 872; - tmp_520098425.class = "title"; - F.line = 873; - add_721421120(tmp_520098425, text_721421252([71,108,97,115,115,101,115])); - F.line = 873; - add_721421120(tmp_520098424, tmp_520098425); - F.line = 875; - var tmp_520098426 = tree_721421184(44, []); - F.line = 875; - tmp_520098426.class = "glasses"; + var result_553652855 = null; + + var tmp_553652856 = tree_754975616(44, []); + tmp_553652856.class = " glass-menu "; + var tmp_553652857 = tree_754975616(24, []); + tmp_553652857.class = "title"; + add_754975552(tmp_553652857, text_754975684([71,108,97,115,115,101,115])); + add_754975552(tmp_553652856, tmp_553652857); + var tmp_553652858 = tree_754975616(44, []); + tmp_553652858.class = "glasses"; Label1: { - F.line = 876; - var glass_520098437 = 0; + var glass_553652869 = 0; Label2: { - F.line = 137; - F.filename = "iterators.nim"; - var v_520100795 = 0; - F.line = 96; - F.filename = "iterators_1.nim"; - var res_520100796 = 0; + var v_553655227 = 0; + var res_553655228 = 0; Label3: { - F.line = 97; Label4: while (true) { - if (!(res_520100796 <= 4)) break Label4; - F.line = 137; - F.filename = "iterators.nim"; - v_520100795 = res_520100796; - F.line = 876; - F.filename = "main.nim"; - glass_520098437 = v_520100795; - F.line = 877; - var tmp_520098427 = tree_721421184(44, []); - F.line = 877; - tmp_520098427.class = "glass"; - if (isSome_1493177705(theState_520093826[0].Field1[chckIndx(side_520093807[0], 0, (theState_520093826[0].Field1).length - 1)].glass[chckIndx(glass_520098437, 0, (theState_520093826[0].Field1[chckIndx(side_520093807[0], 0, (theState_520093826[0].Field1).length - 1)].glass).length - 1)])) { - F.line = 879; - var tmp_520098428 = tree_721421184(71, []); - F.line = 879; - tmp_520098428.class = toJSStr(([99,105,114,99,108,101,32] || []).concat(toLower_1040194968(reprEnum(glass_520098437, NTI1224736789)) || [])); - F.line = 879; - addEventHandler_687867670(tmp_520098428, 0, createGlassOnClick_520098331(glass_520098437), kxi__); - F.line = 879; - add_721421120(tmp_520098427, tmp_520098428); + if (!(res_553655228 <= 4)) break Label4; + v_553655227 = res_553655228; + glass_553652869 = v_553655227; + var tmp_553652859 = tree_754975616(44, []); + tmp_553652859.class = "glass"; + if (isSome_1845499264(theState_553648258[0].Field1[chckIndx(side_553648239[0], 0, (theState_553648258[0].Field1).length - 1)].glass[chckIndx(glass_553652869, 0, (theState_553648258[0].Field1[chckIndx(side_553648239[0], 0, (theState_553648258[0].Field1).length - 1)].glass).length - 1)])) { + var tmp_553652860 = tree_754975616(71, []); + tmp_553652860.class = toJSStr(([99,105,114,99,108,101,32] || []).concat(toLower_1157635480(reprEnum(glass_553652869, NTI1476395029)) || [])); + addEventHandler_721422102(tmp_553652860, 0, createGlassOnClick_553652763(glass_553652869), kxi__); + add_754975552(tmp_553652859, tmp_553652860); } else { - F.line = 881; - var tmp_520098429 = tree_721421184(71, []); - F.line = 881; - tmp_520098429.class = "circle empty"; - F.line = 881; - add_721421120(tmp_520098427, tmp_520098429); + var tmp_553652861 = tree_754975616(71, []); + tmp_553652861.class = "circle empty"; + add_754975552(tmp_553652859, tmp_553652861); } - F.line = 882; - var tmp_520098430 = tree_721421184(32, []); - F.line = 883; - add_721421120(tmp_520098430, text_721421252(reprEnum(glass_520098437, NTI1224736789))); - F.line = 883; - add_721421120(tmp_520098427, tmp_520098430); - F.line = 883; - add_721421120(tmp_520098426, tmp_520098427); - F.line = 102; - F.filename = "iterators_1.nim"; - res_520100796 = addInt(res_520100796, 1); + var tmp_553652862 = tree_754975616(32, []); + add_754975552(tmp_553652862, text_754975684(reprEnum(glass_553652869, NTI1476395029))); + add_754975552(tmp_553652859, tmp_553652862); + add_754975552(tmp_553652858, tmp_553652859); + res_553655228 = addInt(res_553655228, 1); } }; }; }; - F.line = 883; - F.filename = "main.nim"; - add_721421120(tmp_520098424, tmp_520098426); - if (isSome_520098455(selectedGlass_520093872[0])) { - F.line = 885; - var glass_520098475 = (Temporary5 = get_520098361(selectedGlass_520093872[0]), Temporary5)[0][Temporary5[1]]; - if (!((picksLeft_520093898[0] == 0))) { - F.line = 887; - var tmp_520098431 = tree_721421184(195, []); - F.line = 887; - tmp_520098431.class = "cancel"; - F.line = 887; - addEventHandler_687867670(tmp_520098431, 0, cancelAllPicks_520097268, kxi__); - F.line = 888; - add_721421120(tmp_520098431, text_721421252([67,97,110,99,101,108])); - F.line = 888; - add_721421120(tmp_520098424, tmp_520098431); - } - - F.line = 890; - var zerocond_520098480 = ((glass_520098475 == 1) && (theState_520093826[0].Field0.turnNumber <= 1)); - F.line = 891; - var tmp_520098432 = tree_721421184(195, []); - F.line = 891; - tmp_520098432.class = "use"; - F.line = 891; - setAttr_721421080(tmp_520098432, "disabled", (busy_520093931() || zerocond_520098480)); - F.line = 892; + add_754975552(tmp_553652856, tmp_553652858); + if (isSome_553652887(selectedGlass_553648304[0])) { + var glass_553652907 = (Temporary5 = get_553652793(selectedGlass_553648304[0]), Temporary5)[0][Temporary5[1]]; + if (!((picksLeft_553648330[0] == 0))) { + var tmp_553652863 = tree_754975616(195, []); + tmp_553652863.class = "cancel"; + addEventHandler_721422102(tmp_553652863, 0, cancelAllPicks_553651700, kxi__); + add_754975552(tmp_553652863, text_754975684([67,97,110,99,101,108])); + add_754975552(tmp_553652856, tmp_553652863); + } + + var zerocond_553652912 = ((glass_553652907 == 1) && (theState_553648258[0].Field0.turnNumber <= 1)); + var tmp_553652864 = tree_754975616(195, []); + tmp_553652864.class = "use"; + setAttr_754975512(tmp_553652864, "disabled", (busy_553648363() || zerocond_553652912)); Label6: { - F.line = 892; - var fmtRes_520098485 = [mnewString(0)]; - F.line = 892; - fmtRes_520098485[0].push.apply(fmtRes_520098485[0], [85,115,101,32]);; - F.line = 892; - formatValue_520098486(fmtRes_520098485, 0, glass_520098475); + var fmtRes_553652917 = [mnewString(0)]; + fmtRes_553652917[0].push.apply(fmtRes_553652917[0], [85,115,101,32]);; + formatValue_553652918(fmtRes_553652917, 0, glass_553652907); }; - add_721421120(tmp_520098432, text_721421252(fmtRes_520098485[0])); - F.line = 893; - addEventHandler_687867670(tmp_520098432, 0, HEX3Aanonymous_520098500, kxi__); - F.line = 871; - add_721421120(tmp_520098424, tmp_520098432); - } - - result_520098423 = tmp_520098424; - framePtr = F.prev; - - return result_520098423; - -} - -function HEX24_520099141(x_520099143) { - var result_520099144 = [[]]; - - var F = {procname: "$.$", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/std/objectdollar.nim", line: 0}; - framePtr = F; - F.line = 19; - F.filename = "miscdollars.nim"; - result_520099144[0] = nimCopy(null, [40], NTI33554449); - F.line = 21; - var countHEX60gensym179_520099155 = 0; - if ((0 < countHEX60gensym179_520099155)) { - F.line = 23; - result_520099144[0].push.apply(result_520099144[0], [44,32]);; - } - - F.line = 25; - result_520099144[0].push.apply(result_520099144[0], [110,101,120,116,73,110,100,101,120]);; - F.line = 26; - result_520099144[0].push.apply(result_520099144[0], [58,32]);; - F.line = 27; - countHEX60gensym179_520099155 += 1; - F.line = 33; - addQuoted_838862213(result_520099144, 0, x_520099143.nextIndex); - if ((0 < countHEX60gensym179_520099155)) { - F.line = 23; - result_520099144[0].push.apply(result_520099144[0], [44,32]);; - } - - F.line = 25; - result_520099144[0].push.apply(result_520099144[0], [110,101,120,116,71,114,111,117,112]);; - F.line = 26; - result_520099144[0].push.apply(result_520099144[0], [58,32]);; - F.line = 27; - countHEX60gensym179_520099155 += 1; - F.line = 33; - addQuoted_838862213(result_520099144, 0, x_520099143.nextGroup); - if ((0 < countHEX60gensym179_520099155)) { - F.line = 23; - result_520099144[0].push.apply(result_520099144[0], [44,32]);; - } - - F.line = 25; - result_520099144[0].push.apply(result_520099144[0], [114,97,110,100,83,101,101,100]);; - F.line = 26; - result_520099144[0].push.apply(result_520099144[0], [58,32]);; - F.line = 27; - countHEX60gensym179_520099155 += 1; - F.line = 33; - addQuoted_838862213(result_520099144, 0, x_520099143.randSeed); - if ((0 < countHEX60gensym179_520099155)) { - F.line = 23; - result_520099144[0].push.apply(result_520099144[0], [44,32]);; - } - - F.line = 25; - result_520099144[0].push.apply(result_520099144[0], [116,117,114,110,78,117,109,98,101,114]);; - F.line = 26; - result_520099144[0].push.apply(result_520099144[0], [58,32]);; - F.line = 27; - countHEX60gensym179_520099155 += 1; - F.line = 33; - addQuoted_838862213(result_520099144, 0, x_520099143.turnNumber); - F.line = 39; - result_520099144[0].push.apply(result_520099144[0], [41]);; - framePtr = F.prev; - - return result_520099144[0]; - -} - -function HEX24_520096612(x_520096614) { - var result_520096615 = [[]]; - - var F = {procname: "$.$", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/dollars.nim", line: 0}; - framePtr = F; - F.line = 19; - F.filename = "miscdollars.nim"; - result_520096615[0] = nimCopy(null, [40], NTI33554449); - F.line = 21; - var countHEX60gensym53_520096626 = 0; - if ((0 < countHEX60gensym53_520096626)) { - F.line = 23; - result_520096615[0].push.apply(result_520096615[0], [44,32]);; - } - - F.line = 25; - result_520096615[0].push.apply(result_520096615[0], [110,97,109,101]);; - F.line = 26; - result_520096615[0].push.apply(result_520096615[0], [58,32]);; - F.line = 27; - countHEX60gensym53_520096626 += 1; - F.line = 33; - addQuoted_1493176842(result_520096615, 0, x_520096614["Field0"]); - if ((0 < countHEX60gensym53_520096626)) { - F.line = 23; - result_520096615[0].push.apply(result_520096615[0], [44,32]);; - } - - F.line = 25; - result_520096615[0].push.apply(result_520096615[0], [116,117,114,110,115]);; - F.line = 26; - result_520096615[0].push.apply(result_520096615[0], [58,32]);; - F.line = 27; - countHEX60gensym53_520096626 += 1; - F.line = 33; - addQuoted_838862213(result_520096615, 0, x_520096614["Field1"]); - if ((0 < countHEX60gensym53_520096626)) { - F.line = 23; - result_520096615[0].push.apply(result_520096615[0], [44,32]);; - } - - F.line = 25; - result_520096615[0].push.apply(result_520096615[0], [103,114,111,117,112]);; - F.line = 26; - result_520096615[0].push.apply(result_520096615[0], [58,32]);; - F.line = 27; - countHEX60gensym53_520096626 += 1; - F.line = 33; - addQuoted_838862213(result_520096615, 0, x_520096614["Field2"]); - if ((0 < countHEX60gensym53_520096626)) { - F.line = 23; - result_520096615[0].push.apply(result_520096615[0], [44,32]);; - } - - F.line = 25; - result_520096615[0].push.apply(result_520096615[0], [97,99,116,105,111,110]);; - F.line = 26; - result_520096615[0].push.apply(result_520096615[0], [58,32]);; - F.line = 27; - countHEX60gensym53_520096626 += 1; - F.line = 35; - result_520096615[0].push.apply(result_520096615[0], [46,46,46]);; - if ((0 < countHEX60gensym53_520096626)) { - F.line = 23; - result_520096615[0].push.apply(result_520096615[0], [44,32]);; - } - - F.line = 25; - result_520096615[0].push.apply(result_520096615[0], [99,97,110,99,101,108,97,98,108,101]);; - F.line = 26; - result_520096615[0].push.apply(result_520096615[0], [58,32]);; - F.line = 27; - countHEX60gensym53_520096626 += 1; - F.line = 33; - addQuoted_1493175983(result_520096615, 0, x_520096614["Field4"]); - if ((0 < countHEX60gensym53_520096626)) { - F.line = 23; - result_520096615[0].push.apply(result_520096615[0], [44,32]);; - } - - F.line = 25; - result_520096615[0].push.apply(result_520096615[0], [112,97,115,115,116,104,114,111,117,103,104]);; - F.line = 26; - result_520096615[0].push.apply(result_520096615[0], [58,32]);; - F.line = 27; - countHEX60gensym53_520096626 += 1; - F.line = 33; - addQuoted_1493175983(result_520096615, 0, x_520096614["Field5"]); - if ((0 < countHEX60gensym53_520096626)) { - F.line = 23; - result_520096615[0].push.apply(result_520096615[0], [44,32]);; - } - - F.line = 25; - result_520096615[0].push.apply(result_520096615[0], [115,101,110,100]);; - F.line = 26; - result_520096615[0].push.apply(result_520096615[0], [58,32]);; - F.line = 27; - countHEX60gensym53_520096626 += 1; - F.line = 35; - result_520096615[0].push.apply(result_520096615[0], [46,46,46]);; - if ((0 < countHEX60gensym53_520096626)) { - F.line = 23; - result_520096615[0].push.apply(result_520096615[0], [44,32]);; - } - - F.line = 25; - result_520096615[0].push.apply(result_520096615[0], [99,97,110,99,101,108]);; - F.line = 26; - result_520096615[0].push.apply(result_520096615[0], [58,32]);; - F.line = 27; - countHEX60gensym53_520096626 += 1; - F.line = 35; - result_520096615[0].push.apply(result_520096615[0], [46,46,46]);; - F.line = 39; - result_520096615[0].push.apply(result_520096615[0], [41]);; - framePtr = F.prev; - - return result_520096615[0]; - -} - -function addQuoted_520096606(s_520096608, s_520096608_Idx, x_520096609) { - var F = {procname: "addQuoted.addQuoted", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; - F.line = 2539; - F.filename = "system.nim"; - s_520096608[s_520096608_Idx].push.apply(s_520096608[s_520096608_Idx], HEX24_520096612(x_520096609));; - framePtr = F.prev; - - -} - -function collectionToString_520096573(x_520096575, prefix_520096576, separator_520096577, suffix_520096578) { - var result_520096579 = [[]]; - - var F = {procname: "collectionToString.collectionToString", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/dollars.nim", line: 0}; - framePtr = F; - F.line = 90; - F.filename = "dollars.nim"; - result_520096579[0] = nimCopy(null, prefix_520096576, NTI33554449); - F.line = 91; - var firstElement_520096580 = true; + add_754975552(tmp_553652864, text_754975684(fmtRes_553652917[0])); + addEventHandler_721422102(tmp_553652864, 0, HEX3Aanonymous_553652932, kxi__); + add_754975552(tmp_553652856, tmp_553652864); + } + + result_553652855 = tmp_553652856; + + return result_553652855; + +} + +function HEX24_553653573(x_553653575) { + var result_553653576 = [[]]; + + result_553653576[0] = nimCopy(null, [40], NTI33554449); + var countHEX60gensym179_553653587 = 0; + if ((0 < countHEX60gensym179_553653587)) { + result_553653576[0].push.apply(result_553653576[0], [44,32]);; + } + + result_553653576[0].push.apply(result_553653576[0], [110,101,120,116,73,110,100,101,120]);; + result_553653576[0].push.apply(result_553653576[0], [58,32]);; + countHEX60gensym179_553653587 += 1; + addQuoted_889193861(result_553653576, 0, x_553653575.nextIndex); + if ((0 < countHEX60gensym179_553653587)) { + result_553653576[0].push.apply(result_553653576[0], [44,32]);; + } + + result_553653576[0].push.apply(result_553653576[0], [110,101,120,116,71,114,111,117,112]);; + result_553653576[0].push.apply(result_553653576[0], [58,32]);; + countHEX60gensym179_553653587 += 1; + addQuoted_889193861(result_553653576, 0, x_553653575.nextGroup); + if ((0 < countHEX60gensym179_553653587)) { + result_553653576[0].push.apply(result_553653576[0], [44,32]);; + } + + result_553653576[0].push.apply(result_553653576[0], [114,97,110,100,83,101,101,100]);; + result_553653576[0].push.apply(result_553653576[0], [58,32]);; + countHEX60gensym179_553653587 += 1; + addQuoted_889193861(result_553653576, 0, x_553653575.randSeed); + if ((0 < countHEX60gensym179_553653587)) { + result_553653576[0].push.apply(result_553653576[0], [44,32]);; + } + + result_553653576[0].push.apply(result_553653576[0], [116,117,114,110,78,117,109,98,101,114]);; + result_553653576[0].push.apply(result_553653576[0], [58,32]);; + countHEX60gensym179_553653587 += 1; + addQuoted_889193861(result_553653576, 0, x_553653575.turnNumber); + result_553653576[0].push.apply(result_553653576[0], [41]);; + + return result_553653576[0]; + +} + +function HEX24_553651044(x_553651046) { + var result_553651047 = [[]]; + + result_553651047[0] = nimCopy(null, [40], NTI33554449); + var countHEX60gensym53_553651058 = 0; + if ((0 < countHEX60gensym53_553651058)) { + result_553651047[0].push.apply(result_553651047[0], [44,32]);; + } + + result_553651047[0].push.apply(result_553651047[0], [110,97,109,101]);; + result_553651047[0].push.apply(result_553651047[0], [58,32]);; + countHEX60gensym53_553651058 += 1; + addQuoted_1845498401(result_553651047, 0, x_553651046["Field0"]); + if ((0 < countHEX60gensym53_553651058)) { + result_553651047[0].push.apply(result_553651047[0], [44,32]);; + } + + result_553651047[0].push.apply(result_553651047[0], [116,117,114,110,115]);; + result_553651047[0].push.apply(result_553651047[0], [58,32]);; + countHEX60gensym53_553651058 += 1; + addQuoted_889193861(result_553651047, 0, x_553651046["Field1"]); + if ((0 < countHEX60gensym53_553651058)) { + result_553651047[0].push.apply(result_553651047[0], [44,32]);; + } + + result_553651047[0].push.apply(result_553651047[0], [103,114,111,117,112]);; + result_553651047[0].push.apply(result_553651047[0], [58,32]);; + countHEX60gensym53_553651058 += 1; + addQuoted_889193861(result_553651047, 0, x_553651046["Field2"]); + if ((0 < countHEX60gensym53_553651058)) { + result_553651047[0].push.apply(result_553651047[0], [44,32]);; + } + + result_553651047[0].push.apply(result_553651047[0], [97,99,116,105,111,110]);; + result_553651047[0].push.apply(result_553651047[0], [58,32]);; + countHEX60gensym53_553651058 += 1; + result_553651047[0].push.apply(result_553651047[0], [46,46,46]);; + if ((0 < countHEX60gensym53_553651058)) { + result_553651047[0].push.apply(result_553651047[0], [44,32]);; + } + + result_553651047[0].push.apply(result_553651047[0], [99,97,110,99,101,108,97,98,108,101]);; + result_553651047[0].push.apply(result_553651047[0], [58,32]);; + countHEX60gensym53_553651058 += 1; + addQuoted_1845497542(result_553651047, 0, x_553651046["Field4"]); + if ((0 < countHEX60gensym53_553651058)) { + result_553651047[0].push.apply(result_553651047[0], [44,32]);; + } + + result_553651047[0].push.apply(result_553651047[0], [112,97,115,115,116,104,114,111,117,103,104]);; + result_553651047[0].push.apply(result_553651047[0], [58,32]);; + countHEX60gensym53_553651058 += 1; + addQuoted_1845497542(result_553651047, 0, x_553651046["Field5"]); + if ((0 < countHEX60gensym53_553651058)) { + result_553651047[0].push.apply(result_553651047[0], [44,32]);; + } + + result_553651047[0].push.apply(result_553651047[0], [115,101,110,100]);; + result_553651047[0].push.apply(result_553651047[0], [58,32]);; + countHEX60gensym53_553651058 += 1; + result_553651047[0].push.apply(result_553651047[0], [46,46,46]);; + if ((0 < countHEX60gensym53_553651058)) { + result_553651047[0].push.apply(result_553651047[0], [44,32]);; + } + + result_553651047[0].push.apply(result_553651047[0], [99,97,110,99,101,108]);; + result_553651047[0].push.apply(result_553651047[0], [58,32]);; + countHEX60gensym53_553651058 += 1; + result_553651047[0].push.apply(result_553651047[0], [46,46,46]);; + result_553651047[0].push.apply(result_553651047[0], [41]);; + + return result_553651047[0]; + +} + +function addQuoted_553651038(s_553651040, s_553651040_Idx, x_553651041) { + s_553651040[s_553651040_Idx].push.apply(s_553651040[s_553651040_Idx], HEX24_553651044(x_553651041));; + + +} + +function collectionToString_553651005(x_553651007, prefix_553651008, separator_553651009, suffix_553651010) { + var result_553651011 = [[]]; + + result_553651011[0] = nimCopy(null, prefix_553651008, NTI33554449); + var firstElement_553651012 = true; Label1: { - F.line = 92; - var value_520096602 = {Field0: [], Field1: 0, Field2: 0, Field3: null, Field4: false, Field5: false, Field6: null, Field7: null}; - F.line = 249; - F.filename = "iterators.nim"; - var i_520100863 = 0; - F.line = 250; - var L_520100864 = (x_520096575).length; + var value_553651034 = {Field0: [], Field1: 0, Field2: 0, Field3: null, Field4: false, Field5: false, Field6: null, Field7: null}; + var i_553655295 = 0; + var L_553655296 = (x_553651007).length; Label2: { - F.line = 251; Label3: while (true) { - if (!(i_520100863 < L_520100864)) break Label3; - F.line = 92; - F.filename = "dollars.nim"; - value_520096602 = x_520096575[i_520100863]; - if (firstElement_520096580) { - F.line = 94; - firstElement_520096580 = false; + if (!(i_553655295 < L_553655296)) break Label3; + value_553651034 = x_553651007[i_553655295]; + if (firstElement_553651012) { + firstElement_553651012 = false; } else { - F.line = 96; - result_520096579[0].push.apply(result_520096579[0], separator_520096577);; + result_553651011[0].push.apply(result_553651011[0], separator_553651009);; } - F.line = 105; - addQuoted_520096606(result_520096579, 0, value_520096602); - F.line = 13; - F.filename = "iterators.nim"; - i_520100863 += 1; - if (!(((x_520096575).length == L_520100864))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + addQuoted_553651038(result_553651011, 0, value_553651034); + i_553655295 += 1; + if (!(((x_553651007).length == L_553655296))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - F.line = 106; - F.filename = "dollars.nim"; - result_520096579[0].push.apply(result_520096579[0], suffix_520096578);; - framePtr = F.prev; + result_553651011[0].push.apply(result_553651011[0], suffix_553651010);; - return result_520096579[0]; + return result_553651011[0]; } -function HEX24_520096569(x_520096571) { - var result_520096572 = []; +function HEX24_553651001(x_553651003) { + var result_553651004 = []; - var F = {procname: "$.$", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/dollars.nim", line: 0}; - framePtr = F; - F.line = 117; - F.filename = "dollars.nim"; - result_520096572 = nimCopy(null, collectionToString_520096573(x_520096571, [64,91], [44,32], [93]), NTI33554449); - framePtr = F.prev; + result_553651004 = nimCopy(null, collectionToString_553651005(x_553651003, [64,91], [44,32], [93]), NTI33554449); - return result_520096572; + return result_553651004; } -function formatValue_520099256(result_520099259, result_520099259_Idx, value_520099260) { - var F = {procname: "formatValue.formatValue", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/strformat.nim", line: 0}; - framePtr = F; - F.line = 626; - F.filename = "strformat.nim"; - formatValue_1442840708(result_520099259, result_520099259_Idx, HEX24_520096569(value_520099260)); - framePtr = F.prev; +function formatValue_553653688(result_553653691, result_553653691_Idx, value_553653692) { + formatValue_1728053380(result_553653691, result_553653691_Idx, HEX24_553651001(value_553653692)); } -function pop_520097217(s_520097219, s_520097219_Idx) { - var result_520097220 = []; +function pop_553651649(s_553651651, s_553651651_Idx) { + var result_553651652 = []; - var F = {procname: "pop.pop", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; - F.line = 1702; - F.filename = "system.nim"; - var L_520097224 = subInt((s_520097219[s_520097219_Idx]).length, 1); - F.line = 1707; - result_520097220 = nimCopy(null, s_520097219[s_520097219_Idx][chckIndx(L_520097224, 0, (s_520097219[s_520097219_Idx]).length - 1)], NTI33554449); - F.line = 1708; - if (s_520097219[s_520097219_Idx].length < chckRange(L_520097224, 0, 2147483647)) { for (var i = s_520097219[s_520097219_Idx].length ; i < chckRange(L_520097224, 0, 2147483647) ; ++i) s_520097219[s_520097219_Idx].push([]); } - else { s_520097219[s_520097219_Idx].length = chckRange(L_520097224, 0, 2147483647); }; - framePtr = F.prev; + var L_553651656 = subInt((s_553651651[s_553651651_Idx]).length, 1); + result_553651652 = nimCopy(null, s_553651651[s_553651651_Idx][chckIndx(L_553651656, 0, (s_553651651[s_553651651_Idx]).length - 1)], NTI33554449); + if (s_553651651[s_553651651_Idx].length < chckRange(L_553651656, 0, 2147483647)) { for (var i = s_553651651[s_553651651_Idx].length ; i < chckRange(L_553651656, 0, 2147483647) ; ++i) s_553651651[s_553651651_Idx].push([]); } + else { s_553651651[s_553651651_Idx].length = chckRange(L_553651656, 0, 2147483647); }; - return result_520097220; + return result_553651652; } -function sendMove_520096914(moveType_520096915, start_520096916, to_520096917) { - var F = {procname: "main.sendMove", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 258; - F.filename = "main.nim"; +function sendMove_553651346(moveType_553651347, start_553651348, to_553651349) { Label1: { - F.line = 258; - var fmtRes_520096922 = [mnewString(0)]; - F.line = 258; - formatValue_1442840708(fmtRes_520096922, 0, moveType_520096915); - F.line = 258; - fmtRes_520096922[0].push.apply(fmtRes_520096922[0], [44]);; - F.line = 258; - formatValue_1442840708(fmtRes_520096922, 0, HEX24_369098760(start_520096916.Field1)); - F.line = 258; - fmtRes_520096922[0].push.apply(fmtRes_520096922[0], [44]);; - F.line = 707; - F.filename = "strformat.nim"; - add_33556373(fmtRes_520096922, 0, (toJSStr(HEX24_369098760(start_520096916.Field0)))); - F.line = 258; - F.filename = "main.nim"; - fmtRes_520096922[0].push.apply(fmtRes_520096922[0], [44]);; - F.line = 258; - formatValue_1442840708(fmtRes_520096922, 0, HEX24_369098760(to_520096917.Field1)); - F.line = 258; - fmtRes_520096922[0].push.apply(fmtRes_520096922[0], [44]);; - F.line = 258; - formatValue_1442840708(fmtRes_520096922, 0, HEX24_369098760(to_520096917.Field0)); + var fmtRes_553651354 = [mnewString(0)]; + formatValue_1728053380(fmtRes_553651354, 0, moveType_553651347); + fmtRes_553651354[0].push.apply(fmtRes_553651354[0], [44]);; + formatValue_1728053380(fmtRes_553651354, 0, HEX24_385875976(start_553651348.Field1)); + fmtRes_553651354[0].push.apply(fmtRes_553651354[0], [44]);; + add_33556373(fmtRes_553651354, 0, (toJSStr(HEX24_385875976(start_553651348.Field0)))); + fmtRes_553651354[0].push.apply(fmtRes_553651354[0], [44]);; + formatValue_1728053380(fmtRes_553651354, 0, HEX24_385875976(to_553651349.Field1)); + fmtRes_553651354[0].push.apply(fmtRes_553651354[0], [44]);; + formatValue_1728053380(fmtRes_553651354, 0, HEX24_385875976(to_553651349.Field0)); }; - sendAction_520096401(fmtRes_520096922[0], true); - framePtr = F.prev; + sendAction_553650833(fmtRes_553651354[0], true); } -function createTile_520097473(p_520097474, m_520097475, n_520097476) { +function createTile_553651905(p_553651906, m_553651907, n_553651908) { var Temporary1; - p_520097474 = nimCopy(null, p_520097474, NTI1224736794); - -function HEX3Aanonymous_520097562(__520097563, __520097564) { - var F = {procname: "createTile.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - if ((!((picksLeft_520093898[0] == 0)) && contains_1224737421(pickOptions_520093901[0], p_520097474.tile))) { - F.line = 500; - F.filename = "main.nim"; - picksLeft_520093898[0] = subInt(picksLeft_520093898[0], 1); - F.line = 501; - var Temporary1 = nimCopy(null, p_520097474.tile, NTI1224736771); - picks_520093906[0].push(Temporary1);; - F.line = 502; - promptHistory_520093892[0].push(pop_520097217(promptStack_520093897, 0));; - F.line = 503; - pickOptions_520093901[0] = nimCopy(null, getPickOptions_520093900[0](), NTI520093867); - F.line = 504; - clear_520094026(); - if ((picksLeft_520093898[0] == 0)) { - F.line = 506; + p_553651906 = nimCopy(null, p_553651906, NTI1476395034); + +function HEX3Aanonymous_553651994(__553651995, __553651996) { + if ((!((picksLeft_553648330[0] == 0)) && contains_1476395661(pickOptions_553648333[0], p_553651906.tile))) { + picksLeft_553648330[0] = subInt(picksLeft_553648330[0], 1); + var Temporary1 = nimCopy(null, p_553651906.tile, NTI1476395011); + picks_553648338[0].push(Temporary1);; + promptHistory_553648324[0].push(pop_553651649(promptStack_553648329, 0));; + pickOptions_553648333[0] = nimCopy(null, getPickOptions_553648332[0](), NTI553648299); + clear_553648458(); + if ((picksLeft_553648330[0] == 0)) { rawEcho([119,104,101,110,32,99,111,108,108,101,99,116,101,100,32,115,116,97,114,116]); - F.line = 507; - whenCollected_520093908[0](); - F.line = 508; + whenCollected_553648340[0](); rawEcho([87,104,101,110,32,67,111,108,108,101,99,116,101,100]); - F.line = 509; - cancelAllPicks_520097236(); - F.line = 510; + cancelAllPicks_553651668(); rawEcho([67,97,110,99,101,108,32,65,108,108]); } } else { - if (((contains_1224737421(possibleMoves_520093834[0], p_520097474.tile) && isColor_1224737813(pieceOf_520093924(selectedTile_520093829[0]), side_520093807[0])) && !(busy_520093931()))) { - F.line = 513; - pieceOf_520093924(selectedTile_520093829[0]).onMove(pieceOf_520093924(selectedTile_520093829[0]), p_520097474.tile, theBoard_520093825[0], theState_520093826[0]); - F.line = 514; - sendMove_520096914([109,111,118,101], selectedTile_520093829[0], p_520097474.tile); - F.line = 515; + if (((contains_1476395661(possibleMoves_553648266[0], p_553651906.tile) && isColor_1476396053(pieceOf_553648356(selectedTile_553648261[0]), side_553648239[0])) && !(busy_553648363()))) { + pieceOf_553648356(selectedTile_553648261[0]).onMove(pieceOf_553648356(selectedTile_553648261[0]), p_553651906.tile, theBoard_553648257[0], theState_553648258[0]); + sendMove_553651346([109,111,118,101], selectedTile_553648261[0], p_553651906.tile); rawEcho([115,101,110,100]); - F.line = 516; - clear_520094026(); + clear_553648458(); } else { - if (((contains_1224737421(possibleTakes_520093839[0], p_520097474.tile) && isColor_1224737813(pieceOf_520093924(selectedTile_520093829[0]), side_520093807[0])) && !(busy_520093931()))) { - F.line = 519; - pieceOf_520093924(selectedTile_520093829[0]).onTake(pieceOf_520093924(selectedTile_520093829[0]), p_520097474.tile, theBoard_520093825[0], theState_520093826[0]); - F.line = 520; - sendMove_520096914([116,97,107,101], selectedTile_520093829[0], p_520097474.tile); - F.line = 521; - clear_520094026(); + if (((contains_1476395661(possibleTakes_553648271[0], p_553651906.tile) && isColor_1476396053(pieceOf_553648356(selectedTile_553648261[0]), side_553648239[0])) && !(busy_553648363()))) { + pieceOf_553648356(selectedTile_553648261[0]).onTake(pieceOf_553648356(selectedTile_553648261[0]), p_553651906.tile, theBoard_553648257[0], theState_553648258[0]); + sendMove_553651346([116,97,107,101], selectedTile_553648261[0], p_553651906.tile); + clear_553648458(); } else { - if (!(isSelected_520093927(m_520097475, n_520097476))) { - F.line = 523; - var colontmp__520100890 = n_520097476; - F.line = 523; - var colontmp__520100891 = m_520097475; - F.line = 523; - selectedTile_520093829[0] = nimCopy(selectedTile_520093829[0], {Field0: colontmp__520100890, Field1: colontmp__520100891}, NTI1224736771); - F.line = 524; - possibleMoves_520093834[0] = nimCopy(null, getMovesOn_1224737386(p_520097474, theBoard_520093825[0]), NTI1224736778); - F.line = 525; - possibleTakes_520093839[0] = nimCopy(null, getTakesOn_1224737271(p_520097474, theBoard_520093825[0]), NTI1224736778); + if (!(isSelected_553648359(m_553651907, n_553651908))) { + var colontmp__553655322 = n_553651908; + var colontmp__553655323 = m_553651907; + selectedTile_553648261[0] = nimCopy(selectedTile_553648261[0], {Field0: colontmp__553655322, Field1: colontmp__553655323}, NTI1476395011); + possibleMoves_553648266[0] = nimCopy(null, getMovesOn_1476395626(p_553651906, theBoard_553648257[0]), NTI1476395018); + possibleTakes_553648271[0] = nimCopy(null, getTakesOn_1476395511(p_553651906, theBoard_553648257[0]), NTI1476395018); } else { - F.line = 527; - clear_520094026(); + clear_553648458(); } }}} - framePtr = F.prev; } var Temporary15; var Temporary16; - var result_520097477 = null; + var result_553651909 = null; - var F = {procname: "main.createTile", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 467; - F.filename = "main.nim"; - if ((modInt(addInt(mulInt(m_520097475, 7), n_520097476), 2) == 0)) { + if ((modInt(addInt(mulInt(m_553651907, 7), n_553651908), 2) == 0)) { Temporary1 = [119,104,105,116,101,84,105,108,101]; } else { Temporary1 = [98,108,97,99,107,84,105,108,101]; } - var class_520097478 = nimCopy(null, Temporary1, NTI33554449); + var class_553651910 = nimCopy(null, Temporary1, NTI33554449); Label2: { - F.line = 469; - var i_520097479 = 0; - F.line = 469; - var j_520097480 = 0; + var i_553651911 = 0; + var j_553651912 = 0; Label3: { - F.line = 124; - F.filename = "piece.nim"; - var i_520100879 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_520100880 = 0; + var i_553655311 = 0; + var i_553655312 = 0; Label4: { - F.line = 129; Label5: while (true) { - if (!(i_520100880 < 8)) break Label5; - F.line = 124; - F.filename = "piece.nim"; - i_520100879 = i_520100880; + if (!(i_553655312 < 8)) break Label5; + i_553655311 = i_553655312; Label6: { - F.line = 125; - var j_520100883 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_520100884 = 0; + var j_553655315 = 0; + var i_553655316 = 0; Label7: { - F.line = 129; Label8: while (true) { - if (!(i_520100884 < 8)) break Label8; - F.line = 125; - F.filename = "piece.nim"; - j_520100883 = i_520100884; - F.line = 469; - F.filename = "main.nim"; - i_520097479 = i_520100879; - F.line = 469; - j_520097480 = j_520100883; + if (!(i_553655316 < 8)) break Label8; + j_553655315 = i_553655316; + i_553651911 = i_553655311; + j_553651912 = j_553655315; Label9: { - F.line = 470; - var c_520097484 = {Field0: {Field0: 0, Field1: 0}, Field1: 0, Field2: 0}; - F.line = 247; - F.filename = "iterators.nim"; - var colontmp__520100874 = []; - F.line = 470; - F.filename = "main.nim"; - colontmp__520100874 = theBoard_520093825[0][chckIndx(i_520097479, 0, (theBoard_520093825[0]).length - 1)][chckIndx(j_520097480, 0, (theBoard_520093825[0][chckIndx(i_520097479, 0, (theBoard_520093825[0]).length - 1)]).length - 1)].casts; - F.line = 249; - F.filename = "iterators.nim"; - var i_520100875 = 0; - F.line = 250; - var L_520100876 = (colontmp__520100874).length; + var c_553651916 = {Field0: {Field0: 0, Field1: 0}, Field1: 0, Field2: 0}; + var colontmp__553655306 = []; + colontmp__553655306 = theBoard_553648257[0][chckIndx(i_553651911, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553651912, 0, (theBoard_553648257[0][chckIndx(i_553651911, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].casts; + var i_553655307 = 0; + var L_553655308 = (colontmp__553655306).length; Label10: { - F.line = 251; Label11: while (true) { - if (!(i_520100875 < L_520100876)) break Label11; - F.line = 470; - F.filename = "main.nim"; - c_520097484 = colontmp__520100874[chckIndx(i_520100875, 0, (colontmp__520100874).length - 1)]; - if (HEX3DHEX3D_1224737445(p_520097474.tile, c_520097484.Field0)) { - F.line = 472; - class_520097478.push.apply(class_520097478, castingOnAnimations_520093731[chckIndx(c_520097484.Field2, 0, (castingOnAnimations_520093731).length - 1)]);; + if (!(i_553655307 < L_553655308)) break Label11; + c_553651916 = colontmp__553655306[chckIndx(i_553655307, 0, (colontmp__553655306).length - 1)]; + if (HEX3DHEX3D_1476395685(p_553651906.tile, c_553651916.Field0)) { + class_553651910.push.apply(class_553651910, castingOnAnimations_553648163[chckIndx(c_553651916.Field2, 0, (castingOnAnimations_553648163).length - 1)]);; } - F.line = 13; - F.filename = "iterators.nim"; - i_520100875 += 1; - if (!(((colontmp__520100874).length == L_520100876))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + i_553655307 += 1; + if (!(((colontmp__553655306).length == L_553655308))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - F.line = 131; - F.filename = "iterators_1.nim"; - i_520100884 = addInt(i_520100884, 1); + i_553655316 = addInt(i_553655316, 1); } }; }; - F.line = 131; - i_520100880 = addInt(i_520100880, 1); + i_553655312 = addInt(i_553655312, 1); } }; }; }; Label12: { - F.line = 474; - F.filename = "main.nim"; - var c_520097492 = {Field0: {Field0: 0, Field1: 0}, Field1: 0, Field2: 0}; - F.line = 249; - F.filename = "iterators.nim"; - var i_520100887 = 0; - F.line = 250; - var L_520100888 = (p_520097474.casts).length; + var c_553651924 = {Field0: {Field0: 0, Field1: 0}, Field1: 0, Field2: 0}; + var i_553655319 = 0; + var L_553655320 = (p_553651906.casts).length; Label13: { - F.line = 251; Label14: while (true) { - if (!(i_520100887 < L_520100888)) break Label14; - F.line = 474; - F.filename = "main.nim"; - c_520097492 = p_520097474.casts[chckIndx(i_520100887, 0, (p_520097474.casts).length - 1)]; - F.line = 475; - class_520097478.push.apply(class_520097478, castingAnimations_520093730[chckIndx(c_520097492.Field2, 0, (castingAnimations_520093730).length - 1)]);; - F.line = 13; - F.filename = "iterators.nim"; - i_520100887 += 1; - if (!(((p_520097474.casts).length == L_520100888))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + if (!(i_553655319 < L_553655320)) break Label14; + c_553651924 = p_553651906.casts[chckIndx(i_553655319, 0, (p_553651906.casts).length - 1)]; + class_553651910.push.apply(class_553651910, castingAnimations_553648162[chckIndx(c_553651924.Field2, 0, (castingAnimations_553648162).length - 1)]);; + i_553655319 += 1; + if (!(((p_553651906.casts).length == L_553655320))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - if ((isSelected_520093927(m_520097475, n_520097476) && contains_1224737421(possibleTakes_520093839[0], p_520097474.tile))) { - F.line = 478; - F.filename = "main.nim"; - class_520097478.push.apply(class_520097478, [32,99,97,110,45,116,97,107,101]);; + if ((isSelected_553648359(m_553651907, n_553651908) && contains_1476395661(possibleTakes_553648271[0], p_553651906.tile))) { + class_553651910.push.apply(class_553651910, [32,99,97,110,45,116,97,107,101]);; } else { - if (isSelected_520093927(m_520097475, n_520097476)) { - F.line = 480; - class_520097478.push.apply(class_520097478, [32,115,101,108,101,99,116,101,100]);; + if (isSelected_553648359(m_553651907, n_553651908)) { + class_553651910.push.apply(class_553651910, [32,115,101,108,101,99,116,101,100]);; } else { - if (contains_1224737421(picks_520093906[0], p_520097474.tile)) { - F.line = 482; - class_520097478.push.apply(class_520097478, [32,112,105,99,107,105,110,103]);; + if (contains_1476395661(picks_553648338[0], p_553651906.tile)) { + class_553651910.push.apply(class_553651910, [32,112,105,99,107,105,110,103]);; } else { - if ((contains_1224737421(possibleMoves_520093834[0], p_520097474.tile) || contains_1224737421(pickOptions_520093901[0], p_520097474.tile))) { - F.line = 484; - class_520097478.push.apply(class_520097478, [32,99,97,110,45,109,111,118,101]);; + if ((contains_1476395661(possibleMoves_553648266[0], p_553651906.tile) || contains_1476395661(pickOptions_553648333[0], p_553651906.tile))) { + class_553651910.push.apply(class_553651910, [32,99,97,110,45,109,111,118,101]);; } else { - if (contains_1224737421(possibleTakes_520093839[0], p_520097474.tile)) { - F.line = 486; - class_520097478.push.apply(class_520097478, [32,99,97,110,45,116,97,107,101]);; + if (contains_1476395661(possibleTakes_553648271[0], p_553651906.tile)) { + class_553651910.push.apply(class_553651910, [32,99,97,110,45,116,97,107,101]);; } else { - F.line = 488; - class_520097478.push.apply(class_520097478, [32,117,110,115,101,108,101,99,116,101,100]);; + class_553651910.push.apply(class_553651910, [32,117,110,115,101,108,101,99,116,101,100]);; } }}}} - if (contains_1224737421(piecesChecking_520093849[0], p_520097474.tile)) { - F.line = 491; - class_520097478.push.apply(class_520097478, [32,99,104,101,99,107,105,110,103]);; + if (contains_1476395661(piecesChecking_553648281[0], p_553651906.tile)) { + class_553651910.push.apply(class_553651910, [32,99,104,101,99,107,105,110,103]);; } else { - if (contains_1224737421(lastMove_520093844[0], p_520097474.tile)) { - F.line = 493; - class_520097478.push.apply(class_520097478, [32,108,97,115,116,45,109,111,118,101]);; - } - } - F.line = 496; - F.line = 497; - var tmp_520097551 = tree_721421184(188, []); - F.line = 497; - tmp_520097551.class = toJSStr(class_520097478); - F.line = 498; - addEventHandler_687867670(tmp_520097551, 0, HEX3Aanonymous_520097562, kxi__); - if (eqStrings(p_520097474.filePath, [])) { - F.line = 530; - add_721421120(tmp_520097551, text_721421252([])); + if (contains_1476395661(lastMove_553648276[0], p_553651906.tile)) { + class_553651910.push.apply(class_553651910, [32,108,97,115,116,45,109,111,118,101]);; + } + } + var tmp_553651983 = tree_754975616(188, []); + tmp_553651983.class = toJSStr(class_553651910); + addEventHandler_721422102(tmp_553651983, 0, HEX3Aanonymous_553651994, kxi__); + if (eqStrings(p_553651906.filePath, [])) { + add_754975552(tmp_553651983, text_754975684([])); } else { - F.line = 532; - if (p_520097474.rotate) { + if (p_553651906.rotate) { Temporary15 = [114,111,116,97,116,101]; } else { Temporary15 = []; } - var class_520097597 = nimCopy(null, Temporary15, NTI33554449); - F.line = 533; - if (p_520097474.colorable) { - Temporary16 = reprEnum(p_520097474.color, NTI1224736777); + var class_553652029 = nimCopy(null, Temporary15, NTI33554449); + if (p_553651906.colorable) { + Temporary16 = reprEnum(p_553651906.color, NTI1476395017); } else { Temporary16 = []; } - var color_520097601 = nimCopy(null, Temporary16, NTI33554449); - F.line = 534; - var tmp_520097561 = tree_721421184(76, []); - F.line = 534; - setAttr_721421035(tmp_520097561, "src", toJSStr(([46,47,105,99,111,110,115,47] || []).concat(color_520097601 || [],p_520097474.filePath || []))); - F.line = 534; - tmp_520097561.class = toJSStr(class_520097597); - F.line = 534; - add_721421120(tmp_520097551, tmp_520097561); + var color_553652033 = nimCopy(null, Temporary16, NTI33554449); + var tmp_553651993 = tree_754975616(76, []); + setAttr_754975467(tmp_553651993, "src", toJSStr(([46,47,105,99,111,110,115,47] || []).concat(color_553652033 || [],p_553651906.filePath || []))); + tmp_553651993.class = toJSStr(class_553652029); + add_754975552(tmp_553651983, tmp_553651993); } - result_520097477 = tmp_520097551; - framePtr = F.prev; + result_553651909 = tmp_553651983; - return result_520097477; + return result_553651909; } -function createBoard_520097617() { - var result_520097618 = null; +function createBoard_553652049() { + var result_553652050 = null; - var F = {procname: "main.createBoard", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 537; - F.filename = "main.nim"; - F.line = 537; - var tmp_520097619 = tree_721421184(180, []); + var tmp_553652051 = tree_754975616(180, []); Label1: { - F.line = 538; - var i_520097627 = 0; - F.line = 538; - var r_520097628 = [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})]; - F.line = 164; - F.filename = "iterators.nim"; - var i_520100870 = 0; + var i_553652059 = 0; + var r_553652060 = [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})]; + var i_553655302 = 0; Label2: { - F.line = 165; Label3: while (true) { if (!true) break Label3; - F.line = 538; - F.filename = "main.nim"; - i_520097627 = i_520100870; - F.line = 538; - r_520097628 = nimCopy(r_520097628, theBoard_520093825[0][chckIndx(i_520100870, 0, (theBoard_520093825[0]).length - 1)], NTI1224736772); - F.line = 539; - var tmp_520097620 = tree_721421184(187, []); + i_553652059 = i_553655302; + r_553652060 = nimCopy(r_553652060, theBoard_553648257[0][chckIndx(i_553655302, 0, (theBoard_553648257[0]).length - 1)], NTI1476395012); + var tmp_553652052 = tree_754975616(187, []); Label4: { - F.line = 540; - var j_520097635 = 0; - F.line = 540; - var p_520097636 = ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}); - F.line = 164; - F.filename = "iterators.nim"; - var i_520100868 = 0; + var j_553652067 = 0; + var p_553652068 = ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}); + var i_553655300 = 0; Label5: { - F.line = 165; Label6: while (true) { if (!true) break Label6; - F.line = 540; - F.filename = "main.nim"; - j_520097635 = i_520100868; - F.line = 540; - p_520097636 = nimCopy(p_520097636, r_520097628[chckIndx(i_520100868, 0, (r_520097628).length - 1)], NTI1224736794); - F.line = 541; - add_721421120(tmp_520097620, createTile_520097473(p_520097636, i_520097627, j_520097635)); - if ((7 <= i_520100868)) { - F.line = 167; - F.filename = "iterators.nim"; + j_553652067 = i_553655300; + p_553652068 = nimCopy(p_553652068, r_553652060[chckIndx(i_553655300, 0, (r_553652060).length - 1)], NTI1476395034); + add_754975552(tmp_553652052, createTile_553651905(p_553652068, i_553652059, j_553652067)); + if ((7 <= i_553655300)) { break Label5; } - F.line = 13; - i_520100868 += 1; + i_553655300 += 1; } }; }; - F.line = 541; - F.filename = "main.nim"; - add_721421120(tmp_520097619, tmp_520097620); - if ((7 <= i_520100870)) { - F.line = 167; - F.filename = "iterators.nim"; + add_754975552(tmp_553652051, tmp_553652052); + if ((7 <= i_553655302)) { break Label2; } - F.line = 13; - i_520100870 += 1; + i_553655302 += 1; } }; }; - result_520097618 = tmp_520097619; - framePtr = F.prev; + result_553652050 = tmp_553652051; - return result_520097618; + return result_553652050; } -function reverseBoard_520097637() { - var result_520097638 = null; +function reverseBoard_553652069() { + var result_553652070 = null; - var F = {procname: "main.reverseBoard", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 544; - F.filename = "main.nim"; - F.line = 544; - var tmp_520097639 = tree_721421184(180, []); + var tmp_553652071 = tree_754975616(180, []); Label1: { - F.line = 545; - var i_520097646 = 0; - F.line = 33; - F.filename = "iterators_1.nim"; - var res_520100897 = 7; + var i_553652078 = 0; + var res_553655329 = 7; Label2: { - F.line = 34; Label3: while (true) { - if (!(0 <= res_520100897)) break Label3; - F.line = 545; - F.filename = "main.nim"; - i_520097646 = res_520100897; - F.line = 546; - var tmp_520097640 = tree_721421184(187, []); + if (!(0 <= res_553655329)) break Label3; + i_553652078 = res_553655329; + var tmp_553652072 = tree_754975616(187, []); Label4: { - F.line = 547; - var j_520097652 = 0; - F.line = 33; - F.filename = "iterators_1.nim"; - var res_520100895 = 7; + var j_553652084 = 0; + var res_553655327 = 7; Label5: { - F.line = 34; Label6: while (true) { - if (!(0 <= res_520100895)) break Label6; - F.line = 547; - F.filename = "main.nim"; - j_520097652 = res_520100895; - F.line = 548; - add_721421120(tmp_520097640, createTile_520097473(theBoard_520093825[0][chckIndx(i_520097646, 0, (theBoard_520093825[0]).length - 1)][chckIndx(j_520097652, 0, (theBoard_520093825[0][chckIndx(i_520097646, 0, (theBoard_520093825[0]).length - 1)]).length - 1)], i_520097646, j_520097652)); - F.line = 39; - F.filename = "iterators_1.nim"; - res_520100895 = subInt(res_520100895, 1); + if (!(0 <= res_553655327)) break Label6; + j_553652084 = res_553655327; + add_754975552(tmp_553652072, createTile_553651905(theBoard_553648257[0][chckIndx(i_553652078, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553652084, 0, (theBoard_553648257[0][chckIndx(i_553652078, 0, (theBoard_553648257[0]).length - 1)]).length - 1)], i_553652078, j_553652084)); + res_553655327 = subInt(res_553655327, 1); } }; }; - F.line = 548; - F.filename = "main.nim"; - add_721421120(tmp_520097639, tmp_520097640); - F.line = 39; - F.filename = "iterators_1.nim"; - res_520100897 = subInt(res_520100897, 1); + add_754975552(tmp_553652071, tmp_553652072); + res_553655329 = subInt(res_553655329, 1); } }; }; - result_520097638 = tmp_520097639; - framePtr = F.prev; + result_553652070 = tmp_553652071; - return result_520097638; + return result_553652070; } -function HEX5BHEX5D_520098052(s_520098054, i_520098055) { - var result_520098056 = null; +function HEX5BHEX5D_553652484(s_553652486, i_553652487) { + var result_553652488 = null; - var F = {procname: "[].[]", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/indices.nim", line: 0}; - framePtr = F; - F.line = 30; - F.filename = "indices.nim"; - result_520098056 = s_520098054[chckIndx(subInt((s_520098054).length, i_520098055), 0, (s_520098054).length - 1)]; - framePtr = F.prev; + result_553652488 = s_553652486[chckIndx(subInt((s_553652486).length, i_553652487), 0, (s_553652486).length - 1)]; - return result_520098056; + return result_553652488; } -function pop_520098135(s_520098137, s_520098137_Idx) { - var result_520098138 = {Field0: [], Field1: 0, Field2: 0, Field3: null, Field4: false, Field5: false, Field6: null, Field7: null}; +function pop_553652567(s_553652569, s_553652569_Idx) { + var result_553652570 = {Field0: [], Field1: 0, Field2: 0, Field3: null, Field4: false, Field5: false, Field6: null, Field7: null}; - var F = {procname: "pop.pop", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; - F.line = 1702; - F.filename = "system.nim"; - var L_520098142 = subInt((s_520098137[s_520098137_Idx]).length, 1); - F.line = 1707; - result_520098138 = nimCopy(result_520098138, s_520098137[s_520098137_Idx][chckIndx(L_520098142, 0, (s_520098137[s_520098137_Idx]).length - 1)], NTI520093710); - F.line = 1708; - if (s_520098137[s_520098137_Idx].length < chckRange(L_520098142, 0, 2147483647)) { for (var i = s_520098137[s_520098137_Idx].length ; i < chckRange(L_520098142, 0, 2147483647) ; ++i) s_520098137[s_520098137_Idx].push({Field0: [], Field1: 0, Field2: 0, Field3: null, Field4: false, Field5: false, Field6: null, Field7: null}); } - else { s_520098137[s_520098137_Idx].length = chckRange(L_520098142, 0, 2147483647); }; - framePtr = F.prev; + var L_553652574 = subInt((s_553652569[s_553652569_Idx]).length, 1); + result_553652570 = nimCopy(result_553652570, s_553652569[s_553652569_Idx][chckIndx(L_553652574, 0, (s_553652569[s_553652569_Idx]).length - 1)], NTI553648142); + if (s_553652569[s_553652569_Idx].length < chckRange(L_553652574, 0, 2147483647)) { for (var i = s_553652569[s_553652569_Idx].length ; i < chckRange(L_553652574, 0, 2147483647) ; ++i) s_553652569[s_553652569_Idx].push({Field0: [], Field1: 0, Field2: 0, Field3: null, Field4: false, Field5: false, Field6: null, Field7: null}); } + else { s_553652569[s_553652569_Idx].length = chckRange(L_553652574, 0, 2147483647); }; - return result_520098138; + return result_553652570; } -function newSeq_520096828(len_520096830) { - var result_520096831 = []; +function newSeq_553651260(len_553651262) { + var result_553651263 = []; - var F = {procname: "newSeq.newSeq", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; - F.line = 633; - F.filename = "system.nim"; - result_520096831 = new Array(len_520096830); for (var i = 0 ; i < len_520096830 ; ++i) { result_520096831[i] = false; } framePtr = F.prev; - - return result_520096831; + result_553651263 = new Array(len_553651262); for (var i = 0 ; i < len_553651262 ; ++i) { result_553651263[i] = false; } + return result_553651263; } -function updateActionStack_520096416() { +function updateActionStack_553650848() { var Temporary7; - var F = {procname: "main.updateActionStack", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 235; - F.filename = "main.nim"; - rawEcho([97,115], HEX24_520096569(actionStack_520093877[0])); - F.line = 236; - rawEcho([110,97,115], HEX24_520096569(nextActionStack_520093882[0])); - F.line = 237; - rawEcho([115], HEX24_520096569(toSend_520093887[0])); - if (((actionStack_520093877[0]).length == 0)) { - if (!(((nextActionStack_520093882[0]).length == 0))) { + rawEcho([97,115], HEX24_553651001(actionStack_553648309[0])); + rawEcho([110,97,115], HEX24_553651001(nextActionStack_553648314[0])); + rawEcho([115], HEX24_553651001(toSend_553648319[0])); + if (((actionStack_553648309[0]).length == 0)) { + if (!(((nextActionStack_553648314[0]).length == 0))) { Label1: { - F.line = 240; - var i_520096787 = 0; - F.line = 240; - var x_520096788 = {Field0: [], Field1: 0, Field2: 0, Field3: null, Field4: false, Field5: false, Field6: null, Field7: null}; - F.line = 182; - F.filename = "iterators.nim"; - var i_520100922 = 0; - F.line = 183; - var L_520100923 = (nextActionStack_520093882[0]).length; + var i_553651219 = 0; + var x_553651220 = {Field0: [], Field1: 0, Field2: 0, Field3: null, Field4: false, Field5: false, Field6: null, Field7: null}; + var i_553655354 = 0; + var L_553655355 = (nextActionStack_553648314[0]).length; Label2: { - F.line = 184; Label3: while (true) { - if (!(i_520100922 < L_520100923)) break Label3; - F.line = 240; - F.filename = "main.nim"; - i_520096787 = i_520100922; - F.line = 240; - x_520096788 = nimCopy(x_520096788, nextActionStack_520093882[0][chckIndx(i_520100922, 0, (nextActionStack_520093882[0]).length - 1)], NTI520093710); - F.line = 241; - nextActionStack_520093882[0][chckIndx(i_520096787, 0, (nextActionStack_520093882[0]).length - 1)].Field1 = subInt(nextActionStack_520093882[0][chckIndx(i_520096787, 0, (nextActionStack_520093882[0]).length - 1)].Field1, 1); - F.line = 13; - F.filename = "iterators.nim"; - i_520100922 += 1; - if (!(((nextActionStack_520093882[0]).length == L_520100923))) { - F.line = 187; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(187, 11) `len(a) == L` the length of the seq changed while iterating over it")); + if (!(i_553655354 < L_553655355)) break Label3; + i_553651219 = i_553655354; + x_553651220 = nimCopy(x_553651220, nextActionStack_553648314[0][chckIndx(i_553655354, 0, (nextActionStack_553648314[0]).length - 1)], NTI553648142); + nextActionStack_553648314[0][chckIndx(i_553651219, 0, (nextActionStack_553648314[0]).length - 1)].Field1 = subInt(nextActionStack_553648314[0][chckIndx(i_553651219, 0, (nextActionStack_553648314[0]).length - 1)].Field1, 1); + i_553655354 += 1; + if (!(((nextActionStack_553648314[0]).length == L_553655355))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(187, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } @@ -24672,34 +16042,21 @@ function updateActionStack_520096416() { }; } - if ((false && !(practiceMode_520093850[0]))) { - if (!(((toSend_520093887[0]).length == 0))) { + if ((true && !(practiceMode_553648282[0]))) { + if (!(((toSend_553648319[0]).length == 0))) { Label4: { - F.line = 245; - F.filename = "main.nim"; - var x_520096800 = {Field0: [], Field1: 0, Field2: 0, Field3: null, Field4: false, Field5: false, Field6: null, Field7: null}; - F.line = 249; - F.filename = "iterators.nim"; - var i_520100926 = 0; - F.line = 250; - var L_520100927 = (toSend_520093887[0]).length; + var x_553651232 = {Field0: [], Field1: 0, Field2: 0, Field3: null, Field4: false, Field5: false, Field6: null, Field7: null}; + var i_553655358 = 0; + var L_553655359 = (toSend_553648319[0]).length; Label5: { - F.line = 251; Label6: while (true) { - if (!(i_520100926 < L_520100927)) break Label6; - F.line = 245; - F.filename = "main.nim"; - x_520096800 = toSend_520093887[0][chckIndx(i_520100926, 0, (toSend_520093887[0]).length - 1)]; - F.line = 246; - x_520096800.Field6(); - F.line = 247; + if (!(i_553655358 < L_553655359)) break Label6; + x_553651232 = toSend_553648319[0][chckIndx(i_553655358, 0, (toSend_553648319[0]).length - 1)]; + x_553651232.Field6(); rawEcho([115,101,110,100,44,32,116,104,105,115,32,101,110,100,115,32,116,117,114,110,32,105,102,32,46,115,101,110,100,32,100,111,101,115]); - F.line = 13; - F.filename = "iterators.nim"; - i_520100926 += 1; - if (!(((toSend_520093887[0]).length == L_520100927))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + i_553655358 += 1; + if (!(((toSend_553648319[0]).length == L_553655359))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } @@ -24707,818 +16064,493 @@ function updateActionStack_520096416() { }; } else { - if (!!(((nextActionStack_520093882[0]).length == 0))) Temporary7 = false; else { F.line = 975; - F.filename = "sequtils.nim"; - Label8: { - F.line = 1024; - var iHEX60gensym77_520096824 = 0; - F.line = 1025; - var resultHEX60gensym77_520096868 = newSeq_520096828(chckRange((nextActionStack_520093882[0]).length, 0, 2147483647)); + if (!!(((nextActionStack_553648314[0]).length == 0))) Temporary7 = false; else { Label8: { + var iHEX60gensym77_553651256 = 0; + var resultHEX60gensym77_553651300 = newSeq_553651260(chckRange((nextActionStack_553648314[0]).length, 0, 2147483647)); Label9: { - F.line = 1026; - var it_520096872 = {Field0: [], Field1: 0, Field2: 0, Field3: null, Field4: false, Field5: false, Field6: null, Field7: null}; - F.line = 249; - F.filename = "iterators.nim"; - var i_520100931 = 0; - F.line = 250; - var L_520100932 = (nextActionStack_520093882[0]).length; + var it_553651304 = {Field0: [], Field1: 0, Field2: 0, Field3: null, Field4: false, Field5: false, Field6: null, Field7: null}; + var i_553655363 = 0; + var L_553655364 = (nextActionStack_553648314[0]).length; Label10: { - F.line = 251; Label11: while (true) { - if (!(i_520100931 < L_520100932)) break Label11; - F.line = 1026; - F.filename = "sequtils.nim"; - it_520096872 = nextActionStack_520093882[0][chckIndx(i_520100931, 0, (nextActionStack_520093882[0]).length - 1)]; - F.line = 250; - F.filename = "main.nim"; - resultHEX60gensym77_520096868[chckIndx(iHEX60gensym77_520096824, 0, (resultHEX60gensym77_520096868).length - 1)] = it_520096872.Field5; - F.line = 1028; - F.filename = "sequtils.nim"; - iHEX60gensym77_520096824 = addInt(iHEX60gensym77_520096824, 1); - F.line = 13; - F.filename = "iterators.nim"; - i_520100931 += 1; - if (!(((nextActionStack_520093882[0]).length == L_520100932))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + if (!(i_553655363 < L_553655364)) break Label11; + it_553651304 = nextActionStack_553648314[0][chckIndx(i_553655363, 0, (nextActionStack_553648314[0]).length - 1)]; + resultHEX60gensym77_553651300[chckIndx(iHEX60gensym77_553651256, 0, (resultHEX60gensym77_553651300).length - 1)] = it_553651304.Field5; + iHEX60gensym77_553651256 = addInt(iHEX60gensym77_553651256, 1); + i_553655363 += 1; + if (!(((nextActionStack_553648314[0]).length == L_553655364))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; }; - var sHEX60gensym80_520096884 = nimCopy(null, resultHEX60gensym77_520096868, NTI520095611); - F.line = 976; - F.filename = "sequtils.nim"; - var nHEX60gensym80_520096889 = (sHEX60gensym80_520096884).length; - if (!((0 < nHEX60gensym80_520096889))) { - F.line = 977; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/collections/sequtils.nim(977, 3) `n`gensym80 > 0` Can\'t fold empty sequences")); + var sHEX60gensym80_553651316 = nimCopy(null, resultHEX60gensym77_553651300, NTI553650043); + var nHEX60gensym80_553651321 = (sHEX60gensym80_553651316).length; + if (!((0 < nHEX60gensym80_553651321))) { + failedAssertImpl_268435541([115,101,113,117,116,105,108,115,46,110,105,109,40,57,55,55,44,32,51,41,32,96,110,96,103,101,110,115,121,109,56,48,32,62,32,48,96,32,67,97,110,39,116,32,102,111,108,100,32,101,109,112,116,121,32,115,101,113,117,101,110,99,101,115]); } - F.line = 978; - var resultHEX60gensym80_520096895 = sHEX60gensym80_520096884[chckIndx(subInt(nHEX60gensym80_520096889, 1), 0, (sHEX60gensym80_520096884).length - 1)]; + var resultHEX60gensym80_553651327 = sHEX60gensym80_553651316[chckIndx(subInt(nHEX60gensym80_553651321, 1), 0, (sHEX60gensym80_553651316).length - 1)]; Label12: { - F.line = 979; - var iHEX60gensym80_520096901 = 0; - F.line = 6; - F.filename = "iterators_1.nim"; - var colontmp__520100935 = 0; - F.line = 979; - F.filename = "sequtils.nim"; - colontmp__520100935 = subInt(nHEX60gensym80_520096889, 2); - F.line = 33; - F.filename = "iterators_1.nim"; - var res_520100936 = colontmp__520100935; + var iHEX60gensym80_553651333 = 0; + var colontmp__553655367 = 0; + colontmp__553655367 = subInt(nHEX60gensym80_553651321, 2); + var res_553655368 = colontmp__553655367; Label13: { - F.line = 34; Label14: while (true) { - if (!(0 <= res_520100936)) break Label14; - F.line = 979; - F.filename = "sequtils.nim"; - iHEX60gensym80_520096901 = res_520100936; - F.line = 981; - var a_520096902 = sHEX60gensym80_520096884[chckIndx(iHEX60gensym80_520096901, 0, (sHEX60gensym80_520096884).length - 1)]; - F.line = 982; - var b_520096903 = resultHEX60gensym80_520096895; - F.line = 250; - F.filename = "main.nim"; - resultHEX60gensym80_520096895 = (a_520096902 && b_520096903); - F.line = 39; - F.filename = "iterators_1.nim"; - res_520100936 = subInt(res_520100936, 1); + if (!(0 <= res_553655368)) break Label14; + iHEX60gensym80_553651333 = res_553655368; + var a_553651334 = sHEX60gensym80_553651316[chckIndx(iHEX60gensym80_553651333, 0, (sHEX60gensym80_553651316).length - 1)]; + var b_553651335 = resultHEX60gensym80_553651327; + resultHEX60gensym80_553651327 = (a_553651334 && b_553651335); + res_553655368 = subInt(res_553655368, 1); } }; }; - Temporary7 = !(resultHEX60gensym80_520096895); } if (Temporary7) { - F.line = 251; - F.filename = "main.nim"; - sendAction_520096401([112,97,115,115], true); + Temporary7 = !(resultHEX60gensym80_553651327); } if (Temporary7) { + sendAction_553650833([112,97,115,115], true); } } } - F.line = 253; - actionStack_520093877[0] = nimCopy(null, nextActionStack_520093882[0], NTI520093830); - F.line = 254; - nextActionStack_520093882[0] = nimCopy(null, [], NTI520093829); - F.line = 255; - toSend_520093887[0] = nimCopy(null, [], NTI520093829); + actionStack_553648309[0] = nimCopy(null, nextActionStack_553648314[0], NTI553648262); + nextActionStack_553648314[0] = nimCopy(null, [], NTI553648261); + toSend_553648319[0] = nimCopy(null, [], NTI553648261); } - framePtr = F.prev; } -function HEX5BHEX5D_520098323(s_520098325, i_520098326) { - var result_520098327 = null; - var result_520098327_Idx = 0; +function HEX5BHEX5D_553652755(s_553652757, i_553652758) { + var result_553652759 = null; + var result_553652759_Idx = 0; - var F = {procname: "[].[]", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/indices.nim", line: 0}; - framePtr = F; - F.line = 30; - F.filename = "indices.nim"; - result_520098327 = s_520098325; result_520098327_Idx = chckIndx(subInt((s_520098325).length, i_520098326), 0, (s_520098325).length - 1); - framePtr = F.prev; + result_553652759 = s_553652757; result_553652759_Idx = chckIndx(subInt((s_553652757).length, i_553652758), 0, (s_553652757).length - 1); - return [result_520098327, result_520098327_Idx]; + return [result_553652759, result_553652759_Idx]; } -function pop_520097205(s_520097207, s_520097207_Idx) { - var result_520097208 = {Field0: 0, Field1: 0}; +function pop_553651637(s_553651639, s_553651639_Idx) { + var result_553651640 = {Field0: 0, Field1: 0}; - var F = {procname: "pop.pop", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; - F.line = 1702; - F.filename = "system.nim"; - var L_520097212 = subInt((s_520097207[s_520097207_Idx]).length, 1); - F.line = 1707; - result_520097208 = nimCopy(result_520097208, s_520097207[s_520097207_Idx][chckIndx(L_520097212, 0, (s_520097207[s_520097207_Idx]).length - 1)], NTI1224736771); - F.line = 1708; - if (s_520097207[s_520097207_Idx].length < chckRange(L_520097212, 0, 2147483647)) { for (var i = s_520097207[s_520097207_Idx].length ; i < chckRange(L_520097212, 0, 2147483647) ; ++i) s_520097207[s_520097207_Idx].push({Field0: 0, Field1: 0}); } - else { s_520097207[s_520097207_Idx].length = chckRange(L_520097212, 0, 2147483647); }; - framePtr = F.prev; + var L_553651644 = subInt((s_553651639[s_553651639_Idx]).length, 1); + result_553651640 = nimCopy(result_553651640, s_553651639[s_553651639_Idx][chckIndx(L_553651644, 0, (s_553651639[s_553651639_Idx]).length - 1)], NTI1476395011); + if (s_553651639[s_553651639_Idx].length < chckRange(L_553651644, 0, 2147483647)) { for (var i = s_553651639[s_553651639_Idx].length ; i < chckRange(L_553651644, 0, 2147483647) ; ++i) s_553651639[s_553651639_Idx].push({Field0: 0, Field1: 0}); } + else { s_553651639[s_553651639_Idx].length = chckRange(L_553651644, 0, 2147483647); }; - return result_520097208; + return result_553651640; } -function cancelPick_520097196() { - var F = {procname: "main.cancelPick", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - if ((0 < (promptHistory_520093892[0]).length)) { - F.line = 345; - F.filename = "main.nim"; - picksLeft_520093898[0] = addInt(picksLeft_520093898[0], 1); - F.line = 346; - var _ = pop_520097205(picks_520093906, 0); - F.line = 347; - promptStack_520093897[0].push(pop_520097217(promptHistory_520093892, 0));; - F.line = 348; - pickOptions_520093901[0] = nimCopy(null, getPickOptions_520093900[0](), NTI520093867); +function cancelPick_553651628() { + if ((0 < (promptHistory_553648324[0]).length)) { + picksLeft_553648330[0] = addInt(picksLeft_553648330[0], 1); + var _ = pop_553651637(picks_553648338, 0); + promptStack_553648329[0].push(pop_553651649(promptHistory_553648324, 0));; + pickOptions_553648333[0] = nimCopy(null, getPickOptions_553648332[0](), NTI553648299); } - framePtr = F.prev; } -function cancelPick_520097233(__520097234, __520097235) { - var F = {procname: "main.cancelPick", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 351; - F.filename = "main.nim"; - cancelPick_520097196(); - framePtr = F.prev; +function cancelPick_553651665(__553651666, __553651667) { + cancelPick_553651628(); } -function createInfo_520098035() { +function createInfo_553652467() { -function HEX3Aanonymous_520098109(__520098110, __520098111) { - var F = {procname: "createInfo.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 813; - F.filename = "main.nim"; - HEX5BHEX5D_520098052(actionStack_520093877[0], 1).Field3(theBoard_520093825[0], theState_520093826[0]); - F.line = 814; +function HEX3Aanonymous_553652541(__553652542, __553652543) { + HEX5BHEX5D_553652484(actionStack_553648309[0], 1).Field3(theBoard_553648257[0], theState_553648258[0]); rawEcho([97,99,116,105,111,110,32,99,111,109,112,108,101,116,101]); Label1: { - F.line = 815; - var i_520098116 = 0; - F.line = 815; - var j_520098117 = 0; + var i_553652548 = 0; + var j_553652549 = 0; Label2: { - F.line = 124; - F.filename = "piece.nim"; - var i_520100913 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_520100914 = 0; + var i_553655345 = 0; + var i_553655346 = 0; Label3: { - F.line = 129; Label4: while (true) { - if (!(i_520100914 < 8)) break Label4; - F.line = 124; - F.filename = "piece.nim"; - i_520100913 = i_520100914; + if (!(i_553655346 < 8)) break Label4; + i_553655345 = i_553655346; Label5: { - F.line = 125; - var j_520100917 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_520100918 = 0; + var j_553655349 = 0; + var i_553655350 = 0; Label6: { - F.line = 129; Label7: while (true) { - if (!(i_520100918 < 8)) break Label7; - F.line = 125; - F.filename = "piece.nim"; - j_520100917 = i_520100918; - F.line = 815; - F.filename = "main.nim"; - i_520098116 = i_520100913; - F.line = 815; - j_520098117 = j_520100917; - F.line = 816; - F.line = 652; - F.filename = "sequtils.nim"; - var resultHEX60gensym140_520098122 = newSeq_520096990(0); + if (!(i_553655350 < 8)) break Label7; + j_553655349 = i_553655350; + i_553652548 = i_553655345; + j_553652549 = j_553655349; + var resultHEX60gensym140_553652554 = newSeq_553651422(0); Label8: { - F.line = 653; - var it_520098126 = {Field0: {Field0: 0, Field1: 0}, Field1: 0, Field2: 0}; - F.line = 247; - F.filename = "iterators.nim"; - var colontmp__520100908 = []; - F.line = 816; - F.filename = "main.nim"; - colontmp__520100908 = theBoard_520093825[0][chckIndx(i_520098116, 0, (theBoard_520093825[0]).length - 1)][chckIndx(j_520098117, 0, (theBoard_520093825[0][chckIndx(i_520098116, 0, (theBoard_520093825[0]).length - 1)]).length - 1)].casts; - F.line = 249; - F.filename = "iterators.nim"; - var i_520100909 = 0; - F.line = 250; - var L_520100910 = (colontmp__520100908).length; + var it_553652558 = {Field0: {Field0: 0, Field1: 0}, Field1: 0, Field2: 0}; + var colontmp__553655340 = []; + colontmp__553655340 = theBoard_553648257[0][chckIndx(i_553652548, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553652549, 0, (theBoard_553648257[0][chckIndx(i_553652548, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].casts; + var i_553655341 = 0; + var L_553655342 = (colontmp__553655340).length; Label9: { - F.line = 251; Label10: while (true) { - if (!(i_520100909 < L_520100910)) break Label10; - F.line = 653; - F.filename = "sequtils.nim"; - it_520098126 = colontmp__520100908[chckIndx(i_520100909, 0, (colontmp__520100908).length - 1)]; - if (!((it_520098126.Field1 == HEX5BHEX5D_520098052(actionStack_520093877[0], 1).Field2))) { - F.line = 654; - var Temporary11 = nimCopy(null, it_520098126, NTI1224736788); - resultHEX60gensym140_520098122.push(Temporary11);; + if (!(i_553655341 < L_553655342)) break Label10; + it_553652558 = colontmp__553655340[chckIndx(i_553655341, 0, (colontmp__553655340).length - 1)]; + if (!((it_553652558.Field1 == HEX5BHEX5D_553652484(actionStack_553648309[0], 1).Field2))) { + var Temporary11 = nimCopy(null, it_553652558, NTI1476395028); + resultHEX60gensym140_553652554.push(Temporary11);; } - F.line = 13; - F.filename = "iterators.nim"; - i_520100909 += 1; - if (!(((colontmp__520100908).length == L_520100910))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + i_553655341 += 1; + if (!(((colontmp__553655340).length == L_553655342))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - theBoard_520093825[0][chckIndx(i_520098116, 0, (theBoard_520093825[0]).length - 1)][chckIndx(j_520098117, 0, (theBoard_520093825[0][chckIndx(i_520098116, 0, (theBoard_520093825[0]).length - 1)]).length - 1)].casts = nimCopy(null, resultHEX60gensym140_520098122, NTI520095757); - F.line = 131; - F.filename = "iterators_1.nim"; - i_520100918 = addInt(i_520100918, 1); + theBoard_553648257[0][chckIndx(i_553652548, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553652549, 0, (theBoard_553648257[0][chckIndx(i_553652548, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].casts = nimCopy(null, resultHEX60gensym140_553652554, NTI553650189); + i_553655350 = addInt(i_553655350, 1); } }; }; - F.line = 131; - i_520100914 = addInt(i_520100914, 1); + i_553655346 = addInt(i_553655346, 1); } }; }; }; - F.line = 817; - F.filename = "main.nim"; - toSend_520093887[0].push(pop_520098135(actionStack_520093877, 0));; - F.line = 818; + toSend_553648319[0].push(pop_553652567(actionStack_553648309, 0));; rawEcho([115,101,110,116]); - F.line = 819; - updateActionStack_520096416(); - framePtr = F.prev; + updateActionStack_553650848(); } -function HEX3Aanonymous_520098224(__520098225, __520098226) { - var F = {procname: "createInfo.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 830; - F.filename = "main.nim"; - nextActionStack_520093882[0].push(pop_520098135(actionStack_520093877, 0));; - F.line = 831; - updateActionStack_520096416(); - framePtr = F.prev; +function HEX3Aanonymous_553652656(__553652657, __553652658) { + nextActionStack_553648314[0].push(pop_553652567(actionStack_553648309, 0));; + updateActionStack_553650848(); } -function HEX3Aanonymous_520098234(__520098235, __520098236) { - var F = {procname: "createInfo.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 835; - F.filename = "main.nim"; - HEX5BHEX5D_520098052(actionStack_520093877[0], 1).Field7(); - F.line = 836; - var _ = pop_520098135(actionStack_520093877, 0); - F.line = 837; - updateActionStack_520096416(); - framePtr = F.prev; +function HEX3Aanonymous_553652666(__553652667, __553652668) { + HEX5BHEX5D_553652484(actionStack_553648309[0], 1).Field7(); + var _ = pop_553652567(actionStack_553648309, 0); + updateActionStack_553650848(); } -function HEX3Aanonymous_520098298(__520098299, __520098300) { - var F = {procname: "createInfo.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 848; - F.filename = "main.nim"; - nextActionStack_520093882[0].push(pop_520098135(actionStack_520093877, 0));; - F.line = 849; - updateActionStack_520096416(); - framePtr = F.prev; +function HEX3Aanonymous_553652730(__553652731, __553652732) { + nextActionStack_553648314[0].push(pop_553652567(actionStack_553648309, 0));; + updateActionStack_553650848(); } var Temporary7; var Temporary9; - var result_520098036 = null; - - var F = {procname: "main.createInfo", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 802; - F.filename = "main.nim"; - F.line = 802; - var tmp_520098037 = tree_721421184(44, []); - F.line = 802; - tmp_520098037.class = "bottom-info"; - if ((turn_520093808[0] && !(((actionStack_520093877[0]).length == 0)))) { - if ((HEX5BHEX5D_520098052(actionStack_520093877[0], 1).Field1 == 0)) { - F.line = 805; - var tmp_520098038 = tree_721421184(23, []); - if (HEX5BHEX5D_520098052(actionStack_520093877[0], 1).Field5) { - F.line = 807; + var result_553652468 = null; + + var tmp_553652469 = tree_754975616(44, []); + tmp_553652469.class = "bottom-info"; + if ((turn_553648240[0] && !(((actionStack_553648309[0]).length == 0)))) { + if ((HEX5BHEX5D_553652484(actionStack_553648309[0], 1).Field1 == 0)) { + var tmp_553652470 = tree_754975616(23, []); + if (HEX5BHEX5D_553652484(actionStack_553648309[0], 1).Field5) { Label1: { - F.line = 807; - var fmtRes_520098085 = [mnewString(0)]; - F.line = 807; - fmtRes_520098085[0].push.apply(fmtRes_520098085[0], [69,120,101,99,117,116,101,32]);; - F.line = 807; - formatValue_1442840708(fmtRes_520098085, 0, HEX5BHEX5D_520098052(actionStack_520093877[0], 1).Field0); - F.line = 807; - fmtRes_520098085[0].push.apply(fmtRes_520098085[0], makeNimstrLit(" (This will end your turn, after all other actions are resolved): "));; + var fmtRes_553652517 = [mnewString(0)]; + fmtRes_553652517[0].push.apply(fmtRes_553652517[0], [69,120,101,99,117,116,101,32]);; + formatValue_1728053380(fmtRes_553652517, 0, HEX5BHEX5D_553652484(actionStack_553648309[0], 1).Field0); + fmtRes_553652517[0].push.apply(fmtRes_553652517[0], makeNimstrLit(" (This will end your turn, after all other actions are resolved): "));; }; - add_721421120(tmp_520098038, text_721421252(fmtRes_520098085[0])); + add_754975552(tmp_553652470, text_754975684(fmtRes_553652517[0])); } else { - F.line = 809; Label2: { - F.line = 809; - var fmtRes_520098099 = [mnewString(0)]; - F.line = 809; - fmtRes_520098099[0].push.apply(fmtRes_520098099[0], [69,120,101,99,117,116,101,32]);; - F.line = 809; - formatValue_1442840708(fmtRes_520098099, 0, HEX5BHEX5D_520098052(actionStack_520093877[0], 1).Field0); - F.line = 809; - fmtRes_520098099[0].push.apply(fmtRes_520098099[0], [58,32]);; + var fmtRes_553652531 = [mnewString(0)]; + fmtRes_553652531[0].push.apply(fmtRes_553652531[0], [69,120,101,99,117,116,101,32]);; + formatValue_1728053380(fmtRes_553652531, 0, HEX5BHEX5D_553652484(actionStack_553648309[0], 1).Field0); + fmtRes_553652531[0].push.apply(fmtRes_553652531[0], [58,32]);; }; - add_721421120(tmp_520098038, text_721421252(fmtRes_520098099[0])); + add_754975552(tmp_553652470, text_754975684(fmtRes_553652531[0])); } - F.line = 809; - add_721421120(tmp_520098037, tmp_520098038); - F.line = 810; - var tmp_520098039 = tree_721421184(195, []); - F.line = 811; - add_721421120(tmp_520098039, text_721421252([69,120,101,99,117,116,101,33])); - F.line = 811; - add_721421120(tmp_520098037, tmp_520098039); - F.line = 812; - addEventHandler_687867670(tmp_520098037, 0, HEX3Aanonymous_520098109, kxi__); + add_754975552(tmp_553652469, tmp_553652470); + var tmp_553652471 = tree_754975616(195, []); + add_754975552(tmp_553652471, text_754975684([69,120,101,99,117,116,101,33])); + add_754975552(tmp_553652469, tmp_553652471); + addEventHandler_721422102(tmp_553652469, 0, HEX3Aanonymous_553652541, kxi__); } else { - if (HEX5BHEX5D_520098052(actionStack_520093877[0], 1).Field4) { - F.line = 821; - var tmp_520098040 = tree_721421184(23, []); - if (HEX5BHEX5D_520098052(actionStack_520093877[0], 1).Field5) { - F.line = 823; + if (HEX5BHEX5D_553652484(actionStack_553648309[0], 1).Field4) { + var tmp_553652472 = tree_754975616(23, []); + if (HEX5BHEX5D_553652484(actionStack_553648309[0], 1).Field5) { Label3: { - F.line = 823; - var fmtRes_520098180 = [mnewString(0)]; - F.line = 823; - formatValue_1442840708(fmtRes_520098180, 0, HEX5BHEX5D_520098052(actionStack_520093877[0], 1).Field0); - F.line = 823; - fmtRes_520098180[0].push.apply(fmtRes_520098180[0], [32,119,105,108,108,32,99,111,109,112,108,101,116,101,32,105,110,32]);; - F.line = 823; - formatValue_520096976(fmtRes_520098180, 0, HEX5BHEX5D_520098052(actionStack_520093877[0], 1).Field1); - F.line = 823; - fmtRes_520098180[0].push.apply(fmtRes_520098180[0], [46,32,67,111,110,116,105,110,117,105,110,103,32,100,111,101,115,32,110,111,116,32,101,110,100,32,121,111,117,114,32,116,117,114,110,46,32]);; + var fmtRes_553652612 = [mnewString(0)]; + formatValue_1728053380(fmtRes_553652612, 0, HEX5BHEX5D_553652484(actionStack_553648309[0], 1).Field0); + fmtRes_553652612[0].push.apply(fmtRes_553652612[0], [32,119,105,108,108,32,99,111,109,112,108,101,116,101,32,105,110,32]);; + formatValue_553651408(fmtRes_553652612, 0, HEX5BHEX5D_553652484(actionStack_553648309[0], 1).Field1); + fmtRes_553652612[0].push.apply(fmtRes_553652612[0], [46,32,67,111,110,116,105,110,117,105,110,103,32,100,111,101,115,32,110,111,116,32,101,110,100,32,121,111,117,114,32,116,117,114,110,46,32]);; }; - add_721421120(tmp_520098040, text_721421252(fmtRes_520098180[0])); + add_754975552(tmp_553652472, text_754975684(fmtRes_553652612[0])); } else { - F.line = 825; Label4: { - F.line = 825; - var fmtRes_520098204 = [mnewString(0)]; - F.line = 825; - formatValue_1442840708(fmtRes_520098204, 0, HEX5BHEX5D_520098052(actionStack_520093877[0], 1).Field0); - F.line = 825; - fmtRes_520098204[0].push.apply(fmtRes_520098204[0], [32,119,105,108,108,32,99,111,109,112,108,101,116,101,32,105,110,32]);; - F.line = 825; - formatValue_520096976(fmtRes_520098204, 0, HEX5BHEX5D_520098052(actionStack_520093877[0], 1).Field1); - F.line = 825; - fmtRes_520098204[0].push.apply(fmtRes_520098204[0], [46,32,89,111,117,114,32,116,117,114,110,32,119,105,108,108,32,101,110,100,32,105,102,32,121,111,117,32,99,111,110,116,105,110,117,101,46]);; + var fmtRes_553652636 = [mnewString(0)]; + formatValue_1728053380(fmtRes_553652636, 0, HEX5BHEX5D_553652484(actionStack_553648309[0], 1).Field0); + fmtRes_553652636[0].push.apply(fmtRes_553652636[0], [32,119,105,108,108,32,99,111,109,112,108,101,116,101,32,105,110,32]);; + formatValue_553651408(fmtRes_553652636, 0, HEX5BHEX5D_553652484(actionStack_553648309[0], 1).Field1); + fmtRes_553652636[0].push.apply(fmtRes_553652636[0], [46,32,89,111,117,114,32,116,117,114,110,32,119,105,108,108,32,101,110,100,32,105,102,32,121,111,117,32,99,111,110,116,105,110,117,101,46]);; }; - add_721421120(tmp_520098040, text_721421252(fmtRes_520098204[0])); - } - - F.line = 825; - add_721421120(tmp_520098037, tmp_520098040); - F.line = 826; - var tmp_520098041 = tree_721421184(44, []); - F.line = 826; - tmp_520098041.class = "column"; - F.line = 827; - var tmp_520098042 = tree_721421184(195, []); - F.line = 828; - add_721421120(tmp_520098042, text_721421252([67,111,110,116,105,110,117,101])); - F.line = 829; - addEventHandler_687867670(tmp_520098042, 0, HEX3Aanonymous_520098224, kxi__); - F.line = 802; - add_721421120(tmp_520098041, tmp_520098042); - F.line = 832; - var tmp_520098043 = tree_721421184(195, []); - F.line = 833; - add_721421120(tmp_520098043, text_721421252([67,97,110,99,101,108])); - F.line = 834; - addEventHandler_687867670(tmp_520098043, 0, HEX3Aanonymous_520098234, kxi__); - F.line = 802; - add_721421120(tmp_520098041, tmp_520098043); - F.line = 802; - add_721421120(tmp_520098037, tmp_520098041); + add_754975552(tmp_553652472, text_754975684(fmtRes_553652636[0])); + } + + add_754975552(tmp_553652469, tmp_553652472); + var tmp_553652473 = tree_754975616(44, []); + tmp_553652473.class = "column"; + var tmp_553652474 = tree_754975616(195, []); + add_754975552(tmp_553652474, text_754975684([67,111,110,116,105,110,117,101])); + addEventHandler_721422102(tmp_553652474, 0, HEX3Aanonymous_553652656, kxi__); + add_754975552(tmp_553652473, tmp_553652474); + var tmp_553652475 = tree_754975616(195, []); + add_754975552(tmp_553652475, text_754975684([67,97,110,99,101,108])); + addEventHandler_721422102(tmp_553652475, 0, HEX3Aanonymous_553652666, kxi__); + add_754975552(tmp_553652473, tmp_553652475); + add_754975552(tmp_553652469, tmp_553652473); } else { - F.line = 839; - var tmp_520098044 = tree_721421184(23, []); - if (HEX5BHEX5D_520098052(actionStack_520093877[0], 1).Field5) { - F.line = 841; + var tmp_553652476 = tree_754975616(23, []); + if (HEX5BHEX5D_553652484(actionStack_553648309[0], 1).Field5) { Label5: { - F.line = 841; - var fmtRes_520098254 = [mnewString(0)]; - F.line = 841; - formatValue_1442840708(fmtRes_520098254, 0, HEX5BHEX5D_520098052(actionStack_520093877[0], 1).Field0); - F.line = 841; - fmtRes_520098254[0].push.apply(fmtRes_520098254[0], [32,119,105,108,108,32,114,101,115,111,108,118,101,32,105,110,32]);; - F.line = 841; - formatValue_520096976(fmtRes_520098254, 0, HEX5BHEX5D_520098052(actionStack_520093877[0], 1).Field1); - F.line = 841; - fmtRes_520098254[0].push.apply(fmtRes_520098254[0], [32,116,117,114,110,115,46]);; + var fmtRes_553652686 = [mnewString(0)]; + formatValue_1728053380(fmtRes_553652686, 0, HEX5BHEX5D_553652484(actionStack_553648309[0], 1).Field0); + fmtRes_553652686[0].push.apply(fmtRes_553652686[0], [32,119,105,108,108,32,114,101,115,111,108,118,101,32,105,110,32]);; + formatValue_553651408(fmtRes_553652686, 0, HEX5BHEX5D_553652484(actionStack_553648309[0], 1).Field1); + fmtRes_553652686[0].push.apply(fmtRes_553652686[0], [32,116,117,114,110,115,46]);; }; - add_721421120(tmp_520098044, text_721421252(fmtRes_520098254[0])); + add_754975552(tmp_553652476, text_754975684(fmtRes_553652686[0])); } else { - F.line = 843; Label6: { - F.line = 843; - var fmtRes_520098278 = [mnewString(0)]; - F.line = 843; - formatValue_1442840708(fmtRes_520098278, 0, HEX5BHEX5D_520098052(actionStack_520093877[0], 1).Field0); - F.line = 843; - fmtRes_520098278[0].push.apply(fmtRes_520098278[0], [32,119,105,108,108,32,114,101,115,111,108,118,101,32,105,110,32]);; - F.line = 843; - formatValue_520096976(fmtRes_520098278, 0, HEX5BHEX5D_520098052(actionStack_520093877[0], 1).Field1); - F.line = 843; - fmtRes_520098278[0].push.apply(fmtRes_520098278[0], makeNimstrLit(" turns.\x0A This will end your turn, once all other actions are resolved."));; + var fmtRes_553652710 = [mnewString(0)]; + formatValue_1728053380(fmtRes_553652710, 0, HEX5BHEX5D_553652484(actionStack_553648309[0], 1).Field0); + fmtRes_553652710[0].push.apply(fmtRes_553652710[0], [32,119,105,108,108,32,114,101,115,111,108,118,101,32,105,110,32]);; + formatValue_553651408(fmtRes_553652710, 0, HEX5BHEX5D_553652484(actionStack_553648309[0], 1).Field1); + fmtRes_553652710[0].push.apply(fmtRes_553652710[0], makeNimstrLit(" turns.\x0A This will end your turn, once all other actions are resolved."));; }; - add_721421120(tmp_520098044, text_721421252(fmtRes_520098278[0])); + add_754975552(tmp_553652476, text_754975684(fmtRes_553652710[0])); } - F.line = 843; - add_721421120(tmp_520098037, tmp_520098044); - F.line = 845; - var tmp_520098045 = tree_721421184(195, []); - F.line = 846; - add_721421120(tmp_520098045, text_721421252([79,107])); - F.line = 847; - addEventHandler_687867670(tmp_520098045, 0, HEX3Aanonymous_520098298, kxi__); - F.line = 802; - add_721421120(tmp_520098037, tmp_520098045); + add_754975552(tmp_553652469, tmp_553652476); + var tmp_553652477 = tree_754975616(195, []); + add_754975552(tmp_553652477, text_754975684([79,107])); + addEventHandler_721422102(tmp_553652477, 0, HEX3Aanonymous_553652730, kxi__); + add_754975552(tmp_553652469, tmp_553652477); } } } else { - if (((promptStack_520093897[0]).length == 0)) { - F.line = 851; - if (turn_520093808[0]) { + if (((promptStack_553648329[0]).length == 0)) { + if (turn_553648240[0]) { Temporary7 = [73,116,32,105,115,32,121,111,117,114,32,116,117,114,110,46,32]; } else { Temporary7 = [79,112,112,111,110,101,110,116,32,105,115,32,109,111,118,105,110,103,46,32]; } - var text_520098311 = nimCopy(null, Temporary7, NTI33554449); - if (hasWallet_1526726660(side_520093807[0], theState_520093826[0])) { - F.line = 853; + var text_553652743 = nimCopy(null, Temporary7, NTI33554449); + if (hasWallet_1879048196(side_553648239[0], theState_553648258[0])) { Label8: { - F.line = 853; - var fmtRes_520098316 = [mnewString(0)]; - F.line = 853; - fmtRes_520098316[0].push.apply(fmtRes_520098316[0], [89,111,117,32,104,97,118,101,32]);; - F.line = 853; - formatValue_520096976(fmtRes_520098316, 0, getMoney_1526726671(side_520093807[0], theState_520093826[0])); - F.line = 853; - fmtRes_520098316[0].push.apply(fmtRes_520098316[0], [32,100,111,108,108,97,114,115,46]);; + var fmtRes_553652748 = [mnewString(0)]; + fmtRes_553652748[0].push.apply(fmtRes_553652748[0], [89,111,117,32,104,97,118,101,32]);; + formatValue_553651408(fmtRes_553652748, 0, getMoney_1879048207(side_553648239[0], theState_553648258[0])); + fmtRes_553652748[0].push.apply(fmtRes_553652748[0], [32,100,111,108,108,97,114,115,46]);; }; - text_520098311.push.apply(text_520098311, fmtRes_520098316[0]);; + text_553652743.push.apply(text_553652743, fmtRes_553652748[0]);; } - F.line = 854; - var tmp_520098046 = tree_721421184(23, []); - F.line = 855; - add_721421120(tmp_520098046, text_721421252(text_520098311)); - F.line = 855; - add_721421120(tmp_520098037, tmp_520098046); + var tmp_553652478 = tree_754975616(23, []); + add_754975552(tmp_553652478, text_754975684(text_553652743)); + add_754975552(tmp_553652469, tmp_553652478); } else { - F.line = 857; - var tmp_520098047 = tree_721421184(23, []); - F.line = 858; - add_721421120(tmp_520098047, text_721421252((Temporary9 = HEX5BHEX5D_520098323(promptStack_520093897[0], 1), Temporary9)[0][Temporary9[1]])); - F.line = 858; - add_721421120(tmp_520098037, tmp_520098047); - F.line = 859; - var tmp_520098048 = tree_721421184(195, []); - F.line = 859; - addEventHandler_687867670(tmp_520098048, 0, cancelPick_520097233, kxi__); - F.line = 860; - add_721421120(tmp_520098048, text_721421252([85,110,100,111,32,108,97,115,116])); - F.line = 860; - add_721421120(tmp_520098037, tmp_520098048); + var tmp_553652479 = tree_754975616(23, []); + add_754975552(tmp_553652479, text_754975684((Temporary9 = HEX5BHEX5D_553652755(promptStack_553648329[0], 1), Temporary9)[0][Temporary9[1]])); + add_754975552(tmp_553652469, tmp_553652479); + var tmp_553652480 = tree_754975616(195, []); + addEventHandler_721422102(tmp_553652480, 0, cancelPick_553651665, kxi__); + add_754975552(tmp_553652480, text_754975684([85,110,100,111,32,108,97,115,116])); + add_754975552(tmp_553652469, tmp_553652480); } } - result_520098036 = tmp_520098037; - framePtr = F.prev; + result_553652468 = tmp_553652469; - return result_520098036; + return result_553652468; } -function createGame_520098968() { +function createGame_553653400() { var Temporary1; var Temporary2; var Temporary3; -function HEX3Aanonymous_520098990(__520098991, __520098992) { - var F = {procname: "createGame.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 962; - F.filename = "main.nim"; - clear_520094026(); - F.line = 963; - practiceMode_520093850[0] = false; - F.line = 964; - currentScreen_520093855[0] = 11; - framePtr = F.prev; +function HEX3Aanonymous_553653422(__553653423, __553653424) { + clear_553648458(); + practiceMode_553648282[0] = false; + currentScreen_553648287[0] = 11; } -function HEX3Aanonymous_520098996(__520098997, __520098998) { - var F = {procname: "createGame.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 970; - F.filename = "main.nim"; - currentTab_520093856[0] = 0; - framePtr = F.prev; +function HEX3Aanonymous_553653428(__553653429, __553653430) { + currentTab_553648288[0] = 0; } -function HEX3Aanonymous_520099018(__520099019, __520099020) { - var F = {procname: "createGame.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 975; - F.filename = "main.nim"; - currentTab_520093856[0] = 1; - framePtr = F.prev; +function HEX3Aanonymous_553653450(__553653451, __553653452) { + currentTab_553648288[0] = 1; } -function HEX3Aanonymous_520099021(__520099022, __520099023) { - var F = {procname: "createGame.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 979; - F.filename = "main.nim"; - currentTab_520093856[0] = 2; - framePtr = F.prev; +function HEX3Aanonymous_553653453(__553653454, __553653455) { + currentTab_553648288[0] = 2; } -function HEX3Aanonymous_520099024(__520099025, __520099026) { - var F = {procname: "createGame.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 984; - F.filename = "main.nim"; - currentTab_520093856[0] = 3; - framePtr = F.prev; +function HEX3Aanonymous_553653456(__553653457, __553653458) { + currentTab_553648288[0] = 3; } -function HEX3Aanonymous_520099031(__520099032, __520099033) { - var F = {procname: "createGame.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 997; - F.filename = "main.nim"; - showDebug_520093853[0] = true; - framePtr = F.prev; +function HEX3Aanonymous_553653463(__553653464, __553653465) { + showDebug_553648285[0] = true; } - var result_520098969 = null; + var result_553653401 = null; - var F = {procname: "main.createGame", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 953; - F.filename = "main.nim"; - F.line = 953; - if ((1200 < screenWidth_520093858[0])) { + if ((1200 < screenWidth_553648290[0])) { Temporary1 = [109,97,105,110]; } else { Temporary1 = [99,111,108,117,109,110,32,104,101,105,103,104,116,45,49,48,48]; } - var topClass_520098970 = nimCopy(null, Temporary1, NTI33554449); - F.line = 954; - if ((1200 < screenWidth_520093858[0])) { + var topClass_553653402 = nimCopy(null, Temporary1, NTI33554449); + if ((1200 < screenWidth_553648290[0])) { Temporary2 = [116,97,98,45,99,111,108,117,109,110]; } else { Temporary2 = [116,97,98,45,99,111,108,117,109,110,32,108,111,110,103]; } - var nextClass_520098971 = nimCopy(null, Temporary2, NTI33554449); - F.line = 955; - var tmp_520098972 = tree_721421184(44, []); - F.line = 955; - tmp_520098972.class = toJSStr(topClass_520098970); - F.line = 956; - var tmp_520098973 = tree_721421184(44, []); - F.line = 956; - tmp_520098973.class = toJSStr(nextClass_520098971); - if (practiceMode_520093850[0]) { - F.line = 958; - if ((1200 < screenWidth_520093858[0])) { + var nextClass_553653403 = nimCopy(null, Temporary2, NTI33554449); + var tmp_553653404 = tree_754975616(44, []); + tmp_553653404.class = toJSStr(topClass_553653402); + var tmp_553653405 = tree_754975616(44, []); + tmp_553653405.class = toJSStr(nextClass_553653403); + if (practiceMode_553648282[0]) { + if ((1200 < screenWidth_553648290[0])) { Temporary3 = [109,111,118,101,45,117,112,32,119,105,100,116,104,45,55,48]; } else { Temporary3 = [109,111,118,101,45,114,105,103,104,116]; } - var class_520098989 = nimCopy(null, Temporary3, NTI33554449); - F.line = 959; - var tmp_520098974 = tree_721421184(195, []); - F.line = 959; - tmp_520098974.class = toJSStr(class_520098989); - F.line = 959; - tmp_520098974.id = "exit-practice"; - F.line = 960; - add_721421120(tmp_520098974, text_721421252([69,120,105,116,32,112,114,97,99,116,105,99,101])); - F.line = 961; - addEventHandler_687867670(tmp_520098974, 0, HEX3Aanonymous_520098990, kxi__); - F.line = 955; - add_721421120(tmp_520098973, tmp_520098974); - } - - F.line = 965; - var tmp_520098975 = tree_721421184(44, []); - F.line = 965; - tmp_520098975.class = "tab-row extra-right"; - if (!(((myDrafts_520093813[0]).length == 0))) { - F.line = 967; - var tmp_520098976 = tree_721421184(195, []); - F.line = 968; - add_721421120(tmp_520098976, text_721421252([89,111,117,114,32,68,114,97,102,116,115])); - F.line = 969; - addEventHandler_687867670(tmp_520098976, 0, HEX3Aanonymous_520098996, kxi__); - F.line = 955; - add_721421120(tmp_520098975, tmp_520098976); - } - - if (!(((opponentDrafts_520093818[0]).length == 0))) { - F.line = 972; - var tmp_520098977 = tree_721421184(195, []); - F.line = 973; - add_721421120(tmp_520098977, text_721421252([79,112,112,111,110,101,110,116,32,68,114,97,102,116,115])); - F.line = 974; - addEventHandler_687867670(tmp_520098977, 0, HEX3Aanonymous_520099018, kxi__); - F.line = 955; - add_721421120(tmp_520098975, tmp_520098977); - } - - F.line = 976; - var tmp_520098978 = tree_721421184(195, []); - F.line = 977; - add_721421120(tmp_520098978, text_721421252([80,111,119,101,114,32,67,111,110,116,114,111,108])); - F.line = 978; - addEventHandler_687867670(tmp_520098978, 0, HEX3Aanonymous_520099021, kxi__); - F.line = 955; - add_721421120(tmp_520098975, tmp_520098978); - if ((true || showDebug_520093853[0])) { - F.line = 981; - var tmp_520098979 = tree_721421184(195, []); - F.line = 982; - add_721421120(tmp_520098979, text_721421252([68,101,98,117,103])); - F.line = 983; - addEventHandler_687867670(tmp_520098979, 0, HEX3Aanonymous_520099024, kxi__); - F.line = 955; - add_721421120(tmp_520098975, tmp_520098979); - } - - F.line = 955; - add_721421120(tmp_520098973, tmp_520098975); - F.line = 989; - var tmp_520098980 = tree_721421184(44, []); - F.line = 989; - tmp_520098980.class = "column-scroll"; - F.line = 990; - switch (currentTab_520093856[0]) { + var class_553653421 = nimCopy(null, Temporary3, NTI33554449); + var tmp_553653406 = tree_754975616(195, []); + tmp_553653406.class = toJSStr(class_553653421); + tmp_553653406.id = "exit-practice"; + add_754975552(tmp_553653406, text_754975684([69,120,105,116,32,112,114,97,99,116,105,99,101])); + addEventHandler_721422102(tmp_553653406, 0, HEX3Aanonymous_553653422, kxi__); + add_754975552(tmp_553653405, tmp_553653406); + } + + var tmp_553653407 = tree_754975616(44, []); + tmp_553653407.class = "tab-row extra-right"; + if (!(((myDrafts_553648245[0]).length == 0))) { + var tmp_553653408 = tree_754975616(195, []); + add_754975552(tmp_553653408, text_754975684([89,111,117,114,32,68,114,97,102,116,115])); + addEventHandler_721422102(tmp_553653408, 0, HEX3Aanonymous_553653428, kxi__); + add_754975552(tmp_553653407, tmp_553653408); + } + + if (!(((opponentDrafts_553648250[0]).length == 0))) { + var tmp_553653409 = tree_754975616(195, []); + add_754975552(tmp_553653409, text_754975684([79,112,112,111,110,101,110,116,32,68,114,97,102,116,115])); + addEventHandler_721422102(tmp_553653409, 0, HEX3Aanonymous_553653450, kxi__); + add_754975552(tmp_553653407, tmp_553653409); + } + + var tmp_553653410 = tree_754975616(195, []); + add_754975552(tmp_553653410, text_754975684([80,111,119,101,114,32,67,111,110,116,114,111,108])); + addEventHandler_721422102(tmp_553653410, 0, HEX3Aanonymous_553653453, kxi__); + add_754975552(tmp_553653407, tmp_553653410); + if ((false || showDebug_553648285[0])) { + var tmp_553653411 = tree_754975616(195, []); + add_754975552(tmp_553653411, text_754975684([68,101,98,117,103])); + addEventHandler_721422102(tmp_553653411, 0, HEX3Aanonymous_553653456, kxi__); + add_754975552(tmp_553653407, tmp_553653411); + } + + add_754975552(tmp_553653405, tmp_553653407); + var tmp_553653412 = tree_754975616(44, []); + tmp_553653412.class = "column-scroll"; + switch (currentTab_553648288[0]) { case 0: Label4: { - F.line = 992; - var p_520099030 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); - F.line = 247; - F.filename = "iterators.nim"; - var colontmp__520100749 = []; - F.line = 992; - F.filename = "main.nim"; - colontmp__520100749 = replaceAnySynergies_1442842012(myDrafts_520093813[0]); - F.line = 249; - F.filename = "iterators.nim"; - var i_520100750 = 0; - F.line = 250; - var L_520100751 = (colontmp__520100749).length; + var p_553653462 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); + var colontmp__553655181 = []; + colontmp__553655181 = replaceAnySynergies_1728054684(myDrafts_553648245[0]); + var i_553655182 = 0; + var L_553655183 = (colontmp__553655181).length; Label5: { - F.line = 251; Label6: while (true) { - if (!(i_520100750 < L_520100751)) break Label6; - F.line = 992; - F.filename = "main.nim"; - p_520099030 = colontmp__520100749[chckIndx(i_520100750, 0, (colontmp__520100749).length - 1)]; - F.line = 993; - add_721421120(tmp_520098980, createPowerSummary_520097948(p_520099030, side_520093807[0])); - F.line = 13; - F.filename = "iterators.nim"; - i_520100750 += 1; - if (!(((colontmp__520100749).length == L_520100751))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + if (!(i_553655182 < L_553655183)) break Label6; + p_553653462 = colontmp__553655181[chckIndx(i_553655182, 0, (colontmp__553655181).length - 1)]; + add_754975552(tmp_553653412, createPowerSummary_553652380(p_553653462, side_553648239[0])); + i_553655182 += 1; + if (!(((colontmp__553655181).length == L_553655183))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - if (!(practiceMode_520093850[0])) { - F.line = 995; - F.filename = "main.nim"; - var tmp_520098981 = tree_721421184(44, []); - F.line = 995; - tmp_520098981.class = "debug"; - F.line = 996; - addEventHandler_687867670(tmp_520098981, 0, HEX3Aanonymous_520099031, kxi__); - F.line = 955; - add_721421120(tmp_520098980, tmp_520098981); + if (!(practiceMode_553648282[0])) { + var tmp_553653413 = tree_754975616(44, []); + tmp_553653413.class = "debug"; + addEventHandler_721422102(tmp_553653413, 0, HEX3Aanonymous_553653463, kxi__); + add_754975552(tmp_553653412, tmp_553653413); } break; case 1: Label7: { - F.line = 1000; - var p_520099037 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); - F.line = 247; - F.filename = "iterators.nim"; - var colontmp__520100754 = []; - F.line = 1000; - F.filename = "main.nim"; - colontmp__520100754 = replaceAnySynergies_1442842012(opponentDrafts_520093818[0]); - F.line = 249; - F.filename = "iterators.nim"; - var i_520100755 = 0; - F.line = 250; - var L_520100756 = (colontmp__520100754).length; + var p_553653469 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); + var colontmp__553655186 = []; + colontmp__553655186 = replaceAnySynergies_1728054684(opponentDrafts_553648250[0]); + var i_553655187 = 0; + var L_553655188 = (colontmp__553655186).length; Label8: { - F.line = 251; Label9: while (true) { - if (!(i_520100755 < L_520100756)) break Label9; - F.line = 1000; - F.filename = "main.nim"; - p_520099037 = colontmp__520100754[chckIndx(i_520100755, 0, (colontmp__520100754).length - 1)]; - F.line = 1001; - add_721421120(tmp_520098980, createPowerSummary_520097948(p_520099037, otherSide_1224737821(side_520093807[0]))); - F.line = 13; - F.filename = "iterators.nim"; - i_520100755 += 1; - if (!(((colontmp__520100754).length == L_520100756))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + if (!(i_553655187 < L_553655188)) break Label9; + p_553653469 = colontmp__553655186[chckIndx(i_553655187, 0, (colontmp__553655186).length - 1)]; + add_754975552(tmp_553653412, createPowerSummary_553652380(p_553653469, otherSide_1476396061(side_553648239[0]))); + i_553655187 += 1; + if (!(((colontmp__553655186).length == L_553655188))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } @@ -25526,509 +16558,303 @@ function HEX3Aanonymous_520099031(__520099032, __520099033) { }; break; case 2: - if ((isSelected_520093927((-1), (-1)) || isAir_1224737796(HEX5BHEX5D_1224737124(theBoard_520093825[0], selectedTile_520093829[0])))) { - F.line = 1004; - F.filename = "main.nim"; - add_721421120(tmp_520098980, createPieceProfile_520097999(HEX5BHEX5D_1224737124(theBoard_520093825[0], getKing_1224738009(side_520093807[0], theBoard_520093825[0])))); + if ((isSelected_553648359((-1), (-1)) || isAir_1476396036(HEX5BHEX5D_1476395364(theBoard_553648257[0], selectedTile_553648261[0])))) { + add_754975552(tmp_553653412, createPieceProfile_553652431(HEX5BHEX5D_1476395364(theBoard_553648257[0], getKing_1476396249(side_553648239[0], theBoard_553648257[0])))); } else { - F.line = 1006; - add_721421120(tmp_520098980, createPieceProfile_520097999(pieceOf_520093924(selectedTile_520093829[0]))); + add_754975552(tmp_553653412, createPieceProfile_553652431(pieceOf_553648356(selectedTile_553648261[0]))); } - if (hasGlass_1560281096(side_520093807[0], theState_520093826[0])) { - F.line = 1008; - add_721421120(tmp_520098980, createGlassMenu_520098422()); + if (hasGlass_1946157064(side_553648239[0], theState_553648258[0])) { + add_754975552(tmp_553653412, createGlassMenu_553652854()); } break; case 3: - F.line = 1010; - var tmp_520098982 = tree_721421184(44, []); - F.line = 1010; - tmp_520098982.class = "main"; - F.line = 1011; + var tmp_553653414 = tree_754975616(44, []); + tmp_553653414.class = "main"; Label10: { - F.line = 1011; - var fmtRes_520099140 = [mnewString(0)]; - F.line = 1011; - fmtRes_520099140[0].push.apply(fmtRes_520099140[0], [83,104,97,114,101,100,58,32]);; - F.line = 1011; - formatValue_1442840708(fmtRes_520099140, 0, HEX24_520099141(theState_520093826[0].Field0)); + var fmtRes_553653572 = [mnewString(0)]; + fmtRes_553653572[0].push.apply(fmtRes_553653572[0], [83,104,97,114,101,100,58,32]);; + formatValue_1728053380(fmtRes_553653572, 0, HEX24_553653573(theState_553648258[0].Field0)); }; - add_721421120(tmp_520098982, text_721421252(fmtRes_520099140[0])); - F.line = 1011; - add_721421120(tmp_520098980, tmp_520098982); - F.line = 1012; - var tmp_520098983 = tree_721421184(44, []); - F.line = 1012; - tmp_520098983.class = "main"; - F.line = 1013; + add_754975552(tmp_553653414, text_754975684(fmtRes_553653572[0])); + add_754975552(tmp_553653412, tmp_553653414); + var tmp_553653415 = tree_754975616(44, []); + tmp_553653415.class = "main"; Label11: { - F.line = 1013; - var fmtRes_520099216 = [mnewString(0)]; - F.line = 1013; - fmtRes_520099216[0].push.apply(fmtRes_520099216[0], [87,104,105,116,101,58,32]);; - F.line = 1013; - formatValue_1442840708(fmtRes_520099216, 0, HEX24_1493175945(theState_520093826[0].Field1[chckIndx(1, 0, (theState_520093826[0].Field1).length - 1)])); + var fmtRes_553653648 = [mnewString(0)]; + fmtRes_553653648[0].push.apply(fmtRes_553653648[0], [87,104,105,116,101,58,32]);; + formatValue_1728053380(fmtRes_553653648, 0, HEX24_1845497504(theState_553648258[0].Field1[chckIndx(1, 0, (theState_553648258[0].Field1).length - 1)])); }; - add_721421120(tmp_520098983, text_721421252(fmtRes_520099216[0])); - F.line = 1013; - add_721421120(tmp_520098980, tmp_520098983); - F.line = 1014; - var tmp_520098984 = tree_721421184(44, []); - F.line = 1014; - tmp_520098984.class = "main"; - F.line = 1015; + add_754975552(tmp_553653415, text_754975684(fmtRes_553653648[0])); + add_754975552(tmp_553653412, tmp_553653415); + var tmp_553653416 = tree_754975616(44, []); + tmp_553653416.class = "main"; Label12: { - F.line = 1015; - var fmtRes_520099229 = [mnewString(0)]; - F.line = 1015; - fmtRes_520099229[0].push.apply(fmtRes_520099229[0], [66,108,97,99,107,58,32]);; - F.line = 1015; - formatValue_1442840708(fmtRes_520099229, 0, HEX24_1493175945(theState_520093826[0].Field1[chckIndx(0, 0, (theState_520093826[0].Field1).length - 1)])); + var fmtRes_553653661 = [mnewString(0)]; + fmtRes_553653661[0].push.apply(fmtRes_553653661[0], [66,108,97,99,107,58,32]);; + formatValue_1728053380(fmtRes_553653661, 0, HEX24_1845497504(theState_553648258[0].Field1[chckIndx(0, 0, (theState_553648258[0].Field1).length - 1)])); }; - add_721421120(tmp_520098984, text_721421252(fmtRes_520099229[0])); - F.line = 1015; - add_721421120(tmp_520098980, tmp_520098984); - if (!(isSelected_520093927((-1), (-1)))) { - F.line = 1017; - var tmp_520098985 = tree_721421184(44, []); - F.line = 1017; - tmp_520098985.class = "main"; - F.line = 1018; + add_754975552(tmp_553653416, text_754975684(fmtRes_553653661[0])); + add_754975552(tmp_553653412, tmp_553653416); + if (!(isSelected_553648359((-1), (-1)))) { + var tmp_553653417 = tree_754975616(44, []); + tmp_553653417.class = "main"; Label13: { - F.line = 1018; - var fmtRes_520099242 = [mnewString(0)]; - F.line = 1018; - fmtRes_520099242[0].push.apply(fmtRes_520099242[0], [83,101,108,101,99,116,101,100,32,112,105,101,99,101,58,32]);; - F.line = 1018; - formatValue_1442840708(fmtRes_520099242, 0, HEX24_1493176549(pieceOf_520093924(selectedTile_520093829[0]))); + var fmtRes_553653674 = [mnewString(0)]; + fmtRes_553653674[0].push.apply(fmtRes_553653674[0], [83,101,108,101,99,116,101,100,32,112,105,101,99,101,58,32]);; + formatValue_1728053380(fmtRes_553653674, 0, HEX24_1845498108(pieceOf_553648356(selectedTile_553648261[0]))); }; - add_721421120(tmp_520098985, text_721421252(fmtRes_520099242[0])); - F.line = 1018; - add_721421120(tmp_520098980, tmp_520098985); + add_754975552(tmp_553653417, text_754975684(fmtRes_553653674[0])); + add_754975552(tmp_553653412, tmp_553653417); } - F.line = 1019; - var tmp_520098986 = tree_721421184(44, []); - F.line = 1019; - tmp_520098986.class = "main"; - F.line = 1020; + var tmp_553653418 = tree_754975616(44, []); + tmp_553653418.class = "main"; Label14: { - F.line = 1020; - var fmtRes_520099255 = [mnewString(0)]; - F.line = 1020; - fmtRes_520099255[0].push.apply(fmtRes_520099255[0], [65,99,116,105,111,110,32,83,116,97,99,107,58,32]);; - F.line = 1020; - formatValue_520099256(fmtRes_520099255, 0, actionStack_520093877[0]); + var fmtRes_553653687 = [mnewString(0)]; + fmtRes_553653687[0].push.apply(fmtRes_553653687[0], [65,99,116,105,111,110,32,83,116,97,99,107,58,32]);; + formatValue_553653688(fmtRes_553653687, 0, actionStack_553648309[0]); }; - add_721421120(tmp_520098986, text_721421252(fmtRes_520099255[0])); - F.line = 1020; - add_721421120(tmp_520098980, tmp_520098986); - F.line = 1021; - var tmp_520098987 = tree_721421184(44, []); - F.line = 1021; - tmp_520098987.class = "main"; - F.line = 1022; + add_754975552(tmp_553653418, text_754975684(fmtRes_553653687[0])); + add_754975552(tmp_553653412, tmp_553653418); + var tmp_553653419 = tree_754975616(44, []); + tmp_553653419.class = "main"; Label15: { - F.line = 1022; - var fmtRes_520099274 = [mnewString(0)]; - F.line = 1022; - fmtRes_520099274[0].push.apply(fmtRes_520099274[0], [78,101,120,116,32,65,99,116,105,111,110,83,116,97,99,107,58,32]);; - F.line = 1022; - formatValue_520099256(fmtRes_520099274, 0, nextActionStack_520093882[0]); + var fmtRes_553653706 = [mnewString(0)]; + fmtRes_553653706[0].push.apply(fmtRes_553653706[0], [78,101,120,116,32,65,99,116,105,111,110,83,116,97,99,107,58,32]);; + formatValue_553653688(fmtRes_553653706, 0, nextActionStack_553648314[0]); }; - add_721421120(tmp_520098987, text_721421252(fmtRes_520099274[0])); - F.line = 1022; - add_721421120(tmp_520098980, tmp_520098987); + add_754975552(tmp_553653419, text_754975684(fmtRes_553653706[0])); + add_754975552(tmp_553653412, tmp_553653419); break; } - F.line = 1022; - add_721421120(tmp_520098973, tmp_520098980); - F.line = 1022; - add_721421120(tmp_520098972, tmp_520098973); - F.line = 1024; - var tmp_520098988 = tree_721421184(44, []); - F.line = 1024; - tmp_520098988.class = "column"; - if ((side_520093807[0] == 1)) { - F.line = 1025; - add_721421120(tmp_520098988, createBoard_520097617()); + add_754975552(tmp_553653405, tmp_553653412); + add_754975552(tmp_553653404, tmp_553653405); + var tmp_553653420 = tree_754975616(44, []); + tmp_553653420.class = "column"; + if ((side_553648239[0] == 1)) { + add_754975552(tmp_553653420, createBoard_553652049()); } else { - F.line = 1025; - add_721421120(tmp_520098988, reverseBoard_520097637()); + add_754975552(tmp_553653420, reverseBoard_553652069()); } - F.line = 1026; - add_721421120(tmp_520098988, createInfo_520098035()); - F.line = 1026; - add_721421120(tmp_520098972, tmp_520098988); - result_520098969 = tmp_520098972; - framePtr = F.prev; + add_754975552(tmp_553653420, createInfo_553652467()); + add_754975552(tmp_553653404, tmp_553653420); + result_553653401 = tmp_553653404; - return result_520098969; + return result_553653401; } -function createResults_520099285() { +function createResults_553653717() { -function HEX3Aanonymous_520099293(__520099294, __520099295) { - var F = {procname: "createResults.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 1040; - F.filename = "main.nim"; - currentScreen_520093855[0] = 0; - F.line = 1041; - practiceMode_520093850[0] = false; - framePtr = F.prev; +function HEX3Aanonymous_553653725(__553653726, __553653727) { + currentScreen_553648287[0] = 0; + practiceMode_553648282[0] = false; } -function HEX3Aanonymous_520099296(__520099297, __520099298) { - var F = {procname: "createResults.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - if ((side_520093807[0] == 0)) { - F.line = 1048; - F.filename = "main.nim"; - joinLogic_520097388([], 5); +function HEX3Aanonymous_553653728(__553653729, __553653730) { + if ((side_553648239[0] == 0)) { + joinLogic_553651820([], 5); } else { - F.line = 1050; - peer_520093806[0].Field0("rematch:please"); + peer_553648238[0].Field0("rematch:please"); } - F.line = 1051; - currentScreen_520093855[0] = 7; - framePtr = F.prev; + currentScreen_553648287[0] = 7; } -function HEX3Aanonymous_520099305(__520099306, __520099307) { - var F = {procname: "createResults.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - if ((side_520093807[0] == 1)) { - F.line = 1057; - F.filename = "main.nim"; - hostLogic_520097343([], 4); +function HEX3Aanonymous_553653737(__553653738, __553653739) { + if ((side_553648239[0] == 1)) { + hostLogic_553651775([], 4); } else { - if ((side_520093807[0] == 0)) { - F.line = 1059; - joinLogic_520097388([], 4); + if ((side_553648239[0] == 0)) { + joinLogic_553651820([], 4); } } - F.line = 1060; - currentScreen_520093855[0] = 0; - framePtr = F.prev; + currentScreen_553648287[0] = 0; } - var result_520099286 = null; - - var F = {procname: "main.createResults", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 1029; - F.filename = "main.nim"; - F.line = 1029; - var tmp_520099287 = tree_721421184(44, []); - F.line = 1029; - tmp_520099287.class = "start-column"; - if (alive_1224737828(side_520093807[0], theBoard_520093825[0])) { - F.line = 1031; - var tmp_520099288 = tree_721421184(21, []); - F.line = 1032; - add_721421120(tmp_520099288, text_721421252([89,111,117,32,119,111,110,33])); - F.line = 1032; - add_721421120(tmp_520099287, tmp_520099288); + var result_553653718 = null; + + var tmp_553653719 = tree_754975616(44, []); + tmp_553653719.class = "start-column"; + if (alive_1476396068(side_553648239[0], theBoard_553648257[0])) { + var tmp_553653720 = tree_754975616(21, []); + add_754975552(tmp_553653720, text_754975684([89,111,117,32,119,111,110,33])); + add_754975552(tmp_553653719, tmp_553653720); } else { - F.line = 1034; - var tmp_520099289 = tree_721421184(21, []); - F.line = 1035; - add_721421120(tmp_520099289, text_721421252([89,111,117,32,108,111,115,116,46,46,46])); - F.line = 1035; - add_721421120(tmp_520099287, tmp_520099289); - } - - if (practiceMode_520093850[0]) { - F.line = 1038; - var tmp_520099290 = tree_721421184(195, []); - F.line = 1039; - addEventHandler_687867670(tmp_520099290, 0, HEX3Aanonymous_520099293, kxi__); - F.line = 1043; - add_721421120(tmp_520099290, text_721421252([66,97,99,107,32,116,111,32,76,111,98,98,121])); - F.line = 1043; - add_721421120(tmp_520099287, tmp_520099290); + var tmp_553653721 = tree_754975616(21, []); + add_754975552(tmp_553653721, text_754975684([89,111,117,32,108,111,115,116,46,46,46])); + add_754975552(tmp_553653719, tmp_553653721); + } + + if (practiceMode_553648282[0]) { + var tmp_553653722 = tree_754975616(195, []); + addEventHandler_721422102(tmp_553653722, 0, HEX3Aanonymous_553653725, kxi__); + add_754975552(tmp_553653722, text_754975684([66,97,99,107,32,116,111,32,76,111,98,98,121])); + add_754975552(tmp_553653719, tmp_553653722); } else { - F.line = 1045; - var tmp_520099291 = tree_721421184(195, []); - F.line = 1046; - addEventHandler_687867670(tmp_520099291, 0, HEX3Aanonymous_520099296, kxi__); - F.line = 1052; - add_721421120(tmp_520099291, text_721421252([82,101,109,97,116,99,104])); - F.line = 1052; - add_721421120(tmp_520099287, tmp_520099291); - F.line = 1054; - var tmp_520099292 = tree_721421184(195, []); - F.line = 1055; - addEventHandler_687867670(tmp_520099292, 0, HEX3Aanonymous_520099305, kxi__); - F.line = 1062; - add_721421120(tmp_520099292, text_721421252([66,97,99,107,32,116,111,32,76,111,98,98,121])); - F.line = 1062; - add_721421120(tmp_520099287, tmp_520099292); - } - - result_520099286 = tmp_520099287; - framePtr = F.prev; - - return result_520099286; - -} - -function createRematch_520099316() { - -function HEX3Aanonymous_520099320(__520099321, __520099322) { - var F = {procname: "createRematch.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 1069; - F.filename = "main.nim"; - currentScreen_520093855[0] = 0; - F.line = 1070; - peer_520093806[0].Field0("end:exit"); - framePtr = F.prev; + var tmp_553653723 = tree_754975616(195, []); + addEventHandler_721422102(tmp_553653723, 0, HEX3Aanonymous_553653728, kxi__); + add_754975552(tmp_553653723, text_754975684([82,101,109,97,116,99,104])); + add_754975552(tmp_553653719, tmp_553653723); + var tmp_553653724 = tree_754975616(195, []); + addEventHandler_721422102(tmp_553653724, 0, HEX3Aanonymous_553653737, kxi__); + add_754975552(tmp_553653724, text_754975684([66,97,99,107,32,116,111,32,76,111,98,98,121])); + add_754975552(tmp_553653719, tmp_553653724); + } + + result_553653718 = tmp_553653719; + + return result_553653718; + +} + +function createRematch_553653748() { + +function HEX3Aanonymous_553653752(__553653753, __553653754) { + currentScreen_553648287[0] = 0; + peer_553648238[0].Field0("end:exit"); } - var result_520099317 = null; + var result_553653749 = null; - var F = {procname: "main.createRematch", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 1065; - F.filename = "main.nim"; - F.line = 1065; - var tmp_520099318 = tree_721421184(44, []); - F.line = 1065; - tmp_520099318.class = "main"; - F.line = 1066; - add_721421120(tmp_520099318, text_721421252([87,97,105,116,105,110,103,32,102,111,114,32,111,112,112,111,110,101,110,116,32,116,111,32,97,99,99,101,112,116,46,46,46])); - F.line = 1067; - var tmp_520099319 = tree_721421184(195, []); - F.line = 1068; - addEventHandler_687867670(tmp_520099319, 0, HEX3Aanonymous_520099320, kxi__); - F.line = 1071; - add_721421120(tmp_520099319, text_721421252([66,97,99,107,32,116,111,32,76,111,98,98,121])); - F.line = 1071; - add_721421120(tmp_520099318, tmp_520099319); - result_520099317 = tmp_520099318; - framePtr = F.prev; + var tmp_553653750 = tree_754975616(44, []); + tmp_553653750.class = "main"; + add_754975552(tmp_553653750, text_754975684([87,97,105,116,105,110,103,32,102,111,114,32,111,112,112,111,110,101,110,116,32,116,111,32,97,99,99,101,112,116,46,46,46])); + var tmp_553653751 = tree_754975616(195, []); + addEventHandler_721422102(tmp_553653751, 0, HEX3Aanonymous_553653752, kxi__); + add_754975552(tmp_553653751, text_754975684([66,97,99,107,32,116,111,32,76,111,98,98,121])); + add_754975552(tmp_553653750, tmp_553653751); + result_553653749 = tmp_553653750; - return result_520099317; + return result_553653749; } -function createDisconnect_520099325() { +function createDisconnect_553653757() { -function HEX3Aanonymous_520099329(__520099330, __520099331) { - var F = {procname: "createDisconnect.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 1078; - F.filename = "main.nim"; - currentScreen_520093855[0] = 0; - framePtr = F.prev; +function HEX3Aanonymous_553653761(__553653762, __553653763) { + currentScreen_553648287[0] = 0; } - var result_520099326 = null; + var result_553653758 = null; - var F = {procname: "main.createDisconnect", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 1074; - F.filename = "main.nim"; - F.line = 1074; - var tmp_520099327 = tree_721421184(44, []); - F.line = 1074; - tmp_520099327.class = "start-column"; - F.line = 1075; - add_721421120(tmp_520099327, text_721421252([89,111,117,114,32,111,112,112,111,110,101,110,116,32,100,105,115,99,111,110,110,101,99,116,101,100])); - F.line = 1076; - var tmp_520099328 = tree_721421184(195, []); - F.line = 1077; - addEventHandler_687867670(tmp_520099328, 0, HEX3Aanonymous_520099329, kxi__); - F.line = 1079; - add_721421120(tmp_520099328, text_721421252([66,97,99,107,32,116,111,32,76,111,98,98,121])); - F.line = 1079; - add_721421120(tmp_520099327, tmp_520099328); - result_520099326 = tmp_520099327; - framePtr = F.prev; + var tmp_553653759 = tree_754975616(44, []); + tmp_553653759.class = "start-column"; + add_754975552(tmp_553653759, text_754975684([89,111,117,114,32,111,112,112,111,110,101,110,116,32,100,105,115,99,111,110,110,101,99,116,101,100])); + var tmp_553653760 = tree_754975616(195, []); + addEventHandler_721422102(tmp_553653760, 0, HEX3Aanonymous_553653761, kxi__); + add_754975552(tmp_553653760, text_754975684([66,97,99,107,32,116,111,32,76,111,98,98,121])); + add_754975552(tmp_553653759, tmp_553653760); + result_553653758 = tmp_553653759; - return result_520099326; + return result_553653758; } -function createOther_520099332() { +function createOther_553653764() { -function HEX3Aanonymous_520099340(__520099341, __520099342) { - var F = {procname: "createOther.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 1087; - F.filename = "main.nim"; - currentScreen_520093855[0] = 9; - framePtr = F.prev; +function HEX3Aanonymous_553653772(__553653773, __553653774) { + currentScreen_553648287[0] = 9; } -function HEX3Aanonymous_520099343(ev_520099344, __520099345) { - var F = {procname: "createOther.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 1092; - F.filename = "main.nim"; +function HEX3Aanonymous_553653775(ev_553653776, __553653777) { alert("Unimplemented"); - framePtr = F.prev; } -function HEX3Aanonymous_520099346(ev_520099347, __520099348) { - var F = {procname: "createOther.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 1097; - F.filename = "main.nim"; +function HEX3Aanonymous_553653778(ev_553653779, __553653780) { alert("Unimplemented"); - framePtr = F.prev; } -function HEX3Aanonymous_520099349(__520099350, __520099351) { - var F = {procname: "createOther.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 1102; - F.filename = "main.nim"; - currentScreen_520093855[0] = 0; - framePtr = F.prev; +function HEX3Aanonymous_553653781(__553653782, __553653783) { + currentScreen_553648287[0] = 0; } - var result_520099333 = null; - - var F = {procname: "main.createOther", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 1082; - F.filename = "main.nim"; - F.line = 1082; - var tmp_520099334 = tree_721421184(44, []); - F.line = 1082; - tmp_520099334.class = "start-column"; - F.line = 1083; - var tmp_520099335 = tree_721421184(44, []); - F.line = 1083; - tmp_520099335.class = "main"; - F.line = 1084; - var tmp_520099336 = tree_721421184(195, []); - F.line = 1084; - tmp_520099336.class = " menu-button "; - F.line = 1085; - add_721421120(tmp_520099336, text_721421252([83,101,116,116,105,110,103,115])); - F.line = 1086; - addEventHandler_687867670(tmp_520099336, 0, HEX3Aanonymous_520099340, kxi__); - F.line = 1082; - add_721421120(tmp_520099335, tmp_520099336); - F.line = 1089; - var tmp_520099337 = tree_721421184(195, []); - F.line = 1089; - tmp_520099337.class = " menu-button "; - F.line = 1090; - add_721421120(tmp_520099337, text_721421252([67,104,97,110,103,101,32,76,111,103])); - F.line = 1091; - addEventHandler_687867670(tmp_520099337, 0, HEX3Aanonymous_520099343, kxi__); - F.line = 1082; - add_721421120(tmp_520099335, tmp_520099337); - F.line = 1082; - add_721421120(tmp_520099334, tmp_520099335); - F.line = 1094; - var tmp_520099338 = tree_721421184(195, []); - F.line = 1094; - tmp_520099338.class = "width-100"; - F.line = 1095; - add_721421120(tmp_520099338, text_721421252([67,114,101,100,105,116,115])); - F.line = 1096; - addEventHandler_687867670(tmp_520099338, 0, HEX3Aanonymous_520099346, kxi__); - F.line = 1082; - add_721421120(tmp_520099334, tmp_520099338); - F.line = 1099; - var tmp_520099339 = tree_721421184(195, []); - F.line = 1099; - tmp_520099339.class = "width-100"; - F.line = 1100; - add_721421120(tmp_520099339, text_721421252([82,101,116,117,114,110,32,84,111,32,76,111,98,98,121])); - F.line = 1101; - addEventHandler_687867670(tmp_520099339, 0, HEX3Aanonymous_520099349, kxi__); - F.line = 1082; - add_721421120(tmp_520099334, tmp_520099339); - result_520099333 = tmp_520099334; - framePtr = F.prev; - - return result_520099333; - -} - -function createSetting_520099352(setting_520099353, setting_520099353_Idx, title_520099354, description_520099355, defaultOption_520099356) { + var result_553653765 = null; + + var tmp_553653766 = tree_754975616(44, []); + tmp_553653766.class = "start-column"; + var tmp_553653767 = tree_754975616(44, []); + tmp_553653767.class = "main"; + var tmp_553653768 = tree_754975616(195, []); + tmp_553653768.class = " menu-button "; + add_754975552(tmp_553653768, text_754975684([83,101,116,116,105,110,103,115])); + addEventHandler_721422102(tmp_553653768, 0, HEX3Aanonymous_553653772, kxi__); + add_754975552(tmp_553653767, tmp_553653768); + var tmp_553653769 = tree_754975616(195, []); + tmp_553653769.class = " menu-button "; + add_754975552(tmp_553653769, text_754975684([67,104,97,110,103,101,32,76,111,103])); + addEventHandler_721422102(tmp_553653769, 0, HEX3Aanonymous_553653775, kxi__); + add_754975552(tmp_553653767, tmp_553653769); + add_754975552(tmp_553653766, tmp_553653767); + var tmp_553653770 = tree_754975616(195, []); + tmp_553653770.class = "width-100"; + add_754975552(tmp_553653770, text_754975684([67,114,101,100,105,116,115])); + addEventHandler_721422102(tmp_553653770, 0, HEX3Aanonymous_553653778, kxi__); + add_754975552(tmp_553653766, tmp_553653770); + var tmp_553653771 = tree_754975616(195, []); + tmp_553653771.class = "width-100"; + add_754975552(tmp_553653771, text_754975684([82,101,116,117,114,110,32,84,111,32,76,111,98,98,121])); + addEventHandler_721422102(tmp_553653771, 0, HEX3Aanonymous_553653781, kxi__); + add_754975552(tmp_553653766, tmp_553653771); + result_553653765 = tmp_553653766; + + return result_553653765; + +} + +function createSetting_553653784(setting_553653785, setting_553653785_Idx, title_553653786, description_553653787, defaultOption_553653788) { var Temporary1; var Temporary2; var Temporary3; -function HEX3Aanonymous_520099364(__520099365, __520099366) { - var F = {procname: "createSetting.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 1118; - F.filename = "main.nim"; - setting_520099353[setting_520099353_Idx] = !(setting_520099353[setting_520099353_Idx]); - framePtr = F.prev; +function HEX3Aanonymous_553653796(__553653797, __553653798) { + setting_553653785[setting_553653785_Idx] = !(setting_553653785[setting_553653785_Idx]); } - var result_520099357 = null; - - var F = {procname: "main.createSetting", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 1106; - F.filename = "main.nim"; - F.line = 1106; - var tmp_520099358 = tree_721421184(44, []); - F.line = 1106; - tmp_520099358.class = "start-column"; - F.line = 1107; - var tmp_520099359 = tree_721421184(44, []); - F.line = 1107; - tmp_520099359.class = " setting-item "; - F.line = 1108; - var tmp_520099360 = tree_721421184(24, []); - F.line = 1109; - add_721421120(tmp_520099360, text_721421252(title_520099354)); - F.line = 1109; - add_721421120(tmp_520099359, tmp_520099360); - F.line = 1110; - var tmp_520099361 = tree_721421184(32, []); - F.line = 1111; - add_721421120(tmp_520099361, text_721421252(description_520099355)); - F.line = 1111; - add_721421120(tmp_520099359, tmp_520099361); - F.line = 1112; - var tmp_520099362 = tree_721421184(195, []); - F.line = 1113; - if (defaultOption_520099356) { - if (!(setting_520099353[setting_520099353_Idx])) { + var result_553653789 = null; + + var tmp_553653790 = tree_754975616(44, []); + tmp_553653790.class = "start-column"; + var tmp_553653791 = tree_754975616(44, []); + tmp_553653791.class = " setting-item "; + var tmp_553653792 = tree_754975616(24, []); + add_754975552(tmp_553653792, text_754975684(title_553653786)); + add_754975552(tmp_553653791, tmp_553653792); + var tmp_553653793 = tree_754975616(32, []); + add_754975552(tmp_553653793, text_754975684(description_553653787)); + add_754975552(tmp_553653791, tmp_553653793); + var tmp_553653794 = tree_754975616(195, []); + if (defaultOption_553653788) { + if (!(setting_553653785[setting_553653785_Idx])) { Temporary2 = [68,105,115,97,98,108,101]; } else { @@ -26038,7 +16864,7 @@ function HEX3Aanonymous_520099364(__520099365, __520099366) { Temporary1 = Temporary2; } else { - if (setting_520099353[setting_520099353_Idx]) { + if (setting_553653785[setting_553653785_Idx]) { Temporary3 = [68,105,115,97,98,108,101]; } else { @@ -26048,975 +16874,680 @@ function HEX3Aanonymous_520099364(__520099365, __520099366) { Temporary1 = Temporary3; } - add_721421120(tmp_520099362, text_721421252(Temporary1)); - F.line = 1117; - addEventHandler_687867670(tmp_520099362, 0, HEX3Aanonymous_520099364, kxi__); - F.line = 1106; - add_721421120(tmp_520099359, tmp_520099362); - F.line = 1106; - add_721421120(tmp_520099358, tmp_520099359); - F.line = 1119; - var tmp_520099363 = tree_721421184(33, []); - F.line = 1119; - add_721421120(tmp_520099358, tmp_520099363); - result_520099357 = tmp_520099358; - framePtr = F.prev; + add_754975552(tmp_553653794, text_754975684(Temporary1)); + addEventHandler_721422102(tmp_553653794, 0, HEX3Aanonymous_553653796, kxi__); + add_754975552(tmp_553653791, tmp_553653794); + add_754975552(tmp_553653790, tmp_553653791); + var tmp_553653795 = tree_754975616(33, []); + add_754975552(tmp_553653790, tmp_553653795); + result_553653789 = tmp_553653790; - return result_520099357; + return result_553653789; } -function createSettings_520099367() { +function createSettings_553653799() { -function HEX3Aanonymous_520099371(__520099372, __520099373) { - var F = {procname: "createSettings.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 1142; - F.filename = "main.nim"; - currentScreen_520093855[0] = 10; - framePtr = F.prev; +function HEX3Aanonymous_553653803(__553653804, __553653805) { + currentScreen_553648287[0] = 10; } - var result_520099368 = null; + var result_553653800 = null; - var F = {procname: "main.createSettings", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 1122; - F.filename = "main.nim"; - F.line = 1122; - var tmp_520099369 = tree_721421184(44, []); - F.line = 1122; - tmp_520099369.class = "start-column gap-10"; - F.line = 1126; - add_721421120(tmp_520099369, createSetting_520099352(showTechnicalNames_520093851, 0, [84,101,99,104,110,105,99,97,108,32,78,97,109,101,115], makeNimstrLit("Shows the technical names for synergy powers and powers with multiple variations."), false)); - F.line = 1132; - add_721421120(tmp_520099369, createSetting_520099352(disableRNGPowers_520093852, 0, [68,105,115,97,98,108,101,32,82,78,71,32,80,111,119,101,114,115], makeNimstrLit("Removes RNG based powers, like civilians, from the draft pool. Only works when you are the host."), true)); - F.line = 1137; - add_721421120(tmp_520099369, createSetting_520099352(enableExperimental_520093854, 0, [73,110,99,108,117,100,101,32,69,120,112,101,114,105,109,101,110,116,97,108,32,80,111,119,101,114,115], makeNimstrLit("Adds the cutting edge of SuperChess. It is likely to break or be unbalanced."), false)); - F.line = 1139; - var tmp_520099370 = tree_721421184(195, []); - F.line = 1139; - tmp_520099370.class = "width-100"; - F.line = 1140; - add_721421120(tmp_520099370, text_721421252([82,101,116,117,114,110,32,116,111,32,79,116,104,101,114])); - F.line = 1141; - addEventHandler_687867670(tmp_520099370, 0, HEX3Aanonymous_520099371, kxi__); - F.line = 1122; - add_721421120(tmp_520099369, tmp_520099370); - result_520099368 = tmp_520099369; - framePtr = F.prev; + var tmp_553653801 = tree_754975616(44, []); + tmp_553653801.class = "start-column gap-10"; + add_754975552(tmp_553653801, createSetting_553653784(showTechnicalNames_553648283, 0, [84,101,99,104,110,105,99,97,108,32,78,97,109,101,115], makeNimstrLit("Shows the technical names for synergy powers and powers with multiple variations."), false)); + add_754975552(tmp_553653801, createSetting_553653784(disableRNGPowers_553648284, 0, [68,105,115,97,98,108,101,32,82,78,71,32,80,111,119,101,114,115], makeNimstrLit("Removes RNG based powers, like civilians, from the draft pool. Only works when you are the host."), true)); + add_754975552(tmp_553653801, createSetting_553653784(enableExperimental_553648286, 0, [73,110,99,108,117,100,101,32,69,120,112,101,114,105,109,101,110,116,97,108,32,80,111,119,101,114,115], makeNimstrLit("Adds the cutting edge of SuperChess. It is likely to break or be unbalanced."), false)); + var tmp_553653802 = tree_754975616(195, []); + tmp_553653802.class = "width-100"; + add_754975552(tmp_553653802, text_754975684([82,101,116,117,114,110,32,116,111,32,79,116,104,101,114])); + addEventHandler_721422102(tmp_553653802, 0, HEX3Aanonymous_553653803, kxi__); + add_754975552(tmp_553653801, tmp_553653802); + result_553653800 = tmp_553653801; - return result_520099368; + return result_553653800; } -function newSeq_520099833(len_520099835) { - var result_520099836 = []; +function newSeq_553654265(len_553654267) { + var result_553654268 = []; - var F = {procname: "newSeq.newSeq", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; - F.line = 633; - F.filename = "system.nim"; - result_520099836 = new Array(len_520099835); for (var i = 0 ; i < len_520099835 ; ++i) { result_520099836[i] = []; } framePtr = F.prev; - - return result_520099836; + result_553654268 = new Array(len_553654267); for (var i = 0 ; i < len_553654267 ; ++i) { result_553654268[i] = []; } + return result_553654268; } -function mergeAlt_520099882(a_520099884, b_520099885, lo_520099886, m_520099887, hi_520099888, cmp_520099891, order_520099892) { - var F = {procname: "mergeAlt.mergeAlt", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/algorithm.nim", line: 0}; - framePtr = F; +function mergeAlt_553654314(a_553654316, b_553654317, lo_553654318, m_553654319, hi_553654320, cmp_553654323, order_553654324) { BeforeRet: { - if ((HEX2A_989855752(cmp_520099891(a_520099884[chckIndx(m_520099887, 0, (a_520099884).length - 1)], a_520099884[chckIndx(addInt(m_520099887, 1), 0, (a_520099884).length - 1)]), order_520099892) <= 0)) { - F.line = 335; - F.filename = "algorithm.nim"; + if ((HEX2A_1073741832(cmp_553654323(a_553654316[chckIndx(m_553654319, 0, (a_553654316).length - 1)], a_553654316[chckIndx(addInt(m_553654319, 1), 0, (a_553654316).length - 1)]), order_553654324) <= 0)) { break BeforeRet; } - F.line = 336; - var j_520099893 = lo_520099886; - if (!((j_520099893 <= m_520099887))) { - F.line = 338; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/algorithm.nim(338, 3) `j <= m` ")); + var j_553654325 = lo_553654318; + if (!((j_553654325 <= m_553654319))) { + failedAssertImpl_268435541([97,108,103,111,114,105,116,104,109,46,110,105,109,40,51,51,56,44,32,51,41,32,96,106,32,60,61,32,109,96,32]); } - F.line = 340; - var bb_520099899 = 0; + var bb_553654331 = 0; Label1: { - F.line = 341; Label2: while (true) { - if (!(j_520099893 <= m_520099887)) break Label2; - F.line = 342; - b_520099885[chckIndx(bb_520099899, 0, (b_520099885).length - 1)] = a_520099884[chckIndx(j_520099893, 0, (a_520099884).length - 1)]; - F.line = 343; - bb_520099899 = addInt(bb_520099899, 1); - F.line = 344; - j_520099893 = addInt(j_520099893, 1); + if (!(j_553654325 <= m_553654319)) break Label2; + b_553654317[chckIndx(bb_553654331, 0, (b_553654317).length - 1)] = a_553654316[chckIndx(j_553654325, 0, (a_553654316).length - 1)]; + bb_553654331 = addInt(bb_553654331, 1); + j_553654325 = addInt(j_553654325, 1); } }; - F.line = 348; - var i_520099910 = 0; - F.line = 349; - var k_520099911 = lo_520099886; + var i_553654342 = 0; + var k_553654343 = lo_553654318; Label3: { - F.line = 351; Label4: while (true) { - if (!((k_520099911 < j_520099893) && (j_520099893 <= hi_520099888))) break Label4; - if ((HEX2A_989855752(cmp_520099891(b_520099885[chckIndx(i_520099910, 0, (b_520099885).length - 1)], a_520099884[chckIndx(j_520099893, 0, (a_520099884).length - 1)]), order_520099892) <= 0)) { - F.line = 353; - a_520099884[chckIndx(k_520099911, 0, (a_520099884).length - 1)] = b_520099885[chckIndx(i_520099910, 0, (b_520099885).length - 1)]; - F.line = 354; - i_520099910 = addInt(i_520099910, 1); + if (!((k_553654343 < j_553654325) && (j_553654325 <= hi_553654320))) break Label4; + if ((HEX2A_1073741832(cmp_553654323(b_553654317[chckIndx(i_553654342, 0, (b_553654317).length - 1)], a_553654316[chckIndx(j_553654325, 0, (a_553654316).length - 1)]), order_553654324) <= 0)) { + a_553654316[chckIndx(k_553654343, 0, (a_553654316).length - 1)] = b_553654317[chckIndx(i_553654342, 0, (b_553654317).length - 1)]; + i_553654342 = addInt(i_553654342, 1); } else { - F.line = 356; - a_520099884[chckIndx(k_520099911, 0, (a_520099884).length - 1)] = a_520099884[chckIndx(j_520099893, 0, (a_520099884).length - 1)]; - F.line = 357; - j_520099893 = addInt(j_520099893, 1); + a_553654316[chckIndx(k_553654343, 0, (a_553654316).length - 1)] = a_553654316[chckIndx(j_553654325, 0, (a_553654316).length - 1)]; + j_553654325 = addInt(j_553654325, 1); } - F.line = 358; - k_520099911 = addInt(k_520099911, 1); + k_553654343 = addInt(k_553654343, 1); } }; Label5: { - F.line = 361; Label6: while (true) { - if (!(k_520099911 < j_520099893)) break Label6; - F.line = 362; - a_520099884[chckIndx(k_520099911, 0, (a_520099884).length - 1)] = b_520099885[chckIndx(i_520099910, 0, (b_520099885).length - 1)]; - F.line = 363; - k_520099911 = addInt(k_520099911, 1); - F.line = 364; - i_520099910 = addInt(i_520099910, 1); + if (!(k_553654343 < j_553654325)) break Label6; + a_553654316[chckIndx(k_553654343, 0, (a_553654316).length - 1)] = b_553654317[chckIndx(i_553654342, 0, (b_553654317).length - 1)]; + k_553654343 = addInt(k_553654343, 1); + i_553654342 = addInt(i_553654342, 1); } }; }; - framePtr = F.prev; } -function sort_520099865(a_520099867, cmp_520099870, order_520099871) { - var F = {procname: "sort.sort", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/algorithm.nim", line: 0}; - framePtr = F; - F.line = 411; - F.filename = "algorithm.nim"; - var n_520099875 = (a_520099867).length; - F.line = 412; - var b_520099879 = newSeq_520099833(chckRange(divInt(n_520099875, 2), 0, 2147483647)); - F.line = 413; - var s_520099880 = 1; +function sort_553654297(a_553654299, cmp_553654302, order_553654303) { + var n_553654307 = (a_553654299).length; + var b_553654311 = newSeq_553654265(chckRange(divInt(n_553654307, 2), 0, 2147483647)); + var s_553654312 = 1; Label1: { - F.line = 414; Label2: while (true) { - if (!(s_520099880 < n_520099875)) break Label2; - F.line = 415; - var m_520099881 = subInt(subInt(n_520099875, 1), s_520099880); + if (!(s_553654312 < n_553654307)) break Label2; + var m_553654313 = subInt(subInt(n_553654307, 1), s_553654312); Label3: { - F.line = 416; Label4: while (true) { - if (!(0 <= m_520099881)) break Label4; - F.line = 417; - mergeAlt_520099882(a_520099867, b_520099879, nimMax(addInt(subInt(m_520099881, s_520099880), 1), 0), m_520099881, addInt(m_520099881, s_520099880), cmp_520099870, order_520099871); - F.line = 418; - m_520099881 = subInt(m_520099881, mulInt(s_520099880, 2)); + if (!(0 <= m_553654313)) break Label4; + mergeAlt_553654314(a_553654299, b_553654311, nimMax(addInt(subInt(m_553654313, s_553654312), 1), 0), m_553654313, addInt(m_553654313, s_553654312), cmp_553654302, order_553654303); + m_553654313 = subInt(m_553654313, mulInt(s_553654312, 2)); } }; - F.line = 419; - s_520099880 = mulInt(s_520099880, 2); + s_553654312 = mulInt(s_553654312, 2); } }; - framePtr = F.prev; } -function sorted_520099822(a_520099824, cmp_520099827, order_520099828) { - var result_520099829 = []; +function sorted_553654254(a_553654256, cmp_553654259, order_553654260) { + var result_553654261 = []; - var F = {procname: "sorted.sorted", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/algorithm.nim", line: 0}; - framePtr = F; - F.line = 448; - F.filename = "algorithm.nim"; - result_520099829 = nimCopy(null, newSeq_520099833(chckRange((a_520099824).length, 0, 2147483647)), NTI520098554); + result_553654261 = nimCopy(null, newSeq_553654265(chckRange((a_553654256).length, 0, 2147483647)), NTI553652986); Label1: { - F.line = 449; - var i_520099864 = 0; - F.line = 81; - F.filename = "iterators_1.nim"; - var colontmp__520100961 = 0; - F.line = 449; - F.filename = "algorithm.nim"; - colontmp__520100961 = (a_520099824).length - 1; - F.line = 96; - F.filename = "iterators_1.nim"; - var res_520100962 = 0; + var i_553654296 = 0; + var colontmp__553655393 = 0; + colontmp__553655393 = (a_553654256).length - 1; + var res_553655394 = 0; Label2: { - F.line = 97; Label3: while (true) { - if (!(res_520100962 <= colontmp__520100961)) break Label3; - F.line = 449; - F.filename = "algorithm.nim"; - i_520099864 = res_520100962; - F.line = 450; - result_520099829[chckIndx(i_520099864, 0, (result_520099829).length - 1)] = nimCopy(null, a_520099824[chckIndx(i_520099864, 0, (a_520099824).length - 1)], NTI1442841684); - F.line = 102; - F.filename = "iterators_1.nim"; - res_520100962 = addInt(res_520100962, 1); + if (!(res_553655394 <= colontmp__553655393)) break Label3; + i_553654296 = res_553655394; + result_553654261[chckIndx(i_553654296, 0, (result_553654261).length - 1)] = nimCopy(null, a_553654256[chckIndx(i_553654296, 0, (a_553654256).length - 1)], NTI1728054356); + res_553655394 = addInt(res_553655394, 1); } }; }; - F.line = 451; - F.filename = "algorithm.nim"; - sort_520099865(result_520099829, cmp_520099827, order_520099828); - framePtr = F.prev; + sort_553654297(result_553654261, cmp_553654259, order_553654260); - return result_520099829; + return result_553654261; } -function HEX3DHEX3D_1040188400(a_1040188401, b_1040188402) { - var result_1040188403 = false; +function HEX3DHEX3D_1157628912(a_1157628913, b_1157628914) { + var result_1157628915 = false; - var F = {procname: "unicode.==", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/unicode.nim", line: 0}; - framePtr = F; BeforeRet: { - F.line = 462; - F.filename = "unicode.nim"; - result_1040188403 = (((a_1040188401) | 0) == ((b_1040188402) | 0)); + result_1157628915 = (((a_1157628913) | 0) == ((b_1157628914) | 0)); break BeforeRet; }; - framePtr = F.prev; - return result_1040188403; + return result_1157628915; } -function runeAt_1040194588(s_1040194589, i_1040194590) { - var result_1040194591 = 0; +function runeAt_1157635100(s_1157635101, i_1157635102) { + var result_1157635103 = 0; - var F = {procname: "unicode.runeAt", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/unicode.nim", line: 0}; - framePtr = F; - if ((s_1040194589[chckIndx(i_1040194590, 0, (s_1040194589).length - 1)] <= 127)) { - F.line = 91; - F.filename = "unicode.nim"; - result_1040194591 = chckRange(s_1040194589[chckIndx(i_1040194590, 0, (s_1040194589).length - 1)], (-2147483648), 2147483647); + if ((s_1157635101[chckIndx(i_1157635102, 0, (s_1157635101).length - 1)] <= 127)) { + result_1157635103 = chckRange(s_1157635101[chckIndx(i_1157635102, 0, (s_1157635101).length - 1)], (-2147483648), 2147483647); } else { - if (((s_1040194589[chckIndx(i_1040194590, 0, (s_1040194589).length - 1)] >>> 5) == 6)) { - if ((i_1040194590 <= subInt((s_1040194589).length, 2))) { - F.line = 96; - result_1040194591 = chckRange(((((((s_1040194589[chckIndx(i_1040194590, 0, (s_1040194589).length - 1)] & 31) >>> 0) << 6) >>> 0) | ((s_1040194589[chckIndx(addInt(i_1040194590, 1), 0, (s_1040194589).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); + if (((s_1157635101[chckIndx(i_1157635102, 0, (s_1157635101).length - 1)] >>> 5) == 6)) { + if ((i_1157635102 <= subInt((s_1157635101).length, 2))) { + result_1157635103 = chckRange(((((((s_1157635101[chckIndx(i_1157635102, 0, (s_1157635101).length - 1)] & 31) >>> 0) << 6) >>> 0) | ((s_1157635101[chckIndx(addInt(i_1157635102, 1), 0, (s_1157635101).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); } else { - F.line = 100; - result_1040194591 = 65533; + result_1157635103 = 65533; } } else { - if (((s_1040194589[chckIndx(i_1040194590, 0, (s_1040194589).length - 1)] >>> 4) == 14)) { - if ((i_1040194590 <= subInt((s_1040194589).length, 3))) { - F.line = 106; - result_1040194591 = chckRange(((((((((s_1040194589[chckIndx(i_1040194590, 0, (s_1040194589).length - 1)] & 15) >>> 0) << 12) >>> 0) | ((((s_1040194589[chckIndx(addInt(i_1040194590, 1), 0, (s_1040194589).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((s_1040194589[chckIndx(addInt(i_1040194590, 2), 0, (s_1040194589).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); + if (((s_1157635101[chckIndx(i_1157635102, 0, (s_1157635101).length - 1)] >>> 4) == 14)) { + if ((i_1157635102 <= subInt((s_1157635101).length, 3))) { + result_1157635103 = chckRange(((((((((s_1157635101[chckIndx(i_1157635102, 0, (s_1157635101).length - 1)] & 15) >>> 0) << 12) >>> 0) | ((((s_1157635101[chckIndx(addInt(i_1157635102, 1), 0, (s_1157635101).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((s_1157635101[chckIndx(addInt(i_1157635102, 2), 0, (s_1157635101).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); } else { - F.line = 111; - result_1040194591 = 65533; + result_1157635103 = 65533; } } else { - if (((s_1040194589[chckIndx(i_1040194590, 0, (s_1040194589).length - 1)] >>> 3) == 30)) { - if ((i_1040194590 <= subInt((s_1040194589).length, 4))) { - F.line = 118; - result_1040194591 = chckRange(((((((((((s_1040194589[chckIndx(i_1040194590, 0, (s_1040194589).length - 1)] & 7) >>> 0) << 18) >>> 0) | ((((s_1040194589[chckIndx(addInt(i_1040194590, 1), 0, (s_1040194589).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((s_1040194589[chckIndx(addInt(i_1040194590, 2), 0, (s_1040194589).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((s_1040194589[chckIndx(addInt(i_1040194590, 3), 0, (s_1040194589).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); + if (((s_1157635101[chckIndx(i_1157635102, 0, (s_1157635101).length - 1)] >>> 3) == 30)) { + if ((i_1157635102 <= subInt((s_1157635101).length, 4))) { + result_1157635103 = chckRange(((((((((((s_1157635101[chckIndx(i_1157635102, 0, (s_1157635101).length - 1)] & 7) >>> 0) << 18) >>> 0) | ((((s_1157635101[chckIndx(addInt(i_1157635102, 1), 0, (s_1157635101).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((s_1157635101[chckIndx(addInt(i_1157635102, 2), 0, (s_1157635101).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((s_1157635101[chckIndx(addInt(i_1157635102, 3), 0, (s_1157635101).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); } else { - F.line = 124; - result_1040194591 = 65533; + result_1157635103 = 65533; } } else { - if (((s_1040194589[chckIndx(i_1040194590, 0, (s_1040194589).length - 1)] >>> 2) == 62)) { - if ((i_1040194590 <= subInt((s_1040194589).length, 5))) { - F.line = 132; - result_1040194591 = chckRange(((((((((((((s_1040194589[chckIndx(i_1040194590, 0, (s_1040194589).length - 1)] & 3) >>> 0) << 24) >>> 0) | ((((s_1040194589[chckIndx(addInt(i_1040194590, 1), 0, (s_1040194589).length - 1)] & 63) >>> 0) << 18) >>> 0)) >>> 0) | ((((s_1040194589[chckIndx(addInt(i_1040194590, 2), 0, (s_1040194589).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((s_1040194589[chckIndx(addInt(i_1040194590, 3), 0, (s_1040194589).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((s_1040194589[chckIndx(addInt(i_1040194590, 4), 0, (s_1040194589).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); + if (((s_1157635101[chckIndx(i_1157635102, 0, (s_1157635101).length - 1)] >>> 2) == 62)) { + if ((i_1157635102 <= subInt((s_1157635101).length, 5))) { + result_1157635103 = chckRange(((((((((((((s_1157635101[chckIndx(i_1157635102, 0, (s_1157635101).length - 1)] & 3) >>> 0) << 24) >>> 0) | ((((s_1157635101[chckIndx(addInt(i_1157635102, 1), 0, (s_1157635101).length - 1)] & 63) >>> 0) << 18) >>> 0)) >>> 0) | ((((s_1157635101[chckIndx(addInt(i_1157635102, 2), 0, (s_1157635101).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((s_1157635101[chckIndx(addInt(i_1157635102, 3), 0, (s_1157635101).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((s_1157635101[chckIndx(addInt(i_1157635102, 4), 0, (s_1157635101).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); } else { - F.line = 139; - result_1040194591 = 65533; + result_1157635103 = 65533; } } else { - if (((s_1040194589[chckIndx(i_1040194590, 0, (s_1040194589).length - 1)] >>> 1) == 126)) { - if ((i_1040194590 <= subInt((s_1040194589).length, 6))) { - F.line = 148; - result_1040194591 = chckRange(((((((((((((((s_1040194589[chckIndx(i_1040194590, 0, (s_1040194589).length - 1)] & 1) >>> 0) << 30) >>> 0) | ((((s_1040194589[chckIndx(addInt(i_1040194590, 1), 0, (s_1040194589).length - 1)] & 63) >>> 0) << 24) >>> 0)) >>> 0) | ((((s_1040194589[chckIndx(addInt(i_1040194590, 2), 0, (s_1040194589).length - 1)] & 63) >>> 0) << 18) >>> 0)) >>> 0) | ((((s_1040194589[chckIndx(addInt(i_1040194590, 3), 0, (s_1040194589).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((s_1040194589[chckIndx(addInt(i_1040194590, 4), 0, (s_1040194589).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((s_1040194589[chckIndx(addInt(i_1040194590, 5), 0, (s_1040194589).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); + if (((s_1157635101[chckIndx(i_1157635102, 0, (s_1157635101).length - 1)] >>> 1) == 126)) { + if ((i_1157635102 <= subInt((s_1157635101).length, 6))) { + result_1157635103 = chckRange(((((((((((((((s_1157635101[chckIndx(i_1157635102, 0, (s_1157635101).length - 1)] & 1) >>> 0) << 30) >>> 0) | ((((s_1157635101[chckIndx(addInt(i_1157635102, 1), 0, (s_1157635101).length - 1)] & 63) >>> 0) << 24) >>> 0)) >>> 0) | ((((s_1157635101[chckIndx(addInt(i_1157635102, 2), 0, (s_1157635101).length - 1)] & 63) >>> 0) << 18) >>> 0)) >>> 0) | ((((s_1157635101[chckIndx(addInt(i_1157635102, 3), 0, (s_1157635101).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((s_1157635101[chckIndx(addInt(i_1157635102, 4), 0, (s_1157635101).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((s_1157635101[chckIndx(addInt(i_1157635102, 5), 0, (s_1157635101).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); } else { - F.line = 156; - result_1040194591 = 65533; + result_1157635103 = 65533; } } else { - F.line = 159; - result_1040194591 = chckRange(s_1040194589[chckIndx(i_1040194590, 0, (s_1040194589).length - 1)], (-2147483648), 2147483647); + result_1157635103 = chckRange(s_1157635101[chckIndx(i_1157635102, 0, (s_1157635101).length - 1)], (-2147483648), 2147483647); } }}}}} - framePtr = F.prev; - return result_1040194591; + return result_1157635103; } -function size_1040193202(r_1040193203) { - var result_1040193204 = 0; +function size_1157633714(r_1157633715) { + var result_1157633716 = 0; - var F = {procname: "unicode.size", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/unicode.nim", line: 0}; - framePtr = F; - F.line = 931; - F.filename = "unicode.nim"; - var v_1040193205 = r_1040193203; - if ((v_1040193205 <= 127)) { - F.line = 932; - result_1040193204 = 1; + var v_1157633717 = r_1157633715; + if ((v_1157633717 <= 127)) { + result_1157633716 = 1; } else { - if ((v_1040193205 <= 2047)) { - F.line = 933; - result_1040193204 = 2; + if ((v_1157633717 <= 2047)) { + result_1157633716 = 2; } else { - if ((v_1040193205 <= 65535)) { - F.line = 934; - result_1040193204 = 3; + if ((v_1157633717 <= 65535)) { + result_1157633716 = 3; } else { - if ((v_1040193205 <= 2097151)) { - F.line = 935; - result_1040193204 = 4; + if ((v_1157633717 <= 2097151)) { + result_1157633716 = 4; } else { - if ((v_1040193205 <= 67108863)) { - F.line = 936; - result_1040193204 = 5; + if ((v_1157633717 <= 67108863)) { + result_1157633716 = 5; } else { - if ((v_1040193205 <= 2147483647)) { - F.line = 937; - result_1040193204 = 6; + if ((v_1157633717 <= 2147483647)) { + result_1157633716 = 6; } else { - F.line = 938; - result_1040193204 = 1; + result_1157633716 = 1; } }}}}} - framePtr = F.prev; - return result_1040193204; + return result_1157633716; } -function editDistance_1577058306(a_1577058307, b_1577058308) { +function editDistance_1962934274(a_1962934275, b_1962934276) { var Temporary23; var Temporary26; var Temporary27; - var result_1577058309 = 0; + var result_1962934277 = 0; - var F = {procname: "editdistance.editDistance", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/std/editdistance.nim", line: 0}; - framePtr = F; BeforeRet: { - if ((runeLen_1040194581(b_1577058308) < runeLen_1040194581(a_1577058307))) { - F.line = 23; - F.filename = "editdistance.nim"; - result_1577058309 = editDistance_1577058306(b_1577058308, a_1577058307); + if ((runeLen_1157635093(b_1962934276) < runeLen_1157635093(a_1962934275))) { + result_1962934277 = editDistance_1962934274(b_1962934276, a_1962934275); break BeforeRet; } - F.line = 26; - var iStart_1577058310 = 0; - F.line = 27; - var iNextA_1577058311 = 0; - F.line = 28; - var iNextB_1577058312 = 0; - F.line = 29; - var runeA_1577058313 = 0; - F.line = 29; - var runeB_1577058314 = 0; - F.line = 30; - var lenRunesA_1577058315 = 0; - F.line = 31; - var lenRunesB_1577058316 = 0; + var iStart_1962934278 = 0; + var iNextA_1962934279 = 0; + var iNextB_1962934280 = 0; + var runeA_1962934281 = 0; + var runeB_1962934282 = 0; + var lenRunesA_1962934283 = 0; + var lenRunesB_1962934284 = 0; Label1: { Label2: { - F.line = 34; Label3: while (true) { - if (!(iStart_1577058310 < (a_1577058307).length)) break Label3; - F.line = 35; - iNextA_1577058311 = iStart_1577058310; - if ((a_1577058307[chckIndx(iNextA_1577058311, 0, (a_1577058307).length - 1)] <= 127)) { - F.line = 91; - F.filename = "unicode.nim"; - runeA_1577058313 = chckRange(a_1577058307[chckIndx(iNextA_1577058311, 0, (a_1577058307).length - 1)], (-2147483648), 2147483647); - F.line = 92; - iNextA_1577058311 = addInt(iNextA_1577058311, 1); + if (!(iStart_1962934278 < (a_1962934275).length)) break Label3; + iNextA_1962934279 = iStart_1962934278; + if ((a_1962934275[chckIndx(iNextA_1962934279, 0, (a_1962934275).length - 1)] <= 127)) { + runeA_1962934281 = chckRange(a_1962934275[chckIndx(iNextA_1962934279, 0, (a_1962934275).length - 1)], (-2147483648), 2147483647); + iNextA_1962934279 = addInt(iNextA_1962934279, 1); } else { - if (((a_1577058307[chckIndx(iNextA_1577058311, 0, (a_1577058307).length - 1)] >>> 5) == 6)) { - if ((iNextA_1577058311 <= subInt((a_1577058307).length, 2))) { - F.line = 96; - runeA_1577058313 = chckRange(((((((a_1577058307[chckIndx(iNextA_1577058311, 0, (a_1577058307).length - 1)] & 31) >>> 0) << 6) >>> 0) | ((a_1577058307[chckIndx(addInt(iNextA_1577058311, 1), 0, (a_1577058307).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); - F.line = 98; - iNextA_1577058311 = addInt(iNextA_1577058311, 2); + if (((a_1962934275[chckIndx(iNextA_1962934279, 0, (a_1962934275).length - 1)] >>> 5) == 6)) { + if ((iNextA_1962934279 <= subInt((a_1962934275).length, 2))) { + runeA_1962934281 = chckRange(((((((a_1962934275[chckIndx(iNextA_1962934279, 0, (a_1962934275).length - 1)] & 31) >>> 0) << 6) >>> 0) | ((a_1962934275[chckIndx(addInt(iNextA_1962934279, 1), 0, (a_1962934275).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); + iNextA_1962934279 = addInt(iNextA_1962934279, 2); } else { - F.line = 100; - runeA_1577058313 = 65533; - F.line = 101; - iNextA_1577058311 = addInt(iNextA_1577058311, 1); + runeA_1962934281 = 65533; + iNextA_1962934279 = addInt(iNextA_1962934279, 1); } } else { - if (((a_1577058307[chckIndx(iNextA_1577058311, 0, (a_1577058307).length - 1)] >>> 4) == 14)) { - if ((iNextA_1577058311 <= subInt((a_1577058307).length, 3))) { - F.line = 106; - runeA_1577058313 = chckRange(((((((((a_1577058307[chckIndx(iNextA_1577058311, 0, (a_1577058307).length - 1)] & 15) >>> 0) << 12) >>> 0) | ((((a_1577058307[chckIndx(addInt(iNextA_1577058311, 1), 0, (a_1577058307).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((a_1577058307[chckIndx(addInt(iNextA_1577058311, 2), 0, (a_1577058307).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); - F.line = 109; - iNextA_1577058311 = addInt(iNextA_1577058311, 3); + if (((a_1962934275[chckIndx(iNextA_1962934279, 0, (a_1962934275).length - 1)] >>> 4) == 14)) { + if ((iNextA_1962934279 <= subInt((a_1962934275).length, 3))) { + runeA_1962934281 = chckRange(((((((((a_1962934275[chckIndx(iNextA_1962934279, 0, (a_1962934275).length - 1)] & 15) >>> 0) << 12) >>> 0) | ((((a_1962934275[chckIndx(addInt(iNextA_1962934279, 1), 0, (a_1962934275).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((a_1962934275[chckIndx(addInt(iNextA_1962934279, 2), 0, (a_1962934275).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); + iNextA_1962934279 = addInt(iNextA_1962934279, 3); } else { - F.line = 111; - runeA_1577058313 = 65533; - F.line = 112; - iNextA_1577058311 = addInt(iNextA_1577058311, 1); + runeA_1962934281 = 65533; + iNextA_1962934279 = addInt(iNextA_1962934279, 1); } } else { - if (((a_1577058307[chckIndx(iNextA_1577058311, 0, (a_1577058307).length - 1)] >>> 3) == 30)) { - if ((iNextA_1577058311 <= subInt((a_1577058307).length, 4))) { - F.line = 118; - runeA_1577058313 = chckRange(((((((((((a_1577058307[chckIndx(iNextA_1577058311, 0, (a_1577058307).length - 1)] & 7) >>> 0) << 18) >>> 0) | ((((a_1577058307[chckIndx(addInt(iNextA_1577058311, 1), 0, (a_1577058307).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((a_1577058307[chckIndx(addInt(iNextA_1577058311, 2), 0, (a_1577058307).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((a_1577058307[chckIndx(addInt(iNextA_1577058311, 3), 0, (a_1577058307).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); - F.line = 122; - iNextA_1577058311 = addInt(iNextA_1577058311, 4); + if (((a_1962934275[chckIndx(iNextA_1962934279, 0, (a_1962934275).length - 1)] >>> 3) == 30)) { + if ((iNextA_1962934279 <= subInt((a_1962934275).length, 4))) { + runeA_1962934281 = chckRange(((((((((((a_1962934275[chckIndx(iNextA_1962934279, 0, (a_1962934275).length - 1)] & 7) >>> 0) << 18) >>> 0) | ((((a_1962934275[chckIndx(addInt(iNextA_1962934279, 1), 0, (a_1962934275).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((a_1962934275[chckIndx(addInt(iNextA_1962934279, 2), 0, (a_1962934275).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((a_1962934275[chckIndx(addInt(iNextA_1962934279, 3), 0, (a_1962934275).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); + iNextA_1962934279 = addInt(iNextA_1962934279, 4); } else { - F.line = 124; - runeA_1577058313 = 65533; - F.line = 125; - iNextA_1577058311 = addInt(iNextA_1577058311, 1); + runeA_1962934281 = 65533; + iNextA_1962934279 = addInt(iNextA_1962934279, 1); } } else { - if (((a_1577058307[chckIndx(iNextA_1577058311, 0, (a_1577058307).length - 1)] >>> 2) == 62)) { - if ((iNextA_1577058311 <= subInt((a_1577058307).length, 5))) { - F.line = 132; - runeA_1577058313 = chckRange(((((((((((((a_1577058307[chckIndx(iNextA_1577058311, 0, (a_1577058307).length - 1)] & 3) >>> 0) << 24) >>> 0) | ((((a_1577058307[chckIndx(addInt(iNextA_1577058311, 1), 0, (a_1577058307).length - 1)] & 63) >>> 0) << 18) >>> 0)) >>> 0) | ((((a_1577058307[chckIndx(addInt(iNextA_1577058311, 2), 0, (a_1577058307).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((a_1577058307[chckIndx(addInt(iNextA_1577058311, 3), 0, (a_1577058307).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((a_1577058307[chckIndx(addInt(iNextA_1577058311, 4), 0, (a_1577058307).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); - F.line = 137; - iNextA_1577058311 = addInt(iNextA_1577058311, 5); + if (((a_1962934275[chckIndx(iNextA_1962934279, 0, (a_1962934275).length - 1)] >>> 2) == 62)) { + if ((iNextA_1962934279 <= subInt((a_1962934275).length, 5))) { + runeA_1962934281 = chckRange(((((((((((((a_1962934275[chckIndx(iNextA_1962934279, 0, (a_1962934275).length - 1)] & 3) >>> 0) << 24) >>> 0) | ((((a_1962934275[chckIndx(addInt(iNextA_1962934279, 1), 0, (a_1962934275).length - 1)] & 63) >>> 0) << 18) >>> 0)) >>> 0) | ((((a_1962934275[chckIndx(addInt(iNextA_1962934279, 2), 0, (a_1962934275).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((a_1962934275[chckIndx(addInt(iNextA_1962934279, 3), 0, (a_1962934275).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((a_1962934275[chckIndx(addInt(iNextA_1962934279, 4), 0, (a_1962934275).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); + iNextA_1962934279 = addInt(iNextA_1962934279, 5); } else { - F.line = 139; - runeA_1577058313 = 65533; - F.line = 140; - iNextA_1577058311 = addInt(iNextA_1577058311, 1); + runeA_1962934281 = 65533; + iNextA_1962934279 = addInt(iNextA_1962934279, 1); } } else { - if (((a_1577058307[chckIndx(iNextA_1577058311, 0, (a_1577058307).length - 1)] >>> 1) == 126)) { - if ((iNextA_1577058311 <= subInt((a_1577058307).length, 6))) { - F.line = 148; - runeA_1577058313 = chckRange(((((((((((((((a_1577058307[chckIndx(iNextA_1577058311, 0, (a_1577058307).length - 1)] & 1) >>> 0) << 30) >>> 0) | ((((a_1577058307[chckIndx(addInt(iNextA_1577058311, 1), 0, (a_1577058307).length - 1)] & 63) >>> 0) << 24) >>> 0)) >>> 0) | ((((a_1577058307[chckIndx(addInt(iNextA_1577058311, 2), 0, (a_1577058307).length - 1)] & 63) >>> 0) << 18) >>> 0)) >>> 0) | ((((a_1577058307[chckIndx(addInt(iNextA_1577058311, 3), 0, (a_1577058307).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((a_1577058307[chckIndx(addInt(iNextA_1577058311, 4), 0, (a_1577058307).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((a_1577058307[chckIndx(addInt(iNextA_1577058311, 5), 0, (a_1577058307).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); - F.line = 154; - iNextA_1577058311 = addInt(iNextA_1577058311, 6); + if (((a_1962934275[chckIndx(iNextA_1962934279, 0, (a_1962934275).length - 1)] >>> 1) == 126)) { + if ((iNextA_1962934279 <= subInt((a_1962934275).length, 6))) { + runeA_1962934281 = chckRange(((((((((((((((a_1962934275[chckIndx(iNextA_1962934279, 0, (a_1962934275).length - 1)] & 1) >>> 0) << 30) >>> 0) | ((((a_1962934275[chckIndx(addInt(iNextA_1962934279, 1), 0, (a_1962934275).length - 1)] & 63) >>> 0) << 24) >>> 0)) >>> 0) | ((((a_1962934275[chckIndx(addInt(iNextA_1962934279, 2), 0, (a_1962934275).length - 1)] & 63) >>> 0) << 18) >>> 0)) >>> 0) | ((((a_1962934275[chckIndx(addInt(iNextA_1962934279, 3), 0, (a_1962934275).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((a_1962934275[chckIndx(addInt(iNextA_1962934279, 4), 0, (a_1962934275).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((a_1962934275[chckIndx(addInt(iNextA_1962934279, 5), 0, (a_1962934275).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); + iNextA_1962934279 = addInt(iNextA_1962934279, 6); } else { - F.line = 156; - runeA_1577058313 = 65533; - F.line = 157; - iNextA_1577058311 = addInt(iNextA_1577058311, 1); + runeA_1962934281 = 65533; + iNextA_1962934279 = addInt(iNextA_1962934279, 1); } } else { - F.line = 159; - runeA_1577058313 = chckRange(a_1577058307[chckIndx(iNextA_1577058311, 0, (a_1577058307).length - 1)], (-2147483648), 2147483647); - F.line = 160; - iNextA_1577058311 = addInt(iNextA_1577058311, 1); + runeA_1962934281 = chckRange(a_1962934275[chckIndx(iNextA_1962934279, 0, (a_1962934275).length - 1)], (-2147483648), 2147483647); + iNextA_1962934279 = addInt(iNextA_1962934279, 1); } }}}}} - F.line = 37; - F.filename = "editdistance.nim"; - iNextB_1577058312 = iStart_1577058310; - if ((b_1577058308[chckIndx(iNextB_1577058312, 0, (b_1577058308).length - 1)] <= 127)) { - F.line = 91; - F.filename = "unicode.nim"; - runeB_1577058314 = chckRange(b_1577058308[chckIndx(iNextB_1577058312, 0, (b_1577058308).length - 1)], (-2147483648), 2147483647); - F.line = 92; - iNextB_1577058312 = addInt(iNextB_1577058312, 1); + iNextB_1962934280 = iStart_1962934278; + if ((b_1962934276[chckIndx(iNextB_1962934280, 0, (b_1962934276).length - 1)] <= 127)) { + runeB_1962934282 = chckRange(b_1962934276[chckIndx(iNextB_1962934280, 0, (b_1962934276).length - 1)], (-2147483648), 2147483647); + iNextB_1962934280 = addInt(iNextB_1962934280, 1); } else { - if (((b_1577058308[chckIndx(iNextB_1577058312, 0, (b_1577058308).length - 1)] >>> 5) == 6)) { - if ((iNextB_1577058312 <= subInt((b_1577058308).length, 2))) { - F.line = 96; - runeB_1577058314 = chckRange(((((((b_1577058308[chckIndx(iNextB_1577058312, 0, (b_1577058308).length - 1)] & 31) >>> 0) << 6) >>> 0) | ((b_1577058308[chckIndx(addInt(iNextB_1577058312, 1), 0, (b_1577058308).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); - F.line = 98; - iNextB_1577058312 = addInt(iNextB_1577058312, 2); + if (((b_1962934276[chckIndx(iNextB_1962934280, 0, (b_1962934276).length - 1)] >>> 5) == 6)) { + if ((iNextB_1962934280 <= subInt((b_1962934276).length, 2))) { + runeB_1962934282 = chckRange(((((((b_1962934276[chckIndx(iNextB_1962934280, 0, (b_1962934276).length - 1)] & 31) >>> 0) << 6) >>> 0) | ((b_1962934276[chckIndx(addInt(iNextB_1962934280, 1), 0, (b_1962934276).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); + iNextB_1962934280 = addInt(iNextB_1962934280, 2); } else { - F.line = 100; - runeB_1577058314 = 65533; - F.line = 101; - iNextB_1577058312 = addInt(iNextB_1577058312, 1); + runeB_1962934282 = 65533; + iNextB_1962934280 = addInt(iNextB_1962934280, 1); } } else { - if (((b_1577058308[chckIndx(iNextB_1577058312, 0, (b_1577058308).length - 1)] >>> 4) == 14)) { - if ((iNextB_1577058312 <= subInt((b_1577058308).length, 3))) { - F.line = 106; - runeB_1577058314 = chckRange(((((((((b_1577058308[chckIndx(iNextB_1577058312, 0, (b_1577058308).length - 1)] & 15) >>> 0) << 12) >>> 0) | ((((b_1577058308[chckIndx(addInt(iNextB_1577058312, 1), 0, (b_1577058308).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((b_1577058308[chckIndx(addInt(iNextB_1577058312, 2), 0, (b_1577058308).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); - F.line = 109; - iNextB_1577058312 = addInt(iNextB_1577058312, 3); + if (((b_1962934276[chckIndx(iNextB_1962934280, 0, (b_1962934276).length - 1)] >>> 4) == 14)) { + if ((iNextB_1962934280 <= subInt((b_1962934276).length, 3))) { + runeB_1962934282 = chckRange(((((((((b_1962934276[chckIndx(iNextB_1962934280, 0, (b_1962934276).length - 1)] & 15) >>> 0) << 12) >>> 0) | ((((b_1962934276[chckIndx(addInt(iNextB_1962934280, 1), 0, (b_1962934276).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((b_1962934276[chckIndx(addInt(iNextB_1962934280, 2), 0, (b_1962934276).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); + iNextB_1962934280 = addInt(iNextB_1962934280, 3); } else { - F.line = 111; - runeB_1577058314 = 65533; - F.line = 112; - iNextB_1577058312 = addInt(iNextB_1577058312, 1); + runeB_1962934282 = 65533; + iNextB_1962934280 = addInt(iNextB_1962934280, 1); } } else { - if (((b_1577058308[chckIndx(iNextB_1577058312, 0, (b_1577058308).length - 1)] >>> 3) == 30)) { - if ((iNextB_1577058312 <= subInt((b_1577058308).length, 4))) { - F.line = 118; - runeB_1577058314 = chckRange(((((((((((b_1577058308[chckIndx(iNextB_1577058312, 0, (b_1577058308).length - 1)] & 7) >>> 0) << 18) >>> 0) | ((((b_1577058308[chckIndx(addInt(iNextB_1577058312, 1), 0, (b_1577058308).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((b_1577058308[chckIndx(addInt(iNextB_1577058312, 2), 0, (b_1577058308).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((b_1577058308[chckIndx(addInt(iNextB_1577058312, 3), 0, (b_1577058308).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); - F.line = 122; - iNextB_1577058312 = addInt(iNextB_1577058312, 4); + if (((b_1962934276[chckIndx(iNextB_1962934280, 0, (b_1962934276).length - 1)] >>> 3) == 30)) { + if ((iNextB_1962934280 <= subInt((b_1962934276).length, 4))) { + runeB_1962934282 = chckRange(((((((((((b_1962934276[chckIndx(iNextB_1962934280, 0, (b_1962934276).length - 1)] & 7) >>> 0) << 18) >>> 0) | ((((b_1962934276[chckIndx(addInt(iNextB_1962934280, 1), 0, (b_1962934276).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((b_1962934276[chckIndx(addInt(iNextB_1962934280, 2), 0, (b_1962934276).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((b_1962934276[chckIndx(addInt(iNextB_1962934280, 3), 0, (b_1962934276).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); + iNextB_1962934280 = addInt(iNextB_1962934280, 4); } else { - F.line = 124; - runeB_1577058314 = 65533; - F.line = 125; - iNextB_1577058312 = addInt(iNextB_1577058312, 1); + runeB_1962934282 = 65533; + iNextB_1962934280 = addInt(iNextB_1962934280, 1); } } else { - if (((b_1577058308[chckIndx(iNextB_1577058312, 0, (b_1577058308).length - 1)] >>> 2) == 62)) { - if ((iNextB_1577058312 <= subInt((b_1577058308).length, 5))) { - F.line = 132; - runeB_1577058314 = chckRange(((((((((((((b_1577058308[chckIndx(iNextB_1577058312, 0, (b_1577058308).length - 1)] & 3) >>> 0) << 24) >>> 0) | ((((b_1577058308[chckIndx(addInt(iNextB_1577058312, 1), 0, (b_1577058308).length - 1)] & 63) >>> 0) << 18) >>> 0)) >>> 0) | ((((b_1577058308[chckIndx(addInt(iNextB_1577058312, 2), 0, (b_1577058308).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((b_1577058308[chckIndx(addInt(iNextB_1577058312, 3), 0, (b_1577058308).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((b_1577058308[chckIndx(addInt(iNextB_1577058312, 4), 0, (b_1577058308).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); - F.line = 137; - iNextB_1577058312 = addInt(iNextB_1577058312, 5); + if (((b_1962934276[chckIndx(iNextB_1962934280, 0, (b_1962934276).length - 1)] >>> 2) == 62)) { + if ((iNextB_1962934280 <= subInt((b_1962934276).length, 5))) { + runeB_1962934282 = chckRange(((((((((((((b_1962934276[chckIndx(iNextB_1962934280, 0, (b_1962934276).length - 1)] & 3) >>> 0) << 24) >>> 0) | ((((b_1962934276[chckIndx(addInt(iNextB_1962934280, 1), 0, (b_1962934276).length - 1)] & 63) >>> 0) << 18) >>> 0)) >>> 0) | ((((b_1962934276[chckIndx(addInt(iNextB_1962934280, 2), 0, (b_1962934276).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((b_1962934276[chckIndx(addInt(iNextB_1962934280, 3), 0, (b_1962934276).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((b_1962934276[chckIndx(addInt(iNextB_1962934280, 4), 0, (b_1962934276).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); + iNextB_1962934280 = addInt(iNextB_1962934280, 5); } else { - F.line = 139; - runeB_1577058314 = 65533; - F.line = 140; - iNextB_1577058312 = addInt(iNextB_1577058312, 1); + runeB_1962934282 = 65533; + iNextB_1962934280 = addInt(iNextB_1962934280, 1); } } else { - if (((b_1577058308[chckIndx(iNextB_1577058312, 0, (b_1577058308).length - 1)] >>> 1) == 126)) { - if ((iNextB_1577058312 <= subInt((b_1577058308).length, 6))) { - F.line = 148; - runeB_1577058314 = chckRange(((((((((((((((b_1577058308[chckIndx(iNextB_1577058312, 0, (b_1577058308).length - 1)] & 1) >>> 0) << 30) >>> 0) | ((((b_1577058308[chckIndx(addInt(iNextB_1577058312, 1), 0, (b_1577058308).length - 1)] & 63) >>> 0) << 24) >>> 0)) >>> 0) | ((((b_1577058308[chckIndx(addInt(iNextB_1577058312, 2), 0, (b_1577058308).length - 1)] & 63) >>> 0) << 18) >>> 0)) >>> 0) | ((((b_1577058308[chckIndx(addInt(iNextB_1577058312, 3), 0, (b_1577058308).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((b_1577058308[chckIndx(addInt(iNextB_1577058312, 4), 0, (b_1577058308).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((b_1577058308[chckIndx(addInt(iNextB_1577058312, 5), 0, (b_1577058308).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); - F.line = 154; - iNextB_1577058312 = addInt(iNextB_1577058312, 6); + if (((b_1962934276[chckIndx(iNextB_1962934280, 0, (b_1962934276).length - 1)] >>> 1) == 126)) { + if ((iNextB_1962934280 <= subInt((b_1962934276).length, 6))) { + runeB_1962934282 = chckRange(((((((((((((((b_1962934276[chckIndx(iNextB_1962934280, 0, (b_1962934276).length - 1)] & 1) >>> 0) << 30) >>> 0) | ((((b_1962934276[chckIndx(addInt(iNextB_1962934280, 1), 0, (b_1962934276).length - 1)] & 63) >>> 0) << 24) >>> 0)) >>> 0) | ((((b_1962934276[chckIndx(addInt(iNextB_1962934280, 2), 0, (b_1962934276).length - 1)] & 63) >>> 0) << 18) >>> 0)) >>> 0) | ((((b_1962934276[chckIndx(addInt(iNextB_1962934280, 3), 0, (b_1962934276).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((b_1962934276[chckIndx(addInt(iNextB_1962934280, 4), 0, (b_1962934276).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((b_1962934276[chckIndx(addInt(iNextB_1962934280, 5), 0, (b_1962934276).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); + iNextB_1962934280 = addInt(iNextB_1962934280, 6); } else { - F.line = 156; - runeB_1577058314 = 65533; - F.line = 157; - iNextB_1577058312 = addInt(iNextB_1577058312, 1); + runeB_1962934282 = 65533; + iNextB_1962934280 = addInt(iNextB_1962934280, 1); } } else { - F.line = 159; - runeB_1577058314 = chckRange(b_1577058308[chckIndx(iNextB_1577058312, 0, (b_1577058308).length - 1)], (-2147483648), 2147483647); - F.line = 160; - iNextB_1577058312 = addInt(iNextB_1577058312, 1); + runeB_1962934282 = chckRange(b_1962934276[chckIndx(iNextB_1962934280, 0, (b_1962934276).length - 1)], (-2147483648), 2147483647); + iNextB_1962934280 = addInt(iNextB_1962934280, 1); } }}}}} - if (!(HEX3DHEX3D_1040188400(runeA_1577058313, runeB_1577058314))) { - F.line = 40; - F.filename = "editdistance.nim"; - lenRunesA_1577058315 = addInt(lenRunesA_1577058315, 1); - F.line = 41; - lenRunesB_1577058316 = addInt(lenRunesB_1577058316, 1); - F.line = 42; + if (!(HEX3DHEX3D_1157628912(runeA_1962934281, runeB_1962934282))) { + lenRunesA_1962934283 = addInt(lenRunesA_1962934283, 1); + lenRunesB_1962934284 = addInt(lenRunesB_1962934284, 1); break Label2; } - F.line = 43; - iStart_1577058310 = iNextA_1577058311; + iStart_1962934278 = iNextA_1962934279; } }; }; - F.line = 48; - var iEndA_1577058770 = iNextA_1577058311; - F.line = 49; - var iEndB_1577058771 = iNextB_1577058312; - F.line = 50; - var iCurrentA_1577058772 = iNextA_1577058311; - F.line = 51; - var iCurrentB_1577058773 = iNextB_1577058312; + var iEndA_1962934738 = iNextA_1962934279; + var iEndB_1962934739 = iNextB_1962934280; + var iCurrentA_1962934740 = iNextA_1962934279; + var iCurrentB_1962934741 = iNextB_1962934280; Label4: { - F.line = 54; - var addRunesA_1577058775 = 0; - F.line = 55; - var addRunesB_1577058776 = 0; + var addRunesA_1962934743 = 0; + var addRunesB_1962934744 = 0; Label5: { - F.line = 56; Label6: while (true) { - if (!((iCurrentA_1577058772 < (a_1577058307).length) && (iCurrentB_1577058773 < (b_1577058308).length))) break Label6; - F.line = 57; - iNextA_1577058311 = iCurrentA_1577058772; - if ((a_1577058307[chckIndx(iNextA_1577058311, 0, (a_1577058307).length - 1)] <= 127)) { - F.line = 91; - F.filename = "unicode.nim"; - runeA_1577058313 = chckRange(a_1577058307[chckIndx(iNextA_1577058311, 0, (a_1577058307).length - 1)], (-2147483648), 2147483647); - F.line = 92; - iNextA_1577058311 = addInt(iNextA_1577058311, 1); + if (!((iCurrentA_1962934740 < (a_1962934275).length) && (iCurrentB_1962934741 < (b_1962934276).length))) break Label6; + iNextA_1962934279 = iCurrentA_1962934740; + if ((a_1962934275[chckIndx(iNextA_1962934279, 0, (a_1962934275).length - 1)] <= 127)) { + runeA_1962934281 = chckRange(a_1962934275[chckIndx(iNextA_1962934279, 0, (a_1962934275).length - 1)], (-2147483648), 2147483647); + iNextA_1962934279 = addInt(iNextA_1962934279, 1); } else { - if (((a_1577058307[chckIndx(iNextA_1577058311, 0, (a_1577058307).length - 1)] >>> 5) == 6)) { - if ((iNextA_1577058311 <= subInt((a_1577058307).length, 2))) { - F.line = 96; - runeA_1577058313 = chckRange(((((((a_1577058307[chckIndx(iNextA_1577058311, 0, (a_1577058307).length - 1)] & 31) >>> 0) << 6) >>> 0) | ((a_1577058307[chckIndx(addInt(iNextA_1577058311, 1), 0, (a_1577058307).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); - F.line = 98; - iNextA_1577058311 = addInt(iNextA_1577058311, 2); + if (((a_1962934275[chckIndx(iNextA_1962934279, 0, (a_1962934275).length - 1)] >>> 5) == 6)) { + if ((iNextA_1962934279 <= subInt((a_1962934275).length, 2))) { + runeA_1962934281 = chckRange(((((((a_1962934275[chckIndx(iNextA_1962934279, 0, (a_1962934275).length - 1)] & 31) >>> 0) << 6) >>> 0) | ((a_1962934275[chckIndx(addInt(iNextA_1962934279, 1), 0, (a_1962934275).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); + iNextA_1962934279 = addInt(iNextA_1962934279, 2); } else { - F.line = 100; - runeA_1577058313 = 65533; - F.line = 101; - iNextA_1577058311 = addInt(iNextA_1577058311, 1); + runeA_1962934281 = 65533; + iNextA_1962934279 = addInt(iNextA_1962934279, 1); } } else { - if (((a_1577058307[chckIndx(iNextA_1577058311, 0, (a_1577058307).length - 1)] >>> 4) == 14)) { - if ((iNextA_1577058311 <= subInt((a_1577058307).length, 3))) { - F.line = 106; - runeA_1577058313 = chckRange(((((((((a_1577058307[chckIndx(iNextA_1577058311, 0, (a_1577058307).length - 1)] & 15) >>> 0) << 12) >>> 0) | ((((a_1577058307[chckIndx(addInt(iNextA_1577058311, 1), 0, (a_1577058307).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((a_1577058307[chckIndx(addInt(iNextA_1577058311, 2), 0, (a_1577058307).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); - F.line = 109; - iNextA_1577058311 = addInt(iNextA_1577058311, 3); + if (((a_1962934275[chckIndx(iNextA_1962934279, 0, (a_1962934275).length - 1)] >>> 4) == 14)) { + if ((iNextA_1962934279 <= subInt((a_1962934275).length, 3))) { + runeA_1962934281 = chckRange(((((((((a_1962934275[chckIndx(iNextA_1962934279, 0, (a_1962934275).length - 1)] & 15) >>> 0) << 12) >>> 0) | ((((a_1962934275[chckIndx(addInt(iNextA_1962934279, 1), 0, (a_1962934275).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((a_1962934275[chckIndx(addInt(iNextA_1962934279, 2), 0, (a_1962934275).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); + iNextA_1962934279 = addInt(iNextA_1962934279, 3); } else { - F.line = 111; - runeA_1577058313 = 65533; - F.line = 112; - iNextA_1577058311 = addInt(iNextA_1577058311, 1); + runeA_1962934281 = 65533; + iNextA_1962934279 = addInt(iNextA_1962934279, 1); } } else { - if (((a_1577058307[chckIndx(iNextA_1577058311, 0, (a_1577058307).length - 1)] >>> 3) == 30)) { - if ((iNextA_1577058311 <= subInt((a_1577058307).length, 4))) { - F.line = 118; - runeA_1577058313 = chckRange(((((((((((a_1577058307[chckIndx(iNextA_1577058311, 0, (a_1577058307).length - 1)] & 7) >>> 0) << 18) >>> 0) | ((((a_1577058307[chckIndx(addInt(iNextA_1577058311, 1), 0, (a_1577058307).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((a_1577058307[chckIndx(addInt(iNextA_1577058311, 2), 0, (a_1577058307).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((a_1577058307[chckIndx(addInt(iNextA_1577058311, 3), 0, (a_1577058307).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); - F.line = 122; - iNextA_1577058311 = addInt(iNextA_1577058311, 4); + if (((a_1962934275[chckIndx(iNextA_1962934279, 0, (a_1962934275).length - 1)] >>> 3) == 30)) { + if ((iNextA_1962934279 <= subInt((a_1962934275).length, 4))) { + runeA_1962934281 = chckRange(((((((((((a_1962934275[chckIndx(iNextA_1962934279, 0, (a_1962934275).length - 1)] & 7) >>> 0) << 18) >>> 0) | ((((a_1962934275[chckIndx(addInt(iNextA_1962934279, 1), 0, (a_1962934275).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((a_1962934275[chckIndx(addInt(iNextA_1962934279, 2), 0, (a_1962934275).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((a_1962934275[chckIndx(addInt(iNextA_1962934279, 3), 0, (a_1962934275).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); + iNextA_1962934279 = addInt(iNextA_1962934279, 4); } else { - F.line = 124; - runeA_1577058313 = 65533; - F.line = 125; - iNextA_1577058311 = addInt(iNextA_1577058311, 1); + runeA_1962934281 = 65533; + iNextA_1962934279 = addInt(iNextA_1962934279, 1); } } else { - if (((a_1577058307[chckIndx(iNextA_1577058311, 0, (a_1577058307).length - 1)] >>> 2) == 62)) { - if ((iNextA_1577058311 <= subInt((a_1577058307).length, 5))) { - F.line = 132; - runeA_1577058313 = chckRange(((((((((((((a_1577058307[chckIndx(iNextA_1577058311, 0, (a_1577058307).length - 1)] & 3) >>> 0) << 24) >>> 0) | ((((a_1577058307[chckIndx(addInt(iNextA_1577058311, 1), 0, (a_1577058307).length - 1)] & 63) >>> 0) << 18) >>> 0)) >>> 0) | ((((a_1577058307[chckIndx(addInt(iNextA_1577058311, 2), 0, (a_1577058307).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((a_1577058307[chckIndx(addInt(iNextA_1577058311, 3), 0, (a_1577058307).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((a_1577058307[chckIndx(addInt(iNextA_1577058311, 4), 0, (a_1577058307).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); - F.line = 137; - iNextA_1577058311 = addInt(iNextA_1577058311, 5); + if (((a_1962934275[chckIndx(iNextA_1962934279, 0, (a_1962934275).length - 1)] >>> 2) == 62)) { + if ((iNextA_1962934279 <= subInt((a_1962934275).length, 5))) { + runeA_1962934281 = chckRange(((((((((((((a_1962934275[chckIndx(iNextA_1962934279, 0, (a_1962934275).length - 1)] & 3) >>> 0) << 24) >>> 0) | ((((a_1962934275[chckIndx(addInt(iNextA_1962934279, 1), 0, (a_1962934275).length - 1)] & 63) >>> 0) << 18) >>> 0)) >>> 0) | ((((a_1962934275[chckIndx(addInt(iNextA_1962934279, 2), 0, (a_1962934275).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((a_1962934275[chckIndx(addInt(iNextA_1962934279, 3), 0, (a_1962934275).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((a_1962934275[chckIndx(addInt(iNextA_1962934279, 4), 0, (a_1962934275).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); + iNextA_1962934279 = addInt(iNextA_1962934279, 5); } else { - F.line = 139; - runeA_1577058313 = 65533; - F.line = 140; - iNextA_1577058311 = addInt(iNextA_1577058311, 1); + runeA_1962934281 = 65533; + iNextA_1962934279 = addInt(iNextA_1962934279, 1); } } else { - if (((a_1577058307[chckIndx(iNextA_1577058311, 0, (a_1577058307).length - 1)] >>> 1) == 126)) { - if ((iNextA_1577058311 <= subInt((a_1577058307).length, 6))) { - F.line = 148; - runeA_1577058313 = chckRange(((((((((((((((a_1577058307[chckIndx(iNextA_1577058311, 0, (a_1577058307).length - 1)] & 1) >>> 0) << 30) >>> 0) | ((((a_1577058307[chckIndx(addInt(iNextA_1577058311, 1), 0, (a_1577058307).length - 1)] & 63) >>> 0) << 24) >>> 0)) >>> 0) | ((((a_1577058307[chckIndx(addInt(iNextA_1577058311, 2), 0, (a_1577058307).length - 1)] & 63) >>> 0) << 18) >>> 0)) >>> 0) | ((((a_1577058307[chckIndx(addInt(iNextA_1577058311, 3), 0, (a_1577058307).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((a_1577058307[chckIndx(addInt(iNextA_1577058311, 4), 0, (a_1577058307).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((a_1577058307[chckIndx(addInt(iNextA_1577058311, 5), 0, (a_1577058307).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); - F.line = 154; - iNextA_1577058311 = addInt(iNextA_1577058311, 6); + if (((a_1962934275[chckIndx(iNextA_1962934279, 0, (a_1962934275).length - 1)] >>> 1) == 126)) { + if ((iNextA_1962934279 <= subInt((a_1962934275).length, 6))) { + runeA_1962934281 = chckRange(((((((((((((((a_1962934275[chckIndx(iNextA_1962934279, 0, (a_1962934275).length - 1)] & 1) >>> 0) << 30) >>> 0) | ((((a_1962934275[chckIndx(addInt(iNextA_1962934279, 1), 0, (a_1962934275).length - 1)] & 63) >>> 0) << 24) >>> 0)) >>> 0) | ((((a_1962934275[chckIndx(addInt(iNextA_1962934279, 2), 0, (a_1962934275).length - 1)] & 63) >>> 0) << 18) >>> 0)) >>> 0) | ((((a_1962934275[chckIndx(addInt(iNextA_1962934279, 3), 0, (a_1962934275).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((a_1962934275[chckIndx(addInt(iNextA_1962934279, 4), 0, (a_1962934275).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((a_1962934275[chckIndx(addInt(iNextA_1962934279, 5), 0, (a_1962934275).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); + iNextA_1962934279 = addInt(iNextA_1962934279, 6); } else { - F.line = 156; - runeA_1577058313 = 65533; - F.line = 157; - iNextA_1577058311 = addInt(iNextA_1577058311, 1); + runeA_1962934281 = 65533; + iNextA_1962934279 = addInt(iNextA_1962934279, 1); } } else { - F.line = 159; - runeA_1577058313 = chckRange(a_1577058307[chckIndx(iNextA_1577058311, 0, (a_1577058307).length - 1)], (-2147483648), 2147483647); - F.line = 160; - iNextA_1577058311 = addInt(iNextA_1577058311, 1); + runeA_1962934281 = chckRange(a_1962934275[chckIndx(iNextA_1962934279, 0, (a_1962934275).length - 1)], (-2147483648), 2147483647); + iNextA_1962934279 = addInt(iNextA_1962934279, 1); } }}}}} - F.line = 59; - F.filename = "editdistance.nim"; - iNextB_1577058312 = iCurrentB_1577058773; - if ((b_1577058308[chckIndx(iNextB_1577058312, 0, (b_1577058308).length - 1)] <= 127)) { - F.line = 91; - F.filename = "unicode.nim"; - runeB_1577058314 = chckRange(b_1577058308[chckIndx(iNextB_1577058312, 0, (b_1577058308).length - 1)], (-2147483648), 2147483647); - F.line = 92; - iNextB_1577058312 = addInt(iNextB_1577058312, 1); + iNextB_1962934280 = iCurrentB_1962934741; + if ((b_1962934276[chckIndx(iNextB_1962934280, 0, (b_1962934276).length - 1)] <= 127)) { + runeB_1962934282 = chckRange(b_1962934276[chckIndx(iNextB_1962934280, 0, (b_1962934276).length - 1)], (-2147483648), 2147483647); + iNextB_1962934280 = addInt(iNextB_1962934280, 1); } else { - if (((b_1577058308[chckIndx(iNextB_1577058312, 0, (b_1577058308).length - 1)] >>> 5) == 6)) { - if ((iNextB_1577058312 <= subInt((b_1577058308).length, 2))) { - F.line = 96; - runeB_1577058314 = chckRange(((((((b_1577058308[chckIndx(iNextB_1577058312, 0, (b_1577058308).length - 1)] & 31) >>> 0) << 6) >>> 0) | ((b_1577058308[chckIndx(addInt(iNextB_1577058312, 1), 0, (b_1577058308).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); - F.line = 98; - iNextB_1577058312 = addInt(iNextB_1577058312, 2); + if (((b_1962934276[chckIndx(iNextB_1962934280, 0, (b_1962934276).length - 1)] >>> 5) == 6)) { + if ((iNextB_1962934280 <= subInt((b_1962934276).length, 2))) { + runeB_1962934282 = chckRange(((((((b_1962934276[chckIndx(iNextB_1962934280, 0, (b_1962934276).length - 1)] & 31) >>> 0) << 6) >>> 0) | ((b_1962934276[chckIndx(addInt(iNextB_1962934280, 1), 0, (b_1962934276).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); + iNextB_1962934280 = addInt(iNextB_1962934280, 2); } else { - F.line = 100; - runeB_1577058314 = 65533; - F.line = 101; - iNextB_1577058312 = addInt(iNextB_1577058312, 1); + runeB_1962934282 = 65533; + iNextB_1962934280 = addInt(iNextB_1962934280, 1); } } else { - if (((b_1577058308[chckIndx(iNextB_1577058312, 0, (b_1577058308).length - 1)] >>> 4) == 14)) { - if ((iNextB_1577058312 <= subInt((b_1577058308).length, 3))) { - F.line = 106; - runeB_1577058314 = chckRange(((((((((b_1577058308[chckIndx(iNextB_1577058312, 0, (b_1577058308).length - 1)] & 15) >>> 0) << 12) >>> 0) | ((((b_1577058308[chckIndx(addInt(iNextB_1577058312, 1), 0, (b_1577058308).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((b_1577058308[chckIndx(addInt(iNextB_1577058312, 2), 0, (b_1577058308).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); - F.line = 109; - iNextB_1577058312 = addInt(iNextB_1577058312, 3); + if (((b_1962934276[chckIndx(iNextB_1962934280, 0, (b_1962934276).length - 1)] >>> 4) == 14)) { + if ((iNextB_1962934280 <= subInt((b_1962934276).length, 3))) { + runeB_1962934282 = chckRange(((((((((b_1962934276[chckIndx(iNextB_1962934280, 0, (b_1962934276).length - 1)] & 15) >>> 0) << 12) >>> 0) | ((((b_1962934276[chckIndx(addInt(iNextB_1962934280, 1), 0, (b_1962934276).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((b_1962934276[chckIndx(addInt(iNextB_1962934280, 2), 0, (b_1962934276).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); + iNextB_1962934280 = addInt(iNextB_1962934280, 3); } else { - F.line = 111; - runeB_1577058314 = 65533; - F.line = 112; - iNextB_1577058312 = addInt(iNextB_1577058312, 1); + runeB_1962934282 = 65533; + iNextB_1962934280 = addInt(iNextB_1962934280, 1); } } else { - if (((b_1577058308[chckIndx(iNextB_1577058312, 0, (b_1577058308).length - 1)] >>> 3) == 30)) { - if ((iNextB_1577058312 <= subInt((b_1577058308).length, 4))) { - F.line = 118; - runeB_1577058314 = chckRange(((((((((((b_1577058308[chckIndx(iNextB_1577058312, 0, (b_1577058308).length - 1)] & 7) >>> 0) << 18) >>> 0) | ((((b_1577058308[chckIndx(addInt(iNextB_1577058312, 1), 0, (b_1577058308).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((b_1577058308[chckIndx(addInt(iNextB_1577058312, 2), 0, (b_1577058308).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((b_1577058308[chckIndx(addInt(iNextB_1577058312, 3), 0, (b_1577058308).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); - F.line = 122; - iNextB_1577058312 = addInt(iNextB_1577058312, 4); + if (((b_1962934276[chckIndx(iNextB_1962934280, 0, (b_1962934276).length - 1)] >>> 3) == 30)) { + if ((iNextB_1962934280 <= subInt((b_1962934276).length, 4))) { + runeB_1962934282 = chckRange(((((((((((b_1962934276[chckIndx(iNextB_1962934280, 0, (b_1962934276).length - 1)] & 7) >>> 0) << 18) >>> 0) | ((((b_1962934276[chckIndx(addInt(iNextB_1962934280, 1), 0, (b_1962934276).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((b_1962934276[chckIndx(addInt(iNextB_1962934280, 2), 0, (b_1962934276).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((b_1962934276[chckIndx(addInt(iNextB_1962934280, 3), 0, (b_1962934276).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); + iNextB_1962934280 = addInt(iNextB_1962934280, 4); } else { - F.line = 124; - runeB_1577058314 = 65533; - F.line = 125; - iNextB_1577058312 = addInt(iNextB_1577058312, 1); + runeB_1962934282 = 65533; + iNextB_1962934280 = addInt(iNextB_1962934280, 1); } } else { - if (((b_1577058308[chckIndx(iNextB_1577058312, 0, (b_1577058308).length - 1)] >>> 2) == 62)) { - if ((iNextB_1577058312 <= subInt((b_1577058308).length, 5))) { - F.line = 132; - runeB_1577058314 = chckRange(((((((((((((b_1577058308[chckIndx(iNextB_1577058312, 0, (b_1577058308).length - 1)] & 3) >>> 0) << 24) >>> 0) | ((((b_1577058308[chckIndx(addInt(iNextB_1577058312, 1), 0, (b_1577058308).length - 1)] & 63) >>> 0) << 18) >>> 0)) >>> 0) | ((((b_1577058308[chckIndx(addInt(iNextB_1577058312, 2), 0, (b_1577058308).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((b_1577058308[chckIndx(addInt(iNextB_1577058312, 3), 0, (b_1577058308).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((b_1577058308[chckIndx(addInt(iNextB_1577058312, 4), 0, (b_1577058308).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); - F.line = 137; - iNextB_1577058312 = addInt(iNextB_1577058312, 5); + if (((b_1962934276[chckIndx(iNextB_1962934280, 0, (b_1962934276).length - 1)] >>> 2) == 62)) { + if ((iNextB_1962934280 <= subInt((b_1962934276).length, 5))) { + runeB_1962934282 = chckRange(((((((((((((b_1962934276[chckIndx(iNextB_1962934280, 0, (b_1962934276).length - 1)] & 3) >>> 0) << 24) >>> 0) | ((((b_1962934276[chckIndx(addInt(iNextB_1962934280, 1), 0, (b_1962934276).length - 1)] & 63) >>> 0) << 18) >>> 0)) >>> 0) | ((((b_1962934276[chckIndx(addInt(iNextB_1962934280, 2), 0, (b_1962934276).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((b_1962934276[chckIndx(addInt(iNextB_1962934280, 3), 0, (b_1962934276).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((b_1962934276[chckIndx(addInt(iNextB_1962934280, 4), 0, (b_1962934276).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); + iNextB_1962934280 = addInt(iNextB_1962934280, 5); } else { - F.line = 139; - runeB_1577058314 = 65533; - F.line = 140; - iNextB_1577058312 = addInt(iNextB_1577058312, 1); + runeB_1962934282 = 65533; + iNextB_1962934280 = addInt(iNextB_1962934280, 1); } } else { - if (((b_1577058308[chckIndx(iNextB_1577058312, 0, (b_1577058308).length - 1)] >>> 1) == 126)) { - if ((iNextB_1577058312 <= subInt((b_1577058308).length, 6))) { - F.line = 148; - runeB_1577058314 = chckRange(((((((((((((((b_1577058308[chckIndx(iNextB_1577058312, 0, (b_1577058308).length - 1)] & 1) >>> 0) << 30) >>> 0) | ((((b_1577058308[chckIndx(addInt(iNextB_1577058312, 1), 0, (b_1577058308).length - 1)] & 63) >>> 0) << 24) >>> 0)) >>> 0) | ((((b_1577058308[chckIndx(addInt(iNextB_1577058312, 2), 0, (b_1577058308).length - 1)] & 63) >>> 0) << 18) >>> 0)) >>> 0) | ((((b_1577058308[chckIndx(addInt(iNextB_1577058312, 3), 0, (b_1577058308).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((b_1577058308[chckIndx(addInt(iNextB_1577058312, 4), 0, (b_1577058308).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((b_1577058308[chckIndx(addInt(iNextB_1577058312, 5), 0, (b_1577058308).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); - F.line = 154; - iNextB_1577058312 = addInt(iNextB_1577058312, 6); + if (((b_1962934276[chckIndx(iNextB_1962934280, 0, (b_1962934276).length - 1)] >>> 1) == 126)) { + if ((iNextB_1962934280 <= subInt((b_1962934276).length, 6))) { + runeB_1962934282 = chckRange(((((((((((((((b_1962934276[chckIndx(iNextB_1962934280, 0, (b_1962934276).length - 1)] & 1) >>> 0) << 30) >>> 0) | ((((b_1962934276[chckIndx(addInt(iNextB_1962934280, 1), 0, (b_1962934276).length - 1)] & 63) >>> 0) << 24) >>> 0)) >>> 0) | ((((b_1962934276[chckIndx(addInt(iNextB_1962934280, 2), 0, (b_1962934276).length - 1)] & 63) >>> 0) << 18) >>> 0)) >>> 0) | ((((b_1962934276[chckIndx(addInt(iNextB_1962934280, 3), 0, (b_1962934276).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((b_1962934276[chckIndx(addInt(iNextB_1962934280, 4), 0, (b_1962934276).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((b_1962934276[chckIndx(addInt(iNextB_1962934280, 5), 0, (b_1962934276).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); + iNextB_1962934280 = addInt(iNextB_1962934280, 6); } else { - F.line = 156; - runeB_1577058314 = 65533; - F.line = 157; - iNextB_1577058312 = addInt(iNextB_1577058312, 1); + runeB_1962934282 = 65533; + iNextB_1962934280 = addInt(iNextB_1962934280, 1); } } else { - F.line = 159; - runeB_1577058314 = chckRange(b_1577058308[chckIndx(iNextB_1577058312, 0, (b_1577058308).length - 1)], (-2147483648), 2147483647); - F.line = 160; - iNextB_1577058312 = addInt(iNextB_1577058312, 1); + runeB_1962934282 = chckRange(b_1962934276[chckIndx(iNextB_1962934280, 0, (b_1962934276).length - 1)], (-2147483648), 2147483647); + iNextB_1962934280 = addInt(iNextB_1962934280, 1); } }}}}} - F.line = 61; - F.filename = "editdistance.nim"; - addRunesA_1577058775 = addInt(addRunesA_1577058775, 1); - F.line = 62; - addRunesB_1577058776 = addInt(addRunesB_1577058776, 1); - if (!(HEX3DHEX3D_1040188400(runeA_1577058313, runeB_1577058314))) { - F.line = 64; - iEndA_1577058770 = iNextA_1577058311; - F.line = 65; - iEndB_1577058771 = iNextB_1577058312; - F.line = 66; - lenRunesA_1577058315 = addInt(lenRunesA_1577058315, addRunesA_1577058775); - F.line = 67; - lenRunesB_1577058316 = addInt(lenRunesB_1577058316, addRunesB_1577058776); - F.line = 68; - addRunesA_1577058775 = 0; - F.line = 69; - addRunesB_1577058776 = 0; + addRunesA_1962934743 = addInt(addRunesA_1962934743, 1); + addRunesB_1962934744 = addInt(addRunesB_1962934744, 1); + if (!(HEX3DHEX3D_1157628912(runeA_1962934281, runeB_1962934282))) { + iEndA_1962934738 = iNextA_1962934279; + iEndB_1962934739 = iNextB_1962934280; + lenRunesA_1962934283 = addInt(lenRunesA_1962934283, addRunesA_1962934743); + lenRunesB_1962934284 = addInt(lenRunesB_1962934284, addRunesB_1962934744); + addRunesA_1962934743 = 0; + addRunesB_1962934744 = 0; } - F.line = 70; - iCurrentA_1577058772 = iNextA_1577058311; - F.line = 71; - iCurrentB_1577058773 = iNextB_1577058312; + iCurrentA_1962934740 = iNextA_1962934279; + iCurrentB_1962934741 = iNextB_1962934280; } }; - if (((a_1577058307).length <= iCurrentA_1577058772)) { - if ((iCurrentB_1577058773 < (b_1577058308).length)) { - F.line = 74; - iEndA_1577058770 = iCurrentA_1577058772; - F.line = 75; - iEndB_1577058771 = iCurrentB_1577058773; - F.line = 76; - lenRunesA_1577058315 = addInt(lenRunesA_1577058315, addRunesA_1577058775); - F.line = 77; - lenRunesB_1577058316 = addInt(lenRunesB_1577058316, addRunesB_1577058776); + if (((a_1962934275).length <= iCurrentA_1962934740)) { + if ((iCurrentB_1962934741 < (b_1962934276).length)) { + iEndA_1962934738 = iCurrentA_1962934740; + iEndB_1962934739 = iCurrentB_1962934741; + lenRunesA_1962934283 = addInt(lenRunesA_1962934283, addRunesA_1962934743); + lenRunesB_1962934284 = addInt(lenRunesB_1962934284, addRunesB_1962934744); Label7: { - F.line = 78; Label8: while (true) { if (!true) break Label8; - if ((b_1577058308[chckIndx(iEndB_1577058771, 0, (b_1577058308).length - 1)] <= 127)) { - F.line = 91; - F.filename = "unicode.nim"; - runeB_1577058314 = chckRange(b_1577058308[chckIndx(iEndB_1577058771, 0, (b_1577058308).length - 1)], (-2147483648), 2147483647); - F.line = 92; - iEndB_1577058771 = addInt(iEndB_1577058771, 1); + if ((b_1962934276[chckIndx(iEndB_1962934739, 0, (b_1962934276).length - 1)] <= 127)) { + runeB_1962934282 = chckRange(b_1962934276[chckIndx(iEndB_1962934739, 0, (b_1962934276).length - 1)], (-2147483648), 2147483647); + iEndB_1962934739 = addInt(iEndB_1962934739, 1); } else { - if (((b_1577058308[chckIndx(iEndB_1577058771, 0, (b_1577058308).length - 1)] >>> 5) == 6)) { - if ((iEndB_1577058771 <= subInt((b_1577058308).length, 2))) { - F.line = 96; - runeB_1577058314 = chckRange(((((((b_1577058308[chckIndx(iEndB_1577058771, 0, (b_1577058308).length - 1)] & 31) >>> 0) << 6) >>> 0) | ((b_1577058308[chckIndx(addInt(iEndB_1577058771, 1), 0, (b_1577058308).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); - F.line = 98; - iEndB_1577058771 = addInt(iEndB_1577058771, 2); + if (((b_1962934276[chckIndx(iEndB_1962934739, 0, (b_1962934276).length - 1)] >>> 5) == 6)) { + if ((iEndB_1962934739 <= subInt((b_1962934276).length, 2))) { + runeB_1962934282 = chckRange(((((((b_1962934276[chckIndx(iEndB_1962934739, 0, (b_1962934276).length - 1)] & 31) >>> 0) << 6) >>> 0) | ((b_1962934276[chckIndx(addInt(iEndB_1962934739, 1), 0, (b_1962934276).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); + iEndB_1962934739 = addInt(iEndB_1962934739, 2); } else { - F.line = 100; - runeB_1577058314 = 65533; - F.line = 101; - iEndB_1577058771 = addInt(iEndB_1577058771, 1); + runeB_1962934282 = 65533; + iEndB_1962934739 = addInt(iEndB_1962934739, 1); } } else { - if (((b_1577058308[chckIndx(iEndB_1577058771, 0, (b_1577058308).length - 1)] >>> 4) == 14)) { - if ((iEndB_1577058771 <= subInt((b_1577058308).length, 3))) { - F.line = 106; - runeB_1577058314 = chckRange(((((((((b_1577058308[chckIndx(iEndB_1577058771, 0, (b_1577058308).length - 1)] & 15) >>> 0) << 12) >>> 0) | ((((b_1577058308[chckIndx(addInt(iEndB_1577058771, 1), 0, (b_1577058308).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((b_1577058308[chckIndx(addInt(iEndB_1577058771, 2), 0, (b_1577058308).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); - F.line = 109; - iEndB_1577058771 = addInt(iEndB_1577058771, 3); + if (((b_1962934276[chckIndx(iEndB_1962934739, 0, (b_1962934276).length - 1)] >>> 4) == 14)) { + if ((iEndB_1962934739 <= subInt((b_1962934276).length, 3))) { + runeB_1962934282 = chckRange(((((((((b_1962934276[chckIndx(iEndB_1962934739, 0, (b_1962934276).length - 1)] & 15) >>> 0) << 12) >>> 0) | ((((b_1962934276[chckIndx(addInt(iEndB_1962934739, 1), 0, (b_1962934276).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((b_1962934276[chckIndx(addInt(iEndB_1962934739, 2), 0, (b_1962934276).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); + iEndB_1962934739 = addInt(iEndB_1962934739, 3); } else { - F.line = 111; - runeB_1577058314 = 65533; - F.line = 112; - iEndB_1577058771 = addInt(iEndB_1577058771, 1); + runeB_1962934282 = 65533; + iEndB_1962934739 = addInt(iEndB_1962934739, 1); } } else { - if (((b_1577058308[chckIndx(iEndB_1577058771, 0, (b_1577058308).length - 1)] >>> 3) == 30)) { - if ((iEndB_1577058771 <= subInt((b_1577058308).length, 4))) { - F.line = 118; - runeB_1577058314 = chckRange(((((((((((b_1577058308[chckIndx(iEndB_1577058771, 0, (b_1577058308).length - 1)] & 7) >>> 0) << 18) >>> 0) | ((((b_1577058308[chckIndx(addInt(iEndB_1577058771, 1), 0, (b_1577058308).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((b_1577058308[chckIndx(addInt(iEndB_1577058771, 2), 0, (b_1577058308).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((b_1577058308[chckIndx(addInt(iEndB_1577058771, 3), 0, (b_1577058308).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); - F.line = 122; - iEndB_1577058771 = addInt(iEndB_1577058771, 4); + if (((b_1962934276[chckIndx(iEndB_1962934739, 0, (b_1962934276).length - 1)] >>> 3) == 30)) { + if ((iEndB_1962934739 <= subInt((b_1962934276).length, 4))) { + runeB_1962934282 = chckRange(((((((((((b_1962934276[chckIndx(iEndB_1962934739, 0, (b_1962934276).length - 1)] & 7) >>> 0) << 18) >>> 0) | ((((b_1962934276[chckIndx(addInt(iEndB_1962934739, 1), 0, (b_1962934276).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((b_1962934276[chckIndx(addInt(iEndB_1962934739, 2), 0, (b_1962934276).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((b_1962934276[chckIndx(addInt(iEndB_1962934739, 3), 0, (b_1962934276).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); + iEndB_1962934739 = addInt(iEndB_1962934739, 4); } else { - F.line = 124; - runeB_1577058314 = 65533; - F.line = 125; - iEndB_1577058771 = addInt(iEndB_1577058771, 1); + runeB_1962934282 = 65533; + iEndB_1962934739 = addInt(iEndB_1962934739, 1); } } else { - if (((b_1577058308[chckIndx(iEndB_1577058771, 0, (b_1577058308).length - 1)] >>> 2) == 62)) { - if ((iEndB_1577058771 <= subInt((b_1577058308).length, 5))) { - F.line = 132; - runeB_1577058314 = chckRange(((((((((((((b_1577058308[chckIndx(iEndB_1577058771, 0, (b_1577058308).length - 1)] & 3) >>> 0) << 24) >>> 0) | ((((b_1577058308[chckIndx(addInt(iEndB_1577058771, 1), 0, (b_1577058308).length - 1)] & 63) >>> 0) << 18) >>> 0)) >>> 0) | ((((b_1577058308[chckIndx(addInt(iEndB_1577058771, 2), 0, (b_1577058308).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((b_1577058308[chckIndx(addInt(iEndB_1577058771, 3), 0, (b_1577058308).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((b_1577058308[chckIndx(addInt(iEndB_1577058771, 4), 0, (b_1577058308).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); - F.line = 137; - iEndB_1577058771 = addInt(iEndB_1577058771, 5); + if (((b_1962934276[chckIndx(iEndB_1962934739, 0, (b_1962934276).length - 1)] >>> 2) == 62)) { + if ((iEndB_1962934739 <= subInt((b_1962934276).length, 5))) { + runeB_1962934282 = chckRange(((((((((((((b_1962934276[chckIndx(iEndB_1962934739, 0, (b_1962934276).length - 1)] & 3) >>> 0) << 24) >>> 0) | ((((b_1962934276[chckIndx(addInt(iEndB_1962934739, 1), 0, (b_1962934276).length - 1)] & 63) >>> 0) << 18) >>> 0)) >>> 0) | ((((b_1962934276[chckIndx(addInt(iEndB_1962934739, 2), 0, (b_1962934276).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((b_1962934276[chckIndx(addInt(iEndB_1962934739, 3), 0, (b_1962934276).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((b_1962934276[chckIndx(addInt(iEndB_1962934739, 4), 0, (b_1962934276).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); + iEndB_1962934739 = addInt(iEndB_1962934739, 5); } else { - F.line = 139; - runeB_1577058314 = 65533; - F.line = 140; - iEndB_1577058771 = addInt(iEndB_1577058771, 1); + runeB_1962934282 = 65533; + iEndB_1962934739 = addInt(iEndB_1962934739, 1); } } else { - if (((b_1577058308[chckIndx(iEndB_1577058771, 0, (b_1577058308).length - 1)] >>> 1) == 126)) { - if ((iEndB_1577058771 <= subInt((b_1577058308).length, 6))) { - F.line = 148; - runeB_1577058314 = chckRange(((((((((((((((b_1577058308[chckIndx(iEndB_1577058771, 0, (b_1577058308).length - 1)] & 1) >>> 0) << 30) >>> 0) | ((((b_1577058308[chckIndx(addInt(iEndB_1577058771, 1), 0, (b_1577058308).length - 1)] & 63) >>> 0) << 24) >>> 0)) >>> 0) | ((((b_1577058308[chckIndx(addInt(iEndB_1577058771, 2), 0, (b_1577058308).length - 1)] & 63) >>> 0) << 18) >>> 0)) >>> 0) | ((((b_1577058308[chckIndx(addInt(iEndB_1577058771, 3), 0, (b_1577058308).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((b_1577058308[chckIndx(addInt(iEndB_1577058771, 4), 0, (b_1577058308).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((b_1577058308[chckIndx(addInt(iEndB_1577058771, 5), 0, (b_1577058308).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); - F.line = 154; - iEndB_1577058771 = addInt(iEndB_1577058771, 6); + if (((b_1962934276[chckIndx(iEndB_1962934739, 0, (b_1962934276).length - 1)] >>> 1) == 126)) { + if ((iEndB_1962934739 <= subInt((b_1962934276).length, 6))) { + runeB_1962934282 = chckRange(((((((((((((((b_1962934276[chckIndx(iEndB_1962934739, 0, (b_1962934276).length - 1)] & 1) >>> 0) << 30) >>> 0) | ((((b_1962934276[chckIndx(addInt(iEndB_1962934739, 1), 0, (b_1962934276).length - 1)] & 63) >>> 0) << 24) >>> 0)) >>> 0) | ((((b_1962934276[chckIndx(addInt(iEndB_1962934739, 2), 0, (b_1962934276).length - 1)] & 63) >>> 0) << 18) >>> 0)) >>> 0) | ((((b_1962934276[chckIndx(addInt(iEndB_1962934739, 3), 0, (b_1962934276).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((b_1962934276[chckIndx(addInt(iEndB_1962934739, 4), 0, (b_1962934276).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((b_1962934276[chckIndx(addInt(iEndB_1962934739, 5), 0, (b_1962934276).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); + iEndB_1962934739 = addInt(iEndB_1962934739, 6); } else { - F.line = 156; - runeB_1577058314 = 65533; - F.line = 157; - iEndB_1577058771 = addInt(iEndB_1577058771, 1); + runeB_1962934282 = 65533; + iEndB_1962934739 = addInt(iEndB_1962934739, 1); } } else { - F.line = 159; - runeB_1577058314 = chckRange(b_1577058308[chckIndx(iEndB_1577058771, 0, (b_1577058308).length - 1)], (-2147483648), 2147483647); - F.line = 160; - iEndB_1577058771 = addInt(iEndB_1577058771, 1); + runeB_1962934282 = chckRange(b_1962934276[chckIndx(iEndB_1962934739, 0, (b_1962934276).length - 1)], (-2147483648), 2147483647); + iEndB_1962934739 = addInt(iEndB_1962934739, 1); } }}}}} - F.line = 80; - F.filename = "editdistance.nim"; - lenRunesB_1577058316 = addInt(lenRunesB_1577058316, 1); - if (((b_1577058308).length <= iEndB_1577058771)) { - F.line = 81; + lenRunesB_1962934284 = addInt(lenRunesB_1962934284, 1); + if (((b_1962934276).length <= iEndB_1962934739)) { break Label7; } @@ -27026,118 +17557,85 @@ function editDistance_1577058306(a_1577058307, b_1577058308) { } else { - if (((b_1577058308).length <= iCurrentB_1577058773)) { - F.line = 83; - iEndA_1577058770 = iCurrentA_1577058772; - F.line = 84; - iEndB_1577058771 = iCurrentB_1577058773; - F.line = 85; - lenRunesA_1577058315 = addInt(lenRunesA_1577058315, addRunesA_1577058775); - F.line = 86; - lenRunesB_1577058316 = addInt(lenRunesB_1577058316, addRunesB_1577058776); + if (((b_1962934276).length <= iCurrentB_1962934741)) { + iEndA_1962934738 = iCurrentA_1962934740; + iEndB_1962934739 = iCurrentB_1962934741; + lenRunesA_1962934283 = addInt(lenRunesA_1962934283, addRunesA_1962934743); + lenRunesB_1962934284 = addInt(lenRunesB_1962934284, addRunesB_1962934744); Label9: { - F.line = 87; Label10: while (true) { if (!true) break Label10; - if ((a_1577058307[chckIndx(iEndA_1577058770, 0, (a_1577058307).length - 1)] <= 127)) { - F.line = 91; - F.filename = "unicode.nim"; - runeA_1577058313 = chckRange(a_1577058307[chckIndx(iEndA_1577058770, 0, (a_1577058307).length - 1)], (-2147483648), 2147483647); - F.line = 92; - iEndA_1577058770 = addInt(iEndA_1577058770, 1); + if ((a_1962934275[chckIndx(iEndA_1962934738, 0, (a_1962934275).length - 1)] <= 127)) { + runeA_1962934281 = chckRange(a_1962934275[chckIndx(iEndA_1962934738, 0, (a_1962934275).length - 1)], (-2147483648), 2147483647); + iEndA_1962934738 = addInt(iEndA_1962934738, 1); } else { - if (((a_1577058307[chckIndx(iEndA_1577058770, 0, (a_1577058307).length - 1)] >>> 5) == 6)) { - if ((iEndA_1577058770 <= subInt((a_1577058307).length, 2))) { - F.line = 96; - runeA_1577058313 = chckRange(((((((a_1577058307[chckIndx(iEndA_1577058770, 0, (a_1577058307).length - 1)] & 31) >>> 0) << 6) >>> 0) | ((a_1577058307[chckIndx(addInt(iEndA_1577058770, 1), 0, (a_1577058307).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); - F.line = 98; - iEndA_1577058770 = addInt(iEndA_1577058770, 2); + if (((a_1962934275[chckIndx(iEndA_1962934738, 0, (a_1962934275).length - 1)] >>> 5) == 6)) { + if ((iEndA_1962934738 <= subInt((a_1962934275).length, 2))) { + runeA_1962934281 = chckRange(((((((a_1962934275[chckIndx(iEndA_1962934738, 0, (a_1962934275).length - 1)] & 31) >>> 0) << 6) >>> 0) | ((a_1962934275[chckIndx(addInt(iEndA_1962934738, 1), 0, (a_1962934275).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); + iEndA_1962934738 = addInt(iEndA_1962934738, 2); } else { - F.line = 100; - runeA_1577058313 = 65533; - F.line = 101; - iEndA_1577058770 = addInt(iEndA_1577058770, 1); + runeA_1962934281 = 65533; + iEndA_1962934738 = addInt(iEndA_1962934738, 1); } } else { - if (((a_1577058307[chckIndx(iEndA_1577058770, 0, (a_1577058307).length - 1)] >>> 4) == 14)) { - if ((iEndA_1577058770 <= subInt((a_1577058307).length, 3))) { - F.line = 106; - runeA_1577058313 = chckRange(((((((((a_1577058307[chckIndx(iEndA_1577058770, 0, (a_1577058307).length - 1)] & 15) >>> 0) << 12) >>> 0) | ((((a_1577058307[chckIndx(addInt(iEndA_1577058770, 1), 0, (a_1577058307).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((a_1577058307[chckIndx(addInt(iEndA_1577058770, 2), 0, (a_1577058307).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); - F.line = 109; - iEndA_1577058770 = addInt(iEndA_1577058770, 3); + if (((a_1962934275[chckIndx(iEndA_1962934738, 0, (a_1962934275).length - 1)] >>> 4) == 14)) { + if ((iEndA_1962934738 <= subInt((a_1962934275).length, 3))) { + runeA_1962934281 = chckRange(((((((((a_1962934275[chckIndx(iEndA_1962934738, 0, (a_1962934275).length - 1)] & 15) >>> 0) << 12) >>> 0) | ((((a_1962934275[chckIndx(addInt(iEndA_1962934738, 1), 0, (a_1962934275).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((a_1962934275[chckIndx(addInt(iEndA_1962934738, 2), 0, (a_1962934275).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); + iEndA_1962934738 = addInt(iEndA_1962934738, 3); } else { - F.line = 111; - runeA_1577058313 = 65533; - F.line = 112; - iEndA_1577058770 = addInt(iEndA_1577058770, 1); + runeA_1962934281 = 65533; + iEndA_1962934738 = addInt(iEndA_1962934738, 1); } } else { - if (((a_1577058307[chckIndx(iEndA_1577058770, 0, (a_1577058307).length - 1)] >>> 3) == 30)) { - if ((iEndA_1577058770 <= subInt((a_1577058307).length, 4))) { - F.line = 118; - runeA_1577058313 = chckRange(((((((((((a_1577058307[chckIndx(iEndA_1577058770, 0, (a_1577058307).length - 1)] & 7) >>> 0) << 18) >>> 0) | ((((a_1577058307[chckIndx(addInt(iEndA_1577058770, 1), 0, (a_1577058307).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((a_1577058307[chckIndx(addInt(iEndA_1577058770, 2), 0, (a_1577058307).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((a_1577058307[chckIndx(addInt(iEndA_1577058770, 3), 0, (a_1577058307).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); - F.line = 122; - iEndA_1577058770 = addInt(iEndA_1577058770, 4); + if (((a_1962934275[chckIndx(iEndA_1962934738, 0, (a_1962934275).length - 1)] >>> 3) == 30)) { + if ((iEndA_1962934738 <= subInt((a_1962934275).length, 4))) { + runeA_1962934281 = chckRange(((((((((((a_1962934275[chckIndx(iEndA_1962934738, 0, (a_1962934275).length - 1)] & 7) >>> 0) << 18) >>> 0) | ((((a_1962934275[chckIndx(addInt(iEndA_1962934738, 1), 0, (a_1962934275).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((a_1962934275[chckIndx(addInt(iEndA_1962934738, 2), 0, (a_1962934275).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((a_1962934275[chckIndx(addInt(iEndA_1962934738, 3), 0, (a_1962934275).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); + iEndA_1962934738 = addInt(iEndA_1962934738, 4); } else { - F.line = 124; - runeA_1577058313 = 65533; - F.line = 125; - iEndA_1577058770 = addInt(iEndA_1577058770, 1); + runeA_1962934281 = 65533; + iEndA_1962934738 = addInt(iEndA_1962934738, 1); } } else { - if (((a_1577058307[chckIndx(iEndA_1577058770, 0, (a_1577058307).length - 1)] >>> 2) == 62)) { - if ((iEndA_1577058770 <= subInt((a_1577058307).length, 5))) { - F.line = 132; - runeA_1577058313 = chckRange(((((((((((((a_1577058307[chckIndx(iEndA_1577058770, 0, (a_1577058307).length - 1)] & 3) >>> 0) << 24) >>> 0) | ((((a_1577058307[chckIndx(addInt(iEndA_1577058770, 1), 0, (a_1577058307).length - 1)] & 63) >>> 0) << 18) >>> 0)) >>> 0) | ((((a_1577058307[chckIndx(addInt(iEndA_1577058770, 2), 0, (a_1577058307).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((a_1577058307[chckIndx(addInt(iEndA_1577058770, 3), 0, (a_1577058307).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((a_1577058307[chckIndx(addInt(iEndA_1577058770, 4), 0, (a_1577058307).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); - F.line = 137; - iEndA_1577058770 = addInt(iEndA_1577058770, 5); + if (((a_1962934275[chckIndx(iEndA_1962934738, 0, (a_1962934275).length - 1)] >>> 2) == 62)) { + if ((iEndA_1962934738 <= subInt((a_1962934275).length, 5))) { + runeA_1962934281 = chckRange(((((((((((((a_1962934275[chckIndx(iEndA_1962934738, 0, (a_1962934275).length - 1)] & 3) >>> 0) << 24) >>> 0) | ((((a_1962934275[chckIndx(addInt(iEndA_1962934738, 1), 0, (a_1962934275).length - 1)] & 63) >>> 0) << 18) >>> 0)) >>> 0) | ((((a_1962934275[chckIndx(addInt(iEndA_1962934738, 2), 0, (a_1962934275).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((a_1962934275[chckIndx(addInt(iEndA_1962934738, 3), 0, (a_1962934275).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((a_1962934275[chckIndx(addInt(iEndA_1962934738, 4), 0, (a_1962934275).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); + iEndA_1962934738 = addInt(iEndA_1962934738, 5); } else { - F.line = 139; - runeA_1577058313 = 65533; - F.line = 140; - iEndA_1577058770 = addInt(iEndA_1577058770, 1); + runeA_1962934281 = 65533; + iEndA_1962934738 = addInt(iEndA_1962934738, 1); } } else { - if (((a_1577058307[chckIndx(iEndA_1577058770, 0, (a_1577058307).length - 1)] >>> 1) == 126)) { - if ((iEndA_1577058770 <= subInt((a_1577058307).length, 6))) { - F.line = 148; - runeA_1577058313 = chckRange(((((((((((((((a_1577058307[chckIndx(iEndA_1577058770, 0, (a_1577058307).length - 1)] & 1) >>> 0) << 30) >>> 0) | ((((a_1577058307[chckIndx(addInt(iEndA_1577058770, 1), 0, (a_1577058307).length - 1)] & 63) >>> 0) << 24) >>> 0)) >>> 0) | ((((a_1577058307[chckIndx(addInt(iEndA_1577058770, 2), 0, (a_1577058307).length - 1)] & 63) >>> 0) << 18) >>> 0)) >>> 0) | ((((a_1577058307[chckIndx(addInt(iEndA_1577058770, 3), 0, (a_1577058307).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((a_1577058307[chckIndx(addInt(iEndA_1577058770, 4), 0, (a_1577058307).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((a_1577058307[chckIndx(addInt(iEndA_1577058770, 5), 0, (a_1577058307).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); - F.line = 154; - iEndA_1577058770 = addInt(iEndA_1577058770, 6); + if (((a_1962934275[chckIndx(iEndA_1962934738, 0, (a_1962934275).length - 1)] >>> 1) == 126)) { + if ((iEndA_1962934738 <= subInt((a_1962934275).length, 6))) { + runeA_1962934281 = chckRange(((((((((((((((a_1962934275[chckIndx(iEndA_1962934738, 0, (a_1962934275).length - 1)] & 1) >>> 0) << 30) >>> 0) | ((((a_1962934275[chckIndx(addInt(iEndA_1962934738, 1), 0, (a_1962934275).length - 1)] & 63) >>> 0) << 24) >>> 0)) >>> 0) | ((((a_1962934275[chckIndx(addInt(iEndA_1962934738, 2), 0, (a_1962934275).length - 1)] & 63) >>> 0) << 18) >>> 0)) >>> 0) | ((((a_1962934275[chckIndx(addInt(iEndA_1962934738, 3), 0, (a_1962934275).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((a_1962934275[chckIndx(addInt(iEndA_1962934738, 4), 0, (a_1962934275).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((a_1962934275[chckIndx(addInt(iEndA_1962934738, 5), 0, (a_1962934275).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); + iEndA_1962934738 = addInt(iEndA_1962934738, 6); } else { - F.line = 156; - runeA_1577058313 = 65533; - F.line = 157; - iEndA_1577058770 = addInt(iEndA_1577058770, 1); + runeA_1962934281 = 65533; + iEndA_1962934738 = addInt(iEndA_1962934738, 1); } } else { - F.line = 159; - runeA_1577058313 = chckRange(a_1577058307[chckIndx(iEndA_1577058770, 0, (a_1577058307).length - 1)], (-2147483648), 2147483647); - F.line = 160; - iEndA_1577058770 = addInt(iEndA_1577058770, 1); + runeA_1962934281 = chckRange(a_1962934275[chckIndx(iEndA_1962934738, 0, (a_1962934275).length - 1)], (-2147483648), 2147483647); + iEndA_1962934738 = addInt(iEndA_1962934738, 1); } }}}}} - F.line = 89; - F.filename = "editdistance.nim"; - lenRunesA_1577058315 = addInt(lenRunesA_1577058315, 1); - if (((a_1577058307).length <= iEndA_1577058770)) { - F.line = 90; + lenRunesA_1962934283 = addInt(lenRunesA_1962934283, 1); + if (((a_1962934275).length <= iEndA_1962934738)) { break Label9; } @@ -27147,831 +17645,564 @@ function editDistance_1577058306(a_1577058307, b_1577058308) { } }; Label11: { - if ((lenRunesA_1577058315 == 0)) { - F.line = 93; - result_1577058309 = lenRunesB_1577058316; + if ((lenRunesA_1962934283 == 0)) { + result_1962934277 = lenRunesB_1962934284; break BeforeRet; } - if ((lenRunesB_1577058316 == 0)) { - F.line = 94; - result_1577058309 = lenRunesA_1577058315; + if ((lenRunesB_1962934284 == 0)) { + result_1962934277 = lenRunesA_1962934283; break BeforeRet; } - if ((lenRunesA_1577058315 == 1)) { - if ((a_1577058307[chckIndx(iStart_1577058310, 0, (a_1577058307).length - 1)] <= 127)) { - F.line = 91; - F.filename = "unicode.nim"; - runeA_1577058313 = chckRange(a_1577058307[chckIndx(iStart_1577058310, 0, (a_1577058307).length - 1)], (-2147483648), 2147483647); + if ((lenRunesA_1962934283 == 1)) { + if ((a_1962934275[chckIndx(iStart_1962934278, 0, (a_1962934275).length - 1)] <= 127)) { + runeA_1962934281 = chckRange(a_1962934275[chckIndx(iStart_1962934278, 0, (a_1962934275).length - 1)], (-2147483648), 2147483647); } else { - if (((a_1577058307[chckIndx(iStart_1577058310, 0, (a_1577058307).length - 1)] >>> 5) == 6)) { - if ((iStart_1577058310 <= subInt((a_1577058307).length, 2))) { - F.line = 96; - runeA_1577058313 = chckRange(((((((a_1577058307[chckIndx(iStart_1577058310, 0, (a_1577058307).length - 1)] & 31) >>> 0) << 6) >>> 0) | ((a_1577058307[chckIndx(addInt(iStart_1577058310, 1), 0, (a_1577058307).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); + if (((a_1962934275[chckIndx(iStart_1962934278, 0, (a_1962934275).length - 1)] >>> 5) == 6)) { + if ((iStart_1962934278 <= subInt((a_1962934275).length, 2))) { + runeA_1962934281 = chckRange(((((((a_1962934275[chckIndx(iStart_1962934278, 0, (a_1962934275).length - 1)] & 31) >>> 0) << 6) >>> 0) | ((a_1962934275[chckIndx(addInt(iStart_1962934278, 1), 0, (a_1962934275).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); } else { - F.line = 100; - runeA_1577058313 = 65533; + runeA_1962934281 = 65533; } } else { - if (((a_1577058307[chckIndx(iStart_1577058310, 0, (a_1577058307).length - 1)] >>> 4) == 14)) { - if ((iStart_1577058310 <= subInt((a_1577058307).length, 3))) { - F.line = 106; - runeA_1577058313 = chckRange(((((((((a_1577058307[chckIndx(iStart_1577058310, 0, (a_1577058307).length - 1)] & 15) >>> 0) << 12) >>> 0) | ((((a_1577058307[chckIndx(addInt(iStart_1577058310, 1), 0, (a_1577058307).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((a_1577058307[chckIndx(addInt(iStart_1577058310, 2), 0, (a_1577058307).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); + if (((a_1962934275[chckIndx(iStart_1962934278, 0, (a_1962934275).length - 1)] >>> 4) == 14)) { + if ((iStart_1962934278 <= subInt((a_1962934275).length, 3))) { + runeA_1962934281 = chckRange(((((((((a_1962934275[chckIndx(iStart_1962934278, 0, (a_1962934275).length - 1)] & 15) >>> 0) << 12) >>> 0) | ((((a_1962934275[chckIndx(addInt(iStart_1962934278, 1), 0, (a_1962934275).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((a_1962934275[chckIndx(addInt(iStart_1962934278, 2), 0, (a_1962934275).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); } else { - F.line = 111; - runeA_1577058313 = 65533; + runeA_1962934281 = 65533; } } else { - if (((a_1577058307[chckIndx(iStart_1577058310, 0, (a_1577058307).length - 1)] >>> 3) == 30)) { - if ((iStart_1577058310 <= subInt((a_1577058307).length, 4))) { - F.line = 118; - runeA_1577058313 = chckRange(((((((((((a_1577058307[chckIndx(iStart_1577058310, 0, (a_1577058307).length - 1)] & 7) >>> 0) << 18) >>> 0) | ((((a_1577058307[chckIndx(addInt(iStart_1577058310, 1), 0, (a_1577058307).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((a_1577058307[chckIndx(addInt(iStart_1577058310, 2), 0, (a_1577058307).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((a_1577058307[chckIndx(addInt(iStart_1577058310, 3), 0, (a_1577058307).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); + if (((a_1962934275[chckIndx(iStart_1962934278, 0, (a_1962934275).length - 1)] >>> 3) == 30)) { + if ((iStart_1962934278 <= subInt((a_1962934275).length, 4))) { + runeA_1962934281 = chckRange(((((((((((a_1962934275[chckIndx(iStart_1962934278, 0, (a_1962934275).length - 1)] & 7) >>> 0) << 18) >>> 0) | ((((a_1962934275[chckIndx(addInt(iStart_1962934278, 1), 0, (a_1962934275).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((a_1962934275[chckIndx(addInt(iStart_1962934278, 2), 0, (a_1962934275).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((a_1962934275[chckIndx(addInt(iStart_1962934278, 3), 0, (a_1962934275).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); } else { - F.line = 124; - runeA_1577058313 = 65533; + runeA_1962934281 = 65533; } } else { - if (((a_1577058307[chckIndx(iStart_1577058310, 0, (a_1577058307).length - 1)] >>> 2) == 62)) { - if ((iStart_1577058310 <= subInt((a_1577058307).length, 5))) { - F.line = 132; - runeA_1577058313 = chckRange(((((((((((((a_1577058307[chckIndx(iStart_1577058310, 0, (a_1577058307).length - 1)] & 3) >>> 0) << 24) >>> 0) | ((((a_1577058307[chckIndx(addInt(iStart_1577058310, 1), 0, (a_1577058307).length - 1)] & 63) >>> 0) << 18) >>> 0)) >>> 0) | ((((a_1577058307[chckIndx(addInt(iStart_1577058310, 2), 0, (a_1577058307).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((a_1577058307[chckIndx(addInt(iStart_1577058310, 3), 0, (a_1577058307).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((a_1577058307[chckIndx(addInt(iStart_1577058310, 4), 0, (a_1577058307).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); + if (((a_1962934275[chckIndx(iStart_1962934278, 0, (a_1962934275).length - 1)] >>> 2) == 62)) { + if ((iStart_1962934278 <= subInt((a_1962934275).length, 5))) { + runeA_1962934281 = chckRange(((((((((((((a_1962934275[chckIndx(iStart_1962934278, 0, (a_1962934275).length - 1)] & 3) >>> 0) << 24) >>> 0) | ((((a_1962934275[chckIndx(addInt(iStart_1962934278, 1), 0, (a_1962934275).length - 1)] & 63) >>> 0) << 18) >>> 0)) >>> 0) | ((((a_1962934275[chckIndx(addInt(iStart_1962934278, 2), 0, (a_1962934275).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((a_1962934275[chckIndx(addInt(iStart_1962934278, 3), 0, (a_1962934275).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((a_1962934275[chckIndx(addInt(iStart_1962934278, 4), 0, (a_1962934275).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); } else { - F.line = 139; - runeA_1577058313 = 65533; + runeA_1962934281 = 65533; } } else { - if (((a_1577058307[chckIndx(iStart_1577058310, 0, (a_1577058307).length - 1)] >>> 1) == 126)) { - if ((iStart_1577058310 <= subInt((a_1577058307).length, 6))) { - F.line = 148; - runeA_1577058313 = chckRange(((((((((((((((a_1577058307[chckIndx(iStart_1577058310, 0, (a_1577058307).length - 1)] & 1) >>> 0) << 30) >>> 0) | ((((a_1577058307[chckIndx(addInt(iStart_1577058310, 1), 0, (a_1577058307).length - 1)] & 63) >>> 0) << 24) >>> 0)) >>> 0) | ((((a_1577058307[chckIndx(addInt(iStart_1577058310, 2), 0, (a_1577058307).length - 1)] & 63) >>> 0) << 18) >>> 0)) >>> 0) | ((((a_1577058307[chckIndx(addInt(iStart_1577058310, 3), 0, (a_1577058307).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((a_1577058307[chckIndx(addInt(iStart_1577058310, 4), 0, (a_1577058307).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((a_1577058307[chckIndx(addInt(iStart_1577058310, 5), 0, (a_1577058307).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); + if (((a_1962934275[chckIndx(iStart_1962934278, 0, (a_1962934275).length - 1)] >>> 1) == 126)) { + if ((iStart_1962934278 <= subInt((a_1962934275).length, 6))) { + runeA_1962934281 = chckRange(((((((((((((((a_1962934275[chckIndx(iStart_1962934278, 0, (a_1962934275).length - 1)] & 1) >>> 0) << 30) >>> 0) | ((((a_1962934275[chckIndx(addInt(iStart_1962934278, 1), 0, (a_1962934275).length - 1)] & 63) >>> 0) << 24) >>> 0)) >>> 0) | ((((a_1962934275[chckIndx(addInt(iStart_1962934278, 2), 0, (a_1962934275).length - 1)] & 63) >>> 0) << 18) >>> 0)) >>> 0) | ((((a_1962934275[chckIndx(addInt(iStart_1962934278, 3), 0, (a_1962934275).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((a_1962934275[chckIndx(addInt(iStart_1962934278, 4), 0, (a_1962934275).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((a_1962934275[chckIndx(addInt(iStart_1962934278, 5), 0, (a_1962934275).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); } else { - F.line = 156; - runeA_1577058313 = 65533; + runeA_1962934281 = 65533; } } else { - F.line = 159; - runeA_1577058313 = chckRange(a_1577058307[chckIndx(iStart_1577058310, 0, (a_1577058307).length - 1)], (-2147483648), 2147483647); + runeA_1962934281 = chckRange(a_1962934275[chckIndx(iStart_1962934278, 0, (a_1962934275).length - 1)], (-2147483648), 2147483647); } }}}}} - F.line = 98; - F.filename = "editdistance.nim"; - var iCurrentB_1577059873 = iStart_1577058310; + var iCurrentB_1962935841 = iStart_1962934278; Label12: { - F.line = 99; Label13: while (true) { - if (!(iCurrentB_1577059873 < iEndB_1577058771)) break Label13; - if ((b_1577058308[chckIndx(iCurrentB_1577059873, 0, (b_1577058308).length - 1)] <= 127)) { - F.line = 91; - F.filename = "unicode.nim"; - runeB_1577058314 = chckRange(b_1577058308[chckIndx(iCurrentB_1577059873, 0, (b_1577058308).length - 1)], (-2147483648), 2147483647); - F.line = 92; - iCurrentB_1577059873 = addInt(iCurrentB_1577059873, 1); + if (!(iCurrentB_1962935841 < iEndB_1962934739)) break Label13; + if ((b_1962934276[chckIndx(iCurrentB_1962935841, 0, (b_1962934276).length - 1)] <= 127)) { + runeB_1962934282 = chckRange(b_1962934276[chckIndx(iCurrentB_1962935841, 0, (b_1962934276).length - 1)], (-2147483648), 2147483647); + iCurrentB_1962935841 = addInt(iCurrentB_1962935841, 1); } else { - if (((b_1577058308[chckIndx(iCurrentB_1577059873, 0, (b_1577058308).length - 1)] >>> 5) == 6)) { - if ((iCurrentB_1577059873 <= subInt((b_1577058308).length, 2))) { - F.line = 96; - runeB_1577058314 = chckRange(((((((b_1577058308[chckIndx(iCurrentB_1577059873, 0, (b_1577058308).length - 1)] & 31) >>> 0) << 6) >>> 0) | ((b_1577058308[chckIndx(addInt(iCurrentB_1577059873, 1), 0, (b_1577058308).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); - F.line = 98; - iCurrentB_1577059873 = addInt(iCurrentB_1577059873, 2); + if (((b_1962934276[chckIndx(iCurrentB_1962935841, 0, (b_1962934276).length - 1)] >>> 5) == 6)) { + if ((iCurrentB_1962935841 <= subInt((b_1962934276).length, 2))) { + runeB_1962934282 = chckRange(((((((b_1962934276[chckIndx(iCurrentB_1962935841, 0, (b_1962934276).length - 1)] & 31) >>> 0) << 6) >>> 0) | ((b_1962934276[chckIndx(addInt(iCurrentB_1962935841, 1), 0, (b_1962934276).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); + iCurrentB_1962935841 = addInt(iCurrentB_1962935841, 2); } else { - F.line = 100; - runeB_1577058314 = 65533; - F.line = 101; - iCurrentB_1577059873 = addInt(iCurrentB_1577059873, 1); + runeB_1962934282 = 65533; + iCurrentB_1962935841 = addInt(iCurrentB_1962935841, 1); } } else { - if (((b_1577058308[chckIndx(iCurrentB_1577059873, 0, (b_1577058308).length - 1)] >>> 4) == 14)) { - if ((iCurrentB_1577059873 <= subInt((b_1577058308).length, 3))) { - F.line = 106; - runeB_1577058314 = chckRange(((((((((b_1577058308[chckIndx(iCurrentB_1577059873, 0, (b_1577058308).length - 1)] & 15) >>> 0) << 12) >>> 0) | ((((b_1577058308[chckIndx(addInt(iCurrentB_1577059873, 1), 0, (b_1577058308).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((b_1577058308[chckIndx(addInt(iCurrentB_1577059873, 2), 0, (b_1577058308).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); - F.line = 109; - iCurrentB_1577059873 = addInt(iCurrentB_1577059873, 3); + if (((b_1962934276[chckIndx(iCurrentB_1962935841, 0, (b_1962934276).length - 1)] >>> 4) == 14)) { + if ((iCurrentB_1962935841 <= subInt((b_1962934276).length, 3))) { + runeB_1962934282 = chckRange(((((((((b_1962934276[chckIndx(iCurrentB_1962935841, 0, (b_1962934276).length - 1)] & 15) >>> 0) << 12) >>> 0) | ((((b_1962934276[chckIndx(addInt(iCurrentB_1962935841, 1), 0, (b_1962934276).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((b_1962934276[chckIndx(addInt(iCurrentB_1962935841, 2), 0, (b_1962934276).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); + iCurrentB_1962935841 = addInt(iCurrentB_1962935841, 3); } else { - F.line = 111; - runeB_1577058314 = 65533; - F.line = 112; - iCurrentB_1577059873 = addInt(iCurrentB_1577059873, 1); + runeB_1962934282 = 65533; + iCurrentB_1962935841 = addInt(iCurrentB_1962935841, 1); } } else { - if (((b_1577058308[chckIndx(iCurrentB_1577059873, 0, (b_1577058308).length - 1)] >>> 3) == 30)) { - if ((iCurrentB_1577059873 <= subInt((b_1577058308).length, 4))) { - F.line = 118; - runeB_1577058314 = chckRange(((((((((((b_1577058308[chckIndx(iCurrentB_1577059873, 0, (b_1577058308).length - 1)] & 7) >>> 0) << 18) >>> 0) | ((((b_1577058308[chckIndx(addInt(iCurrentB_1577059873, 1), 0, (b_1577058308).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((b_1577058308[chckIndx(addInt(iCurrentB_1577059873, 2), 0, (b_1577058308).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((b_1577058308[chckIndx(addInt(iCurrentB_1577059873, 3), 0, (b_1577058308).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); - F.line = 122; - iCurrentB_1577059873 = addInt(iCurrentB_1577059873, 4); + if (((b_1962934276[chckIndx(iCurrentB_1962935841, 0, (b_1962934276).length - 1)] >>> 3) == 30)) { + if ((iCurrentB_1962935841 <= subInt((b_1962934276).length, 4))) { + runeB_1962934282 = chckRange(((((((((((b_1962934276[chckIndx(iCurrentB_1962935841, 0, (b_1962934276).length - 1)] & 7) >>> 0) << 18) >>> 0) | ((((b_1962934276[chckIndx(addInt(iCurrentB_1962935841, 1), 0, (b_1962934276).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((b_1962934276[chckIndx(addInt(iCurrentB_1962935841, 2), 0, (b_1962934276).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((b_1962934276[chckIndx(addInt(iCurrentB_1962935841, 3), 0, (b_1962934276).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); + iCurrentB_1962935841 = addInt(iCurrentB_1962935841, 4); } else { - F.line = 124; - runeB_1577058314 = 65533; - F.line = 125; - iCurrentB_1577059873 = addInt(iCurrentB_1577059873, 1); + runeB_1962934282 = 65533; + iCurrentB_1962935841 = addInt(iCurrentB_1962935841, 1); } } else { - if (((b_1577058308[chckIndx(iCurrentB_1577059873, 0, (b_1577058308).length - 1)] >>> 2) == 62)) { - if ((iCurrentB_1577059873 <= subInt((b_1577058308).length, 5))) { - F.line = 132; - runeB_1577058314 = chckRange(((((((((((((b_1577058308[chckIndx(iCurrentB_1577059873, 0, (b_1577058308).length - 1)] & 3) >>> 0) << 24) >>> 0) | ((((b_1577058308[chckIndx(addInt(iCurrentB_1577059873, 1), 0, (b_1577058308).length - 1)] & 63) >>> 0) << 18) >>> 0)) >>> 0) | ((((b_1577058308[chckIndx(addInt(iCurrentB_1577059873, 2), 0, (b_1577058308).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((b_1577058308[chckIndx(addInt(iCurrentB_1577059873, 3), 0, (b_1577058308).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((b_1577058308[chckIndx(addInt(iCurrentB_1577059873, 4), 0, (b_1577058308).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); - F.line = 137; - iCurrentB_1577059873 = addInt(iCurrentB_1577059873, 5); + if (((b_1962934276[chckIndx(iCurrentB_1962935841, 0, (b_1962934276).length - 1)] >>> 2) == 62)) { + if ((iCurrentB_1962935841 <= subInt((b_1962934276).length, 5))) { + runeB_1962934282 = chckRange(((((((((((((b_1962934276[chckIndx(iCurrentB_1962935841, 0, (b_1962934276).length - 1)] & 3) >>> 0) << 24) >>> 0) | ((((b_1962934276[chckIndx(addInt(iCurrentB_1962935841, 1), 0, (b_1962934276).length - 1)] & 63) >>> 0) << 18) >>> 0)) >>> 0) | ((((b_1962934276[chckIndx(addInt(iCurrentB_1962935841, 2), 0, (b_1962934276).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((b_1962934276[chckIndx(addInt(iCurrentB_1962935841, 3), 0, (b_1962934276).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((b_1962934276[chckIndx(addInt(iCurrentB_1962935841, 4), 0, (b_1962934276).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); + iCurrentB_1962935841 = addInt(iCurrentB_1962935841, 5); } else { - F.line = 139; - runeB_1577058314 = 65533; - F.line = 140; - iCurrentB_1577059873 = addInt(iCurrentB_1577059873, 1); + runeB_1962934282 = 65533; + iCurrentB_1962935841 = addInt(iCurrentB_1962935841, 1); } } else { - if (((b_1577058308[chckIndx(iCurrentB_1577059873, 0, (b_1577058308).length - 1)] >>> 1) == 126)) { - if ((iCurrentB_1577059873 <= subInt((b_1577058308).length, 6))) { - F.line = 148; - runeB_1577058314 = chckRange(((((((((((((((b_1577058308[chckIndx(iCurrentB_1577059873, 0, (b_1577058308).length - 1)] & 1) >>> 0) << 30) >>> 0) | ((((b_1577058308[chckIndx(addInt(iCurrentB_1577059873, 1), 0, (b_1577058308).length - 1)] & 63) >>> 0) << 24) >>> 0)) >>> 0) | ((((b_1577058308[chckIndx(addInt(iCurrentB_1577059873, 2), 0, (b_1577058308).length - 1)] & 63) >>> 0) << 18) >>> 0)) >>> 0) | ((((b_1577058308[chckIndx(addInt(iCurrentB_1577059873, 3), 0, (b_1577058308).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((b_1577058308[chckIndx(addInt(iCurrentB_1577059873, 4), 0, (b_1577058308).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((b_1577058308[chckIndx(addInt(iCurrentB_1577059873, 5), 0, (b_1577058308).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); - F.line = 154; - iCurrentB_1577059873 = addInt(iCurrentB_1577059873, 6); + if (((b_1962934276[chckIndx(iCurrentB_1962935841, 0, (b_1962934276).length - 1)] >>> 1) == 126)) { + if ((iCurrentB_1962935841 <= subInt((b_1962934276).length, 6))) { + runeB_1962934282 = chckRange(((((((((((((((b_1962934276[chckIndx(iCurrentB_1962935841, 0, (b_1962934276).length - 1)] & 1) >>> 0) << 30) >>> 0) | ((((b_1962934276[chckIndx(addInt(iCurrentB_1962935841, 1), 0, (b_1962934276).length - 1)] & 63) >>> 0) << 24) >>> 0)) >>> 0) | ((((b_1962934276[chckIndx(addInt(iCurrentB_1962935841, 2), 0, (b_1962934276).length - 1)] & 63) >>> 0) << 18) >>> 0)) >>> 0) | ((((b_1962934276[chckIndx(addInt(iCurrentB_1962935841, 3), 0, (b_1962934276).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((b_1962934276[chckIndx(addInt(iCurrentB_1962935841, 4), 0, (b_1962934276).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((b_1962934276[chckIndx(addInt(iCurrentB_1962935841, 5), 0, (b_1962934276).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); + iCurrentB_1962935841 = addInt(iCurrentB_1962935841, 6); } else { - F.line = 156; - runeB_1577058314 = 65533; - F.line = 157; - iCurrentB_1577059873 = addInt(iCurrentB_1577059873, 1); + runeB_1962934282 = 65533; + iCurrentB_1962935841 = addInt(iCurrentB_1962935841, 1); } } else { - F.line = 159; - runeB_1577058314 = chckRange(b_1577058308[chckIndx(iCurrentB_1577059873, 0, (b_1577058308).length - 1)], (-2147483648), 2147483647); - F.line = 160; - iCurrentB_1577059873 = addInt(iCurrentB_1577059873, 1); + runeB_1962934282 = chckRange(b_1962934276[chckIndx(iCurrentB_1962935841, 0, (b_1962934276).length - 1)], (-2147483648), 2147483647); + iCurrentB_1962935841 = addInt(iCurrentB_1962935841, 1); } }}}}} - if (HEX3DHEX3D_1040188400(runeA_1577058313, runeB_1577058314)) { - F.line = 101; - F.filename = "editdistance.nim"; - result_1577058309 = subInt(lenRunesB_1577058316, 1); + if (HEX3DHEX3D_1157628912(runeA_1962934281, runeB_1962934282)) { + result_1962934277 = subInt(lenRunesB_1962934284, 1); break BeforeRet; } } }; - F.line = 102; - result_1577058309 = lenRunesB_1577058316; + result_1962934277 = lenRunesB_1962934284; break BeforeRet; } }; - F.line = 105; - var len1_1577060095 = addInt(lenRunesA_1577058315, 1); - F.line = 106; - var len2_1577060096 = addInt(lenRunesB_1577058316, 1); - F.line = 107; - var row_1577060097 = []; - F.line = 108; - var half_1577060098 = divInt(lenRunesA_1577058315, 2); - F.line = 109; - row_1577060097 = new Array(chckRange(len2_1577060096, 0, 2147483647)); for (var i = 0 ; i < chckRange(len2_1577060096, 0, 2147483647) ; ++i) { row_1577060097[i] = 0; } F.line = 110; - var e_1577060103 = subInt(addInt(iStart_1577058310, len2_1577060096), 1); + var len1_1962936063 = addInt(lenRunesA_1962934283, 1); + var len2_1962936064 = addInt(lenRunesB_1962934284, 1); + var row_1962936065 = []; + var half_1962936066 = divInt(lenRunesA_1962934283, 2); + row_1962936065 = new Array(chckRange(len2_1962936064, 0, 2147483647)); for (var i = 0 ; i < chckRange(len2_1962936064, 0, 2147483647) ; ++i) { row_1962936065[i] = 0; } var e_1962936071 = subInt(addInt(iStart_1962934278, len2_1962936064), 1); Label14: { - F.line = 112; - var i_1577060108 = 0; - F.line = 81; - F.filename = "iterators_1.nim"; - var colontmp__520100975 = 0; - F.line = 112; - F.filename = "editdistance.nim"; - colontmp__520100975 = subInt(subInt(len2_1577060096, half_1577060098), 1); - F.line = 96; - F.filename = "iterators_1.nim"; - var res_520100976 = 1; + var i_1962936076 = 0; + var colontmp__553655407 = 0; + colontmp__553655407 = subInt(subInt(len2_1962936064, half_1962936066), 1); + var res_553655408 = 1; Label15: { - F.line = 97; Label16: while (true) { - if (!(res_520100976 <= colontmp__520100975)) break Label16; - F.line = 112; - F.filename = "editdistance.nim"; - i_1577060108 = res_520100976; - F.line = 112; - row_1577060097[chckIndx(i_1577060108, 0, (row_1577060097).length - 1)] = i_1577060108; - F.line = 102; - F.filename = "iterators_1.nim"; - res_520100976 = addInt(res_520100976, 1); + if (!(res_553655408 <= colontmp__553655407)) break Label16; + i_1962936076 = res_553655408; + row_1962936065[chckIndx(i_1962936076, 0, (row_1962936065).length - 1)] = i_1962936076; + res_553655408 = addInt(res_553655408, 1); } }; }; - F.line = 113; - F.filename = "editdistance.nim"; - row_1577060097[chckIndx(0, 0, (row_1577060097).length - 1)] = subInt(subInt(len1_1577060095, half_1577060098), 1); - F.line = 114; - iCurrentA_1577058772 = iStart_1577058310; - F.line = 116; - var char2pI_1577060109 = (-1); - F.line = 117; - var char2pPrev_1577060110 = 0; + row_1962936065[chckIndx(0, 0, (row_1962936065).length - 1)] = subInt(subInt(len1_1962936063, half_1962936066), 1); + iCurrentA_1962934740 = iStart_1962934278; + var char2pI_1962936077 = (-1); + var char2pPrev_1962936078 = 0; Label17: { - F.line = 118; - var i_1577060115 = 0; - F.line = 81; - F.filename = "iterators_1.nim"; - var colontmp__520100983 = 0; - F.line = 118; - F.filename = "editdistance.nim"; - colontmp__520100983 = subInt(len1_1577060095, 1); - F.line = 96; - F.filename = "iterators_1.nim"; - var res_520100984 = 1; + var i_1962936083 = 0; + var colontmp__553655415 = 0; + colontmp__553655415 = subInt(len1_1962936063, 1); + var res_553655416 = 1; Label18: { - F.line = 97; Label19: while (true) { - if (!(res_520100984 <= colontmp__520100983)) break Label19; - F.line = 118; - F.filename = "editdistance.nim"; - i_1577060115 = res_520100984; - F.line = 119; - iNextA_1577058311 = iCurrentA_1577058772; - if ((a_1577058307[chckIndx(iNextA_1577058311, 0, (a_1577058307).length - 1)] <= 127)) { - F.line = 91; - F.filename = "unicode.nim"; - runeA_1577058313 = chckRange(a_1577058307[chckIndx(iNextA_1577058311, 0, (a_1577058307).length - 1)], (-2147483648), 2147483647); - F.line = 92; - iNextA_1577058311 = addInt(iNextA_1577058311, 1); + if (!(res_553655416 <= colontmp__553655415)) break Label19; + i_1962936083 = res_553655416; + iNextA_1962934279 = iCurrentA_1962934740; + if ((a_1962934275[chckIndx(iNextA_1962934279, 0, (a_1962934275).length - 1)] <= 127)) { + runeA_1962934281 = chckRange(a_1962934275[chckIndx(iNextA_1962934279, 0, (a_1962934275).length - 1)], (-2147483648), 2147483647); + iNextA_1962934279 = addInt(iNextA_1962934279, 1); } else { - if (((a_1577058307[chckIndx(iNextA_1577058311, 0, (a_1577058307).length - 1)] >>> 5) == 6)) { - if ((iNextA_1577058311 <= subInt((a_1577058307).length, 2))) { - F.line = 96; - runeA_1577058313 = chckRange(((((((a_1577058307[chckIndx(iNextA_1577058311, 0, (a_1577058307).length - 1)] & 31) >>> 0) << 6) >>> 0) | ((a_1577058307[chckIndx(addInt(iNextA_1577058311, 1), 0, (a_1577058307).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); - F.line = 98; - iNextA_1577058311 = addInt(iNextA_1577058311, 2); + if (((a_1962934275[chckIndx(iNextA_1962934279, 0, (a_1962934275).length - 1)] >>> 5) == 6)) { + if ((iNextA_1962934279 <= subInt((a_1962934275).length, 2))) { + runeA_1962934281 = chckRange(((((((a_1962934275[chckIndx(iNextA_1962934279, 0, (a_1962934275).length - 1)] & 31) >>> 0) << 6) >>> 0) | ((a_1962934275[chckIndx(addInt(iNextA_1962934279, 1), 0, (a_1962934275).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); + iNextA_1962934279 = addInt(iNextA_1962934279, 2); } else { - F.line = 100; - runeA_1577058313 = 65533; - F.line = 101; - iNextA_1577058311 = addInt(iNextA_1577058311, 1); + runeA_1962934281 = 65533; + iNextA_1962934279 = addInt(iNextA_1962934279, 1); } } else { - if (((a_1577058307[chckIndx(iNextA_1577058311, 0, (a_1577058307).length - 1)] >>> 4) == 14)) { - if ((iNextA_1577058311 <= subInt((a_1577058307).length, 3))) { - F.line = 106; - runeA_1577058313 = chckRange(((((((((a_1577058307[chckIndx(iNextA_1577058311, 0, (a_1577058307).length - 1)] & 15) >>> 0) << 12) >>> 0) | ((((a_1577058307[chckIndx(addInt(iNextA_1577058311, 1), 0, (a_1577058307).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((a_1577058307[chckIndx(addInt(iNextA_1577058311, 2), 0, (a_1577058307).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); - F.line = 109; - iNextA_1577058311 = addInt(iNextA_1577058311, 3); + if (((a_1962934275[chckIndx(iNextA_1962934279, 0, (a_1962934275).length - 1)] >>> 4) == 14)) { + if ((iNextA_1962934279 <= subInt((a_1962934275).length, 3))) { + runeA_1962934281 = chckRange(((((((((a_1962934275[chckIndx(iNextA_1962934279, 0, (a_1962934275).length - 1)] & 15) >>> 0) << 12) >>> 0) | ((((a_1962934275[chckIndx(addInt(iNextA_1962934279, 1), 0, (a_1962934275).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((a_1962934275[chckIndx(addInt(iNextA_1962934279, 2), 0, (a_1962934275).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); + iNextA_1962934279 = addInt(iNextA_1962934279, 3); } else { - F.line = 111; - runeA_1577058313 = 65533; - F.line = 112; - iNextA_1577058311 = addInt(iNextA_1577058311, 1); + runeA_1962934281 = 65533; + iNextA_1962934279 = addInt(iNextA_1962934279, 1); } } else { - if (((a_1577058307[chckIndx(iNextA_1577058311, 0, (a_1577058307).length - 1)] >>> 3) == 30)) { - if ((iNextA_1577058311 <= subInt((a_1577058307).length, 4))) { - F.line = 118; - runeA_1577058313 = chckRange(((((((((((a_1577058307[chckIndx(iNextA_1577058311, 0, (a_1577058307).length - 1)] & 7) >>> 0) << 18) >>> 0) | ((((a_1577058307[chckIndx(addInt(iNextA_1577058311, 1), 0, (a_1577058307).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((a_1577058307[chckIndx(addInt(iNextA_1577058311, 2), 0, (a_1577058307).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((a_1577058307[chckIndx(addInt(iNextA_1577058311, 3), 0, (a_1577058307).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); - F.line = 122; - iNextA_1577058311 = addInt(iNextA_1577058311, 4); + if (((a_1962934275[chckIndx(iNextA_1962934279, 0, (a_1962934275).length - 1)] >>> 3) == 30)) { + if ((iNextA_1962934279 <= subInt((a_1962934275).length, 4))) { + runeA_1962934281 = chckRange(((((((((((a_1962934275[chckIndx(iNextA_1962934279, 0, (a_1962934275).length - 1)] & 7) >>> 0) << 18) >>> 0) | ((((a_1962934275[chckIndx(addInt(iNextA_1962934279, 1), 0, (a_1962934275).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((a_1962934275[chckIndx(addInt(iNextA_1962934279, 2), 0, (a_1962934275).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((a_1962934275[chckIndx(addInt(iNextA_1962934279, 3), 0, (a_1962934275).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); + iNextA_1962934279 = addInt(iNextA_1962934279, 4); } else { - F.line = 124; - runeA_1577058313 = 65533; - F.line = 125; - iNextA_1577058311 = addInt(iNextA_1577058311, 1); + runeA_1962934281 = 65533; + iNextA_1962934279 = addInt(iNextA_1962934279, 1); } } else { - if (((a_1577058307[chckIndx(iNextA_1577058311, 0, (a_1577058307).length - 1)] >>> 2) == 62)) { - if ((iNextA_1577058311 <= subInt((a_1577058307).length, 5))) { - F.line = 132; - runeA_1577058313 = chckRange(((((((((((((a_1577058307[chckIndx(iNextA_1577058311, 0, (a_1577058307).length - 1)] & 3) >>> 0) << 24) >>> 0) | ((((a_1577058307[chckIndx(addInt(iNextA_1577058311, 1), 0, (a_1577058307).length - 1)] & 63) >>> 0) << 18) >>> 0)) >>> 0) | ((((a_1577058307[chckIndx(addInt(iNextA_1577058311, 2), 0, (a_1577058307).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((a_1577058307[chckIndx(addInt(iNextA_1577058311, 3), 0, (a_1577058307).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((a_1577058307[chckIndx(addInt(iNextA_1577058311, 4), 0, (a_1577058307).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); - F.line = 137; - iNextA_1577058311 = addInt(iNextA_1577058311, 5); + if (((a_1962934275[chckIndx(iNextA_1962934279, 0, (a_1962934275).length - 1)] >>> 2) == 62)) { + if ((iNextA_1962934279 <= subInt((a_1962934275).length, 5))) { + runeA_1962934281 = chckRange(((((((((((((a_1962934275[chckIndx(iNextA_1962934279, 0, (a_1962934275).length - 1)] & 3) >>> 0) << 24) >>> 0) | ((((a_1962934275[chckIndx(addInt(iNextA_1962934279, 1), 0, (a_1962934275).length - 1)] & 63) >>> 0) << 18) >>> 0)) >>> 0) | ((((a_1962934275[chckIndx(addInt(iNextA_1962934279, 2), 0, (a_1962934275).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((a_1962934275[chckIndx(addInt(iNextA_1962934279, 3), 0, (a_1962934275).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((a_1962934275[chckIndx(addInt(iNextA_1962934279, 4), 0, (a_1962934275).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); + iNextA_1962934279 = addInt(iNextA_1962934279, 5); } else { - F.line = 139; - runeA_1577058313 = 65533; - F.line = 140; - iNextA_1577058311 = addInt(iNextA_1577058311, 1); + runeA_1962934281 = 65533; + iNextA_1962934279 = addInt(iNextA_1962934279, 1); } } else { - if (((a_1577058307[chckIndx(iNextA_1577058311, 0, (a_1577058307).length - 1)] >>> 1) == 126)) { - if ((iNextA_1577058311 <= subInt((a_1577058307).length, 6))) { - F.line = 148; - runeA_1577058313 = chckRange(((((((((((((((a_1577058307[chckIndx(iNextA_1577058311, 0, (a_1577058307).length - 1)] & 1) >>> 0) << 30) >>> 0) | ((((a_1577058307[chckIndx(addInt(iNextA_1577058311, 1), 0, (a_1577058307).length - 1)] & 63) >>> 0) << 24) >>> 0)) >>> 0) | ((((a_1577058307[chckIndx(addInt(iNextA_1577058311, 2), 0, (a_1577058307).length - 1)] & 63) >>> 0) << 18) >>> 0)) >>> 0) | ((((a_1577058307[chckIndx(addInt(iNextA_1577058311, 3), 0, (a_1577058307).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((a_1577058307[chckIndx(addInt(iNextA_1577058311, 4), 0, (a_1577058307).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((a_1577058307[chckIndx(addInt(iNextA_1577058311, 5), 0, (a_1577058307).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); - F.line = 154; - iNextA_1577058311 = addInt(iNextA_1577058311, 6); + if (((a_1962934275[chckIndx(iNextA_1962934279, 0, (a_1962934275).length - 1)] >>> 1) == 126)) { + if ((iNextA_1962934279 <= subInt((a_1962934275).length, 6))) { + runeA_1962934281 = chckRange(((((((((((((((a_1962934275[chckIndx(iNextA_1962934279, 0, (a_1962934275).length - 1)] & 1) >>> 0) << 30) >>> 0) | ((((a_1962934275[chckIndx(addInt(iNextA_1962934279, 1), 0, (a_1962934275).length - 1)] & 63) >>> 0) << 24) >>> 0)) >>> 0) | ((((a_1962934275[chckIndx(addInt(iNextA_1962934279, 2), 0, (a_1962934275).length - 1)] & 63) >>> 0) << 18) >>> 0)) >>> 0) | ((((a_1962934275[chckIndx(addInt(iNextA_1962934279, 3), 0, (a_1962934275).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((a_1962934275[chckIndx(addInt(iNextA_1962934279, 4), 0, (a_1962934275).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((a_1962934275[chckIndx(addInt(iNextA_1962934279, 5), 0, (a_1962934275).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); + iNextA_1962934279 = addInt(iNextA_1962934279, 6); } else { - F.line = 156; - runeA_1577058313 = 65533; - F.line = 157; - iNextA_1577058311 = addInt(iNextA_1577058311, 1); + runeA_1962934281 = 65533; + iNextA_1962934279 = addInt(iNextA_1962934279, 1); } } else { - F.line = 159; - runeA_1577058313 = chckRange(a_1577058307[chckIndx(iNextA_1577058311, 0, (a_1577058307).length - 1)], (-2147483648), 2147483647); - F.line = 160; - iNextA_1577058311 = addInt(iNextA_1577058311, 1); + runeA_1962934281 = chckRange(a_1962934275[chckIndx(iNextA_1962934279, 0, (a_1962934275).length - 1)], (-2147483648), 2147483647); + iNextA_1962934279 = addInt(iNextA_1962934279, 1); } }}}}} - F.line = 122; - F.filename = "editdistance.nim"; - var char2p_1577060337 = 0; - F.line = 123; - var diff_1577060338 = 0; - F.line = 123; - var x_1577060339 = 0; - F.line = 124; - var p_1577060340 = 0; - if ((subInt(len1_1577060095, half_1577060098) <= i_1577060115)) { - F.line = 127; - var offset_1577060341 = subInt(addInt(i_1577060115, half_1577060098), len1_1577060095); - if ((char2pI_1577060109 == i_1577060115)) { - if ((b_1577058308[chckIndx(char2pPrev_1577060110, 0, (b_1577058308).length - 1)] <= 127)) { - F.line = 91; - F.filename = "unicode.nim"; - runeB_1577058314 = chckRange(b_1577058308[chckIndx(char2pPrev_1577060110, 0, (b_1577058308).length - 1)], (-2147483648), 2147483647); - F.line = 92; - char2pPrev_1577060110 = addInt(char2pPrev_1577060110, 1); + var char2p_1962936305 = 0; + var diff_1962936306 = 0; + var x_1962936307 = 0; + var p_1962936308 = 0; + if ((subInt(len1_1962936063, half_1962936066) <= i_1962936083)) { + var offset_1962936309 = subInt(addInt(i_1962936083, half_1962936066), len1_1962936063); + if ((char2pI_1962936077 == i_1962936083)) { + if ((b_1962934276[chckIndx(char2pPrev_1962936078, 0, (b_1962934276).length - 1)] <= 127)) { + runeB_1962934282 = chckRange(b_1962934276[chckIndx(char2pPrev_1962936078, 0, (b_1962934276).length - 1)], (-2147483648), 2147483647); + char2pPrev_1962936078 = addInt(char2pPrev_1962936078, 1); } else { - if (((b_1577058308[chckIndx(char2pPrev_1577060110, 0, (b_1577058308).length - 1)] >>> 5) == 6)) { - if ((char2pPrev_1577060110 <= subInt((b_1577058308).length, 2))) { - F.line = 96; - runeB_1577058314 = chckRange(((((((b_1577058308[chckIndx(char2pPrev_1577060110, 0, (b_1577058308).length - 1)] & 31) >>> 0) << 6) >>> 0) | ((b_1577058308[chckIndx(addInt(char2pPrev_1577060110, 1), 0, (b_1577058308).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); - F.line = 98; - char2pPrev_1577060110 = addInt(char2pPrev_1577060110, 2); + if (((b_1962934276[chckIndx(char2pPrev_1962936078, 0, (b_1962934276).length - 1)] >>> 5) == 6)) { + if ((char2pPrev_1962936078 <= subInt((b_1962934276).length, 2))) { + runeB_1962934282 = chckRange(((((((b_1962934276[chckIndx(char2pPrev_1962936078, 0, (b_1962934276).length - 1)] & 31) >>> 0) << 6) >>> 0) | ((b_1962934276[chckIndx(addInt(char2pPrev_1962936078, 1), 0, (b_1962934276).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); + char2pPrev_1962936078 = addInt(char2pPrev_1962936078, 2); } else { - F.line = 100; - runeB_1577058314 = 65533; - F.line = 101; - char2pPrev_1577060110 = addInt(char2pPrev_1577060110, 1); + runeB_1962934282 = 65533; + char2pPrev_1962936078 = addInt(char2pPrev_1962936078, 1); } } else { - if (((b_1577058308[chckIndx(char2pPrev_1577060110, 0, (b_1577058308).length - 1)] >>> 4) == 14)) { - if ((char2pPrev_1577060110 <= subInt((b_1577058308).length, 3))) { - F.line = 106; - runeB_1577058314 = chckRange(((((((((b_1577058308[chckIndx(char2pPrev_1577060110, 0, (b_1577058308).length - 1)] & 15) >>> 0) << 12) >>> 0) | ((((b_1577058308[chckIndx(addInt(char2pPrev_1577060110, 1), 0, (b_1577058308).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((b_1577058308[chckIndx(addInt(char2pPrev_1577060110, 2), 0, (b_1577058308).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); - F.line = 109; - char2pPrev_1577060110 = addInt(char2pPrev_1577060110, 3); + if (((b_1962934276[chckIndx(char2pPrev_1962936078, 0, (b_1962934276).length - 1)] >>> 4) == 14)) { + if ((char2pPrev_1962936078 <= subInt((b_1962934276).length, 3))) { + runeB_1962934282 = chckRange(((((((((b_1962934276[chckIndx(char2pPrev_1962936078, 0, (b_1962934276).length - 1)] & 15) >>> 0) << 12) >>> 0) | ((((b_1962934276[chckIndx(addInt(char2pPrev_1962936078, 1), 0, (b_1962934276).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((b_1962934276[chckIndx(addInt(char2pPrev_1962936078, 2), 0, (b_1962934276).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); + char2pPrev_1962936078 = addInt(char2pPrev_1962936078, 3); } else { - F.line = 111; - runeB_1577058314 = 65533; - F.line = 112; - char2pPrev_1577060110 = addInt(char2pPrev_1577060110, 1); + runeB_1962934282 = 65533; + char2pPrev_1962936078 = addInt(char2pPrev_1962936078, 1); } } else { - if (((b_1577058308[chckIndx(char2pPrev_1577060110, 0, (b_1577058308).length - 1)] >>> 3) == 30)) { - if ((char2pPrev_1577060110 <= subInt((b_1577058308).length, 4))) { - F.line = 118; - runeB_1577058314 = chckRange(((((((((((b_1577058308[chckIndx(char2pPrev_1577060110, 0, (b_1577058308).length - 1)] & 7) >>> 0) << 18) >>> 0) | ((((b_1577058308[chckIndx(addInt(char2pPrev_1577060110, 1), 0, (b_1577058308).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((b_1577058308[chckIndx(addInt(char2pPrev_1577060110, 2), 0, (b_1577058308).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((b_1577058308[chckIndx(addInt(char2pPrev_1577060110, 3), 0, (b_1577058308).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); - F.line = 122; - char2pPrev_1577060110 = addInt(char2pPrev_1577060110, 4); + if (((b_1962934276[chckIndx(char2pPrev_1962936078, 0, (b_1962934276).length - 1)] >>> 3) == 30)) { + if ((char2pPrev_1962936078 <= subInt((b_1962934276).length, 4))) { + runeB_1962934282 = chckRange(((((((((((b_1962934276[chckIndx(char2pPrev_1962936078, 0, (b_1962934276).length - 1)] & 7) >>> 0) << 18) >>> 0) | ((((b_1962934276[chckIndx(addInt(char2pPrev_1962936078, 1), 0, (b_1962934276).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((b_1962934276[chckIndx(addInt(char2pPrev_1962936078, 2), 0, (b_1962934276).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((b_1962934276[chckIndx(addInt(char2pPrev_1962936078, 3), 0, (b_1962934276).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); + char2pPrev_1962936078 = addInt(char2pPrev_1962936078, 4); } else { - F.line = 124; - runeB_1577058314 = 65533; - F.line = 125; - char2pPrev_1577060110 = addInt(char2pPrev_1577060110, 1); + runeB_1962934282 = 65533; + char2pPrev_1962936078 = addInt(char2pPrev_1962936078, 1); } } else { - if (((b_1577058308[chckIndx(char2pPrev_1577060110, 0, (b_1577058308).length - 1)] >>> 2) == 62)) { - if ((char2pPrev_1577060110 <= subInt((b_1577058308).length, 5))) { - F.line = 132; - runeB_1577058314 = chckRange(((((((((((((b_1577058308[chckIndx(char2pPrev_1577060110, 0, (b_1577058308).length - 1)] & 3) >>> 0) << 24) >>> 0) | ((((b_1577058308[chckIndx(addInt(char2pPrev_1577060110, 1), 0, (b_1577058308).length - 1)] & 63) >>> 0) << 18) >>> 0)) >>> 0) | ((((b_1577058308[chckIndx(addInt(char2pPrev_1577060110, 2), 0, (b_1577058308).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((b_1577058308[chckIndx(addInt(char2pPrev_1577060110, 3), 0, (b_1577058308).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((b_1577058308[chckIndx(addInt(char2pPrev_1577060110, 4), 0, (b_1577058308).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); - F.line = 137; - char2pPrev_1577060110 = addInt(char2pPrev_1577060110, 5); + if (((b_1962934276[chckIndx(char2pPrev_1962936078, 0, (b_1962934276).length - 1)] >>> 2) == 62)) { + if ((char2pPrev_1962936078 <= subInt((b_1962934276).length, 5))) { + runeB_1962934282 = chckRange(((((((((((((b_1962934276[chckIndx(char2pPrev_1962936078, 0, (b_1962934276).length - 1)] & 3) >>> 0) << 24) >>> 0) | ((((b_1962934276[chckIndx(addInt(char2pPrev_1962936078, 1), 0, (b_1962934276).length - 1)] & 63) >>> 0) << 18) >>> 0)) >>> 0) | ((((b_1962934276[chckIndx(addInt(char2pPrev_1962936078, 2), 0, (b_1962934276).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((b_1962934276[chckIndx(addInt(char2pPrev_1962936078, 3), 0, (b_1962934276).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((b_1962934276[chckIndx(addInt(char2pPrev_1962936078, 4), 0, (b_1962934276).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); + char2pPrev_1962936078 = addInt(char2pPrev_1962936078, 5); } else { - F.line = 139; - runeB_1577058314 = 65533; - F.line = 140; - char2pPrev_1577060110 = addInt(char2pPrev_1577060110, 1); + runeB_1962934282 = 65533; + char2pPrev_1962936078 = addInt(char2pPrev_1962936078, 1); } } else { - if (((b_1577058308[chckIndx(char2pPrev_1577060110, 0, (b_1577058308).length - 1)] >>> 1) == 126)) { - if ((char2pPrev_1577060110 <= subInt((b_1577058308).length, 6))) { - F.line = 148; - runeB_1577058314 = chckRange(((((((((((((((b_1577058308[chckIndx(char2pPrev_1577060110, 0, (b_1577058308).length - 1)] & 1) >>> 0) << 30) >>> 0) | ((((b_1577058308[chckIndx(addInt(char2pPrev_1577060110, 1), 0, (b_1577058308).length - 1)] & 63) >>> 0) << 24) >>> 0)) >>> 0) | ((((b_1577058308[chckIndx(addInt(char2pPrev_1577060110, 2), 0, (b_1577058308).length - 1)] & 63) >>> 0) << 18) >>> 0)) >>> 0) | ((((b_1577058308[chckIndx(addInt(char2pPrev_1577060110, 3), 0, (b_1577058308).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((b_1577058308[chckIndx(addInt(char2pPrev_1577060110, 4), 0, (b_1577058308).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((b_1577058308[chckIndx(addInt(char2pPrev_1577060110, 5), 0, (b_1577058308).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); - F.line = 154; - char2pPrev_1577060110 = addInt(char2pPrev_1577060110, 6); + if (((b_1962934276[chckIndx(char2pPrev_1962936078, 0, (b_1962934276).length - 1)] >>> 1) == 126)) { + if ((char2pPrev_1962936078 <= subInt((b_1962934276).length, 6))) { + runeB_1962934282 = chckRange(((((((((((((((b_1962934276[chckIndx(char2pPrev_1962936078, 0, (b_1962934276).length - 1)] & 1) >>> 0) << 30) >>> 0) | ((((b_1962934276[chckIndx(addInt(char2pPrev_1962936078, 1), 0, (b_1962934276).length - 1)] & 63) >>> 0) << 24) >>> 0)) >>> 0) | ((((b_1962934276[chckIndx(addInt(char2pPrev_1962936078, 2), 0, (b_1962934276).length - 1)] & 63) >>> 0) << 18) >>> 0)) >>> 0) | ((((b_1962934276[chckIndx(addInt(char2pPrev_1962936078, 3), 0, (b_1962934276).length - 1)] & 63) >>> 0) << 12) >>> 0)) >>> 0) | ((((b_1962934276[chckIndx(addInt(char2pPrev_1962936078, 4), 0, (b_1962934276).length - 1)] & 63) >>> 0) << 6) >>> 0)) >>> 0) | ((b_1962934276[chckIndx(addInt(char2pPrev_1962936078, 5), 0, (b_1962934276).length - 1)] & 63) >>> 0)) >>> 0), (-2147483648), 2147483647); + char2pPrev_1962936078 = addInt(char2pPrev_1962936078, 6); } else { - F.line = 156; - runeB_1577058314 = 65533; - F.line = 157; - char2pPrev_1577060110 = addInt(char2pPrev_1577060110, 1); + runeB_1962934282 = 65533; + char2pPrev_1962936078 = addInt(char2pPrev_1962936078, 1); } } else { - F.line = 159; - runeB_1577058314 = chckRange(b_1577058308[chckIndx(char2pPrev_1577060110, 0, (b_1577058308).length - 1)], (-2147483648), 2147483647); - F.line = 160; - char2pPrev_1577060110 = addInt(char2pPrev_1577060110, 1); + runeB_1962934282 = chckRange(b_1962934276[chckIndx(char2pPrev_1962936078, 0, (b_1962934276).length - 1)], (-2147483648), 2147483647); + char2pPrev_1962936078 = addInt(char2pPrev_1962936078, 1); } }}}}} - F.line = 130; - F.filename = "editdistance.nim"; - char2p_1577060337 = char2pPrev_1577060110; - F.line = 131; - char2pI_1577060109 = addInt(i_1577060115, 1); + char2p_1962936305 = char2pPrev_1962936078; + char2pI_1962936077 = addInt(i_1962936083, 1); } else { - F.line = 133; - char2p_1577060337 = iStart_1577058310; + char2p_1962936305 = iStart_1962934278; Label20: { - F.line = 134; - var j_1577060567 = 0; - F.line = 128; - F.filename = "iterators_1.nim"; - var i_520100980 = 0; + var j_1962936535 = 0; + var i_553655412 = 0; Label21: { - F.line = 129; Label22: while (true) { - if (!(i_520100980 < offset_1577060341)) break Label22; - F.line = 134; - F.filename = "editdistance.nim"; - j_1577060567 = i_520100980; - F.line = 135; - runeB_1577058314 = runeAt_1040194588(b_1577058308, chckRange(char2p_1577060337, 0, 2147483647)); - F.line = 136; - char2p_1577060337 = addInt(char2p_1577060337, size_1040193202(runeB_1577058314)); - F.line = 131; - F.filename = "iterators_1.nim"; - i_520100980 = addInt(i_520100980, 1); + if (!(i_553655412 < offset_1962936309)) break Label22; + j_1962936535 = i_553655412; + runeB_1962934282 = runeAt_1157635100(b_1962934276, chckRange(char2p_1962936305, 0, 2147483647)); + char2p_1962936305 = addInt(char2p_1962936305, size_1157633714(runeB_1962934282)); + i_553655412 = addInt(i_553655412, 1); } }; }; - F.line = 137; - F.filename = "editdistance.nim"; - char2pI_1577060109 = addInt(i_1577060115, 1); - F.line = 138; - char2pPrev_1577060110 = char2p_1577060337; + char2pI_1962936077 = addInt(i_1962936083, 1); + char2pPrev_1962936078 = char2p_1962936305; } - F.line = 139; - p_1577060340 = offset_1577060341; - F.line = 140; - runeB_1577058314 = runeAt_1040194588(b_1577058308, chckRange(char2p_1577060337, 0, 2147483647)); - F.line = 141; - if (!(HEX3DHEX3D_1040188400(runeA_1577058313, runeB_1577058314))) { + p_1962936308 = offset_1962936309; + runeB_1962934282 = runeAt_1157635100(b_1962934276, chckRange(char2p_1962936305, 0, 2147483647)); + if (!(HEX3DHEX3D_1157628912(runeA_1962934281, runeB_1962934282))) { Temporary23 = 1; } else { Temporary23 = 0; } - var c3_1577060573 = addInt(row_1577060097[chckIndx(p_1577060340, 0, (row_1577060097).length - 1)], Temporary23); - F.line = 142; - char2p_1577060337 = addInt(char2p_1577060337, size_1040193202(runeB_1577058314)); - F.line = 143; - p_1577060340 = addInt(p_1577060340, 1); - F.line = 144; - x_1577060339 = addInt(row_1577060097[chckIndx(p_1577060340, 0, (row_1577060097).length - 1)], 1); - F.line = 145; - diff_1577060338 = x_1577060339; - if ((c3_1577060573 < x_1577060339)) { - F.line = 146; - x_1577060339 = c3_1577060573; + var c3_1962936541 = addInt(row_1962936065[chckIndx(p_1962936308, 0, (row_1962936065).length - 1)], Temporary23); + char2p_1962936305 = addInt(char2p_1962936305, size_1157633714(runeB_1962934282)); + p_1962936308 = addInt(p_1962936308, 1); + x_1962936307 = addInt(row_1962936065[chckIndx(p_1962936308, 0, (row_1962936065).length - 1)], 1); + diff_1962936306 = x_1962936307; + if ((c3_1962936541 < x_1962936307)) { + x_1962936307 = c3_1962936541; } - F.line = 147; - row_1577060097[chckIndx(p_1577060340, 0, (row_1577060097).length - 1)] = x_1577060339; - F.line = 148; - p_1577060340 = addInt(p_1577060340, 1); + row_1962936065[chckIndx(p_1962936308, 0, (row_1962936065).length - 1)] = x_1962936307; + p_1962936308 = addInt(p_1962936308, 1); } else { - F.line = 150; - p_1577060340 = 1; - F.line = 151; - char2p_1577060337 = iStart_1577058310; - F.line = 152; - diff_1577060338 = i_1577060115; - F.line = 153; - x_1577060339 = i_1577060115; + p_1962936308 = 1; + char2p_1962936305 = iStart_1962934278; + diff_1962936306 = i_1962936083; + x_1962936307 = i_1962936083; } - if ((i_1577060115 <= addInt(half_1577060098, 1))) { - F.line = 156; - e_1577060103 = subInt(subInt(addInt(len2_1577060096, i_1577060115), half_1577060098), 2); + if ((i_1962936083 <= addInt(half_1962936066, 1))) { + e_1962936071 = subInt(subInt(addInt(len2_1962936064, i_1962936083), half_1962936066), 2); } Label24: { - F.line = 158; Label25: while (true) { - if (!(p_1577060340 <= e_1577060103)) break Label25; - F.line = 159; - diff_1577060338 = subInt(diff_1577060338, 1); - F.line = 160; - runeB_1577058314 = runeAt_1040194588(b_1577058308, chckRange(char2p_1577060337, 0, 2147483647)); - F.line = 161; - if (!(HEX3DHEX3D_1040188400(runeA_1577058313, runeB_1577058314))) { + if (!(p_1962936308 <= e_1962936071)) break Label25; + diff_1962936306 = subInt(diff_1962936306, 1); + runeB_1962934282 = runeAt_1157635100(b_1962934276, chckRange(char2p_1962936305, 0, 2147483647)); + if (!(HEX3DHEX3D_1157628912(runeA_1962934281, runeB_1962934282))) { Temporary26 = 1; } else { Temporary26 = 0; } - var c3_1577060594 = addInt(diff_1577060338, Temporary26); - F.line = 162; - char2p_1577060337 = addInt(char2p_1577060337, size_1040193202(runeB_1577058314)); - F.line = 163; - x_1577060339 = addInt(x_1577060339, 1); - if ((c3_1577060594 < x_1577060339)) { - F.line = 164; - x_1577060339 = c3_1577060594; + var c3_1962936562 = addInt(diff_1962936306, Temporary26); + char2p_1962936305 = addInt(char2p_1962936305, size_1157633714(runeB_1962934282)); + x_1962936307 = addInt(x_1962936307, 1); + if ((c3_1962936562 < x_1962936307)) { + x_1962936307 = c3_1962936562; } - F.line = 165; - diff_1577060338 = addInt(row_1577060097[chckIndx(p_1577060340, 0, (row_1577060097).length - 1)], 1); - if ((diff_1577060338 < x_1577060339)) { - F.line = 166; - x_1577060339 = diff_1577060338; + diff_1962936306 = addInt(row_1962936065[chckIndx(p_1962936308, 0, (row_1962936065).length - 1)], 1); + if ((diff_1962936306 < x_1962936307)) { + x_1962936307 = diff_1962936306; } - F.line = 167; - row_1577060097[chckIndx(p_1577060340, 0, (row_1577060097).length - 1)] = x_1577060339; - F.line = 168; - p_1577060340 = addInt(p_1577060340, 1); + row_1962936065[chckIndx(p_1962936308, 0, (row_1962936065).length - 1)] = x_1962936307; + p_1962936308 = addInt(p_1962936308, 1); } }; - if ((i_1577060115 <= half_1577060098)) { - F.line = 171; - diff_1577060338 = subInt(diff_1577060338, 1); - F.line = 172; - runeB_1577058314 = runeAt_1040194588(b_1577058308, chckRange(char2p_1577060337, 0, 2147483647)); - F.line = 173; - if (!(HEX3DHEX3D_1040188400(runeA_1577058313, runeB_1577058314))) { + if ((i_1962936083 <= half_1962936066)) { + diff_1962936306 = subInt(diff_1962936306, 1); + runeB_1962934282 = runeAt_1157635100(b_1962934276, chckRange(char2p_1962936305, 0, 2147483647)); + if (!(HEX3DHEX3D_1157628912(runeA_1962934281, runeB_1962934282))) { Temporary27 = 1; } else { Temporary27 = 0; } - var c3_1577060615 = addInt(diff_1577060338, Temporary27); - F.line = 174; - x_1577060339 = addInt(x_1577060339, 1); - if ((c3_1577060615 < x_1577060339)) { - F.line = 175; - x_1577060339 = c3_1577060615; + var c3_1962936583 = addInt(diff_1962936306, Temporary27); + x_1962936307 = addInt(x_1962936307, 1); + if ((c3_1962936583 < x_1962936307)) { + x_1962936307 = c3_1962936583; } - F.line = 176; - row_1577060097[chckIndx(p_1577060340, 0, (row_1577060097).length - 1)] = x_1577060339; + row_1962936065[chckIndx(p_1962936308, 0, (row_1962936065).length - 1)] = x_1962936307; } - F.line = 177; - iCurrentA_1577058772 = iNextA_1577058311; - F.line = 102; - F.filename = "iterators_1.nim"; - res_520100984 = addInt(res_520100984, 1); + iCurrentA_1962934740 = iNextA_1962934279; + res_553655416 = addInt(res_553655416, 1); } }; }; - F.line = 178; - F.filename = "editdistance.nim"; - result_1577058309 = row_1577060097[chckIndx(e_1577060103, 0, (row_1577060097).length - 1)]; + result_1962934277 = row_1962936065[chckIndx(e_1962936071, 0, (row_1962936065).length - 1)]; }; - framePtr = F.prev; - return result_1577058309; + return result_1962934277; } -function getSynergyOf_1442842015(index_1442842016) { - var result_1442842017 = {Field0: ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}), Field1: 0, Field2: [], Field3: []}; +function getSynergyOf_1728054687(index_1728054688) { + var result_1728054689 = {Field0: ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}), Field1: 0, Field2: [], Field3: []}; - var F = {procname: "power.getSynergyOf", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/power.nim", line: 0}; - framePtr = F; BeforeRet: { Label1: { - F.line = 213; - F.filename = "power.nim"; - var s_1442842029 = {Field0: ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}), Field1: 0, Field2: [], Field3: []}; - F.line = 247; - F.filename = "iterators.nim"; - var colontmp__520100997 = []; - F.line = 213; - F.filename = "power.nim"; - colontmp__520100997 = HEX26_1442841714(HEX26_1442841714(draftSynergies_1442840650[0], secretSynergies_1442840651[0]), secretSecretSynergies_1442840652[0]); - F.line = 249; - F.filename = "iterators.nim"; - var i_520100998 = 0; - F.line = 250; - var L_520100999 = (colontmp__520100997).length; + var s_1728054701 = {Field0: ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}), Field1: 0, Field2: [], Field3: []}; + var colontmp__553655429 = []; + colontmp__553655429 = HEX26_1728054386(HEX26_1728054386(draftSynergies_1728053322[0], secretSynergies_1728053323[0]), secretSecretSynergies_1728053324[0]); + var i_553655430 = 0; + var L_553655431 = (colontmp__553655429).length; Label2: { - F.line = 251; Label3: while (true) { - if (!(i_520100998 < L_520100999)) break Label3; - F.line = 213; - F.filename = "power.nim"; - s_1442842029 = colontmp__520100997[chckIndx(i_520100998, 0, (colontmp__520100997).length - 1)]; - if ((s_1442842029.Field0.index == index_1442842016)) { - F.line = 215; - result_1442842017 = nimCopy(result_1442842017, s_1442842029, NTI1442840582); + if (!(i_553655430 < L_553655431)) break Label3; + s_1728054701 = colontmp__553655429[chckIndx(i_553655430, 0, (colontmp__553655429).length - 1)]; + if ((s_1728054701.Field0.index == index_1728054688)) { + result_1728054689 = nimCopy(result_1728054689, s_1728054701, NTI1728053254); break BeforeRet; } - F.line = 13; - F.filename = "iterators.nim"; - i_520100998 += 1; - if (!(((colontmp__520100997).length == L_520100999))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + i_553655430 += 1; + if (!(((colontmp__553655429).length == L_553655431))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; Label4: { - F.line = 217; - F.filename = "power.nim"; - var fmtRes_1442842034 = [mnewString(0)]; - F.line = 217; - fmtRes_1442842034[0].push.apply(fmtRes_1442842034[0], [112,111,119,101,114,32,111,102,32]);; - F.line = 217; - formatValue_1442840708(fmtRes_1442842034, 0, HEX24_369098760(index_1442842016)); - F.line = 217; - fmtRes_1442842034[0].push.apply(fmtRes_1442842034[0], [32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,32,111,114,32,105,115,32,110,111,116,32,111,102,32,97,32,115,121,110,101,114,103,121,46]);; + var fmtRes_1728054706 = [mnewString(0)]; + fmtRes_1728054706[0].push.apply(fmtRes_1728054706[0], [112,111,119,101,114,32,111,102,32]);; + formatValue_1728053380(fmtRes_1728054706, 0, HEX24_385875976(index_1728054688)); + fmtRes_1728054706[0].push.apply(fmtRes_1728054706[0], [32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,32,111,114,32,105,115,32,110,111,116,32,111,102,32,97,32,115,121,110,101,114,103,121,46]);; }; - F.line = 217; - raiseException({message: nimCopy(null, fmtRes_1442842034[0], NTI33554449), parent: null, m_type: NTI134217749, name: null, trace: [], up: null}, "IndexDefect"); + raiseException({message: nimCopy(null, fmtRes_1728054706[0], NTI33554449), parent: null, m_type: NTI134217749, name: null, trace: [], up: null}, "IndexDefect"); }; - framePtr = F.prev; - return result_1442842017; + return result_1728054689; } -function add_520099414(x_520099416, x_520099416_Idx, y_520099417) { +function add_553653846(x_553653848, x_553653848_Idx, y_553653849) { var Temporary1; - var F = {procname: "add.add", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system.nim", line: 0}; - framePtr = F; - F.line = 1210; - F.filename = "system.nim"; - var xl_520099421 = (x_520099416[x_520099416_Idx]).length; - F.line = 1211; - if (x_520099416[x_520099416_Idx].length < (Temporary1 = chckRange(addInt(xl_520099421, (y_520099417).length), 0, 2147483647), Temporary1)) { for (var i = x_520099416[x_520099416_Idx].length ; i < Temporary1 ; ++i) x_520099416[x_520099416_Idx].push([]); } - else { x_520099416[x_520099416_Idx].length = Temporary1; }; + var xl_553653853 = (x_553653848[x_553653848_Idx]).length; + if (x_553653848[x_553653848_Idx].length < (Temporary1 = chckRange(addInt(xl_553653853, (y_553653849).length), 0, 2147483647), Temporary1)) { for (var i = x_553653848[x_553653848_Idx].length ; i < Temporary1 ; ++i) x_553653848[x_553653848_Idx].push([]); } + else { x_553653848[x_553653848_Idx].length = Temporary1; }; Label2: { - F.line = 1212; - var i_520099436 = 0; - F.line = 81; - F.filename = "iterators_1.nim"; - var colontmp__520101003 = 0; - F.line = 1212; - F.filename = "system.nim"; - colontmp__520101003 = (y_520099417).length - 1; - F.line = 96; - F.filename = "iterators_1.nim"; - var res_520101004 = 0; + var i_553653868 = 0; + var colontmp__553655435 = 0; + colontmp__553655435 = (y_553653849).length - 1; + var res_553655436 = 0; Label3: { - F.line = 97; Label4: while (true) { - if (!(res_520101004 <= colontmp__520101003)) break Label4; - F.line = 1212; - F.filename = "system.nim"; - i_520099436 = res_520101004; - F.line = 1212; - x_520099416[x_520099416_Idx][chckIndx(addInt(xl_520099421, i_520099436), 0, (x_520099416[x_520099416_Idx]).length - 1)] = nimCopy(null, y_520099417[chckIndx(i_520099436, 0, (y_520099417).length - 1)], NTI33554449); - F.line = 102; - F.filename = "iterators_1.nim"; - res_520101004 = addInt(res_520101004, 1); + if (!(res_553655436 <= colontmp__553655435)) break Label4; + i_553653868 = res_553655436; + x_553653848[x_553653848_Idx][chckIndx(addInt(xl_553653853, i_553653868), 0, (x_553653848[x_553653848_Idx]).length - 1)] = nimCopy(null, y_553653849[chckIndx(i_553653868, 0, (y_553653849).length - 1)], NTI33554449); + res_553655436 = addInt(res_553655436, 1); } }; }; - framePtr = F.prev; } -function getLinkedPowers_520099374(p_520099375, alreadyAdded_520099380) { - var result_520099383 = {Field0: [], Field1: []}; +function getLinkedPowers_553653806(p_553653807, alreadyAdded_553653812) { + var result_553653815 = {Field0: [], Field1: []}; - var F = {procname: "main.getLinkedPowers", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 1146; - F.filename = "main.nim"; - result_520099383.Field1 = nimCopy(null, alreadyAdded_520099380, NTI520098228); - F.line = 1147; - var Temporary1 = nimCopy(null, p_520099375, NTI1442840581); - result_520099383.Field0.push(Temporary1);; - F.line = 1148; - var Temporary2 = nimCopy(null, p_520099375.name, NTI33554449); - result_520099383.Field1.push(Temporary2);; - if (p_520099375.synergy) { - F.line = 1151; - var synergy_520099392 = getSynergyOf_1442842015(p_520099375.index); + result_553653815.Field1 = nimCopy(null, alreadyAdded_553653812, NTI553652660); + var Temporary1 = nimCopy(null, p_553653807, NTI1728053253); + result_553653815.Field0.push(Temporary1);; + var Temporary2 = nimCopy(null, p_553653807.name, NTI33554449); + result_553653815.Field1.push(Temporary2);; + if (p_553653807.synergy) { + var synergy_553653824 = getSynergyOf_1728054687(p_553653807.index); Label3: { - F.line = 1152; - var name_520099396 = []; - F.line = 249; - F.filename = "iterators.nim"; - var i_520100993 = 0; - F.line = 250; - var L_520100994 = (synergy_520099392.Field2).length; + var name_553653828 = []; + var i_553655425 = 0; + var L_553655426 = (synergy_553653824.Field2).length; Label4: { - F.line = 251; Label5: while (true) { - if (!(i_520100993 < L_520100994)) break Label5; - F.line = 1152; - F.filename = "main.nim"; - name_520099396 = synergy_520099392.Field2[chckIndx(i_520100993, 0, (synergy_520099392.Field2).length - 1)]; + if (!(i_553655425 < L_553655426)) break Label5; + name_553653828 = synergy_553653824.Field2[chckIndx(i_553655425, 0, (synergy_553653824.Field2).length - 1)]; Label6: { - if ((contains_1006633010(synergy_520099392.Field3, name_520099396) || contains_1006633010(result_520099383.Field1, name_520099396))) { - F.line = 1154; + if ((contains_1090519090(synergy_553653824.Field3, name_553653828) || contains_1090519090(result_553653815.Field1, name_553653828))) { break Label6; } Label7: { - F.line = 1156; - var reqPower_520099408 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); - F.line = 249; - F.filename = "iterators.nim"; - var i_520100990 = 0; - F.line = 250; - var L_520100991 = (powers_1442840649[0]).length; + var reqPower_553653840 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); + var i_553655422 = 0; + var L_553655423 = (powers_1728053321[0]).length; Label8: { - F.line = 251; Label9: while (true) { - if (!(i_520100990 < L_520100991)) break Label9; - F.line = 1156; - F.filename = "main.nim"; - reqPower_520099408 = powers_1442840649[0][chckIndx(i_520100990, 0, (powers_1442840649[0]).length - 1)]; - if (eqStrings(reqPower_520099408.name, name_520099396)) { - F.line = 1158; - var next_520099409 = getLinkedPowers_520099374(reqPower_520099408, result_520099383.Field1); - F.line = 1159; - add_520097287(result_520099383, "Field0", next_520099409.Field0); - F.line = 1160; - add_520099414(result_520099383, "Field1", next_520099409.Field1); - F.line = 1161; + if (!(i_553655422 < L_553655423)) break Label9; + reqPower_553653840 = powers_1728053321[0][chckIndx(i_553655422, 0, (powers_1728053321[0]).length - 1)]; + if (eqStrings(reqPower_553653840.name, name_553653828)) { + var next_553653841 = getLinkedPowers_553653806(reqPower_553653840, result_553653815.Field1); + add_553651719(result_553653815, "Field0", next_553653841.Field0); + add_553653846(result_553653815, "Field1", next_553653841.Field1); break Label7; } - F.line = 13; - F.filename = "iterators.nim"; - i_520100990 += 1; - if (!(((powers_1442840649[0]).length == L_520100991))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + i_553655422 += 1; + if (!(((powers_1728053321[0]).length == L_553655423))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; }; - F.line = 13; - i_520100993 += 1; - if (!(((synergy_520099392.Field2).length == L_520100994))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + i_553655425 += 1; + if (!(((synergy_553653824.Field2).length == L_553655426))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } @@ -27979,264 +18210,168 @@ function getLinkedPowers_520099374(p_520099375, alreadyAdded_520099380) { }; } - framePtr = F.prev; - return result_520099383; + return result_553653815; } -function createSeePowerDescription_520099454(p_520099455) { +function createSeePowerDescription_553653886(p_553653887) { var Temporary1; var Temporary2; - p_520099455 = nimCopy(null, p_520099455, NTI1442840581); - -function HEX3Aanonymous_520099489(__520099490, __520099491) { - var F = {procname: "createSeePowerDescription.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 1181; - F.filename = "main.nim"; - initGame_520093937(); - F.line = 1182; - side_520093807[0] = 0; - F.line = 1183; - turn_520093808[0] = true; - F.line = 1184; - practiceMode_520093850[0] = true; - F.line = 1186; - theState_520093826[0].Field0.randSeed = 0; - F.line = 1188; - myDrafts_520093813[0] = nimCopy(null, getLinkedPowers_520099374(p_520099455, []).Field0, NTI520098238); - F.line = 1189; - execute_1442841695(myDrafts_520093813[0], opponentDrafts_520093818[0], side_520093807[0], theBoard_520093825[0], theState_520093826[0]); - F.line = 1190; - currentScreen_520093855[0] = 3; - framePtr = F.prev; + p_553653887 = nimCopy(null, p_553653887, NTI1728053253); + +function HEX3Aanonymous_553653921(__553653922, __553653923) { + initGame_553648369(); + side_553648239[0] = 0; + turn_553648240[0] = true; + practiceMode_553648282[0] = true; + theState_553648258[0].Field0.randSeed = 0; + myDrafts_553648245[0] = nimCopy(null, getLinkedPowers_553653806(p_553653887, []).Field0, NTI553652670); + execute_1728054367(myDrafts_553648245[0], opponentDrafts_553648250[0], side_553648239[0], theBoard_553648257[0], theState_553648258[0]); + currentScreen_553648287[0] = 3; } - var result_520099456 = null; + var result_553653888 = null; - var F = {procname: "main.createSeePowerDescription", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 1164; - F.filename = "main.nim"; - if (p_520099455.noColor) { - Temporary1 = p_520099455.icon; + if (p_553653887.noColor) { + Temporary1 = p_553653887.icon; } else { - Temporary1 = ([98,108,97,99,107] || []).concat(p_520099455.icon || []); + Temporary1 = ([98,108,97,99,107] || []).concat(p_553653887.icon || []); } - var src_520099460 = nimCopy(null, Temporary1, NTI33554449); - F.line = 1165; - var record_520099463 = {Field0: 0, Field1: 0}; - F.line = 1166; - if ((0 < record_520099463.Field0)) { + var src_553653892 = nimCopy(null, Temporary1, NTI33554449); + var record_553653895 = {Field0: 0, Field1: 0}; + if ((0 < record_553653895.Field0)) { Temporary2 = [115,101,101,45,112,111,119,101,114,32,104,97,115,45,119,111,110]; } else { Temporary2 = [115,101,101,45,112,111,119,101,114]; } - var class_520099464 = nimCopy(null, Temporary2, NTI33554449); - F.line = 1167; - F.line = 1167; - var tmp_520099465 = tree_721421184(44, []); - F.line = 1167; - tmp_520099465.class = toJSStr(class_520099464); - F.line = 1168; - var tmp_520099466 = tree_721421184(24, []); - F.line = 1169; - add_721421120(tmp_520099466, text_721421252(p_520099455.technicalName)); - F.line = 1169; - add_721421120(tmp_520099465, tmp_520099466); - F.line = 1170; - var tmp_520099467 = tree_721421184(32, []); - F.line = 1170; - tmp_520099467.class = "desc"; - F.line = 1171; - add_721421120(tmp_520099467, text_721421252(p_520099455.description)); - F.line = 1171; - add_721421120(tmp_520099465, tmp_520099467); - if (!(eqStrings(p_520099455.icon, []))) { - F.line = 1173; - var tmp_520099468 = tree_721421184(76, []); - F.line = 1173; - setAttr_721421035(tmp_520099468, "src", toJSStr(([46,47,105,99,111,110,115,47] || []).concat(src_520099460 || []))); - F.line = 1173; - add_721421120(tmp_520099465, tmp_520099468); + var class_553653896 = nimCopy(null, Temporary2, NTI33554449); + var tmp_553653897 = tree_754975616(44, []); + tmp_553653897.class = toJSStr(class_553653896); + var tmp_553653898 = tree_754975616(24, []); + add_754975552(tmp_553653898, text_754975684(p_553653887.technicalName)); + add_754975552(tmp_553653897, tmp_553653898); + var tmp_553653899 = tree_754975616(32, []); + tmp_553653899.class = "desc"; + add_754975552(tmp_553653899, text_754975684(p_553653887.description)); + add_754975552(tmp_553653897, tmp_553653899); + if (!(eqStrings(p_553653887.icon, []))) { + var tmp_553653900 = tree_754975616(76, []); + setAttr_754975467(tmp_553653900, "src", toJSStr(([46,47,105,99,111,110,115,47] || []).concat(src_553653892 || []))); + add_754975552(tmp_553653897, tmp_553653900); } else { - F.line = 1175; - var tmp_520099469 = tree_721421184(76, []); - F.line = 1175; - setAttr_721421035(tmp_520099469, "src", "./icons/blackbishop.svg"); - F.line = 1175; - add_721421120(tmp_520099465, tmp_520099469); - } - - F.line = 1176; - var tmp_520099470 = tree_721421184(32, []); - F.line = 1176; - tmp_520099470.class = "win"; - F.line = 1177; + var tmp_553653901 = tree_754975616(76, []); + setAttr_754975467(tmp_553653901, "src", "./icons/blackbishop.svg"); + add_754975552(tmp_553653897, tmp_553653901); + } + + var tmp_553653902 = tree_754975616(32, []); + tmp_553653902.class = "win"; Label3: { - F.line = 1177; - var fmtRes_520099476 = [mnewString(0)]; - F.line = 1177; - fmtRes_520099476[0].push.apply(fmtRes_520099476[0], [87,105,110,115,58,32]);; - F.line = 1177; - formatValue_520096976(fmtRes_520099476, 0, record_520099463.Field0); - F.line = 1177; - fmtRes_520099476[0].push.apply(fmtRes_520099476[0], [44,32,76,111,115,115,101,115,58,32]);; - F.line = 1177; - formatValue_520096976(fmtRes_520099476, 0, record_520099463.Field1); + var fmtRes_553653908 = [mnewString(0)]; + fmtRes_553653908[0].push.apply(fmtRes_553653908[0], [87,105,110,115,58,32]);; + formatValue_553651408(fmtRes_553653908, 0, record_553653895.Field0); + fmtRes_553653908[0].push.apply(fmtRes_553653908[0], [44,32,76,111,115,115,101,115,58,32]);; + formatValue_553651408(fmtRes_553653908, 0, record_553653895.Field1); }; - add_721421120(tmp_520099470, text_721421252(fmtRes_520099476[0])); - F.line = 1177; - add_721421120(tmp_520099465, tmp_520099470); - F.line = 1178; - var tmp_520099471 = tree_721421184(195, []); - F.line = 1179; - add_721421120(tmp_520099471, text_721421252([80,114,97,99,116,105,99,101])); - F.line = 1180; - addEventHandler_687867670(tmp_520099471, 0, HEX3Aanonymous_520099489, kxi__); - F.line = 1167; - add_721421120(tmp_520099465, tmp_520099471); - result_520099456 = tmp_520099465; - framePtr = F.prev; - - return result_520099456; - -} - -function HEX5BHEX5D_520100066(t_520100069, key_520100070) { - var result_520100071 = null; - var result_520100071_Idx = 0; - - var F = {procname: "[].[]", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/collections/tables.nim", line: 0}; - framePtr = F; - F.line = 243; - F.filename = "tables.nim"; - var hcHEX60gensym22_520100072 = [0]; - F.line = 244; - var indexHEX60gensym22_520100079 = rawGet_520095110(t_520100069, key_520100070, hcHEX60gensym22_520100072, 0); - if ((0 <= indexHEX60gensym22_520100079)) { - F.line = 245; - result_520100071 = t_520100069.data[chckIndx(indexHEX60gensym22_520100079, 0, (t_520100069.data).length - 1)]; result_520100071_Idx = "Field2"; + add_754975552(tmp_553653902, text_754975684(fmtRes_553653908[0])); + add_754975552(tmp_553653897, tmp_553653902); + var tmp_553653903 = tree_754975616(195, []); + add_754975552(tmp_553653903, text_754975684([80,114,97,99,116,105,99,101])); + addEventHandler_721422102(tmp_553653903, 0, HEX3Aanonymous_553653921, kxi__); + add_754975552(tmp_553653897, tmp_553653903); + result_553653888 = tmp_553653897; + + return result_553653888; + +} + +function HEX5BHEX5D_553654498(t_553654501, key_553654502) { + var result_553654503 = null; + var result_553654503_Idx = 0; + + var hcHEX60gensym22_553654504 = [0]; + var indexHEX60gensym22_553654511 = rawGet_553649542(t_553654501, key_553654502, hcHEX60gensym22_553654504, 0); + if ((0 <= indexHEX60gensym22_553654511)) { + result_553654503 = t_553654501.data[chckIndx(indexHEX60gensym22_553654511, 0, (t_553654501.data).length - 1)]; result_553654503_Idx = "Field2"; } else { - F.line = 247; - raiseKeyError_1342178950(key_520100070); + raiseKeyError_1593837190(key_553654502); } - framePtr = F.prev; - return [result_520100071, result_520100071_Idx]; + return [result_553654503, result_553654503_Idx]; } -function createSeePowerOnclick_520099492(name_520099493, index_520099494) { - name_520099493 = nimCopy(null, name_520099493, NTI33554449); +function createSeePowerOnclick_553653924(name_553653925, index_553653926) { + name_553653925 = nimCopy(null, name_553653925, NTI33554449); -function HEX3Aanonymous_520099499(__520099500, __520099501) { - var F = {procname: "createSeePowerOnclick.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 1194; - F.filename = "main.nim"; - HEX5BHEX5DHEX3D_520095053(selectedSubPower_520093916[0], name_520099493, index_520099494); - framePtr = F.prev; +function HEX3Aanonymous_553653931(__553653932, __553653933) { + HEX5BHEX5DHEX3D_553649485(selectedSubPower_553648348[0], name_553653925, index_553653926); } - var result_520099498 = null; + var result_553653930 = null; - var F = {procname: "main.createSeePowerOnclick", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 1193; - F.filename = "main.nim"; - result_520099498 = HEX3Aanonymous_520099499; - framePtr = F.prev; + result_553653930 = HEX3Aanonymous_553653931; - return result_520099498; + return result_553653930; } -function getPowerTabLength_520099544(powers_520099545) { - var result_520099546 = 0; +function getPowerTabLength_553653976(powers_553653977) { + var result_553653978 = 0; - var F = {procname: "main.getPowerTabLength", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; Label1: { - F.line = 1197; - F.filename = "main.nim"; - var p_520099550 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); - F.line = 249; - F.filename = "iterators.nim"; - var i_520101007 = 0; - F.line = 250; - var L_520101008 = (powers_520099545).length; + var p_553653982 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); + var i_553655439 = 0; + var L_553655440 = (powers_553653977).length; Label2: { - F.line = 251; Label3: while (true) { - if (!(i_520101007 < L_520101008)) break Label3; - F.line = 1197; - F.filename = "main.nim"; - p_520099550 = powers_520099545[chckIndx(i_520101007, 0, (powers_520099545).length - 1)]; - F.line = 1198; - result_520099546 = addInt(result_520099546, mulInt((p_520099550.technicalName).length, 15)); - F.line = 13; - F.filename = "iterators.nim"; - i_520101007 += 1; - if (!(((powers_520099545).length == L_520101008))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + if (!(i_553655439 < L_553655440)) break Label3; + p_553653982 = powers_553653977[chckIndx(i_553655439, 0, (powers_553653977).length - 1)]; + result_553653978 = addInt(result_553653978, mulInt((p_553653982.technicalName).length, 15)); + i_553655439 += 1; + if (!(((powers_553653977).length == L_553655440))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - framePtr = F.prev; - return result_520099546; + return result_553653978; } -function createSeePower_520099555() { +function createSeePower_553653987() { -function HEX3Aanonymous_520099565(__520099566, __520099567) { - var F = {procname: "createSeePower.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 1206; - F.filename = "main.nim"; - currentScreen_520093855[0] = 0; - framePtr = F.prev; +function HEX3Aanonymous_553653997(__553653998, __553653999) { + currentScreen_553648287[0] = 0; } var Temporary1; -function HEX3Aanonymous_520099789(xHEX60gensym205_520099812, yHEX60gensym205_520099813) { - var result_520099814 = 0; - - var F = {procname: "createSeePower.:anonymous", prev: framePtr, filename: "/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/algorithm.nim", line: 0}; - framePtr = F; - F.line = 500; - F.filename = "algorithm.nim"; - var it_520099815 = nimCopy(null, xHEX60gensym205_520099812, NTI1442841684); - F.line = 501; - var aHEX60gensym205_520099816 = editDistance_1577058306(it_520099815[chckIndx(0, 0, (it_520099815).length - 1)].name, cstrToNimstr(search_520099568)); - F.line = 502; - it_520099815 = nimCopy(null, yHEX60gensym205_520099813, NTI1442841684); - F.line = 503; - var bHEX60gensym205_520099817 = editDistance_1577058306(it_520099815[chckIndx(0, 0, (it_520099815).length - 1)].name, cstrToNimstr(search_520099568)); - F.line = 504; - result_520099814 = cmp_33557985(aHEX60gensym205_520099816, bHEX60gensym205_520099817); - framePtr = F.prev; - - return result_520099814; +function HEX3Aanonymous_553654221(xHEX60gensym205_553654244, yHEX60gensym205_553654245) { + var result_553654246 = 0; + + var it_553654247 = nimCopy(null, xHEX60gensym205_553654244, NTI1728054356); + var aHEX60gensym205_553654248 = editDistance_1962934274(it_553654247[chckIndx(0, 0, (it_553654247).length - 1)].name, cstrToNimstr(search_553654000)); + it_553654247 = nimCopy(null, yHEX60gensym205_553654245, NTI1728054356); + var bHEX60gensym205_553654249 = editDistance_1962934274(it_553654247[chckIndx(0, 0, (it_553654247).length - 1)].name, cstrToNimstr(search_553654000)); + result_553654246 = cmp_33557985(aHEX60gensym205_553654248, bHEX60gensym205_553654249); + + return result_553654246; } var Temporary14; @@ -28244,428 +18379,255 @@ function HEX3Aanonymous_520099789(xHEX60gensym205_520099812, yHEX60gensym205_520 var Temporary16; var Temporary17; - var result_520099556 = null; + var result_553653988 = null; - var F = {procname: "main.createSeePower", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 1201; - F.filename = "main.nim"; rawEcho([99,114,101,97,116,105,110,103,32,83,101,101,32,80,111,119,101,114]); - F.line = 1202; - F.line = 1202; - var tmp_520099557 = tree_721421184(44, []); - F.line = 1202; - tmp_520099557.class = "tab-column"; - F.line = 1203; - var tmp_520099558 = tree_721421184(195, []); - F.line = 1203; - tmp_520099558.class = "top-button"; - F.line = 1204; - add_721421120(tmp_520099558, text_721421252([82,101,116,117,114,110,32,116,111,32,76,111,98,98,121])); - F.line = 1205; - addEventHandler_687867670(tmp_520099558, 0, HEX3Aanonymous_520099565, kxi__); - F.line = 1202; - add_721421120(tmp_520099557, tmp_520099558); - F.line = 1208; - var tmp_520099559 = tree_721421184(44, []); - F.line = 1208; - tmp_520099559.class = "search move-up"; - F.line = 1209; - var tmp_520099560 = tree_721421184(193, []); - F.line = 1209; - setAttr_721421035(tmp_520099560, "for", "search"); - F.line = 1210; - add_721421120(tmp_520099560, text_721421252([83,101,97,114,99,104,58,32])); - F.line = 1210; - add_721421120(tmp_520099559, tmp_520099560); - F.line = 1211; - var tmp_520099561 = tree_721421184(194, []); - F.line = 1211; - tmp_520099561.id = "search"; - F.line = 1211; - addEventHandler_687867678(tmp_520099561, 8, validateNotEmpty_520097467("search"), kxi__); - F.line = 1211; - add_721421120(tmp_520099559, tmp_520099561); - F.line = 1211; - add_721421120(tmp_520099557, tmp_520099559); - F.line = 1213; - F.line = 1214; + var tmp_553653989 = tree_754975616(44, []); + tmp_553653989.class = "tab-column"; + var tmp_553653990 = tree_754975616(195, []); + tmp_553653990.class = "top-button"; + add_754975552(tmp_553653990, text_754975684([82,101,116,117,114,110,32,116,111,32,76,111,98,98,121])); + addEventHandler_721422102(tmp_553653990, 0, HEX3Aanonymous_553653997, kxi__); + add_754975552(tmp_553653989, tmp_553653990); + var tmp_553653991 = tree_754975616(44, []); + tmp_553653991.class = "search move-up"; + var tmp_553653992 = tree_754975616(193, []); + setAttr_754975467(tmp_553653992, "for", "search"); + add_754975552(tmp_553653992, text_754975684([83,101,97,114,99,104,58,32])); + add_754975552(tmp_553653991, tmp_553653992); + var tmp_553653993 = tree_754975616(194, []); + tmp_553653993.id = "search"; + addEventHandler_721422110(tmp_553653993, 8, validateNotEmpty_553651899("search"), kxi__); + add_754975552(tmp_553653991, tmp_553653993); + add_754975552(tmp_553653989, tmp_553653991); ++excHandler; try { - Temporary1 = getInputText_687867761(getVNodeById_687866162("search", kxi__)); + Temporary1 = getInputText_721422193(getVNodeById_721420594("search", kxi__)); --excHandler; } catch (EXCEPTION) { var prevJSError = lastJSError; lastJSError = EXCEPTION; --excHandler; - framePtr = F; Temporary1 = ""; lastJSError = prevJSError; } finally { - framePtr = F; } - var search_520099568 = Temporary1; + var search_553654000 = Temporary1; Label3: { - F.line = 1218; - var subpowers_520099961 = []; - F.line = 247; - F.filename = "iterators.nim"; - var colontmp__520100955 = []; - F.line = 1218; - F.filename = "main.nim"; - F.line = 499; - F.filename = "algorithm.nim"; - F.line = 863; - F.filename = "sequtils.nim"; - var resultHEX60gensym204_520099778 = []; + var subpowers_553654393 = []; + var colontmp__553655387 = []; + var resultHEX60gensym204_553654210 = []; Label4: { - F.line = 864; - var xHEX60gensym204_520099779 = []; - F.line = 759; - F.filename = "tables.nim"; - var L_520100949 = len_520094855(allPowers_520093917[0]); + var xHEX60gensym204_553654211 = []; + var L_553655381 = len_553649287(allPowers_553648349[0]); Label5: { - F.line = 760; - var h_520100951 = 0; - F.line = 81; - F.filename = "iterators_1.nim"; - var colontmp__520100952 = 0; - F.line = 760; - F.filename = "tables.nim"; - colontmp__520100952 = (allPowers_520093917[0].data).length - 1; - F.line = 96; - F.filename = "iterators_1.nim"; - var res_520100953 = 0; + var h_553655383 = 0; + var colontmp__553655384 = 0; + colontmp__553655384 = (allPowers_553648349[0].data).length - 1; + var res_553655385 = 0; Label6: { - F.line = 97; Label7: while (true) { - if (!(res_520100953 <= colontmp__520100952)) break Label7; - F.line = 760; - F.filename = "tables.nim"; - h_520100951 = res_520100953; - if (isFilled_1107296287(allPowers_520093917[0].data[chckIndx(h_520100951, 0, (allPowers_520093917[0].data).length - 1)].Field0)) { - F.line = 864; - F.filename = "sequtils.nim"; - xHEX60gensym204_520099779 = allPowers_520093917[0].data[chckIndx(h_520100951, 0, (allPowers_520093917[0].data).length - 1)]["Field2"]; - F.line = 865; - var Temporary8 = nimCopy(null, xHEX60gensym204_520099779, NTI1442841684); - resultHEX60gensym204_520099778.push(Temporary8);; - if (!((len_520094855(allPowers_520093917[0]) == L_520100949))) { - F.line = 763; - F.filename = "tables.nim"; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/pure/collections/tables.nim(763, 13) `len(t) == L` the length of the table changed while iterating over it")); + if (!(res_553655385 <= colontmp__553655384)) break Label7; + h_553655383 = res_553655385; + if (isFilled_1291845663(allPowers_553648349[0].data[chckIndx(h_553655383, 0, (allPowers_553648349[0].data).length - 1)].Field0)) { + xHEX60gensym204_553654211 = allPowers_553648349[0].data[chckIndx(h_553655383, 0, (allPowers_553648349[0].data).length - 1)]["Field2"]; + var Temporary8 = nimCopy(null, xHEX60gensym204_553654211, NTI1728054356); + resultHEX60gensym204_553654210.push(Temporary8);; + if (!((len_553649287(allPowers_553648349[0]) == L_553655381))) { + failedAssertImpl_268435541(makeNimstrLit("tables.nim(763, 13) `len(t) == L` the length of the table changed while iterating over it")); } } - F.line = 102; - F.filename = "iterators_1.nim"; - res_520100953 = addInt(res_520100953, 1); + res_553655385 = addInt(res_553655385, 1); } }; }; }; - var resultHEX60gensym205_520099957 = sorted_520099822(resultHEX60gensym204_520099778, HEX3Aanonymous_520099789, 1); - colontmp__520100955 = resultHEX60gensym205_520099957; - F.line = 249; - F.filename = "iterators.nim"; - var i_520100957 = 0; - F.line = 250; - var L_520100958 = (colontmp__520100955).length; + var resultHEX60gensym205_553654389 = sorted_553654254(resultHEX60gensym204_553654210, HEX3Aanonymous_553654221, 1); + colontmp__553655387 = resultHEX60gensym205_553654389; + var i_553655389 = 0; + var L_553655390 = (colontmp__553655387).length; Label9: { - F.line = 251; Label10: while (true) { - if (!(i_520100957 < L_520100958)) break Label10; - F.line = 1218; - F.filename = "main.nim"; - subpowers_520099961 = colontmp__520100955[chckIndx(i_520100957, 0, (colontmp__520100955).length - 1)]; - if (((subpowers_520099961).length == 1)) { - F.line = 1220; - add_721421120(tmp_520099557, createSeePowerDescription_520099454(subpowers_520099961[chckIndx(0, 0, (subpowers_520099961).length - 1)])); + if (!(i_553655389 < L_553655390)) break Label10; + subpowers_553654393 = colontmp__553655387[chckIndx(i_553655389, 0, (colontmp__553655387).length - 1)]; + if (((subpowers_553654393).length == 1)) { + add_754975552(tmp_553653989, createSeePowerDescription_553653886(subpowers_553654393[chckIndx(0, 0, (subpowers_553654393).length - 1)])); } else { - F.line = 1222; - var tmp_520099562 = tree_721421184(44, []); - F.line = 1222; - tmp_520099562.class = "tab-row margin-t-20"; + var tmp_553653994 = tree_754975616(44, []); + tmp_553653994.class = "tab-row margin-t-20"; Label11: { - F.line = 1223; - var index_520100015 = 0; - F.line = 1223; - var power_520100016 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); - F.line = 182; - F.filename = "iterators.nim"; - var i_520100941 = 0; - F.line = 183; - var L_520100942 = (subpowers_520099961).length; + var index_553654447 = 0; + var power_553654448 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); + var i_553655373 = 0; + var L_553655374 = (subpowers_553654393).length; Label12: { - F.line = 184; Label13: while (true) { - if (!(i_520100941 < L_520100942)) break Label13; - F.line = 1223; - F.filename = "main.nim"; - index_520100015 = i_520100941; - F.line = 1223; - power_520100016 = nimCopy(power_520100016, subpowers_520099961[chckIndx(i_520100941, 0, (subpowers_520099961).length - 1)], NTI1442840581); - F.line = 1224; - if ((index_520100015 == (Temporary15 = HEX5BHEX5D_520100066(selectedSubPower_520093916[0], subpowers_520099961[chckIndx(0, 0, (subpowers_520099961).length - 1)].name), Temporary15)[0][Temporary15[1]])) { + if (!(i_553655373 < L_553655374)) break Label13; + index_553654447 = i_553655373; + power_553654448 = nimCopy(power_553654448, subpowers_553654393[chckIndx(i_553655373, 0, (subpowers_553654393).length - 1)], NTI1728053253); + if ((index_553654447 == (Temporary15 = HEX5BHEX5D_553654498(selectedSubPower_553648348[0], subpowers_553654393[chckIndx(0, 0, (subpowers_553654393).length - 1)].name), Temporary15)[0][Temporary15[1]])) { Temporary14 = [115,101,108,101,99,116,101,100,45,116,97,98,32,102,111,110,116,45,50,48]; } else { Temporary14 = [102,111,110,116,45,50,48]; } - var class_520100148 = nimCopy(null, Temporary14, NTI33554449); - F.line = 1225; - var tmp_520099563 = tree_721421184(195, []); - F.line = 1225; - tmp_520099563.class = toJSStr(class_520100148); - F.line = 1225; - addEventHandler_687867670(tmp_520099563, 0, createSeePowerOnclick_520099492(power_520100016.name, index_520100015), kxi__); - F.line = 1226; - if ((screenWidth_520093858[0] < getPowerTabLength_520099544(subpowers_520099961))) { - Temporary16 = HEX24_369098760(addInt(index_520100015, 1)); + var class_553654580 = nimCopy(null, Temporary14, NTI33554449); + var tmp_553653995 = tree_754975616(195, []); + tmp_553653995.class = toJSStr(class_553654580); + addEventHandler_721422102(tmp_553653995, 0, createSeePowerOnclick_553653924(power_553654448.name, index_553654447), kxi__); + if ((screenWidth_553648290[0] < getPowerTabLength_553653976(subpowers_553654393))) { + Temporary16 = HEX24_385875976(addInt(index_553654447, 1)); } else { - Temporary16 = power_520100016.technicalName; + Temporary16 = power_553654448.technicalName; } - add_721421120(tmp_520099563, text_721421252(Temporary16)); - F.line = 1226; - add_721421120(tmp_520099562, tmp_520099563); - F.line = 13; - F.filename = "iterators.nim"; - i_520100941 += 1; - if (!(((subpowers_520099961).length == L_520100942))) { - F.line = 187; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(187, 11) `len(a) == L` the length of the seq changed while iterating over it")); + add_754975552(tmp_553653995, text_754975684(Temporary16)); + add_754975552(tmp_553653994, tmp_553653995); + i_553655373 += 1; + if (!(((subpowers_553654393).length == L_553655374))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(187, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - F.line = 1226; - F.filename = "main.nim"; - add_721421120(tmp_520099557, tmp_520099562); - F.line = 1227; - add_721421120(tmp_520099557, createSeePowerDescription_520099454(subpowers_520099961[chckIndx((Temporary17 = HEX5BHEX5D_520100066(selectedSubPower_520093916[0], subpowers_520099961[chckIndx(0, 0, (subpowers_520099961).length - 1)].name), Temporary17)[0][Temporary17[1]], 0, (subpowers_520099961).length - 1)])); + add_754975552(tmp_553653989, tmp_553653994); + add_754975552(tmp_553653989, createSeePowerDescription_553653886(subpowers_553654393[chckIndx((Temporary17 = HEX5BHEX5D_553654498(selectedSubPower_553648348[0], subpowers_553654393[chckIndx(0, 0, (subpowers_553654393).length - 1)].name), Temporary17)[0][Temporary17[1]], 0, (subpowers_553654393).length - 1)])); } - F.line = 1229; - var tmp_520099564 = tree_721421184(33, []); - F.line = 1229; - add_721421120(tmp_520099557, tmp_520099564); - F.line = 13; - F.filename = "iterators.nim"; - i_520100957 += 1; - if (!(((colontmp__520100955).length == L_520100958))) { - F.line = 254; - failedAssertImpl_268435541(makeNimstrLit("/Users/ajayvallurupalli/.choosenim/toolchains/nim-2.0.8/lib/system/iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + var tmp_553653996 = tree_754975616(33, []); + add_754975552(tmp_553653989, tmp_553653996); + i_553655389 += 1; + if (!(((colontmp__553655387).length == L_553655390))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - result_520099556 = tmp_520099557; - framePtr = F.prev; + result_553653988 = tmp_553653989; - return result_520099556; + return result_553653988; } -function main_520100203() { - var result_520100204 = null; +function main_553654635() { + var result_553654636 = null; - var F = {procname: "main.main", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; - framePtr = F; - F.line = 1232; - F.filename = "main.nim"; - F.line = 1232; - var tmp_520100205 = tree_721421184(44, []); - F.line = 1232; - tmp_520100205.class = "main scroll"; - F.line = 1233; - switch (currentScreen_520093855[0]) { + var tmp_553654637 = tree_754975616(44, []); + tmp_553654637.class = "main scroll"; + switch (currentScreen_553648287[0]) { case 0: - F.line = 1234; - add_721421120(tmp_520100205, createLobby_520097653()); + add_754975552(tmp_553654637, createLobby_553652085()); break; case 1: - F.line = 1235; - add_721421120(tmp_520100205, createRoomMenu_520097742()); + add_754975552(tmp_553654637, createRoomMenu_553652174()); break; case 2: - F.line = 1236; - add_721421120(tmp_520100205, createJoinMenu_520097772()); + add_754975552(tmp_553654637, createJoinMenu_553652204()); break; case 4: - F.line = 1237; - add_721421120(tmp_520100205, createOptionsMenu_520097778()); + add_754975552(tmp_553654637, createOptionsMenu_553652210()); break; case 5: - F.line = 1238; - add_721421120(tmp_520100205, createDraftMenu_520097941()); + add_754975552(tmp_553654637, createDraftMenu_553652373()); break; case 3: - F.line = 1239; - add_721421120(tmp_520100205, createGame_520098968()); + add_754975552(tmp_553654637, createGame_553653400()); break; case 6: - F.line = 1240; - add_721421120(tmp_520100205, createResults_520099285()); + add_754975552(tmp_553654637, createResults_553653717()); break; case 7: - F.line = 1241; - add_721421120(tmp_520100205, createRematch_520099316()); + add_754975552(tmp_553654637, createRematch_553653748()); break; case 8: - F.line = 1242; - add_721421120(tmp_520100205, createDisconnect_520099325()); + add_754975552(tmp_553654637, createDisconnect_553653757()); break; case 10: - F.line = 1243; - add_721421120(tmp_520100205, createOther_520099332()); + add_754975552(tmp_553654637, createOther_553653764()); break; case 9: - F.line = 1244; - add_721421120(tmp_520100205, createSettings_520099367()); + add_754975552(tmp_553654637, createSettings_553653799()); break; case 11: - F.line = 1245; - add_721421120(tmp_520100205, createSeePower_520099555()); + add_754975552(tmp_553654637, createSeePower_553653987()); break; case 12: - F.line = 1246; - var tmp_520100206 = tree_721421184(44, []); - F.line = 1246; - add_721421120(tmp_520100205, tmp_520100206); + var tmp_553654638 = tree_754975616(44, []); + add_754975552(tmp_553654637, tmp_553654638); break; } - result_520100204 = tmp_520100205; - framePtr = F.prev; - - return result_520100204; - -} -var F = {procname: "module main", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; -framePtr = F; -F.line = 87; -F.filename = "main.nim"; -var roomId_520093800 = [nimCopy(null, {Field0: false, Field1: "Waiting..."}, NTI520093737)]; -F.line = 88; -var peer_520093806 = [{Field0: null, Field1: null}]; -F.line = 89; -var side_520093807 = [1]; -F.line = 90; -var turn_520093808 = [true]; -F.line = 91; -var myDrafts_520093813 = [[]]; -F.line = 92; -var opponentDrafts_520093818 = [[]]; -F.line = 95; -var baseDrafts_520093819 = [0]; -F.line = 96; -var draftOptions_520093820 = [[]]; -F.line = 97; -var draftChoices_520093821 = [3]; -F.line = 98; -var draftsLeft_520093822 = [0]; -F.line = 99; -var draftTier_520093823 = [0]; -F.line = 102; -var rematch_520093824 = [false]; -F.line = 103; -var theBoard_520093825 = [[[({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})]]]; -F.line = 104; -var theState_520093826 = [{Field0: ({nextIndex: 0, nextGroup: 0, randSeed: 0, turnNumber: 0}), Field1: [({abilityTakes: 0, hasCastled: false, dna: [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], transforms: [[], [], [], [], [], [], [], []], wallet: ({val: 0, has: false}), buys: [], piecesSold: 0, piecesSoldThisTurn: 0, glass: [({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false})]}), ({abilityTakes: 0, hasCastled: false, dna: [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], transforms: [[], [], [], [], [], [], [], []], wallet: ({val: 0, has: false}), buys: [], piecesSold: 0, piecesSoldThisTurn: 0, glass: [({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false})]})]}]; -F.line = 105; -var selectedTile_520093829 = [nimCopy(null, {Field0: (-1), Field1: (-1)}, NTI1224736771)]; -F.line = 106; -var possibleMoves_520093834 = [[]]; -F.line = 107; -var possibleTakes_520093839 = [[]]; -F.line = 108; -var lastMove_520093844 = [[]]; -F.line = 109; -var piecesChecking_520093849 = [[]]; -F.line = 111; -var practiceMode_520093850 = [false]; -F.line = 114; -var showTechnicalNames_520093851 = [false]; -F.line = 115; -var disableRNGPowers_520093852 = [false]; -F.line = 116; -var showDebug_520093853 = [false]; -F.line = 117; -var enableExperimental_520093854 = [true]; -F.line = 120; -var currentScreen_520093855 = [3]; -F.line = 121; -var currentTab_520093856 = [0]; -F.line = 122; -var gameMode_520093857 = [0]; -F.line = 123; -var screenWidth_520093858 = [window.innerWidth]; -F.line = 127; -var selectedGlass_520093872 = [none_520093864()]; -F.line = 129; -var actionStack_520093877 = [[]]; -F.line = 130; -var nextActionStack_520093882 = [[]]; -F.line = 131; -var toSend_520093887 = [[]]; -F.line = 132; -var promptHistory_520093892 = [[]]; -F.line = 133; -var promptStack_520093897 = [[]]; -F.line = 134; -var picksLeft_520093898 = [0]; -F.line = 135; -var getPickOptions_520093900 = [null]; -F.line = 136; -var pickOptions_520093901 = [[]]; -F.line = 137; -var picks_520093906 = [[]]; -F.line = 138; -var whenCollected_520093908 = [null]; -F.line = 140; -var selectedSubPower_520093916 = [({data: [], counter: 0})]; -F.line = 141; -var allPowers_520093917 = [getAllPowers_1442842059()]; -F.line = 1249; -initStorage_1543503887(); -F.line = 1250; -window.addEventListener('resize', resize_520093923); -F.line = 1251; -initSelectedSubPower_520094035(); -if (true) { -F.line = 1254; -switch (currentScreen_520093855[0]) { + result_553654636 = tmp_553654637; + + return result_553654636; + +} +var roomId_553648232 = [nimCopy(null, {Field0: false, Field1: "Waiting..."}, NTI553648169)]; +var peer_553648238 = [{Field0: null, Field1: null}]; +var side_553648239 = [0]; +var turn_553648240 = [false]; +var myDrafts_553648245 = [[]]; +var opponentDrafts_553648250 = [[]]; +var baseDrafts_553648251 = [0]; +var draftOptions_553648252 = [[]]; +var draftChoices_553648253 = [3]; +var draftsLeft_553648254 = [0]; +var draftTier_553648255 = [0]; +var rematch_553648256 = [false]; +var theBoard_553648257 = [[[({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})]]]; +var theState_553648258 = [{Field0: ({nextIndex: 0, nextGroup: 0, randSeed: 0, turnNumber: 0}), Field1: [({abilityTakes: 0, hasCastled: false, dna: [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], transforms: [[], [], [], [], [], [], [], []], wallet: ({val: 0, has: false}), buys: [], piecesSold: 0, piecesSoldThisTurn: 0, glass: [({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false})]}), ({abilityTakes: 0, hasCastled: false, dna: [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], transforms: [[], [], [], [], [], [], [], []], wallet: ({val: 0, has: false}), buys: [], piecesSold: 0, piecesSoldThisTurn: 0, glass: [({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false})]})]}]; +var selectedTile_553648261 = [nimCopy(null, {Field0: (-1), Field1: (-1)}, NTI1476395011)]; +var possibleMoves_553648266 = [[]]; +var possibleTakes_553648271 = [[]]; +var lastMove_553648276 = [[]]; +var piecesChecking_553648281 = [[]]; +var practiceMode_553648282 = [false]; +var showTechnicalNames_553648283 = [false]; +var disableRNGPowers_553648284 = [false]; +var showDebug_553648285 = [false]; +var enableExperimental_553648286 = [true]; +var currentScreen_553648287 = [0]; +var currentTab_553648288 = [0]; +var gameMode_553648289 = [0]; +var screenWidth_553648290 = [window.innerWidth]; +var selectedGlass_553648304 = [none_553648296()]; +var actionStack_553648309 = [[]]; +var nextActionStack_553648314 = [[]]; +var toSend_553648319 = [[]]; +var promptHistory_553648324 = [[]]; +var promptStack_553648329 = [[]]; +var picksLeft_553648330 = [0]; +var getPickOptions_553648332 = [null]; +var pickOptions_553648333 = [[]]; +var picks_553648338 = [[]]; +var whenCollected_553648340 = [null]; +var selectedSubPower_553648348 = [({data: [], counter: 0})]; +var allPowers_553648349 = [getAllPowers_1728054731()]; +initStorage_1929379855(); +window.addEventListener('resize', resize_553648355); +initSelectedSubPower_553648467(); +if (false) { +switch (currentScreen_553648287[0]) { case 3: - F.line = 1256; - initGame_520093937(); - F.line = 1257; - theState_520093826[0].Field0.randSeed = 0; - F.line = 1258; - myDrafts_520093813[0] = nimCopy(null, myDebugPowers_520093792, NTI520093719); - F.line = 1259; - opponentDrafts_520093818[0] = nimCopy(null, [], NTI520093728); - F.line = 1260; - execute_1442841695(myDrafts_520093813[0], opponentDrafts_520093818[0], side_520093807[0], theBoard_520093825[0], theState_520093826[0]); + initGame_553648369(); + theState_553648258[0].Field0.randSeed = 0; + myDrafts_553648245[0] = nimCopy(null, myDebugPowers_553648224, NTI553648151); + opponentDrafts_553648250[0] = nimCopy(null, [], NTI553648160); + execute_1728054367(myDrafts_553648245[0], opponentDrafts_553648250[0], side_553648239[0], theBoard_553648257[0], theState_553648258[0]); break; case 5: - F.line = 1262; - gameMode_520093857[0] = 2; - F.line = 1263; - draft_520097271([], []); + gameMode_553648289[0] = 2; + draft_553651703([], []); break; default: break; } } -setRenderer_687867621(main_520100203, "ROOT", null); -framePtr = F.prev; -var F = {procname: "module main", prev: framePtr, filename: "/Users/ajayvallurupalli/the-playground/chess/src/main.nim", line: 0}; -framePtr = F; -framePtr = F.prev; +setRenderer_721422053(main_553654635, "ROOT", null); diff --git a/src/main.nim b/src/main.nim index a0dee05..31615c9 100644 --- a/src/main.nim +++ b/src/main.nim @@ -77,7 +77,7 @@ type cancel: proc () #I really went for 2 months changing the values by hand each time -const debug: bool = true +const debug: bool = false const debugScreen: Screen = Game const myDebugPowers: seq[Power] = @[zeroGlass, capitalismPower] const opponentDebugPowers: seq[Power] = @[] diff --git a/src/powers.nim b/src/powers.nim index ba742af..a390e63 100644 --- a/src/powers.nim +++ b/src/powers.nim @@ -1442,19 +1442,22 @@ const stupidPower*: Power = Power( ) ) -const convertingTake: OnAction = proc (piece: var Piece, taking: Tile, board: var ChessBoard, state: var BoardState) = - randomize(10 * piece.tile.rank + 100 * piece.tile.file + state.shared.randSeed) - let dice = rand(20) +proc createConvertingTake(odds: float): OnAction = + assert odds <= 1 - inc piece.timesMoved - if dice <= 3 and board[taking].item != King: #creates odds of 3/20 or 15% - board[taking].color = piece.color - board[taking].index = newIndex(state) #it is a new piece when it switches - pieceSwap(piece, board[taking], board) - else: - let takeResult = taking.takenBy(piece, board, state) - if takeResult.takeSuccess: - board[takeResult.endTile].piecesTaken += 1 + result = proc (piece: var Piece, taking: Tile, board: var ChessBoard, state: var BoardState) = + randomize(10 * piece.tile.rank + 100 * piece.tile.file + state.shared.randSeed) + let dice = rand(100) + + inc piece.timesMoved + if dice <= int(odds * 100) and board[taking].item != King: + board[taking].color = piece.color + board[taking].index = newIndex(state) #it is a new piece when it switches + pieceSwap(piece, board[taking], board) + else: + let takeResult = taking.takenBy(piece, board, state) + if takeResult.takeSuccess: + board[takeResult.endTile].piecesTaken += 1 const conversion: Power = Power( name: "Conversion", @@ -1466,24 +1469,10 @@ const conversion: Power = Power( onStart: proc (side: Color, _: Color, b: var ChessBoard, s: var BoardState) = Bishop.buff(side, b, s, - onTake = convertingTake + onTake = createConvertingTake(0.15) ) ) -const holyConvertingTake: OnAction = proc (piece: var Piece, taking: Tile, board: var ChessBoard, state: var BoardState) = - randomize(10 * piece.tile.rank + 100 * piece.tile.file + state.shared.randSeed) - let dice = rand(20) - - inc piece.timesMoved - if dice <= 6 and board[taking].item != King: #creates odds of 6/20 or 30% - board[taking].color = piece.color - board[taking].index = newIndex(state) - pieceSwap(piece, board[taking], board) - else: - let takeResult = taking.takenBy(piece, board, state) - if takeResult.takeSuccess: - board[takeResult.endTile].piecesTaken += 1 - const holyConversionPower: Power = Power( name: "God's Disciple", tier: Uncommon, @@ -1494,7 +1483,7 @@ const holyConversionPower: Power = Power( onStart: proc (side: Color, _: Color, b: var ChessBoard, s: var BoardState) = Bishop.buff(side, b, s, - onTake = holyConvertingTake + onTake = createConvertingTake(0.3) ) ) @@ -1578,7 +1567,7 @@ const promoteBuyingCondition: BuyCondition = func (piece: Piece, board: ChessBoa #this is attatched to the King, which tracks all piecesTaken #I originally had it on each piece, but then I would have to add it to each new piece -proc moneyForTake(): OnPiece = +proc moneyForTakeAll(): OnPiece = var lastPiecesTaken = 0 #closure is used to hold state #this is preferable when state does not need to interact with the rest of the game's systems @@ -1595,6 +1584,14 @@ proc moneyForTake(): OnPiece = addMoney(piece.color, (allPiecesTaken - lastPiecesTaken) * 3, state) lastPiecesTaken = allPiecesTaken +#just tracks one piece +proc moneyForTakeSingle(): OnPiece = + var lastPiecesTaken = 0 + result = proc (piece: var Piece, b: var ChessBoard, state: var BoardState) = + if piece.piecesTaken > lastPiecesTaken: + addMoney(piece.color, (piece.piecesTaken - lastPiecesTaken) * 3, state) + lastPiecesTaken = piece.piecesTaken + const capitalismPower*: Power = Power( name: "Capitalism", tier: Uncommon, @@ -1610,7 +1607,34 @@ const capitalismPower*: Power = Power( proc (side: Color, _: Color, b: var ChessBoard, s: var BoardState) = s.side[side].buys &= (name: "Promote", cost: alwaysCost(30), action: promoteBuying, condition: promoteBuyingCondition) side.initWallet(s) - King.addOnEndTurnTransform(side, b, s, moneyForTake) + King.addOnEndTurnTransform(side, b, s, moneyForTakeAll) +) + +const bountyPower*: Power = Power( + name: "Bounty", + tier: UltraRare, + rarity: 0, + priority: 15, + description: "Pieces Wanted: Dead or Alive. Bounty: 6 dollars.", + icon: kingIcon, + onStart: + proc (side: Color, _: Color, b: var ChessBoard, s: var BoardState) = + King.addOnEndTurnTransform(side, b, s, moneyForTakeSingle) + King.addOnEndTurnTransform(side, b, s, moneyForTakeSingle) +) + +const bounty: Synergy = ( + power: bountyPower, + rarity: 0, + requirements: @[bountyHunterPower.name, capitalismPower.name], + replacements: @[] +) + +const bounty2: Synergy = ( + power: bountyPower, + rarity: 0, + requirements: @[lesbianBountyHunterPower.name, capitalismPower.name], + replacements: @[] ) #helper function to create capitalism powers, since they need to be synergies to ensure use has money @@ -1790,9 +1814,9 @@ const taxes*: Power = Power( noColor: true, onStart: proc (side: Color, _: Color, b: var ChessBoard, s: var BoardState) = - #We just add two more `moneyForTake`s - King.addOnEndTurnTransform(side, b, s, moneyForTake) - King.addOnEndTurnTransform(side, b, s, moneyForTake) + #We just add two more `moneyForTakeAll`s + King.addOnEndTurnTransform(side, b, s, moneyForTakeAll) + King.addOnEndTurnTransform(side, b, s, moneyForTakeAll) King.buff(side, b, s, onEndTurn = @[createTaxes(0.15)] ) @@ -1811,8 +1835,8 @@ const inflation*: Power = Power( noColor: true, onStart: proc (side: Color, _: Color, b: var ChessBoard, s: var BoardState) = - #We just add 1 more `moneyForTake`s - King.addOnEndTurnTransform(side, b, s, moneyForTake) + #We just add 1 more `moneyForTakeAll`s + King.addOnEndTurnTransform(side, b, s, moneyForTakeAll) ) const capitalismFour1: Synergy = createCapitalism(inflation) @@ -1843,7 +1867,7 @@ const handouts*: Power = Power( noColor: true, onStart: proc (side: Color, _: Color, b: var ChessBoard, s: var BoardState) = - #We just add two more `moneyForTake`s + #We just add two more `moneyForTakeAll`s King.addOnEndTurnTransform(side, b, s, moneyForMove) ) @@ -2303,6 +2327,8 @@ registerSynergy(drunkNightRider2, true) registerSynergy(clarity, true) registerSynergy(masterGlass, true) registerSynergy(masterGlass2, true) +registerSynergy(bounty, true) +registerSynergy(bounty2, true) registerSynergy(capitalismTwo1) registerSynergy(capitalismTwo2)