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-06-25 03:29
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Recommendation] SYBC Script Example Tutorial Color Gobang 10-04-18 Update View 2,707 Replies 12
Original Poster Posted 2010-04-17 22:48 ·  中国 北京 联通
中级用户
★★
Credits 499
Posts 225
Joined 2008-12-30 22:09
17-year member
UID 135392
Gender Male
Status Offline
There is an update on the 3rd floor, and there are screenshots here
To solve the problem of monotonous color and dull interface of CMD/BAT scripts, I have developed a tool called SYBC for making colorful scripts. This tool has been developed and updated for some time, and I have also made several colorful scripts based on SYBC for testing the stability and ease of use of SYBC. During this period, SYBC and its related script games have been updated synchronously to the current stable version 1.1.31, which has added full non-third-party support.
However, the current latest tutorial is only an image tutorial prepared for version 1.1.21 on March 10th. It seems not so intuitive, detailed, and not easy to understand. And it does not mention some new calling methods, which can no longer meet everyone's needs obviously.
So I am writing an official SYBC script tutorial here and, as required by netizens, adding the whole development process of the colorful version of the Go game script. Step by step, in the way of "code + screenshot + explanation", I will lead everyone to develop a full-color version of the Go game script together. In all the codes, the newly added or modified content will be marked in blue, so that everyone can easily find the parts that should be noted from a large number of codes.
I hope this can help netizens better and more smoothly use SYBC to write their own colorful scripts and enrich everyone's script life.
Everyone is welcome to contact me at QQ: 354324773 or join QQ group: 3401238 for any opinions, suggestions, puzzles and questions about SYBC and its related scripts and this tutorial.

[ Last edited by sl543001 on 2010-4-18 at 23:06 ]
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
plp626 +15 2010-04-20 13:52
Attachments
5ZQ.GIF
SYBNQQ:354324773
Floor 2 Posted 2010-04-18 10:57 ·  中国 山东 临沂 联通
初级用户
Credits 38
Posts 24
Joined 2010-03-21 19:42
16-year member
UID 162709
Gender Male
Status Offline
Come often, come often
Thanks for sharing
Floor 3 Posted 2010-04-18 22:53 ·  中国 河北 廊坊 联通
中级用户
★★
Credits 499
Posts 225
Joined 2008-12-30 22:09
17-year member
UID 135392
Gender Male
Status Offline
Update:
Current contents
I. Original Intention and Preface 2
II. Preparation Work – SYBC Framework Without Third - Party Modules 2
III. A Step to Break In – The Simplest Color Script 5
IV. First Example – Let's Play a 3 - in - a - Row Game First 6
V. Code Advancement – Fold Multiple Lines of Code into One Line 7
VI. Formal Start – Make a Two - color Sample of Gobang 8
VII. Important Step – Color the Game Interface 13
VIII. Fold Optimization – Reduce Code and Accelerate the Script 15
IX. Further Step – No Third Party, No Enter Key, Game Control 18
X. Stop for Tonight, Continue Tomorrow 23
XI. Preview 23
XII. Intelligent Judgment – Judge Whether Someone Has Two Lines of Five Pieces (Not Available for Now) 23
XIII. Additional Function – Add Thinking Timing and Battle Situation Statistics (Not Available for Now) 23
XIV. Automatic Update – Add Automatic Update Function to the Script (Not Available for Now) 23
XV. Recording Function – Add Recording Function and Record Results Upload Function (Not Available for Now) 23
XVI. Online Battle – Use ASP for Online Battle Between Players (Not Available for Now) 23
XVII. Artificial Intelligence – Add AI Intelligence of Various Levels to the Script (Not Available for Now)

[ Last edited by sl543001 on 2010 - 4 - 18 at 22:57 ]
Attachments
SYBNQQ:354324773
Floor 4 Posted 2010-04-19 20:55 ·  中国 四川 南充 联通
高级用户
★★★
Credits 609
Posts 374
Joined 2006-08-02 22:38
19-year member
UID 59720
Status Offline
Looking forward to SYBC supporting the mouse as soon as possible
Floor 5 Posted 2010-04-20 15:30 ·  中国 河北 廊坊 联通
中级用户
★★
Credits 499
Posts 225
Joined 2008-12-30 22:09
17-year member
UID 135392
Gender Male
Status Offline
I updated SYBC to 1.1.37 yesterday, which supports writing data without overwriting the original position color, and it's a bit like echo. For example: call :SYBN 10000$##SYBN. $## means not adding new color
SYBNQQ:354324773
Floor 6 Posted 2010-07-09 18:04 ·  中国 北京 联通
新手上路
Credits 14
Posts 9
Joined 2010-07-03 20:00
15-year member
UID 169927
Gender Male
Status Offline
So creative. So difficult. Hard to understand.
Floor 7 Posted 2010-07-10 22:02 ·  中国 河北 廊坊 联通
中级用户
★★
Credits 499
Posts 225
Joined 2008-12-30 22:09
17-year member
UID 135392
Gender Male
Status Offline
Look at the tutorial, it's still relatively detailed
SYBNQQ:354324773
Floor 8 Posted 2010-07-13 01:52 ·  中国 广东 惠州 电信
初级用户
Credits 36
Posts 22
Joined 2008-10-21 00:26
17-year member
UID 128920
Gender Male
Status Offline
It's still relatively detailed.
Floor 9 Posted 2010-07-19 12:14 ·  中国 北京 联通
新手上路
Credits 3
Posts 2
Joined 2007-03-02 23:40
19-year member
UID 80592
Gender Male
Status Offline
Technical things, strongly support. Only through such in-depth research can we make breakthroughs and progress. I really admire the LZ. Hope the Gobang project will be completed as soon as possible.
Floor 10 Posted 2010-07-21 23:12 ·  中国 河北 廊坊 联通
中级用户
★★
Credits 499
Posts 225
Joined 2008-12-30 22:09
17-year member
UID 135392
Gender Male
Status Offline
The color display part (SYBC three-party embedded) has passed the Windows 7 test and can be normally displayed in Windows 7!
SYBNQQ:354324773
Floor 11 Posted 2010-07-21 23:15 ·  中国 河北 廊坊 联通
中级用户
★★
Credits 499
Posts 225
Joined 2008-12-30 22:09
17-year member
UID 135392
Gender Male
Status Offline
That is to say, all scripts that use SYBC for color display can be slightly modified, and by enabling third-party embedding, they can be used in Win7.

Modification plan:
Add the third-party embedding template code at any position in the script
Change all sybc parameters to call :sybc
No other modifications are needed. From now on, say goodbye to the SYBC.COM file and use it directly in memory.
SYBNQQ:354324773
Floor 12 Posted 2010-07-29 19:57 ·  中国 湖南 长沙 联通
新手上路
Credits 4
Posts 3
Joined 2010-06-23 19:57
16-year member
UID 169390
Gender Male
Status Offline
Strong, learn and study...
Floor 13 Posted 2010-12-27 22:08 ·  中国 广东 东莞 中移铁通
初级用户
★★
Credits 115
Posts 92
Joined 2010-12-24 16:57
15-year member
UID 179794
Gender Male
Status Offline
Learn learn...
Forum Jump: