基于Java的网络版五子棋游戏设计和实现研究

0 下载量 135 浏览量 更新于2024-03-14 收藏 961KB DOC 举报
puter network, modern network technology centered on computer technology and network technology has been widely used in real life and production. Casual online games, which combine entertainment, interactivity, and intelligence, have become a popular leisure activity for most people. This design collects books on the basics of JAVA, focusing on the content of SOCKET programming, finding information about the overview and rules of Gobang, consulting related papers on network communication technology, and referencing many materials on the implementation of Gobang programs and the introduction of JAVA development tools. During this period, the author studied multi-threading technology, data transmission technology, SOCKET programming technology, researched the principles of network communication, JAVA writing principle and a series of principles. Developed the code for online battles of Gobang, realized network chatting, online battles, network communication, interface organization such as chessboard, establishing servers, and connecting to servers. Through the study and research of the above technologies, utilizing SOCKET programming, the connection between the server and the client can be achieved. The data transmission and network communication between the server and the client are completed using multi-threading technology, enabling two clients to synchronously process. Key words: JAVA multi-threading SOCKET Gobang.