Image Image Image




Post new topic Reply to topic  [ 29 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: The Python botting thread
PostPosted: Fri Oct 30, 2009 8:16 pm 
Offline
Senior member
User avatar

Posts: 172
Location: France
Favourite Bot: Lucy Liubot
This thread is to regroup useful resources to do Python botting.

If you have got some code or link please post here or PM me, I'll ask indiana to update this post.

Screen scrapping

Outputs/Inputs

OCR

AI

Poker simulation/game
    pypoker.py - "pypoker.py is a simple text mode texas holdem poker simulator written in Python. It allows you to play a game of texas holdem against a number of computer opponents."
    PyPoker - "PyPoker is a python module used for simulating Texas Hold-em and other popular poker games."
    pyTBot - "pyTBot is an IRC bot that deals a single-table Texas Holdem poker tournament."
    Rekop - "Rekop is an internet based multiplayer 7-stud poker game."
    m2poker - "A multiplayer poker game for PyS60."
    HoldEm4Nuts - "A cross-platform Client/Server Texas Hold'em poker software."
    Pkoe poker dealer - "Pkoe is a python implementation of a poker dealer."
    mypypokergame - "Classic Texas Hold'Em Poker game in python. "

Stats

Hand evaluations
    PyPoker-Eval - Python interface to poker-eval. Seems to only works under linux.

Tools

Scientific Tools for Python
    SciPy (pronounced "Sigh Pie") is open-source software for mathematics, science, and engineering. It is also the name of a very popular conference on scientific programming with Python. The SciPy library depends on NumPy, which provides convenient and fast N-dimensional array manipulation. The SciPy library is built to work with NumPy arrays, and provides many user-friendly and efficient numerical routines such as routines for numerical integration and optimization. Together, they run on all popular operating systems, are quick to install, and are free of charge. NumPy and SciPy are easy to use, but powerful enough to be depended upon by some of the world's leading scientists and engineers. If you need to manipulate numbers on a computer and display or publish the results, give SciPy a try!
    Rpy for statistics in python-- useful for some opponent modeling techniques and clustering.


Top
 Profile E-mail  
 
 Post subject: Re: The Python botting thread
PostPosted: Sat Oct 31, 2009 6:48 pm 
Offline
Junior member
User avatar

Posts: 24
Favourite Bot: I dont have one
This code enumerates thorough windows and gets the hwnd and window text of all windows. You can then filter through to get your specfic client window. The win32api can be downloaded from http://python.net/crew/skippy/win32/

Code:
from win32gui import EnumWindows,GetWindowText,GetWindowRect
import win32api
import win32con
import win32com.client


class win32funcs():
    def getWindowInfo(self):
        resultList = []
        EnumWindows(self.windowSizeHandler, resultList)
        return resultList

    def windowSizeHandler(self, hwnd, resultList):
        resultList.append((hwnd, GetWindowText(hwnd), GetWindowRect(hwnd)))


    def getwindow(self,windowname):
        windowlist = []
        windowlist = self.getWindowInfo()
        for window in windowlist:
            if(window[1].startswith(windowname)):
                return window[1]


Top
 Profile  
 
 Post subject: Re: The Python botting thread
PostPosted: Sun Nov 01, 2009 11:37 am 
Offline
Senior member
User avatar

Posts: 172
Location: France
Favourite Bot: Lucy Liubot
Thanks Illiyah. I asked indiana to update the list.


Top
 Profile E-mail  
 
 Post subject: Re: The Python botting thread
PostPosted: Sun Nov 01, 2009 5:33 pm 
Offline
Senior member
User avatar

Posts: 172
Location: France
Favourite Bot: Lucy Liubot
New piece of code in screen scrapping : Comparing images and generating masks


Top
 Profile E-mail  
 
 Post subject: Re: The Python botting thread
PostPosted: Tue Nov 03, 2009 11:53 am 
Offline
Senior member
User avatar

Posts: 172
Location: France
Favourite Bot: Lucy Liubot
New link in Outputs/Inputs : Sending hotkeys with WScript.Shell


Top
 Profile E-mail  
 
 Post subject: Re: The Python botting thread
PostPosted: Tue Nov 03, 2009 6:32 pm 
Offline
Senior member
User avatar

Posts: 172
Location: France
Favourite Bot: Lucy Liubot
I made an error with the link of : AIMA Python Code - Code from the book "AI: A Modern Approach"

The correct link is : http://aima.cs.berkeley.edu/python/readme.html


Top
 Profile E-mail  
 
 Post subject: Re: The Python botting thread
PostPosted: Wed Nov 04, 2009 6:51 pm 
Offline
Senior member
User avatar

Posts: 172
Location: France
Favourite Bot: Lucy Liubot
News links in AI / Artificial Neural Network :

    PyBrain
    PyFANN - Ctypes wrapper of the FANN lib. No need to compile this one, unlike the SWIG wrapper of the official FANN website.


Top
 Profile E-mail  
 
 Post subject: Re: The Python botting thread
PostPosted: Tue Nov 17, 2009 3:40 am 
Offline
Senior member
User avatar

Posts: 168
Favourite Bot: none
Hi, I have a mostly functional python bot, and these resources look like they'll be helpful in the future. So thanks for that.

Are there many python botters on this site? It seems like the vast majority are programming in C/C++.


Top
 Profile E-mail  
 
 Post subject: Re: The Python botting thread
PostPosted: Tue Nov 17, 2009 7:30 am 
Offline
Senior member
User avatar

Posts: 172
Location: France
Favourite Bot: Lucy Liubot
Not many from what I have seen. Maybe ten person.

It seems to me that Java and C#/C++ represent the majority on this site.


Top
 Profile E-mail  
 
 Post subject: Re: The Python botting thread
PostPosted: Wed Nov 18, 2009 8:21 pm 
Offline
Senior member
User avatar

Posts: 172
Location: France
Favourite Bot: Lucy Liubot
New link in AI / Artificial Neural Network :
    pyneat - Implementation of the NEAT (NeuroEvolution of Augmenting Topologies) algorithm in Python

Neat is a genetic algorithm for evolving ANN so that a it can start with no specified number of hidden neurons/layer and add more as it need it.

Here is the classic xor example :
With NEAT : http://code.google.com/p/pyneat/source/ ... or_neat.py
And without : http://code.google.com/p/pyneat/source/ ... /xor_bp.py


Top
 Profile E-mail  
 
 Post subject: Re: The Python botting thread
PostPosted: Fri Apr 30, 2010 7:11 pm 
Offline
Junior member
User avatar

Posts: 24
Favourite Bot: None
http://code.google.com/p/fuzzpy/ - FuzzPy is a library for fuzzy sets, fuzzy graphs, and general fuzzy mathematics for Python.

http://gambit.sourceforge.net/ - Gambit is a library of game theory software and tools for the construction and analysis of finite extensive and strategic games. Gambit is designed to be portable across platforms: it currently is known to run on Linux, FreeBSD, MacOS X, and Windows 98 and later.


Top
 Profile E-mail  
 
 Post subject: Re: The Python botting thread
PostPosted: Sat Jun 12, 2010 9:17 pm 
Offline
Regular member
User avatar

Posts: 57
Favourite Bot: favourite_bot
I had a look if any of these libraries have usable code for a simulation plattform. The following projects have no good code at all:

pypoker.py
PyPoker
Pkoe poker dealer
mypypokergame


Top
 Profile E-mail  
 
 Post subject: Re: The Python botting thread
PostPosted: Tue Jun 15, 2010 10:38 am 
Offline
Regular member
User avatar

Posts: 57
Favourite Bot: favourite_bot
HoldEm4Nuts is dead also. Any other engines out there I am overlooking?


Top
 Profile E-mail  
 
 Post subject: Re: The Python botting thread
PostPosted: Tue Jun 15, 2010 5:17 pm 
Offline
Senior member
User avatar

Posts: 356
Favourite Bot: OpenHoldem
There's a python botting framework in development on this forum, but there's been very little news from them in the past few months.


Top
 Profile E-mail  
 
 Post subject: Re: The Python botting thread
PostPosted: Thu Jun 17, 2010 1:44 am 
Offline
Senior member
User avatar

Posts: 168
Favourite Bot: none
As Panik says, there is a Python framework in development on this forum. The two main developers, myself and iamnobody have had to take a break from botting for a while so it is not as active as it could be. The framework is fully functional though.

PM one of us for more info, we will let you in as long as you intend to contribute some code at some point.


Top
 Profile E-mail  
 
 Post subject: Re: The Python botting thread
PostPosted: Thu Sep 16, 2010 5:38 pm 
Offline
Junior member
User avatar

Posts: 24
Favourite Bot: None
Any news about framework? :) Are you writing it from scratch or maybe you use some ready hands evaluators etc?


Top
 Profile E-mail  
 
 Post subject: Re: The Python botting thread
PostPosted: Wed May 25, 2011 3:41 pm 
Offline
Junior member
User avatar

Posts: 24
Favourite Bot: None
We have OpenHoldem adaptation also for Python programming language:
http://www.maxinmontreal.com/forums/vie ... 74&t=12971


Top
 Profile E-mail  
 
 Post subject: Re: The Python botting thread
PostPosted: Fri May 27, 2011 2:01 pm 
Offline
Senior member
User avatar

Posts: 356
Favourite Bot: OpenHoldem
Here's some more python botting code:
https://github.com/aliang/notpoker


Top
 Profile E-mail  
 
 Post subject: Re: The Python botting thread
PostPosted: Fri May 27, 2011 2:04 pm 
Offline
Senior member
User avatar

Posts: 356
Favourite Bot: OpenHoldem
pplatypus wrote:
As Panik says, there is a Python framework in development on this forum. The two main developers, myself and iamnobody have had to take a break from botting for a while so it is not as active as it could be. The framework is fully functional though.

PM one of us for more info, we will let you in as long as you intend to contribute some code at some point.


Are we planning on publicly releasing the completed framework? Could we move it over to github and open it up to more developers?


Top
 Profile E-mail  
 
 Post subject: Re: The Python botting thread
PostPosted: Sat Aug 27, 2011 10:26 pm 
Offline
New member
User avatar

Posts: 2
Favourite Bot: android
Hi just released my Embedded Python integration for OpenHoldem

http://code.google.com/p/opyholdem/

_________________
OPyHoldem - Python integration for OpenHoldem


Top
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 29 posts ]  Go to page 1, 2  Next


Who is online

Users browsing this forum: No registered users and 14 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: