PowerBuilder Gobang/Gomoku Game
Example Source
uo_tip from userobject
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
forward global type uo_tip from userobject end type type st_1 from statictext within uo_tip end type end forward global type uo_tip from userobject integer width = 951 integer height = 332 long backcolor = 16777215 string text = "none" long tabtextcolor = 33554432 long picturemaskcolor = 536870912 st_1 st_1 end type global uo_tip uo_tip type prototypes Function Boolean AnimateWindow ( Long hwnd, Long dwtime, Long dwflags ) Library "user32.dll" end prototypes type variables String ls_text Constant Long AW_HOR_POSITIVE = 1 Constant Long AW_HOR_NEGATIVE = 2 Constant Long AW_VER_POSITIVE = 4 Constant Long AW_VER_NEGATIVE = 8 Constant Long AW_CENTER = 16 Constant Long AW_HIDE = 65526 Constant Long AW_ACTIVATE = 131072 Constant Long AW_SLIDE = 262144 Constant Long AW_BLEND = 524288 end variables forward prototypes public subroutine of_text (string as_text) end prototypes public subroutine of_text (string as_text); st_1.text = as_text end subroutine on uo_tip.create this.st_1=create st_1 this.Control[]={this.st_1} end on on uo_tip.destroy destroy(this.st_1) end on event constructor;long ll_handle ll_handle = Handle(this) AnimateWindow(ll_handle,300,AW_SLIDE+AW_VER_POSITIVE+AW_ACTIVATE) end event type st_1 from statictext within uo_tip integer y = 80 integer width = 951 integer height = 152 integer textsize = -16 integer weight = 400 fontcharset fontcharset = ansi! fontpitch fontpitch = variable! fontfamily fontfamily = swiss! string facename = "Tahoma" long textcolor = 33554432 long backcolor = 16777215 alignment alignment = center! boolean focusrectangle = false end type |
w_gobang from window
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 |
forward global type w_gobang from window end type type mle_1 from multilineedit within w_gobang end type type cb_5 from commandbutton within w_gobang end type type cb_4 from commandbutton within w_gobang end type type cb_3 from commandbutton within w_gobang end type type st_scrolling from statictext within w_gobang end type type rb_middlerank from radiobutton within w_gobang end type type rb_primary from radiobutton within w_gobang end type type rb_1 from radiobutton within w_gobang end type type dw_weight from datawindow within w_gobang end type type cb_2 from commandbutton within w_gobang end type type dw_coordinates from datawindow within w_gobang end type type sle_1 from singlelineedit within w_gobang end type type cb_1 from commandbutton within w_gobang end type type st_1 from statictext within w_gobang end type type dw_1 from datawindow within w_gobang end type end forward global type w_gobang from window integer width = 2505 integer height = 1820 boolean titlebar = true string title = "Gobang Game" boolean controlmenu = true boolean minbox = true boolean resizable = true long backcolor = 16777215 string icon = "AppIcon!" boolean center = true mle_1 mle_1 cb_5 cb_5 cb_4 cb_4 cb_3 cb_3 st_scrolling st_scrolling rb_middlerank rb_middlerank rb_primary rb_primary rb_1 rb_1 dw_weight dw_weight cb_2 cb_2 dw_coordinates dw_coordinates sle_1 sle_1 cb_1 cb_1 st_1 st_1 dw_1 dw_1 end type global w_gobang w_gobang type prototypes end prototypes type variables Long il_width = 100, il_height = 85 //square size String is_any_name[],is_any_null[] Long il_First = 2 //1 white, 2 black ○ ● String is_white = '○',is_black = '●' //chess pieces Long is_white_color = 16777215,is_black_color = 0 //background color Long il_size = 15 //15*15 Long il_num = 5 //5 children are connected, victory condition Boolean ilb_start = False uo_tip tip Long il_x, il_y, il_num_new = 0 end variables forward prototypes public subroutine wf_determine_victory () public function long wf_retrun_column (string as_name) public subroutine wf_computer () public function boolean wf_estimate_fiveeven (integer al_row, long al_column, string as_chess) public function long wf_choose (string as_pieces) public function long wf_unionweight (integer a, integer b) public subroutine wf_computer_primary (string as_bs) public subroutine wf_computer_middlerank () public subroutine wf_draw_checkerboard () public function boolean wf_where_column (string as_data) public subroutine wf_switch_st_scrolling () public subroutine wf_button_enabled (boolean as_bool) public function integer wf_z_demo2 () public function long wf_z_alphabeta (long player, long alpha, long beta, long depth) public function integer wf_z_demo2_3 (string as_bs) end prototypes public subroutine wf_determine_victory (); end subroutine public function long wf_retrun_column (string as_name);//==================================================================== // Function: w_gobang.wf_retrun_column() //-------------------------------------------------------------------- // Description: //-------------------------------------------------------------------- // Arguments: // string as_name //-------------------------------------------------------------------- // Returns: long //-------------------------------------------------------------------- // Author: PB.BaoGa Date: 2022/01/14 //-------------------------------------------------------------------- // Usage: w_gobang.wf_retrun_column ( string as_name ) //-------------------------------------------------------------------- // Copyright (c) PB.BaoGa(TM), All rights reserved. //-------------------------------------------------------------------- // Modify History: // //==================================================================== //reverse serial number Long ll_i,ll_column = 0 For ll_i = 1 To UpperBound(is_any_name) If as_name = is_any_name[ll_i] Then ll_column = ll_i Exit End If Next Return ll_column end function public subroutine wf_computer ();//==================================================================== // Function: w_gobang.wf_computer() //-------------------------------------------------------------------- // Description: //-------------------------------------------------------------------- // Arguments: //-------------------------------------------------------------------- // Returns: (none) //-------------------------------------------------------------------- // Author: PB.BaoGa Date: 2022/01/14 //-------------------------------------------------------------------- // Usage: w_gobang.wf_computer ( ) //-------------------------------------------------------------------- // Copyright (c) PB.BaoGa(TM), All rights reserved. //-------------------------------------------------------------------- // Modify History: // //==================================================================== //computer Long ll_i,ll_j,ll_for String ls_con Long ll_row,ll_column,ll_number,ll_max_number Long ll_row_two,ll_column_two String ls_pieces = '' Boolean lb_bool,lb_bool_two Long ll_num = 0,ll_num_new = 0 String ls_arr[] Long ll_x,ll_y il_x = 0 il_y = 0 il_num_new = 0 //reset dw For ll_i = 1 To il_size //Row For ll_j = 1 To il_size //vertical dw_weight.SetItem(ll_i,ll_j,'0') Next Next Randomize(0) //Man-machine level If rb_primary.Checked Then wf_computer_middlerank() // if rand(2) = 1 then // wf_computer_primary('z') // wf_computer_primary('y') // wf_computer_primary('s') // wf_computer_primary('x') // wf_computer_primary('zs') // wf_computer_primary('zx') // wf_computer_primary('ys') // wf_computer_primary('yx') // else // wf_computer_middlerank() // end if ElseIf rb_middlerank.Checked Then //wf_computer_middlerank() End If //loop for maximum value For ll_i = 1 To il_size //Row For ll_j = 1 To il_size //vertical ll_number = Long(dw_weight.GetItemString(ll_i,ll_j)) If ll_number >= ll_max_number Then ll_max_number = ll_number il_x = ll_i il_y = ll_j End If //mle_1.text = mle_1.text +'~r~n' +string(ll_i)+':' +string(ll_j)+':' + string(ll_number) Next Next end subroutine public function boolean wf_estimate_fiveeven (integer al_row, long al_column, string as_chess);//==================================================================== // Function: w_gobang.wf_estimate_fiveeven() //-------------------------------------------------------------------- // Description: //-------------------------------------------------------------------- // Arguments: // integer al_row // long al_column // string as_chess //-------------------------------------------------------------------- // Returns: boolean //-------------------------------------------------------------------- // Author: PB.BaoGa Date: 2022/01/14 //-------------------------------------------------------------------- // Usage: w_gobang.wf_estimate_fiveeven ( integer al_row, long al_column, string as_chess ) //-------------------------------------------------------------------- // Copyright (c) PB.BaoGa(TM), All rights reserved. //-------------------------------------------------------------------- // Modify History: // //==================================================================== //is_any_name //Determine whether the same piece is five in a row in a diagonal form Long ll_i,ll_column String ls_qz Long ll_for Long ll_top,ll_below Long ll_left,ll_right Long ll_number = 1 Boolean lbl_bool_one = True,lbl_bool_two = True Long ll_Array_row[],ll_Array_column[] Boolean lb_bool = False ll_column = al_column ls_qz = as_chess //up and down For ll_for = 1 To il_num - 1 ll_top = al_row - ll_for If ll_top > 0 Then If lbl_bool_one And dw_1.GetItemString(ll_top,ll_column) = ls_qz Then ll_number = ll_number + 1 Else lbl_bool_one = False End If End If ll_below = al_row + ll_for If ll_below <= dw_1.RowCount() Then If lbl_bool_two And dw_1.GetItemString(ll_below,ll_column) = ls_qz Then ll_number = ll_number + 1 Else lbl_bool_two = False End If End If If ll_number >= il_num Then Return True End If Next ll_number = 1 lbl_bool_one = True lbl_bool_two = True //left and right For ll_for = 1 To il_num - 1 ll_left = ll_column - ll_for If ll_left > 0 Then If lbl_bool_one And dw_1.GetItemString(al_row,ll_left) = ls_qz Then ll_number = ll_number + 1 Else lbl_bool_one = False End If End If ll_right = ll_column + ll_for If ll_right <= il_size Then If lbl_bool_two And dw_1.GetItemString(al_row,ll_right) = ls_qz Then ll_number = ll_number + 1 Else lbl_bool_two = False End If End If If ll_number >= il_num Then Return True End If Next ll_number = 1 lbl_bool_one = True lbl_bool_two = True //left top right bottom For ll_for = 1 To il_num -1 ll_top = al_row - ll_for ll_left = ll_column - ll_for If ll_left > 0 And ll_top > 0 Then If lbl_bool_one And dw_1.GetItemString(ll_top,ll_left) = ls_qz Then ll_number = ll_number + 1 Else lbl_bool_one = False End If End If ll_top = al_row + ll_for ll_right = ll_column + ll_for If ll_right <= il_size And ll_top <= dw_1.RowCount() Then If lbl_bool_two And dw_1.GetItemString(ll_top,ll_right) = ls_qz Then ll_number = ll_number + 1 Else lbl_bool_two = False End If End If If ll_number >= il_num Then Return True End If Next ll_number = 1 lbl_bool_one = True lbl_bool_two = True //Bottom left top right For ll_for = 1 To il_num - 1 ll_top = al_row + ll_for ll_left = ll_column - ll_for If ll_left > 0 And ll_top <= dw_1.RowCount() Then If lbl_bool_one And dw_1.GetItemString(ll_top,ll_left) = ls_qz Then ll_number = ll_number + 1 Else lbl_bool_one = False End If End If ll_top = al_row - ll_for ll_right = ll_column + ll_for If ll_right <= il_size And ll_top > 0 Then If lbl_bool_two And dw_1.GetItemString(ll_top,ll_right) = ls_qz Then ll_number = ll_number + 1 Else lbl_bool_two = False End If End If If ll_number >= il_num Then Return True End If Next Return False end function public function long wf_choose (string as_pieces);//==================================================================== // Function: w_gobang.wf_choose() //-------------------------------------------------------------------- // Description: //-------------------------------------------------------------------- // Arguments: // string as_pieces //-------------------------------------------------------------------- // Returns: long //-------------------------------------------------------------------- // Author: PB.BaoGa Date: 2022/01/14 //-------------------------------------------------------------------- // Usage: w_gobang.wf_choose ( string as_pieces ) //-------------------------------------------------------------------- // Copyright (c) PB.BaoGa(TM), All rights reserved. //-------------------------------------------------------------------- // Modify History: // //==================================================================== Long ll_num //Weight table Choose Case as_pieces Case '02' ll_num = 25 Case '01' ll_num = 22 Case '002' ll_num = 17 Case '001' ll_num = 12 Case '0002' ll_num = 17 Case '0001' ll_num = 12 Case '0201' ll_num = 25 Case '0102' ll_num = 22 Case '0021' ll_num = 15 Case '0012' ll_num = 10 Case '02001' ll_num = 19 Case '01002' ll_num = 22 Case '00201' ll_num = 17 Case '00102' ll_num = 12 Case '00021' ll_num = 15 Case '00012' ll_num = 10 Case '02000' ll_num = 25 Case '01000' ll_num = 22 Case '00200' ll_num = 19 Case '00100' ll_num = 14 Case '00020' ll_num = 17 Case '00010' ll_num = 12 Case '00002' ll_num = 15 Case '00001' ll_num = 10 Case '0202' ll_num = 65 Case '0101' ll_num = 60 Case '0220' ll_num = 80 Case '0110' ll_num = 76 Case '022' ll_num = 80 Case '011' ll_num = 76 Case '0022' ll_num = 65 Case '0011' ll_num = 60 Case '02021' ll_num = 65 Case '01012' ll_num = 60 Case '02201' ll_num = 80 Case '01102' ll_num = 76 Case "01120" ll_num = 76 Case "02210" ll_num = 80 Case '00221' ll_num = 65 Case '00112' ll_num = 60 Case '02200' ll_num = 80 Case '01100' ll_num = 76 Case '02020' ll_num = 75 Case '01010' ll_num = 70 Case '00220' ll_num = 75 Case '00110' ll_num = 70 Case '00022' ll_num = 75 Case '00011' ll_num = 70 Case '0222' ll_num = 150 Case '0111' ll_num = 140 Case '02221' ll_num = 150 Case '01112' ll_num = 140 Case '02220' ll_num = 1100 Case '01110' ll_num = 1050 Case '02202' ll_num = 1000 Case '01101' ll_num = 800 Case '02022' ll_num = 1000 Case '01011' ll_num = 800 Case '02222' ll_num = 3000 Case '01111' ll_num = 3500 Case '11011' //,'10111','11101','11110' ll_num = 3500 Case Else ll_num = 0 End Choose Return ll_num end function public function long wf_unionweight (integer a, integer b);//==================================================================== // Function: w_gobang.wf_unionweight() //-------------------------------------------------------------------- // Description: //-------------------------------------------------------------------- // Arguments: // integer a // integer b //-------------------------------------------------------------------- // Returns: long //-------------------------------------------------------------------- // Author: PB.BaoGa Date: 2022/01/14 //-------------------------------------------------------------------- // Usage: w_gobang.wf_unionweight ( integer a, integer b ) //-------------------------------------------------------------------- // Copyright (c) PB.BaoGa(TM), All rights reserved. //-------------------------------------------------------------------- // Modify History: // //==================================================================== If(IsNull(a) Or IsNull(b)) Then Return 0; //one by one:101/202 ElseIf((a >= 22) And (a <= 25) And (b >= 22) And (b <= 25)) Then Return 60 //one two, two one:1011/2022 ElseIf(((a >= 22) And (a <= 25) And (b >= 76) And (b <= 80)) Or ((a >= 76) And (a <= 80) And (b >= 22) And (b <= 25))) Then Return 800; //One three, three one, two two:10111/20222 ElseIf(((a >= 10) And (a <= 25) And (b >= 1050) And (b <= 1100)) Or ((a >= 1050) And (a <= 1100) And (b >= 10) And (b <= 25)) Or ((a >= 76) And (a <= 80) And (b >= 76) And (b <= 80))) Then Return 3000; //Sleep three consecutive and sleep one consecutive. one three, three one ElseIf(((a >= 22) And (a <= 25) And (b >= 140) And (b <= 150)) Or ((a >= 140) And (a <= 150) And (b >= 22) And (b <= 25))) Then Return 3000; //two three, three two:110111 ElseIf(((a >= 76) And (a <= 80) And (b >= 1050) And (b <= 1100)) Or ((a >= 1050) And (a <= 1100) And (b >= 76) And (b <= 80))) Then Return 3000; Else Return 0; End If end function public subroutine wf_computer_primary (string as_bs);//==================================================================== // Function: w_gobang.wf_computer_primary() //-------------------------------------------------------------------- // Description: //-------------------------------------------------------------------- // Arguments: // string as_bs //-------------------------------------------------------------------- // Returns: (none) //-------------------------------------------------------------------- // Author: PB.BaoGa Date: 2022/01/14 //-------------------------------------------------------------------- // Usage: w_gobang.wf_computer_primary ( string as_bs ) //-------------------------------------------------------------------- // Copyright (c) PB.BaoGa(TM), All rights reserved. //-------------------------------------------------------------------- // Modify History: // //==================================================================== //wf_weighting_algorithm Long ll_for,ll_num = 0,ll_j,ll_i String ls_con,ls_con_two,ls_pieces = '' Long ll_column,ll_row Long ll_number,ll_max_number = 0 String ls_qzcon,ls_color //Human machine For ll_i = 1 To il_size //Row For ll_j = 1 To il_size //vertical ls_con = dw_1.GetItemString(ll_i,ll_j) If IsNull(ls_con) Then ls_con = '' If ls_con <> '' Then Continue; For ll_for = 1 To 5 //Row If as_bs = 'z' Then ll_row = ll_i ll_column = ll_j - ll_for If ll_column <= 0 Then Exit; ElseIf as_bs = 'y' Then ll_row = ll_i ll_column = ll_j + ll_for If ll_column > il_size Then Exit; ElseIf as_bs = 's' Then ll_row = ll_i - ll_for ll_column = ll_j If ll_row <= 0 Then Exit; ElseIf as_bs = 'x' Then ll_row = ll_i + ll_for ll_column = ll_j If ll_row > il_size Then Exit; ElseIf as_bs = 'zs' Then ll_row = ll_i - ll_for ll_column = ll_j - ll_for If ll_row <= 0 Then Exit; If ll_column <= 0 Then Exit; ElseIf as_bs = 'yx' Then ll_row = ll_i + ll_for ll_column = ll_j + ll_for If ll_row > il_size Then Exit; If ll_column > il_size Then Exit; ElseIf as_bs = 'ys' Then ll_row = ll_i - ll_for ll_column = ll_j + ll_for If ll_row <= 0 Then Exit; If ll_column > il_size Then Exit; ElseIf as_bs = 'zx' Then ll_row = ll_i + ll_for ll_column = ll_j - ll_for If ll_row > il_size Then Exit; If ll_column <= 0 Then Exit; End If ls_con_two = dw_1.GetItemString(ll_row,ll_column) If IsNull(ls_con_two) Then ls_con_two = '-1' If ls_color = ls_con_two Then Exit If ls_con_two = is_white Then ls_con_two = '1' ElseIf ls_con_two = is_black Then ls_con_two = '2' Else ls_con_two = '0' ls_color = '-1' End If ls_pieces = ls_pieces + ls_con_two Next //Weight table Choose Case ls_pieces Case '11110' ll_num = 11110 Case '1111' ll_num = 15000 Case '11112' ll_num = 16000 Case '1110' ll_num = 5000 Case '111' ll_num = 550 Case '1112' ll_num = 600 Case '110' ll_num = 500 Case '11' ll_num = 200 Case '112' ll_num = 220 Case '10' ll_num = 100 Case '12' ll_num = 40 Case '1' ll_num = 25 Case '22220' ll_num = 20000 Case '2222' ll_num = 17000 Case '22221' ll_num = 18000 Case '2220' ll_num = 10000 Case '2221' ll_num = 650 Case '222' ll_num = 600 Case '220' ll_num = 400 Case '221' ll_num = 270 Case '22' ll_num = 250 Case '20' ll_num = 200 Case '21' ll_num = 120 Case '2' ll_num = 40 Case '1' ll_num = 3 Case Else ll_num = 0 End Choose ll_number = Long(dw_weight.GetItemString(ll_i,ll_j)) ll_number = ll_number + ll_num dw_weight.SetItem(ll_i,ll_j,String(ll_number)) ls_pieces = '' ll_num = 0 ls_color = '' Next Next end subroutine public subroutine wf_computer_middlerank ();//==================================================================== // Function: w_gobang.wf_computer_middlerank() //-------------------------------------------------------------------- // Description: //-------------------------------------------------------------------- // Arguments: //-------------------------------------------------------------------- // Returns: (none) //-------------------------------------------------------------------- // Author: PB.BaoGa Date: 2022/01/14 //-------------------------------------------------------------------- // Usage: w_gobang.wf_computer_middlerank ( ) //-------------------------------------------------------------------- // Copyright (c) PB.BaoGa(TM), All rights reserved. //-------------------------------------------------------------------- // Modify History: // //==================================================================== Long ll_for,ll_j,ll_i,ll_num = 0 String ls_con,ls_con_two,ls_pieces = '' Long ll_number Long jmin,ll_value,ll_value_tow For ll_i = 1 To il_size //Row For ll_j = 1 To il_size //vertical ls_con = dw_1.GetItemString(ll_i,ll_j) If IsNull(ls_con) Then ls_con = '' If ls_con = '' Then //Left ls_pieces = '0' jmin = Max(1,ll_j - 4) For ll_for = ll_j -1 To jmin Step -1 //Row ls_con_two = dw_1.GetItemString(ll_i,ll_for) If IsNull(ls_con_two) Then ls_con_two = '0' If ls_con_two = is_white Then ls_con_two = '1' ElseIf ls_con_two = is_black Then ls_con_two = '2' Else ls_con_two = '0' End If ls_pieces = ls_pieces + ls_con_two Next ll_value = wf_choose(ls_pieces) ll_number = Long(dw_weight.GetItemString(ll_i,ll_j)) + ll_value dw_weight.SetItem(ll_i,ll_j,String(ll_number)) //mle_1.text = mle_1.text+'~r~n'+string(ll_i)+':'+string(ll_j)+':'+ls_pieces+':'+string(ll_valueleft) //right ls_pieces = '0' jmin = Min(il_size,ll_j + 4) For ll_for = ll_j +1 To jmin //Row ls_con_two = dw_1.GetItemString(ll_i,ll_for) If IsNull(ls_con_two) Then ls_con_two = '0' If ls_con_two = is_white Then ls_con_two = '1' ElseIf ls_con_two = is_black Then ls_con_two = '2' Else ls_con_two = '0' End If ls_pieces = ls_pieces + ls_con_two Next ll_value_tow = wf_choose(ls_pieces) ll_number = Long(dw_weight.GetItemString(ll_i,ll_j)) + ll_value_tow dw_weight.SetItem(ll_i,ll_j,String(ll_number)) //joint judgment ll_number = Long(dw_weight.GetItemString(ll_i,ll_j)) ll_number = ll_number + wf_unionWeight(ll_value,ll_value_tow) dw_weight.SetItem(ll_i,ll_j,String(ll_number)) //up ls_pieces = '0' jmin = Max(1,ll_i - 4) For ll_for = ll_i -1 To jmin Step -1 //Row ls_con_two = dw_1.GetItemString(ll_for,ll_j) If IsNull(ls_con_two) Then ls_con_two = '0' If ls_con_two = is_white Then ls_con_two = '1' ElseIf ls_con_two = is_black Then ls_con_two = '2' Else ls_con_two = '0' End If ls_pieces = ls_pieces + ls_con_two Next ll_value = wf_choose(ls_pieces) ll_number = Long(dw_weight.GetItemString(ll_i,ll_j)) + ll_value dw_weight.SetItem(ll_i,ll_j,String(ll_number)) //Down ls_pieces = '0' jmin = Min(il_size,ll_i + 4) For ll_for = ll_i +1 To jmin //Row ls_con_two = dw_1.GetItemString(ll_for,ll_j) If IsNull(ls_con_two) Then ls_con_two = '0' If ls_con_two = is_white Then ls_con_two = '1' ElseIf ls_con_two = is_black Then ls_con_two = '2' Else ls_con_two = '0' End If ls_pieces = ls_pieces + ls_con_two Next ll_value_tow = wf_choose(ls_pieces) ll_number = Long(dw_weight.GetItemString(ll_i,ll_j)) + ll_value_tow dw_weight.SetItem(ll_i,ll_j,String(ll_number)) //Joint judgment, judgment line ll_number = Long(dw_weight.GetItemString(ll_i,ll_j)) ll_number = ll_number + wf_unionWeight(ll_value,ll_value_tow) dw_weight.SetItem(ll_i,ll_j,String(ll_number)) //upper left ls_pieces = '0' For ll_for = 1 To 4 //mle_1.text = mle_1.text+'~r~n'+string(ll_i)+':'+string(ll_j)+':'+string(ll_i -ll_for)+':'+string(ll_i -ll_for)+':'+string(ll_j -ll_for)+':'+string(ll_j -ll_for) If((ll_i -ll_for > 0) And (ll_i -ll_for <= il_size) And (ll_j -ll_for > 0) And (ll_j -ll_for <= il_size)) Then ls_con_two = dw_1.GetItemString(ll_i -ll_for,ll_j -ll_for) If IsNull(ls_con_two) Then ls_con_two = '0' If ls_con_two = is_white Then ls_con_two = '1' ElseIf ls_con_two = is_black Then ls_con_two = '2' Else ls_con_two = '0' End If ls_pieces = ls_pieces + ls_con_two End If Next ll_value = wf_choose(ls_pieces) ll_number = Long(dw_weight.GetItemString(ll_i,ll_j)) + ll_value dw_weight.SetItem(ll_i,ll_j,String(ll_number)) //lower right ls_pieces = '0' For ll_for = 1 To 4 //mle_1.text = mle_1.text+'~r~n'+string(ll_i)+':'+string(ll_j)+':'+string(ll_i -ll_for)+':'+string(ll_i -ll_for)+':'+string(ll_j -ll_for)+':'+string(ll_j -ll_for) If((ll_i +ll_for > 0) And (ll_i +ll_for <= il_size) And (ll_j +ll_for > 0) And (ll_j +ll_for <= il_size)) Then ls_con_two = dw_1.GetItemString(ll_i +ll_for,ll_j +ll_for) If IsNull(ls_con_two) Then ls_con_two = '0' If ls_con_two = is_white Then ls_con_two = '1' ElseIf ls_con_two = is_black Then ls_con_two = '2' Else ls_con_two = '0' End If ls_pieces = ls_pieces + ls_con_two End If Next ll_value_tow = wf_choose(ls_pieces) ll_number = Long(dw_weight.GetItemString(ll_i,ll_j)) + ll_value_tow dw_weight.SetItem(ll_i,ll_j,String(ll_number)) //Joint judgment, judgment line ll_number = Long(dw_weight.GetItemString(ll_i,ll_j)) ll_number = ll_number + wf_unionWeight(ll_value,ll_value_tow) dw_weight.SetItem(ll_i,ll_j,String(ll_number)) //Bottom left i plus, j minus ls_pieces = '0' For ll_for = 1 To 4 If((ll_i +ll_for > 0) And (ll_i +ll_for <= il_size) And (ll_j -ll_for > 0) And (ll_j -ll_for <= il_size)) Then ls_con_two = dw_1.GetItemString(ll_i +ll_for,ll_j -ll_for) If IsNull(ls_con_two) Then ls_con_two = '0' If ls_con_two = is_white Then ls_con_two = '1' ElseIf ls_con_two = is_black Then ls_con_two = '2' Else ls_con_two = '0' End If ls_pieces = ls_pieces + ls_con_two End If Next ll_value = wf_choose(ls_pieces) ll_number = Long(dw_weight.GetItemString(ll_i,ll_j)) + ll_value dw_weight.SetItem(ll_i,ll_j,String(ll_number)) //In the upper right, i subtract, j add ls_pieces = '0' For ll_for = 1 To 4 //mle_1.text = mle_1.text+'~r~n'+string(ll_i)+':'+string(ll_j)+':'+string(ll_i -ll_for)+':'+string(ll_i -ll_for)+':'+string(ll_j -ll_for)+':'+string(ll_j -ll_for) If((ll_i -ll_for > 0) And (ll_i -ll_for <= il_size) And (ll_j +ll_for > 0) And (ll_j +ll_for <= il_size)) Then ls_con_two = dw_1.GetItemString(ll_i -ll_for,ll_j +ll_for) If IsNull(ls_con_two) Then ls_con_two = '0' If ls_con_two = is_white Then ls_con_two = '1' ElseIf ls_con_two = is_black Then ls_con_two = '2' Else ls_con_two = '0' End If ls_pieces = ls_pieces + ls_con_two End If Next ll_value_tow = wf_choose(ls_pieces) ll_number = Long(dw_weight.GetItemString(ll_i,ll_j)) + ll_value_tow dw_weight.SetItem(ll_i,ll_j,String(ll_number)) //Joint judgment, judgment line ll_number = Long(dw_weight.GetItemString(ll_i,ll_j)) ll_number = ll_number + wf_unionWeight(ll_value,ll_value_tow) dw_weight.SetItem(ll_i,ll_j,String(ll_number)) End If Next Next end subroutine public subroutine wf_draw_checkerboard ();//==================================================================== // Function: w_gobang.wf_draw_checkerboard() //-------------------------------------------------------------------- // Description: //-------------------------------------------------------------------- // Arguments: //-------------------------------------------------------------------- // Returns: (none) //-------------------------------------------------------------------- // Author: PB.BaoGa Date: 2022/01/14 //-------------------------------------------------------------------- // Usage: w_gobang.wf_draw_checkerboard ( ) //-------------------------------------------------------------------- // Copyright (c) PB.BaoGa(TM), All rights reserved. //-------------------------------------------------------------------- // Modify History: // //==================================================================== Long ll_count,ll_i String ls_name,ls_column Long ll_x,ll_y,ll_width,ll_height,ll_total_width = 0 Long ll_for Long ll_insertrow String ls_syntax,ls_err = '' dw_1.SetRedraw( False) //Create DW ls_syntax = "release 10.5;~r~n" +& "table(" For ll_for = 1 To il_size ls_column = 'a_'+String(ll_for) is_any_name[UpperBound(is_any_name) + 1] = ls_column ls_syntax = ls_syntax +'column=(type=char(10) updatewhereclause=no name='+ls_column+' dbname="'+ls_column+'" )~r~n' Next ls_syntax = ls_syntax +'column=(type=number updatewhereclause=no name=pd dbname="pd" )~r~n' ls_syntax = ls_syntax +")" dw_1.Create(ls_syntax, ls_err) If Len(ls_err) > 0 Then MessageBox('Error', 'Create DW failed! ~r~n' + ls_err) Return End If dw_1.Object.datawindow.detail.Height = il_height dw_1.Object.datawindow.Header.Height = il_height //Insert square (field) For ll_for = 1 To il_size ll_insertrow = dw_1.InsertRow(0) ls_column = 'a_'+String(ll_for) ll_x = il_width * (ll_for - 1) +il_width + 6 dw_1.Modify('create column(band=detail id='+String(ll_for)+' alignment="2" tabsequence=32766 border="0" color="33554432~tif (pd = '+String(ll_for)+',255,0)" x="'+String(ll_x) +'" y="6" ' +& 'height="'+String(il_height)+'" width="'+String(il_width)+'" format="[general]" html.valueishtml="0" name='+ls_column+' visible="1" edit.limit=0 edit.case=any ' +& 'edit.autoselect=yes edit.imemode=0 font.face="Arial" font.height="-16" font.weight="400" font.family="2" ' +& 'font.pitch="2" font.charset="134" background.mode="0" background.color="553648127" )') //~tif (pd = '+string(ll_for)+',255,553648127) Next //vertical bar ll_x = 0 For ll_i = 1 To il_size ls_name = is_any_name[ll_i] ll_x = Long(dw_1.Describe(ls_name+".x")) ll_width = Long(dw_1.Describe(ls_name+".width")) ll_total_width = ll_total_width + ll_width ll_x = (ll_x+ll_width -3) - (il_width / 2) ll_y = (il_height / 2 ) //follow line dw_1.Modify('create line(band=detail x1="'+String(ll_x)+'" x2="'+String(ll_x)+'" '+& 'y1="0~tif(getrow() = 1,'+String(ll_y)+',0)" y2="'+String(ll_y)+'~tif(getrow() = '+String(il_size)+','+String(ll_y)+','+String(il_height)+')" name=l_1 visible="1" pen.style="0"' +& 'pen.width="4" pen.color="33554432" background.mode="2" background.color="1073741824")') Next ll_y = (il_height / 2) ll_x = (il_width / 2) + il_width + 5 ll_total_width = ll_total_width + ll_width + ll_width - ll_x +10 //horizontal line dw_1.Modify('create line(band=detail y1="'+String(ll_y)+'" y2="'+String(ll_y)+'" x1="'+String(ll_x)+'" x2="'+String(ll_total_width)+'" name=l_2 visible="1" pen.style="0"' +& 'pen.width="4" pen.color="33554432" background.mode="2" background.color="1073741824")') // Increase the serial number dw_1.Modify("create compute(band=Detail" + & " color='0' alignment='2' border='0'" + & " x='0' y='0' height='"+String(il_height)+"' width='"+String(il_width)+"'" + & " name=serial expression='getrow()' " + & " font.height='-12' font.face='Arial' background.mode='2' background.color='16777215')") ll_x = 0 For ll_i = 1 To il_size dw_1.Modify("create text(band=Header" + & " alignment='2' border='0'" + & " x='"+String(ll_x+il_width)+"' y='"+String(0)+"' height='"+String(il_height)+"' width='"+String(il_width)+"' text='"+String(ll_i)+"' name=t_serialnumber " + & " font.height='-12' font.face='Arial' background.mode='2' background.color='16777215')") ll_x = ll_x + il_width Next //Copy a copy of dw to store the weight algorithm dw_weight.Create(String(dw_1.Object.datawindow.Syntax), ls_err) dw_1.RowsCopy(1,dw_1.RowCount(),Primary!,dw_weight,1,Primary!) dw_1.SetRedraw(True) dw_1.Object.datawindow.Selected.Mouse = 'No' end subroutine public function boolean wf_where_column (string as_data);//==================================================================== // Function: w_gobang.wf_where_column() //-------------------------------------------------------------------- // Description: //-------------------------------------------------------------------- // Arguments: // string as_data //-------------------------------------------------------------------- // Returns: boolean //-------------------------------------------------------------------- // Author: PB.BaoGa Date: 2022/01/14 //-------------------------------------------------------------------- // Usage: w_gobang.wf_where_column ( string as_data ) //-------------------------------------------------------------------- // Copyright (c) PB.BaoGa(TM), All rights reserved. //-------------------------------------------------------------------- // Modify History: // //==================================================================== //Check if column exists Boolean lbl_bool = False Long ll_count,ll_i ll_count = Long(dw_1.Describe("DataWindow.Column.Count")) For ll_i = 1 To UpperBound(is_any_name) If as_data = is_any_name[ll_i] Then Return True Next Return False end function public subroutine wf_switch_st_scrolling ();//==================================================================== // Function: w_gobang.wf_switch_st_scrolling() //-------------------------------------------------------------------- // Description: //-------------------------------------------------------------------- // Arguments: //-------------------------------------------------------------------- // Returns: (none) //-------------------------------------------------------------------- // Author: PB.BaoGa Date: 2022/01/14 //-------------------------------------------------------------------- // Usage: w_gobang.wf_switch_st_scrolling ( ) //-------------------------------------------------------------------- // Copyright (c) PB.BaoGa(TM), All rights reserved. //-------------------------------------------------------------------- // Modify History: // //==================================================================== If il_First = 1 Then st_scrolling.BackColor = is_white_color st_scrolling.Text = 'White Pick' Else st_scrolling.BackColor = is_black_color st_scrolling.Text = 'Black Pick' End If end subroutine public subroutine wf_button_enabled (boolean as_bool);//==================================================================== // Function: w_gobang.wf_button_enabled() //-------------------------------------------------------------------- // Description: //-------------------------------------------------------------------- // Arguments: // boolean as_bool //-------------------------------------------------------------------- // Returns: (none) //-------------------------------------------------------------------- // Author: PB.BaoGa Date: 2022/01/14 //-------------------------------------------------------------------- // Usage: w_gobang.wf_button_enabled ( boolean as_bool ) //-------------------------------------------------------------------- // Copyright (c) PB.BaoGa(TM), All rights reserved. //-------------------------------------------------------------------- // Modify History: // //==================================================================== If as_bool Then cb_1.Enabled = False cb_3.Enabled = True cb_2.Enabled = True If Not rb_1.Checked Then rb_1.Enabled = False If Not rb_primary.Checked Then rb_primary.Enabled = False If Not rb_middlerank.Checked Then rb_middlerank.Enabled = False Else cb_1.Enabled = True cb_3.Enabled = False cb_2.Enabled = False rb_1.Enabled = True rb_primary.Enabled = True rb_middlerank.Enabled = True End If end subroutine public function integer wf_z_demo2 ();//==================================================================== // Function: w_gobang.wf_z_demo2() //-------------------------------------------------------------------- // Description: //-------------------------------------------------------------------- // Arguments: //-------------------------------------------------------------------- // Returns: integer //-------------------------------------------------------------------- // Author: PB.BaoGa Date: 2022/01/14 //-------------------------------------------------------------------- // Usage: w_gobang.wf_z_demo2 ( ) //-------------------------------------------------------------------- // Copyright (c) PB.BaoGa(TM), All rights reserved. //-------------------------------------------------------------------- // Modify History: // //==================================================================== //wf_z_evaluate Long ll_for,ll_j,ll_i,ll_num = 0 String ls_con,ls_con_two,ls_pieces = '' Long ll_number = 0,ll_max_number = 0 Long jmin,ll_value = 0,ll_value_tow = 0 String ls_con1,ls_con2,ls_con3,ls_con4,ls_con5,ls_con6,ls_con7,ls_con8 Long ll_x,ll_y,ll_x_two,ll_y_two Long ll_k,ll_max,ll_INF = 1000000 il_x = 0 il_y = 0 ll_max = -ll_INF For ll_i = 1 To il_size //Row For ll_j = 1 To il_size //vertical ls_con = dw_1.GetItemString(ll_i,ll_j) If IsNull(ls_con) Then ls_con = '' If ls_con = '' Then If ll_i -1 > 0 And ll_j+1 <= il_size Then ls_con1 = dw_1.GetItemString(ll_i -1,ll_j+1) If ll_i > 0 And ll_j+1 <= il_size Then ls_con2 = dw_1.GetItemString(ll_i,ll_j+1) If ll_i +1 <= il_size And ll_j+1 <= il_size Then ls_con3 = dw_1.GetItemString(ll_i+1,ll_j+1) If ll_i -1 > 0 And ll_j -1 > 0 Then ls_con4 = dw_1.GetItemString(ll_i -1,ll_j -1) If ll_i > 0 And ll_j -1 > 0 Then ls_con5 = dw_1.GetItemString(ll_i,ll_j -1) If ll_i +1 <= il_size And ll_j -1 > 0 Then ls_con6 = dw_1.GetItemString(ll_i +1,ll_j -1) If ll_i +1 <= il_size And ll_j > 0 Then ls_con7 = dw_1.GetItemString(ll_i +1,ll_j) If ll_i -1 > 0 And ll_j <= il_size Then ls_con8 = dw_1.GetItemString(ll_i -1,ll_j) If IsNull(ls_con1) Then ls_con1 = '' If IsNull(ls_con2) Then ls_con2 = '' If IsNull(ls_con3) Then ls_con3 = '' If IsNull(ls_con4) Then ls_con4 = '' If IsNull(ls_con5) Then ls_con5 = '' If IsNull(ls_con6) Then ls_con6 = '' If IsNull(ls_con7) Then ls_con7 = '' If IsNull(ls_con8) Then ls_con8 = '' If ls_con1 = '' And ls_con2 = '' And ls_con3 = '' And ls_con4 = '' And ls_con5 = '' And +& ls_con6 = '' And ls_con7 = '' And ls_con8 = '' Then Continue; Else dw_1.SetItem(ll_i,ll_j,'1') //Recursion + Pruning ll_k = wf_z_alphabeta(1, -ll_INF, ll_INF, 1); MessageBox("",ll_k) dw_1.SetItem(ll_i,ll_j,'') If ll_k > ll_max Then ll_max = ll_k il_x = ll_i il_y = ll_j End If End If End If Next Next dw_1.SetItem( il_x,il_y, '○') il_First = 2 Return 1 end function public function long wf_z_alphabeta (long player, long alpha, long beta, long depth);//==================================================================== // Function: w_gobang.wf_z_alphabeta() //-------------------------------------------------------------------- // Description: //-------------------------------------------------------------------- // Arguments: // long player // long alpha // long beta // long depth //-------------------------------------------------------------------- // Returns: long //-------------------------------------------------------------------- // Author: PB.BaoGa Date: 2022/01/14 //-------------------------------------------------------------------- // Usage: w_gobang.wf_z_alphabeta ( long player, long alpha, long beta, long depth ) //-------------------------------------------------------------------- // Copyright (c) PB.BaoGa(TM), All rights reserved. //-------------------------------------------------------------------- // Modify History: // //==================================================================== Long ll_j,ll_i String ls_con String ls_con1,ls_con2,ls_con3,ls_con4,ls_con5,ls_con6,ls_con7,ls_con8 Int ll_v If Depth = 2 Then Return wf_z_demo2_3('z') + wf_z_demo2_3('y') +wf_z_demo2_3('s')+ wf_z_demo2_3('x')+wf_z_demo2_3('zs')+ +& wf_z_demo2_3('zx')+wf_z_demo2_3('ys')+wf_z_demo2_3('yx') End If //mle_1.text =mle_1.text +'~r~n 333' + string(ll_i)+':'+string(ll_j) For ll_i = 1 To il_size //Row For ll_j = 1 To il_size //vertical ls_con = dw_1.GetItemString(ll_i,ll_j) If IsNull(ls_con) Then ls_con = '' If ls_con = '' Then If ll_i -1 > 0 And ll_j+1 <= il_size Then ls_con1 = dw_1.GetItemString(ll_i -1,ll_j+1) If ll_i > 0 And ll_j+1 <= il_size Then ls_con2 = dw_1.GetItemString(ll_i,ll_j+1) If ll_i +1 <= il_size And ll_j+1 <= il_size Then ls_con3 = dw_1.GetItemString(ll_i+1,ll_j+1) If ll_i -1 > 0 And ll_j -1 > 0 Then ls_con4 = dw_1.GetItemString(ll_i -1,ll_j -1) If ll_i > 0 And ll_j -1 > 0 Then ls_con5 = dw_1.GetItemString(ll_i,ll_j -1) If ll_i +1 <= il_size And ll_j -1 > 0 Then ls_con6 = dw_1.GetItemString(ll_i +1,ll_j -1) If ll_i +1 <= il_size And ll_j > 0 Then ls_con7 = dw_1.GetItemString(ll_i +1,ll_j) If ll_i -1 > 0 And ll_j <= il_size Then ls_con8 = dw_1.GetItemString(ll_i -1,ll_j) If IsNull(ls_con1) Then ls_con1 = '' If IsNull(ls_con2) Then ls_con2 = '' If IsNull(ls_con3) Then ls_con3 = '' If IsNull(ls_con4) Then ls_con4 = '' If IsNull(ls_con5) Then ls_con5 = '' If IsNull(ls_con6) Then ls_con6 = '' If IsNull(ls_con7) Then ls_con7 = '' If IsNull(ls_con8) Then ls_con8 = '' If ls_con1 = '' And ls_con2 = '' And ls_con3 = '' And ls_con4 = '' And ls_con5 = '' And +& ls_con6 = '' And ls_con7 = '' And ls_con8 = '' Then Continue; Else dw_1.SetItem(ll_i,ll_j,String(player)) ll_v = wf_z_alphabeta(player * -1, alpha, beta, Depth + 1); dw_1.SetItem(ll_i,ll_j,'') If player = -1 Then alpha = Max(alpha, ll_v); Else beta = Min(beta, ll_v); End If If (beta <= alpha) Then //Pruning here I want to draw a tree for analysis, I have been thinking about it for a long time If (player = -1) Then Return alpha; Else Return beta; End If End If End If End If Next Next If player = -1 Then Return alpha; End If Return beta end function public function integer wf_z_demo2_3 (string as_bs);//==================================================================== // Function: w_gobang.wf_z_demo2_3() //-------------------------------------------------------------------- // Description: //-------------------------------------------------------------------- // Arguments: // string as_bs //-------------------------------------------------------------------- // Returns: integer //-------------------------------------------------------------------- // Author: PB.BaoGa Date: 2022/01/14 //-------------------------------------------------------------------- // Usage: w_gobang.wf_z_demo2_3 ( string as_bs ) //-------------------------------------------------------------------- // Copyright (c) PB.BaoGa(TM), All rights reserved. //-------------------------------------------------------------------- // Modify History: // //==================================================================== //wf_weighting_algorithm Long ll_for,ll_num = 0,ll_j,ll_i String ls_con,ls_con_two,ls_pieces = '' Long ll_column,ll_row Long ll_number,ll_max_number = 0 String ls_qzcon,ls_color For ll_i = 1 To il_size //Row For ll_j = 1 To il_size //vertical ls_con = dw_1.GetItemString(ll_i,ll_j) If IsNull(ls_con) Then ls_con = '' If ls_con <> '' Then Continue; For ll_for = 1 To 5 //Row If as_bs = 'z' Then ll_row = ll_i ll_column = ll_j - ll_for If ll_column <= 0 Then Exit; ElseIf as_bs = 'y' Then ll_row = ll_i ll_column = ll_j + ll_for If ll_column > il_size Then Exit; ElseIf as_bs = 's' Then ll_row = ll_i - ll_for ll_column = ll_j If ll_row <= 0 Then Exit; ElseIf as_bs = 'x' Then ll_row = ll_i + ll_for ll_column = ll_j If ll_row > il_size Then Exit; ElseIf as_bs = 'zs' Then ll_row = ll_i - ll_for ll_column = ll_j - ll_for If ll_row <= 0 Then Exit; If ll_column <= 0 Then Exit; ElseIf as_bs = 'yx' Then ll_row = ll_i + ll_for ll_column = ll_j + ll_for If ll_row > il_size Then Exit; If ll_column > il_size Then Exit; ElseIf as_bs = 'ys' Then ll_row = ll_i - ll_for ll_column = ll_j + ll_for If ll_row <= 0 Then Exit; If ll_column > il_size Then Exit; ElseIf as_bs = 'zx' Then ll_row = ll_i + ll_for ll_column = ll_j - ll_for If ll_row > il_size Then Exit; If ll_column <= 0 Then Exit; End If ls_con_two = dw_1.GetItemString(ll_row,ll_column) If IsNull(ls_con_two) Then ls_con_two = '-1' If ls_color = ls_con_two Then Exit If ls_con_two = is_white Then ls_con_two = '1' ElseIf ls_con_two = is_black Then ls_con_two = '2' Else ls_con_two = '0' ls_color = '-1' End If ls_pieces = ls_pieces + ls_con_two Next //Weight table Choose Case ls_pieces Case '11110' ll_num = 11110 Case '1111' ll_num = 15000 Case '11112' ll_num = 16000 Case '1110' ll_num = 5000 Case '111' ll_num = 550 Case '1112' ll_num = 600 Case '110' ll_num = 500 Case '11' ll_num = 200 Case '112' ll_num = 220 Case '10' ll_num = 100 Case '12' ll_num = 40 Case '1' ll_num = 25 Case '22220' ll_num = 20000 Case '2222' ll_num = 17000 Case '22221' ll_num = 18000 Case '2220' ll_num = 10000 Case '2221' ll_num = 650 Case '222' ll_num = 600 Case '220' ll_num = 400 Case '221' ll_num = 270 Case '22' ll_num = 250 Case '20' ll_num = 200 Case '21' ll_num = 120 Case '2' ll_num = 40 Case '1' ll_num = 3 Case Else ll_num = 0 End Choose ll_number = Long(dw_weight.GetItemString(ll_i,ll_j)) il_num_new = il_num_new + ll_num ls_pieces = '' ll_num = 0 ls_color = '' Next Next Return il_num_new end function on w_gobang.create this.mle_1=create mle_1 this.cb_5=create cb_5 this.cb_4=create cb_4 this.cb_3=create cb_3 this.st_scrolling=create st_scrolling this.rb_middlerank=create rb_middlerank this.rb_primary=create rb_primary this.rb_1=create rb_1 this.dw_weight=create dw_weight this.cb_2=create cb_2 this.dw_coordinates=create dw_coordinates this.sle_1=create sle_1 this.cb_1=create cb_1 this.st_1=create st_1 this.dw_1=create dw_1 this.Control[]={this.mle_1,& this.cb_5,& this.cb_4,& this.cb_3,& this.st_scrolling,& this.rb_middlerank,& this.rb_primary,& this.rb_1,& this.dw_weight,& this.cb_2,& this.dw_coordinates,& this.sle_1,& this.cb_1,& this.st_1,& this.dw_1} end on on w_gobang.destroy destroy(this.mle_1) destroy(this.cb_5) destroy(this.cb_4) destroy(this.cb_3) destroy(this.st_scrolling) destroy(this.rb_middlerank) destroy(this.rb_primary) destroy(this.rb_1) destroy(this.dw_weight) destroy(this.cb_2) destroy(this.dw_coordinates) destroy(this.sle_1) destroy(this.cb_1) destroy(this.st_1) destroy(this.dw_1) end on event open;//cb_1.triggerevent(clicked!) st_scrolling.Text = 'Please Start Game!' //wf_draw_checkerboard() wf_button_enabled(False) end event event timer;st_scrolling.TextColor = RGB(200,Integer(Right(String(Now(),'hhmmssf'),1))*200/10,0) end event type mle_1 from multilineedit within w_gobang integer x = 2638 integer y = 76 integer width = 1285 integer height = 488 integer taborder = 10 integer textsize = -12 integer weight = 400 fontcharset fontcharset = ansi! fontpitch fontpitch = variable! fontfamily fontfamily = swiss! string facename = "Tahoma" long textcolor = 33554432 boolean hscrollbar = true boolean vscrollbar = true borderstyle borderstyle = stylelowered! end type type cb_5 from commandbutton within w_gobang boolean visible = false integer x = 165 integer y = 1400 integer width = 503 integer height = 112 integer taborder = 20 integer textsize = -12 integer weight = 400 fontcharset fontcharset = gb2312charset! fontpitch fontpitch = variable! string facename = "Arial" string text = "none" end type event clicked;boolean lbl_bool = false do while not lbl_bool if il_First = 2 then rb_primary.checked = true wf_computer() dw_1.setitem(il_x,il_y,is_black) lbl_bool = wf_estimate_fiveeven(il_x,il_y,is_black) il_First = 1 else rb_middlerank.checked = true wf_computer() dw_1.setitem(il_x,il_y,is_white) lbl_bool = wf_estimate_fiveeven(il_x,il_y,is_white) il_First = 2 end if LOOP messagebox("",il_First) end event type cb_4 from commandbutton within w_gobang boolean visible = false integer x = 146 integer y = 1556 integer width = 503 integer height = 112 integer taborder = 20 integer textsize = -12 integer weight = 400 fontcharset fontcharset = gb2312charset! fontpitch fontpitch = variable! string facename = "Arial" string text = "none" end type event clicked;wf_z_demo2() end event type cb_3 from commandbutton within w_gobang integer x = 64 integer y = 816 integer width = 430 integer height = 128 integer taborder = 30 integer textsize = -12 integer weight = 400 fontcharset fontcharset = ansi! fontpitch fontpitch = variable! fontfamily fontfamily = swiss! string facename = "Tahoma" string text = "Surrender" end type event clicked;String ls_text ilb_start = False If il_First = 1 Then ls_text = 'White Surrender' Else ls_text = 'Black Surrender' End If If Not IsValid(tip) Then tip = Create uo_tip End If st_scrolling.Text = ls_text tip.st_1.Text = ls_text OpenUserObject(tip,(dw_1.Width / 2) - (tip.Width / 2) + dw_1.X,(dw_1.Height / 2) - (tip.Height / 2) + dw_1.Y) wf_button_enabled(False) end event type st_scrolling from statictext within w_gobang integer x = 713 integer y = 28 integer width = 1655 integer height = 140 integer textsize = -18 integer weight = 400 fontcharset fontcharset = ansi! fontpitch fontpitch = variable! fontfamily fontfamily = swiss! string facename = "Tahoma" long textcolor = 255 long backcolor = 0 alignment alignment = center! boolean focusrectangle = false end type type rb_middlerank from radiobutton within w_gobang boolean visible = false integer x = 64 integer y = 436 integer width = 590 integer height = 92 integer textsize = -12 integer weight = 400 fontcharset fontcharset = gb2312charset! fontpitch fontpitch = variable! string facename = "Arial" long textcolor = 33554432 long backcolor = 16777215 string text = "human and machine" end type type rb_primary from radiobutton within w_gobang integer x = 59 integer y = 316 integer width = 590 integer height = 92 integer textsize = -12 integer weight = 400 fontcharset fontcharset = ansi! fontpitch fontpitch = variable! fontfamily fontfamily = swiss! string facename = "Tahoma" long textcolor = 33554432 long backcolor = 16777215 string text = "Play Machine" end type type rb_1 from radiobutton within w_gobang integer x = 59 integer y = 188 integer width = 590 integer height = 92 integer textsize = -12 integer weight = 400 fontcharset fontcharset = ansi! fontpitch fontpitch = variable! fontfamily fontfamily = swiss! string facename = "Tahoma" long textcolor = 33554432 long backcolor = 16777215 string text = "Play People" boolean checked = true end type type dw_weight from datawindow within w_gobang integer x = 2638 integer y = 792 integer width = 2272 integer height = 1632 integer taborder = 40 boolean titlebar = true string title = "none" boolean controlmenu = true boolean border = false boolean livescroll = true end type type cb_2 from commandbutton within w_gobang integer x = 64 integer y = 992 integer width = 430 integer height = 128 integer taborder = 10 integer textsize = -12 integer weight = 400 fontcharset fontcharset = ansi! fontpitch fontpitch = variable! fontfamily fontfamily = swiss! string facename = "Tahoma" string text = "Back" end type event clicked;//==================================================================== // Event: w_gobang.Properties - cb_2 inherited from commandbutton() //-------------------------------------------------------------------- // Description: //-------------------------------------------------------------------- // Arguments: //-------------------------------------------------------------------- // Returns: (none) //-------------------------------------------------------------------- // Author: PB.BaoGa Date: 2022/01/14 //-------------------------------------------------------------------- // Usage: w_gobang. //-------------------------------------------------------------------- // Copyright (c) PB.BaoGa(TM), All rights reserved. //-------------------------------------------------------------------- // Modify History: // //==================================================================== //regret Long ll_rowcount Long ll_row,ll_column,ll_First ll_rowcount = dw_coordinates.RowCount() If ll_rowcount > 0 Then ll_row = dw_coordinates.Object.a[ll_rowcount] ll_column = dw_coordinates.Object.b[ll_rowcount] ll_First = dw_coordinates.Object.c[ll_rowcount] dw_1.SetItem(ll_row,ll_column,'') il_First = ll_First dw_coordinates.DeleteRow(ll_rowcount) End If wf_switch_st_scrolling() end event type dw_coordinates from datawindow within w_gobang boolean visible = false integer x = 2423 integer y = 1764 integer width = 1417 integer height = 612 integer taborder = 30 string title = "none" string dataobject = "d_coordinates" boolean livescroll = true borderstyle borderstyle = stylelowered! end type type sle_1 from singlelineedit within w_gobang integer x = 375 integer y = 52 integer width = 229 integer height = 96 integer taborder = 30 integer textsize = -12 integer weight = 400 fontcharset fontcharset = ansi! fontpitch fontpitch = variable! fontfamily fontfamily = swiss! string facename = "Tahoma" long textcolor = 33554432 boolean enabled = false string text = "15" end type type cb_1 from commandbutton within w_gobang integer x = 64 integer y = 584 integer width = 430 integer height = 128 integer taborder = 20 integer textsize = -12 integer weight = 400 fontcharset fontcharset = ansi! fontpitch fontpitch = variable! fontfamily fontfamily = swiss! string facename = "Tahoma" string text = "Start Game" end type event clicked;Long ll_count,ll_i String ls_visible,ls_name,ls_msg,ls_column Long ll_x,ll_y,ll_width,ll_height,ll_total_width = 0 Long ll_for Long ll_insertrow String ls_syntax,ls_err = '' //initial dw_1.Reset() dw_coordinates.Reset() ilb_start = True il_First = 2 il_x = 0 il_y = 0 il_num_new = 0 is_any_name = is_any_null il_size = Long(sle_1.Text) Parent.CloseUserObject(tip) tip = Create uo_tip wf_switch_st_scrolling() wf_draw_checkerboard() wf_button_enabled(True) Timer(0.5) end event type st_1 from statictext within w_gobang integer x = 59 integer y = 52 integer width = 283 integer height = 100 integer textsize = -12 integer weight = 400 fontcharset fontcharset = ansi! fontpitch fontpitch = variable! fontfamily fontfamily = swiss! string facename = "Tahoma" long textcolor = 33554432 string text = "Size:" alignment alignment = right! boolean focusrectangle = false end type type dw_1 from datawindow within w_gobang integer x = 713 integer y = 188 integer width = 1655 integer height = 1444 integer taborder = 20 string title = "none" boolean livescroll = true end type event clicked;String ls_data Boolean lbl_bool String ls_text = '' Long ll_insertrow,ll_for = 0 Long ll_column = 0,ll_row = 0 If Not ilb_start Then Return This.AcceptText( ) If il_First = 1 And rb_1.Checked = False Then //Man-machine white chess wf_computer() ll_row = il_x ll_column = il_y Else ll_column = wf_retrun_column(dwo.Name) ll_row = row End If If ll_column > 0 And ll_row > 0 Then ls_data = This.GetItemString(ll_row,ll_column) If IsNull(ls_data) Then ls_data = '' If ls_data <> is_white And ls_data <> is_black Then //record chess points ll_insertrow = dw_coordinates.InsertRow(0) dw_coordinates.Object.a[ll_insertrow] = ll_row dw_coordinates.Object.b[ll_insertrow] = ll_column dw_coordinates.Object.c[ll_insertrow] = il_First //Show red dot For ll_for = 1 To dw_1.RowCount() dw_1.Object.pd[ll_for] = 0 Next dw_1.SetItem(ll_row,'pd',ll_column) If il_First = 1 Then ls_text = 'White wins' This.SetItem(ll_row,ll_column,is_white) lbl_bool = wf_estimate_fiveeven(ll_row,ll_column,is_white) il_First = 2 Else ls_text = 'Black wins' This.SetItem(ll_row,ll_column,is_black) lbl_bool = wf_estimate_fiveeven(ll_row,ll_column,is_black) il_First = 1 End If //Finish If lbl_bool Then tip.st_1.Text = ls_text st_scrolling.Text = ls_text OpenUserObject(tip,(dw_1.Width / 2) - (tip.Width / 2) + dw_1.X,(dw_1.Height / 2) - (tip.Height / 2) + dw_1.Y) wf_button_enabled(False) ilb_start = False Return End If wf_switch_st_scrolling() If il_First = 1 And rb_1.Checked = False Then This.Event Clicked(1,1,1, dw_1.Object.a_1) End If End Ifhttps://pblib.com/wp-admin/post.php?post=2664&action=edit# End If end event |
datawindow d_coordinates
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
release 10.5; datawindow(units=0 timer_interval=0 color=1073741824 processing=1 HTMLDW=no print.printername="" print.documentname="" print.orientation = 0 print.margin.left = 110 print.margin.right = 110 print.margin.top = 96 print.margin.bottom = 96 print.paper.source = 0 print.paper.size = 0 print.canusedefaultprinter=yes print.prompt=no print.buttons=no print.preview.buttons=no print.cliptext=no print.overrideprintjob=no print.collate=yes print.preview.outline=yes hidegrayline=no grid.lines=0 ) header(height=92 color="536870912" ) summary(height=0 color="536870912" ) footer(height=0 color="536870912" ) detail(height=124 color="536870912" ) table(column=(type=long updatewhereclause=yes name=a dbname="a" ) column=(type=long updatewhereclause=yes name=b dbname="b" ) column=(type=long updatewhereclause=yes name=c dbname="c" ) ) text(band=header alignment="2" text="A" border="0" color="33554432" x="9" y="8" height="76" width="261" html.valueishtml="0" name=a_t visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="B" border="0" color="33554432" x="279" y="8" height="76" width="261" html.valueishtml="0" name=b_t visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="C" border="0" color="33554432" x="549" y="8" height="76" width="265" html.valueishtml="0" name=c_t visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=2 alignment="1" tabsequence=20 border="0" color="33554432~tif (c= 2 ,255,0)" x="279" y="8" height="84" width="261" format="[general]" html.valueishtml="0" name=b visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=3 alignment="1" tabsequence=30 border="0" color="33554432" x="549" y="8" height="84" width="265" format="[general]" html.valueishtml="0" name=c visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=1 alignment="0" tabsequence=10 border="0" color="33554432" x="9" y="8" height="84" width="261" format="[general]" html.valueishtml="0" name=a visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="0" background.color="553648127~tif (c[-1] = c,255,16777215)" ) text(band=detail alignment="0" text="qweqe" border="0" color="33554432" x="923" y="36" height="76" width="119" html.valueishtml="0" name=t_1 visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" ) htmltable(border="1" ) htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" pagingmethod=0 generatedddwframes="1" ) xhtmlgen() cssgen(sessionspecific="0" ) xmlgen(inline="0" ) xsltgen() jsgen() export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 ) import.xml() export.pdf(method=0 distill.custompostscript="0" xslfop.print="0" ) export.xhtml() |
Find Projects On Github click here
Get From Internet
Good Luck!
Subscribe
Login
0 Comments
Oldest