Gobang matchmaker Cui Baoxue's blog connection http://www.cnblogs.com/nuoxiaomi/

  1. Introduction to the topic

We have implemented a Gobang software , The software consists of initialization module 、 Chess operation module 、 Man machine combat module 、 Everyone vs. module 、 The scoring module consists of four parts .

initialization       modular : When the program starts to run , Give welcome and help interface ; After the game starts, it is required to generate 19×19 Checkerboard image of , At the top of the chessboard, you will be prompted the color of the chessboard ,       During the game , Requires real-time display of the chessboard has fallen pieces ; After the division , Ask for the end picture of the game .

      Man machine battle : Choosing this mode can realize the game between human and computer , The computer will intelligently choose where to go , At the end of each game, I will judge whether there is any side         already win victory , If you win, the game ends , And prompt the player that the game is over .

Regret function : This function also exists according to the actual needs of the game , It's hard to avoid mistakes in real life , Then we need to repent . This feature provides the ability to       function , The flexibility of playing chess is improved . If players want to repent , You just need to select the regret button to play the game again .

Change the background of the chessboard : This function can change the background color of the chessboard according to the player's preference , Because everyone likes different colors , So this function is also very necessary       Required . It's also OK to change a color that players like , Players can play better .

2. Pairing division of labor and process

In pairs : Cui Baoxue

Division of labor : It's up to me to write the code , Cui Baoxue is responsible for the test program .

3. Code address https://github.com/Tian09/wuziqi/new/master

4、 Questions and experiences

Through this pairing experiment , I realized the importance of unity , Also understand the importance of meeting a skill . In the process , We go over and over again , Finally, I finished my homework , There was no problem during the test , It's a little bit of a problem in the coding process , But I asked other students and they all solved it in time . We will continue to work hard in the future .

wuziqi More articles about

  1. js+html5 Double Gobang ( Source download )

    The code is as follows : <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" c ...

  2. ( original ) cocos2dx Use Curl Connect to the network ( client )

    0. Environmental Science : winxpsp3, vs2010, cocos2dx@2.1.4 1. Create a new one Helloworld engineering 2. HelloworldScene.h Rewrite inside virtual bool ccT ...

  3. Software Engineering (QLGY2015) Second homework review ( Random selection 20 Group comments )

    Related blog contents : The first homework review Second homework review The third homework review explain : Random selection 20 Group comments , You can see that blog name ,github Project name , Look at that one. It's better , You can learn , Each group will respond to some problems , I hope I can ...

  4. my web Little games 【 Ongoing update 】

    No problem in Google browser .. gobang ( Double play ):http://1.waymongame.sinaapp.com/wuziqi/wuziqi2.html snake :http://1.waymongame ...

  5. D12

    orz!=-= Today, I'm not sure about my character .. I'm scared .. All at once from rank20-30+, All of a sudden, I jumped to rank3..=-= terrible .. Maybe it's because T1 I've seen similar ones .. then T3 Has been 40 Give me some directions ,T2 A violent fight ...

  6. Java Internship 1

    A simple quadratic equation of two variables is solved import java.lang.Math; import java.util.Scanner; public class Solve{ public static void ...

  7. Leo-io Of C Language implementation simple Gobang game impressions

    Source code : /************************************************************** ** writing Pieces of name :wuziqi.cpp ** work     can : sweep ...

  8. note :C Language graphics basic functions and examples Gobang game

    Initialize the graphical interface int gdriver; int gmode; gdriver = DETECT; initgraph(&gdriver,&gmode,"" ); ...

  9. MFC in png Format image mapping implementation

    MFC in png Format image mapping implementation (2011-07-14 19:10:29)  ___ Reprinted from Sina Beginners vc, Making Gobang , Gobang in the picture format are bmp Format , So we use CBitmap Can be very simple to achieve . Just. ...

Random recommendation

  1. web.xml Medium welcome-file-list It doesn't work

    Try it today struts2+ urlrewrite+sitemesh Deployment project , Results found welcome-file-list The welcome page defined in doesn't work : <welcome-file-list> & ...

  2. java analysis json data

    json There are two types of data , Objects and arrays . json Parsing requires exception handling . analysis json The object is JSONObject class , Such as public void analys_jsonObject(String json ...

  3. CURL Common commands --update20151015

    Download a single file , Print output to standard output by default (STDOUT) in curl http://www.centos.org adopt -o/-O Option to save the downloaded file to the specified file :-o: Save the file as... With the file name specified on the command line ...

  4. leetcode 94 Binary Tree Inorder Traversal ----- java

    Given a binary tree, return the inorder traversal of its nodes' values. For example:Given binary tre ...

  5. Halcon C++ Hybrid programming learning Qt Realize the detection of welding point

    1 # include "HalconCpp.h" # include "HDevThread.h" # include <X11/Xlib.h> ...

  6. PHP Chapter four arrays 2

    $str =array("dd"=>"d","dc"=>"ds","dd"=>&q ...

  7. Android Studio Cannot download with remote dependency jar Package solution

    Use AS A big advantage is that you can use online jar package , Just refer to jar Add... To the package after the version +, such as : compile 'com.facebook.fresco:fresco:0.1.0+' It doesn't have to be in jar ...

  8. ( Learning path for big data engineers ) First step Linux Basic introduction ---- Stream redirection

    Introduce I started to feel a little strange to the concept of redirection , But I've seen it many times in the previous course > or >> Operation , And know that they direct the standard output to a file or append it to a file . This is actually redirection , The number that will be output to the standard output ...

  9. HDU5992 - Finding Hotels

    Original link Description Give me a point on a two-dimensional plane , Each point has a weight . Time to ask , Find the point where the ownership value is less than or equal to , The point with the smallest Euclidean distance from the coordinate . If there are multiple points that satisfy the condition , The one with the highest output . Solution take ...

  10. HyperLedger Fabric 1.1 Manual deployment of stand-alone single node

    Manual deployment of stand-alone single node I've published the official e2e Deployment plan , Due to various problems such as environment or access rights , There are still quite a few coders who can't run successfully , therefore , In this chapter, a purely manual cluster deployment will be conducted in the future . The main steps are as follows : 1: Environmental Management 2 ...