SRL Archive - Help and Support

Trying to solve Leo


XcanadamanX

2007-02-01 11:58:13

First of all if anyone has already done this please tell me. Secondly if you want to help me out a bit…by all means help me out.
ok heres my dilema(sp) im trying to figure out how to find these:
and so on… now what would be the best way to find these?i tried dtms…hardly ever found them. i looked at the other random procedures…but they are kinda confusing me ( info on how the box would work might help me out…i dont know). any ideas? if you want to contact me on msn…mine is [email]ryguy@sympatico.ca[/email]. thanks

Still Need Help Look At Bottom Post…Thanks

Boreas

2007-02-01 12:12:02

I think the first step is figuring out when the rotating tile is flat. Maybe you could do that by calculating the area that is not the background, assuming you can auto color the background color.

XcanadamanX

2007-02-01 13:11:16

ok ill try that.

Yakman

2007-02-01 13:32:48

the box solver works by starting at the center, then working its way outwards and counting the corner, this tells it what shape it is

this procedure might be useful
FindColorsTolerance

it puts the colors it finds a TPointArray, you could try using it to count the colors and if they are higher than (something) then the plane is flat

XcanadamanX

2007-02-01 13:39:09

the one problem i see is that the background color is not the same color. you cant really see it on the pics but in the game you can see it where it changes colors.

edit: in solvebox what does this mean and do? ProcessPicture(c, shape, num, 0);


edit: i have a new idea of how to solve this… i have it so it counts the pixels of the color of the pickaxe(just an ex) then i found out the highest number of pixels. im thinking all as i have to do is find the amount of pixels of the one color and find the highest amount that it found and if i have a stored number for all the images i could just find the closest one…or i could use this way to eliminate some of the images. findings(will be adding more):
WC
1182
1446
1330
1195
1243
1318
1381
1067
1035
1050
High#
1446

Cooking
1140
2228
2941
3501
3948
4167
4171
4161
3930
3848
3236
2278
1305
1016
1732
2225
2575
2889
3150
3461
3777
3914
3830
3621
2948
2185
1631
High#
4171

Gardening
1103
1365
1534
1737
1961
2050
2080
1960
1774
1525
1245
1648
1842
1939
1902
1948
1987
1672
1503
1324
1042
1014
1560
1803
2101
2120
2004
1711
1567
1443
1236
1072
High#
2120

Pottery
1057
1164
1301
1403
1460
1435
1422
1351
1222
1131
1044
1269
1382
1385
1383
1317
1306
1334
1432
1587
1604
1639
1643
1589
1513
1438
1227
High#
1643

Mine
1057
1351
1562
1562
1562
1657
1241
1512
1660
1595
High#
1660

Edit: how do i put the numbers i find into an array?