• Portal
  • Forum
  • Search
  • Member
  • Misc
    • View New Posts
    • View Today's Posts
    • View Forum Rules
    • Help Docs
Login or Register Hello There, Guest! Please Login or Register to gain Full Access!
Login
Username:
Password: Lost Password?
 

  1. The Garden Gate
  2. General Discussions
  3. General Talk
  4. Python AI Agents
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Python AI Agents
BAZAntonio
Red Rose
*
Posts: 1
Threads: 1
Joined: May 2021
Reputation: 0
#1
05-03-2021, 06:56 PM
Hi everyone.

I have recently started to play Pai Sho with a friend and got the idea of developing some AI agents to play the game.
I was thinking on building on the source code from the skudpaisho.com/ website which is available on github.

My first issue is that it is basically only JavaScript code which I don't know. I can read it and understand it to a certain extend. I work mainly with Python. I would like to ask, specially to @Skud, what you would suggest to integrate the JavaScript code with Python such that I can interact with the game using Python code and objects?


I was thinking of some approaches:
- Somehow start a Pai Sho local server and interact with it with Python
- Convert the JavaScript code to python with something like Js2Py (https://github.com/PiotrDabkowski/Js2Py)
- Recreate the Pai Sho game in Python and then build an AI over it.



My idea is to create several agents, make them play with each others and publish the results (best moves, piece importance, greedy vs long-term strategies, usage of harmony bonus, inverse reinforcement learning, etc). There aren't many articles on Pai Sho strategy and AI.

Any help is welcome. Smile
Find
Reply
Skud
Not many still cling to the ancient ways
*******
Posts: 66
Threads: 22
Joined: Sep 2018
#2
08-17-2021, 06:45 PM
Hi! Please join the Discord to get involved, thanks!
Website Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)

About Our Community

Discuss about various topics in our community and have fun while doing so. Welcome to The Garden Gate

Quick Links



Reach Us

Contact Us  Meet Our team

Powered By MyBB. Crafted by EreeCorp.
Linear Mode
Threaded Mode