基于贪心策略的五子棋人机对弈,简单的人机对弈,可以应付一下初级选手,算法还有很大改进空间,有兴趣的可以研究一下,有改进的话记得发我一份,一起研究-Gobang greedy strategy based on human-computer game, a simple man-machine game, players can cope with the initial look, there is still much room for improvement algorithm, interested can look for improvement, then remember that I made in a study with
SHOW FULL COLUMNS FROM `jrk_downrecords` [ RunTime:0.001301s ]
SELECT `a`.`aid`,`a`.`title`,`a`.`create_time`,`m`.`username` FROM `jrk_downrecords` `a` INNER JOIN `jrk_member` `m` ON `a`.`uid`=`m`.`id` WHERE `a`.`status` = 1 GROUP BY `a`.`aid` ORDER BY `a`.`create_time` DESC LIMIT 10 [ RunTime:0.095616s ]
SHOW FULL COLUMNS FROM `jrk_tagrecords` [ RunTime:0.003083s ]
SELECT * FROM `jrk_tagrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 20 [ RunTime:0.001250s ]
SHOW FULL COLUMNS FROM `jrk_member` [ RunTime:0.001049s ]
SELECT `id`,`username`,`userhead`,`usertime` FROM `jrk_member` WHERE `status` = 1 ORDER BY `usertime` DESC LIMIT 10 [ RunTime:0.003018s ]
SHOW FULL COLUMNS FROM `jrk_searchrecords` [ RunTime:0.001235s ]
SELECT * FROM `jrk_searchrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 5 [ RunTime:0.004774s ]
SELECT aid,title,count(aid) as c FROM `jrk_downrecords` GROUP BY `aid` ORDER BY `c` DESC LIMIT 10 [ RunTime:0.015385s ]
SHOW FULL COLUMNS FROM `jrk_articles` [ RunTime:0.001152s ]
UPDATE `jrk_articles` SET `hits` = 2 WHERE `id` = 210822 [ RunTime:0.017514s ]