stranskyjan / pbrain-pyrandom Goto Github PK
View Code? Open in Web Editor NEWPython AI template for Piskvork gomoku manager
Python AI template for Piskvork gomoku manager
Hello,
I compiled the example.py you provided with pyinstaller without any modifications. When i try to use it in Piskvork manager i get the error "can't create process (error 216)". Any idea what I am doing wrong?
I write my AI with tensorflow and python3, is there a .py for python3?thank u
Hello,
I found your neat code on github and I'm currently trying to create a pbrain for Pyskvorky as well, but I have a strange problem would you mind helping me a bit?
I'm using win10 and python 3.7.0 with pyinstaller 3.4
Sending commands to Pyskvorky works, but I'm struggling reading from stdin.
I'm using sys.stdin.readline().strip() as you do.
However the call of readline is blocked until Pyskvorky declares a timeout on my executable and close it, and only at this moment I receive the "START 20" initially sent by Pyskvorky
I know you're using win32process but the documentation is nearly non-existing so i'm sticking to python threading.Thread objects and Queues for interThread communication.
It's working fine: readline works and fill the Queue with the command, which is read successfully by the other thread (you can see this using the Pyskvorky logs with DEBUG enabled after the timeout)
I don't get how the thread object would prevent python from reading stdin, I've tried read(), input() etc instead of readline and it's not working either so if you have any ideas I'll take it!
I've joined the script and build files if you want to take a deeper look:
http://fromsmash.com/652da808-d2ca-11e8-95d3-06812412be8a
Thanks for your time and have a nice day
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.