China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-01 00:58
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » DouDiZhu script, under development... Mouse test version updated [2010-4-23] View 5,788 Replies 45
Original Poster Posted 2010-02-24 20:06 ·  中国 北京 联通
中级用户
★★
Credits 499
Posts 225
Joined 2008-12-30 22:09
17-year member
UID 135392
Gender Male
Status Offline
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 ]
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
zh159 +20 2010-03-10 01:10
Attachments
sybc参数详解.gif
ddz61.GIF
SYBNQQ:354324773
Floor 2 Posted 2010-02-26 12:59 ·  中国 黑龙江 哈尔滨 联通
版主
★★
系统收藏家
Credits 326
Posts 285
Joined 2010-02-22 00:00
16-year member
UID 160972
Gender Male
From 黑龙江省
Status Offline
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
Floor 3 Posted 2010-02-26 13:00 ·  中国 黑龙江 哈尔滨 联通
版主
★★
系统收藏家
Credits 326
Posts 285
Joined 2010-02-22 00:00
16-year member
UID 160972
Gender Male
From 黑龙江省
Status Offline
ESC can be replaced with F1. ESC is used to close the game (in wbat, closing is done with ESC)
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
sl543001 +3 2010-02-26 21:26
Floor 4 Posted 2010-02-26 13:02 ·  中国 黑龙江 哈尔滨 联通
版主
★★
系统收藏家
Credits 326
Posts 285
Joined 2010-02-22 00:00
16-year member
UID 160972
Gender Male
From 黑龙江省
Status Offline
The module for man-machine combat is a bit difficult.
Floor 5 Posted 2010-02-26 14:21 ·  中国 北京 联通
中级用户
★★
Credits 499
Posts 225
Joined 2008-12-30 22:09
17-year member
UID 135392
Gender Male
Status Offline
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.
SYBNQQ:354324773
Floor 6 Posted 2010-02-26 15:53 ·  中国 北京 联通
中级用户
★★
Credits 499
Posts 225
Joined 2008-12-30 22:09
17-year member
UID 135392
Gender Male
Status Offline
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 ]
SYBNQQ:354324773
Floor 7 Posted 2010-02-26 18:30 ·  美国 惠普HP
版主
★★★★★
Credits 9,023
Posts 5,017
Joined 2007-05-31 19:39
19-year member
UID 89899
Gender Male
Status Offline
What functions should a "compact and efficient mouse program" have?
Floor 8 Posted 2010-02-26 21:25 ·  中国 北京 联通
中级用户
★★
Credits 499
Posts 225
Joined 2008-12-30 22:09
17-year member
UID 135392
Gender Male
Status Offline
Multi-functional, small-sized, preferably less than 1K
SYBNQQ:354324773
Floor 9 Posted 2010-02-27 01:22 ·  美国 惠普HP
版主
★★★★★
Credits 9,023
Posts 5,017
Joined 2007-05-31 19:39
19-year member
UID 89899
Gender Male
Status Offline
Is there anything here that can meet the functional requirements?
http://bbs.bathome.net/thread-3148-1-1.html
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
sl543001 +4 2010-02-28 13:31
Floor 10 Posted 2010-02-28 13:30 ·  中国 北京 联通
中级用户
★★
Credits 499
Posts 225
Joined 2008-12-30 22:09
17-year member
UID 135392
Gender Male
Status Offline
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...
SYBNQQ:354324773
Floor 11 Posted 2010-03-01 11:32 ·  中国 北京 联通
中级用户
★★
Credits 499
Posts 225
Joined 2008-12-30 22:09
17-year member
UID 135392
Gender Male
Status Offline
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
SYBNQQ:354324773
Floor 12 Posted 2010-03-01 14:47 ·  中国 北京 联通
中级用户
★★
Credits 499
Posts 225
Joined 2008-12-30 22:09
17-year member
UID 135392
Gender Male
Status Offline
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
SYBNQQ:354324773
Floor 13 Posted 2010-03-02 14:39 ·  中国 北京 联通
中级用户
★★
Credits 499
Posts 225
Joined 2008-12-30 22:09
17-year member
UID 135392
Gender Male
Status Offline
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!
SYBNQQ:354324773
Floor 14 Posted 2010-03-04 12:21 ·  中国 北京 联通
中级用户
★★
Credits 499
Posts 225
Joined 2008-12-30 22:09
17-year member
UID 135392
Gender Male
Status Offline
Slightly modified the parameter settings of sybc, extruded 6 bytes of code, and finally the lower right corner can change color!
SYBNQQ:354324773
Floor 15 Posted 2010-03-05 10:27 ·  中国 北京 联通
中级用户
★★
Credits 499
Posts 225
Joined 2008-12-30 22:09
17-year member
UID 135392
Gender Male
Status Offline
Use smaller size poker, the code saved solves the seam problem.
SYBNQQ:354324773
Forum Jump: