Author | Post |
---|---|
I am considering writing up an AI for Liars' Dice - while I setup the framework, does anyone have any suggestions for how the logic should work for it? | |
I will write one using autoit and then run it off my computer....if you have a suggestion for a better scripting program please tell me. | |
Oh may be difficult for the bot to see what cards it has. I am thinking of maybe somehow looking at what the image file name is..... not sure. | |
AutoIT is a good choice. However, like you mentioned, it will be difficult to identify the dice especially because they are not images. How about you code the logic in JavaScript, and I'll add it to the game as an AI? :) | |
Will be extremely resource heavy and I don't want to give away my algorithm. | |
You can't output the text in the same color as the background to ai bots can see what's going on? | |
I mean output the player's hand in white so the bot can easily read what cards he has. | |
Actually, if you write in javascript, you could even run the code through your browser. It will be much easier than using AutoIT to recognize the cards - think about everytime there's an interface change :P | |
Easier but very insecure....the database is like 70 mb......I doubt the browser can effeciently churn through that amount of data. | |
found this online: http://web.stanford.edu/class/cs109l/unrestricted/assignments/assn2/liars_dice.pdf | |
pdf is gone1 | |
Yah, they must've taken it down. It was basically an assignment on coding an AI for liars' dice. | |
http://code.tutsplus.com/tutorials/how-to-build-a-python-bot-that-can-play-web-games--active-11117 | |
http://web.stanford.edu/class/cs109l/unrestricted/assignments/assn1b/main.pdf | |
if hex(PixelGetColor ( 328+$nextone,723,$hWnd),6) = 333333 then | |
elseif hex(PixelGetColor ( 310+$nextone,705,$hWnd),6) = 333333 then | |
Finally I am figuring out how to get info from the screen using autoit. Took a while because I use zoomed in settings so the color reading were coming out bad.....then I realized I needed to just multiply all the coords autoit gave me by 1.5 and then everything works. :) | |
glad to see you're making progress :) | |
we finally have a bot, -AI-Madron | |
pretty awesome to be able to have a game with 10 players | |
Did you get to play 9 other humans? |
You can advertise on FunNode For as low as $2/day! Our unobtrusive ads offer an ideal balance of company impressions and user experience.
If interested, send us an email at admin[at]funnode[dot]com