"MoLe Technology Java Gobang Video Tutorial" introduces the development process and programming ideas of using JAVA's Swing programming to complete a simple Gobang game. By studying this video, you can simply understand the technical points used in JAVA game development, and learn about it. Exercise of logical thinking ability is very helpful. Very good swing video project with very detailed explanation, you can definitely learn it! Enhance understanding of knowledge.
Before studying this video, you need to master the basic syntax of JAVA SE, simple IO operations, JAVA object-oriented design, the use of multi-dimensional arrays, and the thread programming part of JAVA.
Course playback address: //m.sbmmt.com/course/534.html
The teacher’s teaching style:
The teacher’s lectures are vivid, witty, witty, and touching. A vivid metaphor is like the finishing touch, opening the door to wisdom for students; an appropriate humor brings a knowing smile to students, like drinking a glass of mellow wine, giving people aftertaste and nostalgia; a philosopher's aphorisms, cultural references Proverbs are interspersed from time to time in the narration, giving people thinking and warning.
The more difficult point in this video is to complete the function of playing chess:
1 Requirements Analysis Function of Requirements Analysis Software requirements analysis is the first stage of the software development cycle. It is also the most critical step related to the success or failure of software development. Only through software requirements analysis can the functions and performance of the software be transformed from the overall conceptual and theoretical description into specific specifications, thus establishing the basis for software development. Practice has proven that the accuracy of requirements analysis determines the success or failure of software development to a large extent. The task of software requirements analysis is to let users and developers clearly understand what software is being developed. Specifically, it is to establish a logical model and complete the logical solution design of the software through understanding, analysis and comprehensive grasp of the problem and its environment.
1.1 Basic needs analysis
The interface of the software is simple, clear and elegant, the operation is simple and easy, the function button names are simple and easy to understand, the size of the chessboard and the style of the chess pieces can be changed.
1.2 Advanced Requirements Analysis
The network uses TCP/IP to utilize the services provided by Socket, and uses the Java Graphics class to build the user graphical interface. The system is divided into two parts, namely the server program and the client program. Based on the actual situation, putting the server-side program and the client-side program together makes it easier to create and participate in games, effectively solving the problem that the game cannot be played if the server is not turned on in the LAN. Since the server-side and client-side programs are put together, the redundant code for interface drawing can be reduced, so that the client and server-side use the same interface. The backgammon online game is mainly divided into two parts, the game server and the game client. The server is responsible for creating the server, and the client is responsible for connecting to the server.
Human-computer battle: In order to make the game more puzzled and increase the fun of the game, the idea of games is used, and game trees and alpha-beta are used. The idea of heuristic search allows the computer to simulate playing chess and increase the difficulty of the game.
The chat window uses Tencent Cloud as the server, allowing online players to chat even if they are not on the LAN. Communicate better about when to start the war so that no one has to wait all the time.
Here we also recommend downloading source code resources: //m.sbmmt.com/xiazai/code/1941
This video courseware is shared with everyone:
1. Source code
The above is the detailed content of Magic technology java backgammon video material recommendation. For more information, please follow other related articles on the PHP Chinese website!