中国DOS联盟论坛

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-09-14 23:57
47,812 topics / 349,917 posts / today 0 new / 48,268 members
DOS批处理 & 脚本技术(批处理室) » DouDiZhu script, under development... Mouse test version updated [2010-4-23]
Printable Version  6,361 / 45
Floor1 sl543001 Posted 2010-02-24 20:06
中级用户 Posts 225 Credits 499
Dou地主 script, under development... (Now continue to recruit cooperative developers group: 3401238)
Cooperative development members: sybn (sl543001), netbenton PLP
Current progress:
The game interface is basically completed, and will be further optimized later.
The card dealing and card selection functions are basically usable.
The card playing and card type detection are being improved.
Switch to the latest version of SYBC 1.1.31 and use the DEBUG memory call method.
The game speed is greatly improved, and the screen refresh time is almost halved
SYBC 1.1.41 newly added mouse support, but it is not perfect
In testing, the mouse can be used to control card playing, but we do not support non-3 parties

Next, write the computer AI.

Currently an unofficial release test version, the code is on floor 25.
There is a test version supporting the mouse on floor 41
Latest version screenshot

Card type detection discussion post:
http://www.cn-dos.net/forum/viewthread.php?tid=50466&fpage=1
Card back pattern discussion post:
http://www.cn-dos.net/forum/viewthread.php?tid=50415&fpage=1
sybc update discussion post:
http://www.cn-dos.net/forum/viewthread.php?tid=50370&fpage=1

[ Last edited by sl543001 on 2010-4-25 at 18:16 ]

Attachments
sybc参数详解.gif (17.45 KiB)
ddz61.GIF (24.41 KiB)
Floor2 doslike Posted 2010-02-26 12:59
版主 Posts 285 Credits 326 From 黑龙江省
I can give you some help.
It can be done with wbat or tx in the Chinese system.
That 2010 can be deleted. Because it doesn't play any role. Other words can be used to replace 2010.
The sketch design is a bit small. Adjust it with mode
Floor3 doslike Posted 2010-02-26 13:00
版主 Posts 285 Credits 326 From 黑龙江省
ESC can be replaced with F1. ESC is used to close the game (in wbat, closing is done with ESC)
Floor4 doslike Posted 2010-02-26 13:02
版主 Posts 285 Credits 326 From 黑龙江省
The module for man-machine combat is a bit difficult.
Floor5 sl543001 Posted 2010-02-26 14:21
中级用户 Posts 225 Credits 499
It is expected to use a 16-color character interface, so the maximum is 25*80@16, so the interface cannot be enlarged anymore!
2010 is the back of the card, and it is expected to provide multiple back of the cards. Players can choose the one that looks pleasing to use by themselves.
Similarly, the words "Dou Di Zhu" on the card face can also be modified by players.
It would be even better if a concise and efficient mouse program can be found.
Floor6 sl543001 Posted 2010-02-26 15:53
中级用户 Posts 225 Credits 499
Post some intermediate data, not sure if anyone can understand:
      ┏━ ━━ ━┓ ┏━ ┳━ ━━ ┳━ ━━ ━┓ ┏━ ━━ ━┓ ┏━ ━━ ━┓       ┏━ ━━ ━┓             
┏━ ┳━ ┫  ┏━ ┳┻ ┫  ┃  ┏━ ┫  ┏━ ┳┻ ┫      ┃ ┃  ┏━ ┳┻ ━━ ━┓ ┃  ┏━ ━┻ ━┓   
┃  ┃  ┃  ┃  ┃  ┃  ┃  ┃  ┃  ┃  ┃  ┃      ┃ ┃  ┃  ┃      ┃ ┃  ┃      ┃   
┃  ┃  ┃  ┃  ┃  ┃  ┃  ┃  ┃  ┃  ┃  ┃      ┃ ┃  ┃  ┃      ┃ ┃  ┃      ┃
┃  ┃  ┗━ ┫  ┃  ┗━ ┻┳ ┫  ┗━ ┫  ┃  ┗━ ━┳ ━┛ ┗━ ┫  ┃      ┃ ┗━ ┫      ┃
┗━ ┻━ ━━ ┻━ ┻━ ━━ ━┛ ┗━ ━━ ┻━ ┻━ ━━ ━┛       ┗━ ┻━ ━━ ━┛    ┗━ ━━ ━┛
001 111 112 121 211 112 122 221 212 121 211 112 122 222 002 021 122 110 100 002 021 210 100


      ┏ ━━ ━━ ┓┏ ━┳ ━━ ━┳ ━━ ━━ ┓┏ ━━ ━━ ┓ ┏ ━━ ━━ ┓            
┏ ━┳ ━┫  ┏ ━┳ ┻┫  ┃  ┏ ━┫  ┏ ━┳ ┻┫       ┃ ┃  ┏ ━┳ ┻━ ━━ ┓   
┃  ┃  ┃  ┃  ┃  ┃  ┃  ┃  ┃  ┃  ┃  ┃       ┃ ┃  ┃  ┃       ┃   
┃  ┃  ┃  ┃  ┃  ┃  ┃  ┃  ┃  ┃  ┃  ┃       ┃ ┃  ┃  ┃       ┃
┃  ┃  ┗ ━┫  ┃  ┗ ━┻ ┳┫  ┗ ━┫  ┃  ┗ ━━ ┳━ ┛ ┗ ━┫  ┃       ┃
┗ ━┻ ━━ ━┻ ━┻ ━━ ━━ ┛┗ ━━ ━┻ ━┻ ━━ ━━ ┛       ┗ ━┻ ━━ ━━ ┛
001 111 112 121 211 112 122 221 212 121 211 112 122 222 002  121 122 111 111


