|
Post by moshelog on Jan 24, 2010 21:35:09 GMT
djbarnes , kozkon
after u playing around with the code any way to test bot code without sitting in table and wait till the card that u want will appear?
thx in advance moshelog
|
|
|
Post by djbarnes on Jan 25, 2010 5:28:04 GMT
i have my own test.au3 file, that i do random things with, like generate a random hand and see what my bot will do. But it is very custom so it won't do you much good.
I recommend you take a copy of bot.au3 and call it test.au3 and start changing it so it doesn't sit at the table or anything, and only tests what you need to test.
|
|
|
Post by moshelog on Jan 25, 2010 7:18:37 GMT
ok i did change it to test.au3 can u expand abit dj , like what input i need to put ? $shand ? or anything else
thx alot for ur help
|
|
|
Post by djbarnes on Jan 25, 2010 10:15:56 GMT
it depends what you are trying to test.
what are you trying to test?
for example, if i just added code to detect a full house, called _isFullHouse, i might do something like:
;i have in my test function: $sHand = InputBox ("enter hand","enter hand (blank=random)") ;then i have a function that makes a random hand, if nothing is entered ;then i would test my new function consolewrite ("isFullHouse="&_isFullHouse($sHand)&@CRLF) ;and that would output to the scite (autoit editor) window, the result, so i can see if my code works.
|
|
|
Post by moshelog on Jan 25, 2010 10:47:36 GMT
thx being cleared now
|
|