Results 1 to 14 of 14

Thread: Robot

  1. #1
    PhQ's Avatar
    PhQ
    PhQ is offline Senior Member
    Join Date
    Mar 2010
    Location
    Lithuania
    Posts
    358
    Rep Power
    5

    Default Robot

    Hi,
    I have made a bot. For a game. It goes races people on the game.
    Is it possible to make the bot identify images and text?
    In the game you can change your car (you have to drag a picture to a space to change it) and would it be possible if the bot would identify the picture and drag it to the space to change it?

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default

    Before helping, I have to ask is this an honorable thing that you do? My gut tells me no, that it is significantly unfair to the other game players.

  3. #3
    PhQ's Avatar
    PhQ
    PhQ is offline Senior Member
    Join Date
    Mar 2010
    Location
    Lithuania
    Posts
    358
    Rep Power
    5

    Default

    Quote Originally Posted by Fubarable View Post
    Before helping, I have to ask is this an honorable thing that you do? My gut tells me no, that it is significantly unfair to the other game players.
    :D, I am making this bot so I can get more experience with java!

  4. #4
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

  5. #5
    PhQ's Avatar
    PhQ
    PhQ is offline Senior Member
    Join Date
    Mar 2010
    Location
    Lithuania
    Posts
    358
    Rep Power
    5

    Default

    So is it possible or not?

  6. #6
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,783
    Blog Entries
    7
    Rep Power
    21

    Default

    Quote Originally Posted by PhQ View Post
    So is it possible or not?
    Read the API documentation for the Robot class and see for yourself.

    kind regards,

    Jos

  7. #7
    PhQ's Avatar
    PhQ
    PhQ is offline Senior Member
    Join Date
    Mar 2010
    Location
    Lithuania
    Posts
    358
    Rep Power
    5

    Default

    Quote Originally Posted by JosAH View Post
    Read the API documentation for the Robot class and see for yourself.

    kind regards,

    Jos
    I've read it about a million times. Did you read this thread?
    Last edited by PhQ; 08-25-2010 at 08:23 PM.

  8. #8
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,783
    Blog Entries
    7
    Rep Power
    21

    Default

    Quote Originally Posted by PhQ View Post
    I've read it about a million times. Did you read this thread?
    Yes I have, hence my question.

    Jos

  9. #9
    PhQ's Avatar
    PhQ
    PhQ is offline Senior Member
    Join Date
    Mar 2010
    Location
    Lithuania
    Posts
    358
    Rep Power
    5

    Default

    Quote Originally Posted by JosAH View Post
    Yes I have, hence my question.

    Jos
    So do I have to use createScreenCapture ?

    Sorry I was up all night googling how to do it.

  10. #10
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,783
    Blog Entries
    7
    Rep Power
    21

    Default

    Quote Originally Posted by PhQ View Post
    So do I have to use createScreenCapture ?
    Yep; that's the only way to get an image of (part of) the screen.

    Quote Originally Posted by PhQ View Post
    Sorry I was up all night googling how to do it.
    Take a good night rest tonight.

    kind regards,

    Jos

  11. #11
    PhQ's Avatar
    PhQ
    PhQ is offline Senior Member
    Join Date
    Mar 2010
    Location
    Lithuania
    Posts
    358
    Rep Power
    5

    Default

    Quote Originally Posted by JosAH View Post
    Yep; that's the only way to get an image of (part of) the screen.

    kind regards,

    Jos
    Is it possible to read the text?

  12. #12
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default

    Sure, but you'd need an optical character recognition library (OCR) to do so. Again I have to say that there are better projects out there if your goal is to learn to program.

  13. #13
    PhQ's Avatar
    PhQ
    PhQ is offline Senior Member
    Join Date
    Mar 2010
    Location
    Lithuania
    Posts
    358
    Rep Power
    5

    Default

    Quote Originally Posted by Fubarable View Post
    Sure, but you'd need an optical character recognition library (OCR) to do so. Again I have to say that there are better projects out there if your goal is to learn to program.
    Any ideas what I could do? :)

  14. #14
    PhQ's Avatar
    PhQ
    PhQ is offline Senior Member
    Join Date
    Mar 2010
    Location
    Lithuania
    Posts
    358
    Rep Power
    5

Similar Threads

  1. Robot class
    By coltragon in forum New To Java
    Replies: 6
    Last Post: 07-12-2010, 06:54 PM
  2. Robot Game
    By yanipao in forum New To Java
    Replies: 1
    Last Post: 03-24-2010, 11:51 AM
  3. Robot Game
    By Galore in forum New To Java
    Replies: 7
    Last Post: 03-21-2010, 07:14 PM
  4. Help with Robot Class
    By protocos in forum Eclipse
    Replies: 11
    Last Post: 10-05-2009, 09:15 PM
  5. Robot Class
    By jfredrickson in forum New To Java
    Replies: 2
    Last Post: 07-11-2007, 10:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •