我的git代码仓库: [https://code.aliyun.com/whjwnavy] or [https://github.com/WHJWNAVY]

自动寻路贪吃蛇

设计语言 WHJWNAVY 612℃ 87评论

这是一个采用BFS(宽度优先搜索)算法的自动寻路贪吃蛇,其原理主要参考于下面几篇帖子

如何用Python写一个贪吃蛇AI 

智能寻路贪吃蛇系列之 简单贪吃蛇的MFC实现(上)

智能寻路贪吃蛇系列之 简单贪吃蛇的MFC实现(下)

贪吃蛇 AI 的实现 snake AI

不过我用的是纯c语言实现,有兴趣的可以去我的git代码仓库查看源码,代码中有注释,这里先不详述,后面有时间再更新:

https://code.aliyun.com/whjwnavy/linux_c/tree/master/Windows_API/GameSnake_bfs

转载请注明:胡椒小兄弟 » 自动寻路贪吃蛇

喜欢 (2)or分享 (0)
发表我的评论
取消评论
表情 签到
(87)个小伙伴在吐槽
  1. I simply want to mention I am just all new to blogging and site-building and really liked you're web-site. Very likely I’m going to bookmark your site . You absolutely come with impressive stories. With thanks for revealing your webpage.
    important site2018-01-31 23:20 回复
  2. I get pleasure from, cause I found exactly what I used to be taking a look for. You have ended my 4 day lengthy hunt! God Bless you man. Have a great day. Bye
    nationstar mortgage2018-02-02 18:41 回复
  3. The the very next time I read a blog, Lets hope so it doesnt disappoint me just as much as this. Come on, man, Yes, it was my replacement for read, but I just thought youd have something fascinating to mention. All I hear is really a handful of whining about something that you could fix in the event you werent too busy looking for attention.
    匿名2018-02-03 14:39 回复
  4. fantastic publish, very informative. I ponder why the other specialists of this sector do not notice this. You must continue your writing. I am confident, you have a huge readers' base already!
  5. It's perfect time to make some plans for the future and it's time to be happy. I've read this post and if I could I want to suggest you few interesting things or advice. Perhaps you can write next articles referring to this article. I want to read more things about it!
    aoflibrary.net2018-02-05 10:11 回复
  6. There is visibly a lot to realize about this. I assume you made various nice points in features also.
    consultarnumero.com2018-02-06 04:09 回复
  7. As I site possessor I believe the content matter here is rattling wonderful , appreciate it for your hard work. You should keep it up forever! Good Luck.
    technology articles2018-02-06 05:43 回复
  8. we do hope you never stop! This is the most effective blogs Ive actually read. You have got some ridiculous ability here, man. I simply wish that you simply never lose your style since youre one on the best blog writers around. Make sure you continue the good work simply because the internet needs someone like you spreading the word.
    dubturbo amazon2018-02-06 10:57 回复
  9. I happen to be writing to make you be aware of what a helpful encounter my wife's daughter obtained using your web page. She realized several pieces, most notably what it is like to possess a marvelous helping spirit to get others with ease have an understanding of several extremely tough subject matter. You actually did more than our own expectations. Many thanks for rendering those insightful, trustworthy, revealing not to mention cool thoughts on that topic to Kate.
  10. Thank you a lot for giving everyone an extraordinarily splendid opportunity to read articles and blog posts from here. It is often very superb plus full of amusement for me and my office friends to search your website the equivalent of three times in a week to learn the new guidance you have got. Not to mention, I'm certainly contented with all the superb tactics you give. Some 4 tips in this article are unequivocally the most beneficial I have had.
    crammonduk.com2018-02-07 10:29 回复
  11. Hello there, I found your site by means of Google even as looking for a comparable subject, your website got here up, it appears good. I have bookmarked it in my google bookmarks.
    nationstar mortgage2018-02-07 13:41 回复
  12. naturally like your web-site but you have to test the spelling on quite a few of your posts. A number of them are rife with spelling problems and I to find it very bothersome to tell the reality nevertheless I'll certainly come back again.
    Fashion2018-02-07 14:04 回复
  13. My wife and i were really ecstatic that John managed to carry out his web research out of the ideas he was given from your very own weblog. It is now and again perplexing just to be giving away information and facts some people have been making money from. We really know we now have the blog owner to be grateful to because of that. The type of explanations you made, the simple website navigation, the relationships your site help to promote - it's got most superb, and it's letting our son and our family consider that this subject is brilliant, and that is exceptionally essential. Thank you for all!
    yoghurtplus.com2018-02-07 21:15 回复
  14. Great – I should definitely pronounce, impressed with your web site. I had no trouble navigating through all the tabs as well as related info ended up being truly easy to do to access. I recently found what I hoped for before you know it in the least. Reasonably unusual. Is likely to appreciate it for those who add forums or something, web site theme . a tones way for your client to communicate. Excellent task.
    Fashion2018-02-07 23:56 回复
  15. Thank you for the sensible critique. Me and my neighbor were just preparing to do some research on this. We got a grab a book from our area library but I think I learned more clear from this post. I'm very glad to see such great info being shared freely out there.
    kenoshanow.com2018-02-08 03:48 回复
  16. Thank you, I have recently been looking for info approximately this topic for a while and yours is the best I have found out so far. However, what concerning the conclusion? Are you sure concerning the supply?
    Home Improvement2018-02-08 14:44 回复
  17. I simply couldn't leave your site before suggesting that I actually enjoyed the usual information an individual provide for your guests? Is gonna be again regularly to check out new posts
    effortlessrun.com2018-02-08 19:24 回复
  18. Of course, what a fantastic blog and educative posts, I surely will bookmark your blog.Have an awsome day!
    blackfloortiles.com2018-02-08 22:14 回复
  19. I was recommended this website by my cousin. I'm not sure whether this post is written by him as nobody else know such detailed about my difficulty. You're amazing! Thanks!
    meditation music2018-02-08 23:04 回复
  20. hey there and thank you for your information – I’ve certainly picked up something new from right here. I did however expertise several technical points using this website, as I experienced to reload the website many times previous to I could get it to load properly. I had been wondering if your hosting is OK? Not that I'm complaining, but slow loading instances times will sometimes affect your placement in google and could damage your high-quality score if advertising and marketing with Adwords. Well I’m adding this RSS to my email and can look out for a lot more of your respective fascinating content. Make sure you update this again soon..
    ice cream recipes2018-02-08 23:05 回复
  21. Hello very cool website!! Man .. Beautiful .. Amazing .. I'll bookmark your web site and take the feeds also¡KI am satisfied to seek out so many useful info right here within the post, we'd like develop extra techniques in this regard, thanks for sharing. . . . . .
  22. I don’t even know how I ended up here, but I thought this post was great. I do not know who you are but definitely you're going to a famous blogger if you are not already 😉 Cheers!
    arts and music2018-02-08 23:07 回复
  23. Thank you for another informative site. Where else could I am getting that kind of information written in such an ideal approach? I have a undertaking that I am just now operating on, and I have been at the look out for such info.
    sci tech2018-02-08 23:08 回复
  24. It is appropriate time to make some plans for the future and it is time to be happy. I've read this post and if I could I desire to suggest you some interesting things or advice. Perhaps you can write next articles referring to this article. I wish to read more things about it!
  25. I was just seeking this info for a while. After 6 hours of continuous Googleing, finally I got it in your website. I wonder what's the lack of Google strategy that don't rank this type of informative websites in top of the list. Generally the top websites are full of garbage.
  26. Thank you for the auspicious writeup. It in fact was a amusement account it. Look advanced to more added agreeable from you! By the way, how could we communicate?
    auto market2018-02-08 23:50 回复
  27. I like what you guys are up too. Such intelligent work and reporting! Carry on the excellent works guys I have incorporated you guys to my blogroll. I think it'll improve the value of my site :).
    Home Improvement2018-02-09 03:08 回复
  28. Pretty nice post. I just stumbled upon your blog and wanted to say that I've truly enjoyed browsing your blog posts. After all I will be subscribing to your rss feed and I hope you write again very soon!
  29. I've read a few excellent stuff here. Definitely worth bookmarking for revisiting. I wonder how a lot effort you set to make this kind of great informative website.
    News2018-02-09 13:29 回复
  30. Wonderful beat ! I wish to apprentice while you amend your site, how could i subscribe for a blog website? The account aided me a acceptable deal. I had been tiny bit acquainted of this your broadcast provided bright clear concept
    News2018-02-10 13:35 回复
  31. Hiya, I'm really glad I've found this information. Nowadays bloggers publish just about gossips and net and this is actually irritating. A good web site with exciting content, that is what I need. Thank you for keeping this website, I will be visiting it. Do you do newsletters? Can not find it.
  32. Very nice post. I just stumbled upon your weblog and wanted to say that I've truly enjoyed surfing around your blog posts. In any case I’ll be subscribing to your feed and I hope you write again soon!
    News2018-02-11 02:41 回复
  33. What i don't understood is in reality how you're not actually a lot more smartly-liked than you might be right now. You're very intelligent. You realize thus significantly relating to this subject, made me in my view consider it from a lot of varied angles. Its like women and men don't seem to be involved until it's something to accomplish with Lady gaga! Your personal stuffs outstanding. All the time handle it up!
    News2018-02-11 15:33 回复
  34. Thanks, I have recently been looking for info approximately this topic for ages and yours is the greatest I've found out till now. However, what about the bottom line? Are you positive in regards to the supply?
    Fashion2018-02-12 05:15 回复
  35. Thank you for sharing superb informations. Your website is very cool. I'm impressed by the details that you¡¦ve on this web site. It reveals how nicely you understand this subject. Bookmarked this web page, will come back for more articles. You, my friend, ROCK! I found just the info I already searched everywhere and just could not come across. What an ideal web site.
    faturaodemeleri.com2018-02-12 11:14 回复
  36. Thanks for the sensible critique. Me and my neighbor were just preparing to do some research on this. We got a grab a book from our area library but I think I learned more from this post. I'm very glad to see such wonderful info being shared freely out there.
    News2018-02-12 16:11 回复
  37. I truly appreciate this post. I've been looking everywhere for this! Thank goodness I found it on Bing. You have made my day! Thank you again!
    News2018-02-13 01:11 回复
  38. As soon as I observed this web site I went on reddit to share some of the love with them.
    News2018-02-13 20:51 回复
  39. Wow! This could be one particular of the most helpful blogs We've ever arrive across on this subject. Basically Magnificent. I'm also a specialist in this topic therefore I can understand your hard work.
    News2018-02-14 05:11 回复
  40. Whats Taking place i am new to this, I stumbled upon this I've found It absolutely useful and it has aided me out loads. I am hoping to give a contribution & help other customers like its helped me. Good job.
  41. What i don't realize is in reality how you are not really much more smartly-favored than you might be right now. You're very intelligent. You know thus considerably when it comes to this matter, made me in my opinion believe it from numerous numerous angles. Its like women and men don't seem to be fascinated except it is one thing to accomplish with Woman gaga! Your own stuffs excellent. Always take care of it up!
    Fashion2018-02-14 13:30 回复
  42. You could definitely see your skills within the paintings you write. The world hopes for even more passionate writers such as you who aren't afraid to mention how they believe. At all times go after your heart. "Everyone has his day and some days last longer than others." by Sir Winston Leonard Spenser Churchill.
    Home Improvement2018-02-15 03:32 回复
  43. I really like your writing style, excellent information, appreciate it for putting up : D.
    Home Improvement2018-02-15 12:34 回复
  44. Wow! This can be one particular of the most useful blogs We've ever arrive across on this subject. Actually Excellent. I am also a specialist in this topic therefore I can understand your hard work.
  45. Some genuinely fantastic blog posts on this website , thankyou for contribution.
    Home Improvement2018-02-16 01:01 回复
  46. Simply a smiling visitant here to share the love (:, btw great pattern .
    News2018-02-16 15:53 回复
  47. Great goods from you, man. I've understand your stuff previous to and you are just extremely magnificent. I actually like what you've acquired here, certainly like what you are stating and the way in which you say it. You make it entertaining and you still take care of to keep it wise. I cant wait to read far more from you. This is really a tremendous site.
    cruises2018-02-16 23:23 回复
  48. I got what you mean , regards for posting .Woh I am happy to find this website through google. "Those who corrupt the public mind are just as evil as those who steal from the public." by Theodor Wiesengrund Adorno.
    Home Improvement2018-02-17 00:49 回复
  49. I think this website contains some very wonderful information for everyone :D. "Experience is not what happens to you it's what you do with what happens to you." by Aldous Huxley.
    Home Improvement2018-02-17 17:00 回复
  50. I think other web site proprietors should take this site as an model, very clean and wonderful user friendly style and design, let alone the content. You are an expert in this topic!
    starting a business2018-02-17 23:49 回复
  51. Only wanna comment on few general things, The website design and style is perfect, the content material is rattling wonderful : D.
    Health2018-02-18 01:29 回复
  52. Thank you for each of your hard work on this web site. My mum takes pleasure in carrying out investigation and it's simple to grasp why. Most people learn all relating to the dynamic means you make precious tricks via your web site and as well as attract contribution from other ones about this subject then my girl is in fact becoming educated a whole lot. Take advantage of the remaining portion of the new year. You are always doing a brilliant job.
    Home Improvement2018-02-18 14:32 (7天前)回复
  53. F*ckin' amazing things here. I am very glad to peer your article. Thank you a lot and i am having a look forward to contact you. Will you please drop me a e-mail?
    Home Improvement2018-02-18 22:09 (7天前)回复
  54. Great site. Lots of useful info here. I'm sending it to some buddies ans additionally sharing in delicious. And of course, thank you on your sweat!
    Fashion2018-02-19 11:55 (6天前)回复
  55. I am just starting to learn about all of this. Thanks!
    匿名2018-02-19 15:12 (6天前)回复
  56. I've recently started a web site, the information you offer on this web site has helped me greatly. Thank you for all of your time & work.
    Web Design2018-02-19 20:02 (6天前)回复
  57. I've been browsing on-line more than three hours these days, but I never found any interesting article like yours. It's beautiful price sufficient for me. In my opinion, if all site owners and bloggers made excellent content as you did, the web will likely be much more helpful than ever before. "Truth is not determined by majority vote." by Doug Gwyn.
    Fashion2018-02-20 03:43 (5天前)回复
  58. hey there and thank you for your information – I’ve certainly picked up anything new from right here. I did however expertise some technical issues using this site, as I experienced to reload the web site lots of times previous to I could get it to load properly. I had been wondering if your web host is OK? Not that I am complaining, but sluggish loading instances times will sometimes affect your placement in google and could damage your high-quality score if advertising and marketing with Adwords. Well I am adding this RSS to my email and can look out for much more of your respective exciting content. Ensure that you update this again soon..
    sports and arts2018-02-20 12:08 (5天前)回复
  59. You completed a number of fine points there. I did a search on the topic and found the majority of folks will agree with your blog.
    flight2018-02-20 12:09 (5天前)回复
  60. Thank you for every other informative website. Where else could I am getting that type of info written in such a perfect method? I've a project that I'm just now operating on, and I've been on the look out for such information.
    education science2018-02-20 12:12 (5天前)回复
  61. Thank you a lot for sharing this with all of us you really recognize what you're speaking about! Bookmarked. Kindly also consult with my site =). We may have a hyperlink trade agreement between us!
    automotive products2018-02-20 12:15 (5天前)回复
  62. I truly appreciate this post. I have been looking everywhere for this! Thank goodness I found it on Bing. You have made my day! Thx again!
    Home Improvement2018-02-20 14:18 (5天前)回复
  63. You could certainly see your skills within the paintings you write. The arena hopes for more passionate writers such as you who aren't afraid to say how they believe. At all times go after your heart. "If you feel yourself falling, let go and glide." by Steffen Francisco.
    Home Improvement2018-02-20 22:48 (5天前)回复
  64. I like what you guys are up also. Such clever work and reporting! Keep up the excellent works guys I¡¦ve incorporated you guys to my blogroll. I think it'll improve the value of my website :)
    Healthy Weight Loss2018-02-21 02:54 (4天前)回复
  65. I have fun with, result in I discovered exactly what I was having a look for. You've ended my four day lengthy hunt! God Bless you man. Have a great day. Bye
    cool tech gadgets2018-02-21 02:55 (4天前)回复
  66. Thanks for every other great article. Where else may just anyone get that type of info in such a perfect manner of writing? I've a presentation next week, and I'm on the search for such info.
    improvements2018-02-21 02:55 (4天前)回复
  67. I precisely desired to thank you so much yet again. I'm not certain the things that I could possibly have achieved in the absence of the concepts discussed by you on this question. It became a difficult setting in my opinion, nevertheless noticing this skilled approach you solved that took me to jump for happiness. I'm happy for your support and then expect you find out what a powerful job you happen to be doing instructing the mediocre ones via your site. Most probably you have never encountered all of us.
    home improvement2018-02-21 02:56 (4天前)回复
  68. magnificent issues altogether, you simply won a brand new reader. What would you suggest about your post that you simply made some days in the past? Any certain?
    home2018-02-21 03:11 (4天前)回复
  69. Great blog here! Also your web site loads up very fast! What web host are you using? Can I get your affiliate link to your host? I wish my website loaded up as fast as yours lol
    Travel2018-02-21 06:59 (4天前)回复
  70. Hi there, I discovered your blog by way of Google at the same time as looking for a related matter, your web site came up, it seems good. I have bookmarked it in my google bookmarks.
    Business Ethics2018-02-21 17:17 (4天前)回复
  71. Whats Taking place i'm new to this, I stumbled upon this I've discovered It absolutely useful and it has helped me out loads. I'm hoping to contribute & aid different users like its aided me. Great job.
    international flights2018-02-21 17:18 (4天前)回复
  72. you are really a good webmaster. The site loading pace is amazing. It kind of feels that you're doing any distinctive trick. Furthermore, The contents are masterwork. you have performed a magnificent activity on this topic!
    Jewelry2018-02-21 17:33 (4天前)回复
  73. I've read some excellent stuff here. Certainly worth bookmarking for revisiting. I surprise how so much effort you place to create this sort of great informative web site.
    Fashion2018-02-22 13:00 (3天前)回复
  74. I do trust all of the ideas you have offered to your post. They're really convincing and can certainly work. Still, the posts are very short for beginners. May just you please extend them a bit from subsequent time? Thank you for the post.
    Home Improvement2018-02-22 20:51 (3天前)回复
  75. Really nice pattern and wonderful subject matter, nothing else we want : D.
    Health2018-02-23 04:57 (2天前)回复
  76. Generally I do not read article on blogs, but I wish to say that this write-up very forced me to take a look at and do so! Your writing taste has been surprised me. Thanks, very great article.
    Health2018-02-23 12:57 (2天前)回复
  77. Very interesting information!Perfect just what I was searching for!
    Web Design2018-02-24 01:27 (1天前)回复
  78. obviously like your web-site however you have to take a look at the spelling on quite a few of your posts. Many of them are rife with spelling problems and I in finding it very troublesome to tell the truth however I will surely come back again.
    travel agency2018-02-24 02:22 (1天前)回复
  79. Wow, superb weblog layout! How long have you ever been running a blog for? you made running a blog look easy. The overall glance of your site is great, as well as the content material!
    flight2018-02-24 02:41 (1天前)回复
  80. I have been examinating out some of your stories and i can state nice stuff. I will surely bookmark your website.
    Finance2018-02-24 10:16 (1天前)回复
  81. I do consider all the concepts you have offered for your post. They're really convincing and can definitely work. Still, the posts are very short for newbies. Could you please prolong them a little from subsequent time? Thank you for the post.
    Pets2018-02-24 10:16 (1天前)回复
  82. I have to voice my passion for your kindness for men and women that have the need for guidance on the content. Your personal dedication to getting the solution throughout has been exceptionally valuable and have surely made men and women much like me to get to their aims. Your own important instruction entails a whole lot to me and even more to my fellow workers. Thank you; from everyone of us.
    Entertainment2018-02-24 10:21 (1天前)回复
  83. It is appropriate time to make some plans for the future and it's time to be happy. I've read this post and if I could I want to suggest you few interesting things or advice. Perhaps you could write next articles referring to this article. I wish to read even more things about it!
    Travel2018-02-24 10:23 (1天前)回复
  84. I in addition to my pals were checking out the excellent ideas from your site and immediately developed an awful feeling I never expressed respect to the web blog owner for those strategies. These women appeared to be totally warmed to read through all of them and have in effect definitely been enjoying these things. I appreciate you for actually being very considerate and then for obtaining this form of incredible issues millions of individuals are really desperate to know about. My personal sincere regret for not saying thanks to sooner.
    Technology2018-02-24 10:25 (1天前)回复
  85. Merely wanna comment that you have a very decent site, I the style it really stands out.
    Home Improvement2018-02-24 11:20 (1天前)回复
  86. You are my aspiration, I own few blogs and sometimes run out from brand :). "He who controls the past commands the future. He who commands the future conquers the past." by George Orwell.
    Travel2018-02-24 19:14 (18小时前)回复
  87. I reckon something really special in this web site.
    Business2018-02-25 04:56 (8小时前)回复