Windows纸牌机器人 [英] Windows Solitaire Bot

查看:100
本文介绍了Windows纸牌机器人的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好,所以我使用的是Microsoft Visual Studio 2010,我想制作一个可以自动完成Windows操作系统随附的Windows Solitaire游戏的机器人.我只是不知道我将从哪里开始或应该用哪种语言编写.有什么帮助吗?

Ok, so i am using Microsoft Visual Studio 2010 and I want to make a bot that automatically completes the Windows Solitaire game that comes with Windows OS''s. I just don''t know where i would start or what language it should be coded in. Any help?

推荐答案

老实说,这可能不是从问题的语气来看,可以根据您的经验水平为某人工作.有些位相对简单(例如,将鼠标单击发送到其他应用程序),而另一些则复杂得多:例如,读取其他应用程序的显示,并定位卡,将其解密为实际的卡值并适合.然后是一个问题,就像人类一样,它无法分辨出什么是未翻牌,因此自动完成"不一定是可能的-有些游戏甚至无法解决!

我建议您找到一些简单的方法,直到您有足够的经验为止-以我的经验水平,我花了相当多的时间来编写一个机器人来玩单人纸牌游戏! :laugh:
To be honest, that probably isn''t a job for someone at your experience level, judging from the tone of the question. Some bits are relatively simple (Sending mouse clicks to other applications for example), but others are a lot more complex: reading the other application display, and locating the cards, deciphering them into the actual card value and suit for example). Then there is the problem that just like a human, it can''t tell what unturned cards are, so "automatic completion" is not necessarily going to be possible - some games are not even solvable!

I would recommend that you find something a little simpler until you have a reasonable amount of experience - it would take me a not-inconsiderable amount of time to write a bot to play the solitaire game at my experience level! :laugh:


这篇关于Windows纸牌机器人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