JavaScript Chinese chess program (0)-preface

Source: Internet
Author: User

The "javascript Chinese Chess program" series of tutorials will take you from scratch using JavaScript to write a Chinese chess program. Hopefully through this series, we have a certain understanding of the algorithm of the game Program. At the same time, we will also build a good Chinese chess program.

The JavaScript Chinese Chess program series consists of 9 parts:

0.javascript Chinese chess program (0)-preface1.javascript Chinese chess program (1)-interface Design2,javascript Chinese chess program (2)-check The Chess piece Go method3,javascript Chinese chess program (3)-computer automatic moves4.javascript Chinese chess program (4)-minimax search Algorithm5.javascript Chinese chess program (5)-alpha-beta Search6,javascript Chinese chess program (6)-to overcome the horizontal effect, check the repetition of the situation7.JavaScript Chinese chess program (7)-replacement table8.JavaScript Chinese chess program (8)-further optimizationThis section is a little chat before you get to the Point. If you are anxious to get to the point, please skip this Section. I study the course of Chinese chess programoriginally, I bought a book, "introduction and improvement of Chinese chess program in C + +". This is a good book, written carefully, thoroughly, I am very happy to read the first 6 chapters, without Pressure. These 6 chapters explain the situation, the way to generate, the situation assessment, the basic search algorithm and so On. unfortunately, I can't read the 7th chapter. The 7th chapter is about how to use VC6.0 to design a graphical user interface. god, I am a web programmer, I just want to understand the design ideas and algorithms of the chess program, I really do not want to use the old VC6.0 to learn Windows GUI programming ah. fortunately, in the last page of the book, I found the Encyclopedia of Chess Online. A JavaScript version of Chinese chess software was found in the GitHub repository on this site, and the performance was Good. Using HTML + JavaScript to design the interface is naturally a lot easier, so you can concentrate on learning the algorithm of the chess Program.  Why Choose JavaScriptThis tutorial chose JavaScript to explain the JavaScript version of Chinese chess program, I have the following reasons:1, This JavaScript version of the Chinese chess program, performance is Good. 2, The interface design is simple, you can use the main energy in the study of the ALGORITHM. 3. Do not build the Environment. As long as you have a text editor (like Notepad++) and a browser (preferably chrome bar), that's enough. 4, The program used are very basic JavaScript syntax, there should be no grammatical barriers.  Project intentionI have read a tutorial to teach you to build C compiler, I think it is very interesting. So I modeled the format of this, wrote the Chinese chess program Tutorial. Most of the ideas in this tutorial come from the "introduction and improvement of Chinese chess programs in C/c + +" and the chess encyclopedia. Chess Encyclopedia Online There are a lot of good articles, let me benefit. If you want to know the original program, please go to the GitHub download of the Chess encyclopedia web, there are many versions, we use the JavaScript Version.  Is this tutorial difficult to learn?1, At least the first 4 sections is not difficult, it is some basic things. 2, the 5th section introduced the Alpha-beta search, this algorithm is very important, is the basis of the following sections of the Tutorial. 3, If understand the Alpha-beta search algorithm, then the 3 section should also not be difficult, are in the Alpha-beta algorithm based on Optimization.  finally, I would like to thank the author of the Chess Encyclopedia network and the "introduction and improvement of Chinese chess program". I wish you a pleasant study.

JavaScript Chinese chess program (0)-preface

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.