![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-10-31 06:33 |
47,815 topics / 349,930 posts / today 0 new / 48,290 members |
| DOS批处理 & 脚本技术(批处理室) » DouDiZhu script, under development... Mouse test version updated [2010-4-23] |
| Printable Version 6,961 / 45 |
| Floor16 sl543001 | Posted 2010-03-06 16:34 |
| 中级用户 Posts 225 Credits 499 | |
|
The new version of sybc 1.1.21 has supported the choice function. The new version of Dou Di Zhu (Landlord) synchronously supports using sybc for direction key control. The latest screenshots have been updated on the first floor.
|
|
| Floor17 baohusan | Posted 2010-03-07 09:43 |
| 新手上路 Posts 10 Credits 19 | |
|
Not bad, heh heh.
If it succeeds, I must take a look. |
|
| Floor18 chenall | Posted 2010-03-07 21:26 |
| 银牌会员 Posts 469 Credits 1,276 From 福建泉州 | |
|
Is there any one released to try? It feels so powerful.
|
|
| Floor19 sl543001 | Posted 2010-03-08 11:07 |
| 中级用户 Posts 225 Credits 499 | |
|
Currently there is only a front - end interface, and it can't play cards at all!
But if you need the current version for research, Join the group: 3401238 and ask me for it! |
|
| Floor20 BWSkyer | Posted 2010-03-08 11:42 |
| 中级用户 Posts 180 Credits 367 From 重庆 | |
|
So powerful, spiritual support~~
|
|
| Floor21 sl543001 | Posted 2010-03-10 13:35 |
| 中级用户 Posts 225 Credits 499 | |
|
I'm currently writing the front-end code for playing cards, and it doesn't verify if it's against the rules at the moment, and the computer won't play cards for the time being!
|
|
| Floor22 sl543001 | Posted 2010-03-13 20:44 |
| 中级用户 Posts 225 Credits 499 | |
|
Embedded card pattern detection, when a player plays a card, they will get a prompt:
If the card play conforms to the rules, it will prompt the card set it is in. [For example, the screenshot prompts 3 sevens with a pair of 4] If the card play does not conform to the rules, it will prompt "illegal!" Attachments ddz59.GIF (19.1 KiB) |
|
| Floor23 HAT | Posted 2010-03-14 12:34 |
| 版主 Posts 5,017 Credits 9,023 | |
|
What is the conversion relationship between centiseconds and seconds?
|
|
| Floor24 sl543001 | Posted 2010-03-14 17:48 |
| 中级用户 Posts 225 Credits 499 | |
| Floor25 sl543001 | Posted 2010-03-14 17:53 |
| 中级用户 Posts 225 Credits 499 | |
|
Informal Release Dou Di Zhu (Landlord) No AI Test Version
Currently, it can be barely taken out for viewing, but there are still many things that need to be improved and modified. Any opinions and suggestions are welcome to post a reply or join the QQ group: 3401238 |
|
| Floor26 sl543001 | Posted 2010-03-16 17:30 |
| 中级用户 Posts 225 Credits 499 | |
|
Compressed part of the code, sacrificed readability, improved a little speed!
|
|
| Floor27 sl543001 | Posted 2010-03-20 14:36 |
| 中级用户 Posts 225 Credits 499 | |
|
Found a new collaborator PLP. This is in the plan to organize and rewrite the code
|
|
| Floor28 sl543001 | Posted 2010-03-20 15:13 |
| 中级用户 Posts 225 Credits 499 | |
|
```batch
@echo off&SETLOCAL ENABLEDELAYEDEXPANSION&(CHCP 437 &GRAFTABL 936)>NUL :: Variable initialization :: The cards for players 1-3 are uniformly used with P1XXX-p3XXX variables, P4XXX is reserved. The cards played by players are uniformly used with P5XXX-P6XXX, P7XXX is reserved, and P0XXX is for temporary needs. :: Variables related to poker cards are uniformly used with PKXXX :: PKSXX represents the corresponding values of each point card and character: pks11=J, pks12=Q :: PKHX represents the corresponding values of each suit number and character: pkh1= (heart), pkh0=T (king) :: PKYX represents the corresponding values of each color number and character: Poker has only 2 colors, red and black. pky0=c (red), pky1=0 (black) (same as the color command) set a=s1=A;s2=2;s3=3;s4=4;s5=5;s6=6;s7=7;s8=8;s9=9;s10=0;s11=J;s12=Q;s13=K;s14=A;s15=2;s16=N;s17=N;h1=;h2=;h3=;h4=;h0=T;y0=c;y1=0;BK=$7f;BK2=$f7;BK3=$37;BK4=$73;NB=$f1;p=1 set pk%a:;=&set pk% :: Load/generate sybc variable SYBCOM saves the hexadecimal data of SYBC, V saves DEBUG code, and finally is executed by DEBUG through the pipe SET SYBCOM=A100;80BE AC00 23C 5472 3CAC 7501 BE13 282;0EEB 3CAC 743A 3C09 740D 8347 1EE 46EB;E8AC 90 A2E8 3C00 7F18 8837 E8C6 84;96E8 3C00 7F4F 882B B0C2 F602 50E2 A0B0;E6F6 15F 57C7 3CAC 7424 E80A 67 45E8;8800 EBD1 E817 3B D188 10EB B0 16CD;E088 4CB4 21CD 815F A0C7 5700 B850 B800;0750 295A 88F5 ACCA 243C D974 3B3C 9274;0D3C DE74 233C 575 D783 EB01 AA01 D088;EBAA E8E4 1E C387 393C 27E 904 FB80;7E39 8003 9C3 F24 E380 B20F F610 E2;88D8 C3C2 3CAC 7420 3CFB 740D 88A5 ACC3;203C F074 D3C 9A74 87C3 2CC3 8030 30EB;0AB4 E4F6 D800 C3 SET V=;RCX;D7;N SYBC.COM;W;Q if not exist sybc.com (ECHO.%SYBCOM:;=&ECHO.DW %&ECHO.%V:;=&ECHO.%)|DEBUG>NUL :: Save the coordinates of the refresh block, the middle part of the game interface (the position to play cards). Each time partial refresh is needed, the variable DEBUGQK saves the start and end addresses of the memory to be refreshed set DEBUGQK=1F8 267;298 307;338 3a7;3D8 447;478 4e7;518 587;5B8 627;658 6c7;6F8 767;798 807;838 8a7;8D8 947;978 9e7;A18 a87;AB8 b27 :: Initial information color 3e echo Dou Di Zhu {Comment Version} 2010-3-20 echo. echo Currently there is no AI, the computer will not play cards. You can play cards randomly, and the cards will be dealt automatically after playing. echo. echo Currently available keys and their functions: echo F2 Re-deal cards F5 Refresh echo Arrow keys Control poker Space Play card echo. echo Press any key to start... sybc :2 :: Call the deal card module call :FP :1 :: Variable CBXX is uniformly used for color background information set cB0=$f cls :: Timing 1 set t1=%time% :: Display the top bar sybc 10000%cB0%0 :::│%cB0%c Score%cB0%9 Left computer %cB0%00 %cB0%2+0%cB0%c=%cB0%00 %cB0%0│%cB0%c Dou Di Zhu V0.0 %cB0%0│%cB0%0 %cB0%0│ Bottom cards │::: sybc 10100%cB0%0 ::│%cB0%c Points%cB0%9 Right computer %cB0%00 %cB0%2+0%cB0%c=%cB0%00 %cB0%0│%cB0%9Developed: SYBN netbenton plp %cB0%0│%cB0%9 Left computer %cB0%0│ │:: sybc 10200%cB0%0 :│%cB0%c Ranking%cB0%9 Player SYBN %cB0%00 %cB0%2+0%cB0%c=%cB0%00 %cB0%0│%cB0%22010-3-20 Press F1 to view help%cB0%0│%cB0%d Call score 3 points %cB0%0│ │: sybc 10168%cB0%%pdi1y%%pdi1s% %cB0%%pdi2y%%pdi2s% %cB0%%pdi3y%%pdi3s%;%cB0%%pdi1y%%pdi1h% %cB0%%pdi2y%%pdi2h% %cB0%%pdi3y%%pdi3h% :: Display the back of the computer's cards call :pb 10701 call :pb 10769 :: Display the name boxes of 3 people sybc 10300$4c☉$4c▄▄▄▄$4c☉;$c4▌$c9 Left computer $4c▌;$c4▌$ce Remaining cards 11 pieces $4c▌;$4c☉$c4▄▄▄▄$4c☉ sybc 10368$4c☉$4c▄▄▄▄$4c☉;$c4▌$c9 Right computer $4c▌;$c4▌$ce Remaining cards 7 pieces $4c▌;$4c☉$c4▄▄▄▄$4c☉ sybc 11400$4c☉$4c▄▄▄▄$4c☉;$c4▌$c9 Player SYBN$4c▌;$c4▌$ce Remaining cards 17 pieces $4c▌;$4c☉$c4▄▄▄▄$4c☉ :: P11 displays the player's cards call :p11 :: Timing 2 set t2=%time% :: Calculate the time difference and display call :timec :GB title Please choose the cards you want to play... :: Initialize the card selection pointer, variable GBy is the original pointer position set /a GBy=12212,GBs=1 :GB1 :: Locate the card selection pointer, variable GBW is the new pointer position set /a GBW=12209+GBs*3 :: Display the card selection pointer and erase the original pointer sybc %GBy%f1 ;:%GBw%f1↑ :: The SYBC function without parameters is similar to CHOICE, pauses the script and gets a key sybc :: Next line, display the pressed key ::title sybc-%errorlevel%- :: Perform corresponding operations according to different keys :: Left and right arrows move the cursor if %errorlevel% == 75 set /a GBs-=1 if %errorlevel% == 77 set /a GBs+=1 :: Up and down arrows raise/lower the poker and refresh the player's cards if %errorlevel% == 72 set /a p2w%GBs%=1&&call :p11 1 %GBs% if %errorlevel% == 80 set /a p2w%GBs%=0&&call :p11 0 %GBs% :: Space bar Play card if %errorlevel% == 57 goto chupai :: F2 Re-deal cards if %errorlevel% == 60 goto 2 :: F5 Refresh if %errorlevel% == 63 goto 1 :: If the pointer exceeds the high and low limits, restore if %GBs% lss 1 set gbs=%p2z% if %GBs% gtr %p2z% set gbs=1 :: Save the original pointer for erasing set /a GBy=GBw goto :GB1 ``` |
|
| Floor29 doslike | Posted 2010-03-21 12:30 |
| 版主 Posts 285 Credits 326 From 黑龙江省 | |
|
Why don't you use my suggestion?
|
|
| Floor30 sl543001 | Posted 2010-03-24 12:37 |
| 中级用户 Posts 225 Credits 499 | |
|
The F1 help has been adopted. It's just that I can't write about Dou Di Zhu (Chinese poker game) for the time being because there's no AI, and I've rewritten other games! In the new game, F1 is already the help!
http://www.cn-dos.net/forum/viewthread.php?tid=50583&fpage=1 |
|
| Prev 1 2 3 4 Next |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |