# Search:

Type: Posts; User: Lurie1

Page 1 of 3 1

1. ## Thread: Searching a 2d Array for lines of 3

by Lurie1
Replies
4
Views
330

### Re: Searching a 2d Array for lines of 3

I am interested if you could explain more i would appreciate it.

I do understand the principles but not really how they could be applied in this instance. also how would that do anything but...
2. ## Thread: Searching a 2d Array for lines of 3

by Lurie1
Replies
4
Views
330

### Re: Searching a 2d Array for lines of 3

The tiles are just the data points in the array I display them according the the number stored in the array 1-10. they are 45 by 45 pixel squares of varying color depending on the number in the array...
3. ## Thread: Searching a 2d Array for lines of 3

by Lurie1
Replies
4
Views
330

### Searching a 2d Array for lines of 3

At this point I have a tile based game. The tiles are stored in a 6 by 12 array labelled 1-10. I need to search the board to find if there are 3 or more in a row or column after the player makes a...
4. ## Thread: Pathing algorythem

by Lurie1
Replies
1
Views
121

### Pathing algorythem

I have been set a problem and do not know how to solve it, basically it is this.

I am given a 6 by 7 board with a total of 42 squares on it. Each of those squares has a line on it the line is...
5. ## Thread: Search for the Array

by Lurie1
Replies
14
Views
797

### Re: Search for the Array

to a robot function i want to move the mouse to that point
6. ## Thread: Search for the Array

by Lurie1
Replies
14
Views
797

### Re: Search for the Array

so the steps for specifying a point to either check would be, rectangle coordinates x, y + coordinates specified right?
7. ## Thread: Search for the Array

by Lurie1
Replies
14
Views
797

### Re: Search for the Array

yea i drew them out, ok well i guess if they have to be set like that they do...
8. ## Thread: Search for the Array

by Lurie1
Replies
14
Views
797

### Re: Search for the Array

well the problem because i could use screen coordinates for x, y but the rectangle will be in a different place every rime a random place on screen so would i have to say for each chunk of code set...
9. ## Thread: Search for the Array

by Lurie1
Replies
14
Views
797

### Re: Search for the Array

ok newbie question but once i set a rectangle using the robot class like the one above is there a way i can set that as the screen so when i say robot.mouseMove(x, y) it will move to the x, y inside...
10. ## Thread: Search for the Array

by Lurie1
Replies
14
Views
797

### Re: Search for the Array

ok will do
ps i understood the above just did not check if they were in the correct order assuming something was wrong with the code not the placement.
11. ## Thread: Search for the Array

by Lurie1
Replies
14
Views
797

### Re: Search for the Array

thanks norm i didn't realize i had them in the wrong order, i just updated the code to reflect this! but i don't have to define the variable i guess im using the wrong variable that bit of code where...
12. ## Thread: Search for the Array

by Lurie1
Replies
14
Views
797

### Search for the Array

<
import java.awt.*;
import java.awt.event.*;
import java.awt.Robot;
import java.awt.AWTException;
import java.awt.Rectangle;
import java.awt.Color;
import java.awt.Toolkit;
import...
13. ## Thread: might not have been instilized

by Lurie1
Replies
1
Views
336

### might not have been instilized

this is my code i have a few problems but this is the biggie:

<
{
Robot robot = new Robot();
Color color0 = new Color(39, 36, 11);
Rectangle a = new Rectangle(0, 0, 1365, 770);...
14. ## Thread: Loop not working

by Lurie1
Replies
12
Views
1,054

### Re: Loop not working

<
import java.awt.*;
import java.awt.event.*;
import java.awt.Robot;
import java.awt.AWTException;
import java.awt.Rectangle;
import java.awt.Color;
import java.awt.Toolkit;
import...
15. ## Thread: Loop not working

by Lurie1
Replies
12
Views
1,054

### Re: Loop not working

ok so where would i put it? i took it out completely and its still not looping, do i need to put it in at the end of the method?
16. ## Thread: Loop not working

by Lurie1
Replies
12
Views
1,054

### Re: Loop not working

ok explanation, no i want that chunk of code to repeat over and over again until it returns with a true (an i found the pixel mate) and im hoping the while loop is the best one but im open to...
17. ## Thread: Loop not working

by Lurie1
Replies
12
Views
1,054

### Loop not working

<
{
Rectangle rectangle = new Rectangle(0, 0, 1365, 770);
{
while(true)
{
BufferedImage image = robot.createScreenCapture(rectangle);
search: for(int x = 0; x <...

by Lurie1
Replies
8
Views
1,056

yes it does
19. ## Thread: I'm making a program that recognizes cards say for poker

by Lurie1
Replies
8
Views
1,056

### Re: I'm making a program that recognizes cards say for poker

no i guess it does not but i imported the untility.Arrays so i was under the impression i could use search and other tools without making methods around them?
20. ## Thread: I'm making a program that recognizes cards say for poker

by Lurie1
Replies
8
Views
1,056

### Re: I'm making a program that recognizes cards say for poker

the reason im posting is because i dont know how to solve them and i understand them but because i imported the whatchumacallit and all idk why im getting them

1. java:43 cannot find symbol...
21. ## Thread: I'm making a program that recognizes cards say for poker

by Lurie1
Replies
8
Views
1,056

### I'm making a program that recognizes cards say for poker

this is the code i have so far:

<
import java.awt.*;
import java.awt.event.*;
import java.awt.Robot;
import java.awt.AWTException;
import java.awt.Rectangle;
import java.awt.Color;
22. ## Thread: I had an old code it really sucked, so i now am making a new one

by Lurie1
Replies
74
Views
1,723

### Re: I had an old code it really sucked, so i now am making a new one

so in the method class i would set inputColor == and then i would just do Mouse.move and the x, y will be the set after i set inputColor?
23. ## Thread: I had an old code it really sucked, so i now am making a new one

by Lurie1
Replies
74
Views
1,723

### Re: I had an old code it really sucked, so i now am making a new one

Ok so i have this class which is my find pixel class, i believe as it is now it will when called find the inputColor value and set its location using the set location. What i need to do now is make...
24. ## Thread: I had an old code it really sucked, so i now am making a new one

by Lurie1
Replies
74
Views
1,723

### Re: I had an old code it really sucked, so i now am making a new one

well the method will take a screen shot, search the shot for the color that was input through int inputColor and return the x, y of the pixel with that specific color
25. ## Thread: I had an old code it really sucked, so i now am making a new one

by Lurie1
Replies
74
Views
1,723

### Re: I had an old code it really sucked, so i now am making a new one

what do you mean how am i going to return the x, y values. I'm going to call the method and get both the x and y values of the color specified set them in the main class as current x,y values and use...
Results 1 to 25 of 67
Page 1 of 3 1