Welcome to Dream.In.Code
Become an Expert!

Join 149,575 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,693 people online right now. Registration is fast and FREE... Join Now!




Auto play a game

 
Reply to this topicStart new topic

Auto play a game

Smarf
2 Oct, 2007 - 09:16 AM
Post #1

D.I.C Head
**

Joined: 21 Sep, 2007
Posts: 80



Thanked: 2 times
My Contributions
A little background:

I play games on Pogo.com where you win "tokens" for playing or completing certain objectives. Those tokens can be turned in for raffles and prizes and are valuable because of it.

There is a seperate business aspect to it where people sell "autos", or programs that play these games automatically for you. For example, in a simple slot machine program it would click the "Maximum bet" button and then pull the handle, over and over.

Ethical/legal problems aside, Since I've recently decided to go back to school and pursue programming, I'm curious as to how something like this is done. I posted it here because I'm not sure what language these programs are written in exactly. So here are my questions:

- How does an auto "see" the screen? Does the program intercept and interact with the code being sent between the computers? Does it look at the screen somehow and see where the red checkers are located, and where you can jump too? Or would it use a brute force method and simply "click" on the screen and check what happens?

- Is there a way to tell what language a program was written in?

- For the algorithm portion, let's say you're making something to play Texas Holdem Poker automatically. If you, the programmer, aren't an expert exactly then how would you teach a computer (ie program) to play and win?
User is offlineProfile CardPM
+Quote Post

no2pencil
RE: Auto Play A Game
2 Oct, 2007 - 09:22 AM
Post #2

My fridge be runnin OH NOEZ!
Group Icon

Joined: 10 May, 2007
Posts: 7,131



Thanked: 76 times
Dream Kudos: 2425
Expert In: Goofing Off

My Contributions
QUOTE(Smarf @ 2 Oct, 2007 - 10:16 AM) *

- Is there a way to tell what language a program was written in?

Generally, the file extention &/or platform it is being used in.

QUOTE(Smarf @ 2 Oct, 2007 - 10:16 AM) *

- For the algorithm portion, let's say you're making something to play Texas Holdem Poker automatically. If you, the programmer, aren't an expert exactly then how would you teach a computer (ie program) to play and win?

You would code logic. The program (computer) wouldn't make a decision, it would filter results based on comparisons to data.

User is online!Profile CardPM
+Quote Post

Smarf
RE: Auto Play A Game
2 Oct, 2007 - 09:38 AM
Post #3

D.I.C Head
**

Joined: 21 Sep, 2007
Posts: 80



Thanked: 2 times
My Contributions
QUOTE(no2pencil @ 2 Oct, 2007 - 10:22 AM) *

QUOTE(Smarf @ 2 Oct, 2007 - 10:16 AM) *

- Is there a way to tell what language a program was written in?

Generally, the file extention &/or platform it is being used in.


Sorry but I'm new to programming and currently only taking VB 2005 & C++ classes. Both of the IDE's create .exe files and I'm not sure how I could tell an exe was a C++ or VB based program.

QUOTE(Smarf @ 2 Oct, 2007 - 10:16 AM) *

- For the algorithm portion, let's say you're making something to play Texas Holdem Poker automatically. If you, the programmer, aren't an expert exactly then how would you teach a computer (ie program) to play and win?
QUOTE(no2pencil @ 2 Oct, 2007 - 10:22 AM) *

You would code logic. The program (computer) wouldn't make a decision, it would filter results based on comparisons to data.




I'm not sure what the second part means, sorry. It's kind of hard to grasp for me because it seems like to make a good AI you'd have to be one yourself, especially if the game is mental (chess, card games) vs. physical like first person shooters etc.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/7/09 10:29PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month