A9A5 A9A7 A9B3 A9B7 A9BB A9BF A9C7 A9CF A9D7 A9DF A9EF
━ ┃ ┏ ┓ ┗ ┛ ┣ ┫ ┳ ┻ ╋


╳A9 ━A5┃A7┏B3┓B7┗BB┛BF┣C7┫CF┳D7┻DF╋EF
  ╳ □ □ □ □ □ □ □ □ □ □ □╳
━A5□━A5╋EF┳D7┳D7┻DF┻DF╋EF╋EF┳D7┻DF╋EF□
┃A7□╋EF┃A7┣C7┫CF┣C7┫CF┣C7┫CF╋EF╋EF╋EF□
┏B3□┳D7┣C7┏B3┣C7┣C7╋EF┣C7╋EF┳D7╋EF╋EF□
┓B7□┳D7┫CF┳D7┓B7╋EF┫CF╋EF┫CF┳D7╋EF╋EF□
┗BB□┻DF┣C7┣C7╋EF┗BB┻DF┣C7╋EF╋EF┻DF╋EF□
┛BF□┻DF┫CF╋EF┫CF┻DF┛BF╋EF┫CF╋EF┻DF╋EF□
┣C7□╋EF┣C7┣C7╋EF┣C7╋EF┣C7╋EF╋EF╋EF╋EF□
┫CF□╋EF┫CF╋EF┫CF╋EF┫CF╋EF┫CF╋EF╋EF╋EF□
┳D7□┳D7╋EF┳D7┳D7╋EF╋EF╋EF╋EF┳D7╋EF╋EF□
┻DF□┻DF╋EF╋EF╋EF┻DF┻DF╋EF╋EF╋EF┻DF╋EF□
╋EF□╋EF╋EF╋EF╋EF╋EF╋EF╋EF╋EF╋EF╋EF╋EF□
  ╳ □ □ □ □ □ □ □ □ □ □ □╋

╳A9 ━A5┃A7┏B3┓B7┗BB┛BF┣C7┫CF┳D7┻DF╋EF
  ╳ □ □ □ □ □ □ □ □ □ □ □╋
┏B3□┳D7┣C7┏B3┣C7┣C7╋EF┣C7╋EF┳D7╋EF╋EF□
┓B7□┳D7┫CF┳D7┓B7╋EF┫CF╋EF┫CF┳D7╋EF╋EF□
┗BB□┻DF┣C7┣C7╋EF┗BB┻DF┣C7╋EF╋EF┻DF╋EF□
┛BF□┻DF┫CF╋EF┫CF┻DF┛BF╋EF┫CF╋EF┻DF╋EF□
┣C7□┣C7┃A7┣C7┃A7┣C7┃A7┣C7┃A7┣C7┣C7┣C7□
┫CF□┫CF┃A7┃A7┫CF┃A7┫CF┃A7┫CF┫CF┫CF┫CF□
┳D7□━A5┳D7┳D7┳D7━A5━A5┳D7┳D7┳D7━A5┳D7□
┻DF□━A5┻DF━A5━A5┻DF┻DF┻DF┻DF━A5┻DF┻DF□
  ╳ □ □ □ □ □ □ □ □ □ □ □╋


[ Last edited by sl543001 on 2010-2-26 at 16:11 ]
Floor7 HAT Posted 2010-02-26 18:30
版主 Posts 5,017 Credits 9,023
What functions should a "compact and efficient mouse program" have?
Floor8 sl543001 Posted 2010-02-26 21:25
中级用户 Posts 225 Credits 499
Multi-functional, small-sized, preferably less than 1K
Floor9 HAT Posted 2010-02-27 01:22
版主 Posts 5,017 Credits 9,023
Is there anything here that can meet the functional requirements?
http://bbs.bathome.net/thread-3148-1-1.html
Floor10 sl543001 Posted 2010-02-28 13:30
中级用户 Posts 225 Credits 499
What the person above provided is indeed good stuff. It would be even better if there were source codes! Currently, I'm developing the necessary third-party tools in assembly for games. Using DEBUG to try to embed all into the script as much as possible. Strive to make it green and a single file, without generating any historical files. So those third-party tools that are relatively large, tens of KB compared to the tens of bytes of assembly, are still...
Floor11 sl543001 Posted 2010-03-01 11:32
中级用户 Posts 225 Credits 499
Part of the content in the draft has been implemented through my own latest version of sybc:
http://www.cn-dos.net/forum/viewthread.php?tid=50370&fpage=1
Floor12 sl543001 Posted 2010-03-01 14:47
中级用户 Posts 225 Credits 499
The latest game screenshots are posted on the top floor. Each card drawing takes only 0.01 seconds!
The command to draw a poker has been compressed to 1 line:
sybc 10000f1┏━━━━┓;:┃╳╳╳╳┃;:┃╳$f2SYBN$f1╳┃;:┃╳╳╳╳┃;:┃╳$fc2010$f1╳┃;:┃╳╳╳╳┃;:┗━━━━┛

[ Last edited by sl543001 on 2010-3-1 at 15:23 ]

Attachments
ddzpb.GIF (7.74 KiB)
Floor13 sl543001 Posted 2010-03-02 14:39
中级用户 Posts 225 Credits 499
The length limit for 16-bit program parameters is 124.
It's just a little bit short, so annoying. Screenshots are also updated.
Because the parameter length limit is not allowed to be greater than 124, so the number in the lower right corner of the poker does not change color!
Floor14 sl543001 Posted 2010-03-04 12:21
中级用户 Posts 225 Credits 499
Slightly modified the parameter settings of sybc, extruded 6 bytes of code, and finally the lower right corner can change color!
Floor15 sl543001 Posted 2010-03-05 10:27
中级用户 Posts 225 Credits 499
Use smaller size poker, the code saved solves the seam problem.
1 2 3 4  Next
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023