almostimplemented / checkers Goto Github PK
View Code? Open in Web Editor NEWSimple checkers program written in Python. Model implementation of Arthur Samuel's famous program.
License: Other
Simple checkers program written in Python. Model implementation of Arthur Samuel's famous program.
License: Other
Maybe a minor bug. I noticed in the game I had 2 jump choices. One was the start of a double jump. I did the first jump of the double jump. Instead of forcing me to complete the double-jump, it allowed me 2 jump choices: 1) completing the double jump, or 2) taking the other jump choice I had at the beginning.
I'm far from a rules expert, but the one set I saw said you have to complete multiple jump sequences.
I attached dump of the game. Starts at turn 50.
When I run game.py with either arthur
or random_agent
, I get the following error :
Traceback (most recent call last):
File "game.py", line 237, in <module>
status = main()
File "game.py", line 168, in main
B.make_move(cpu_1.make_move(B))
File "C:\Users\julro\Desktop\Coding\DeepCheckers\checkers-master\checkers.py", line 66, in make_move
taken_piece = int(1 << sum(i for (i, b) in enumerate(bin(move)[::-1]) if b == '1')/2)
TypeError: unsupported operand type(s) for <<: 'int' and 'float'
It doesn't always occur on the same line but it's always that same TypeError
Hey could you please update license, so I can improve this codebase?
Thanks for posting this code. I'm thinking of using this as checkers environment for an implementation of AlphaZero agent I'm working on.
As far as you know, does this environment correctly implement all the rules?
Regarding the agent, I've always been terrible at checkers and haven't played since I was a kid. I beat the agent on my first try. Should it be relatively strong? Perhaps I got lucky.
Thanks a lot, Pat
Arthur Samuel's program was historically the first learning agent.
Here, I tried to play a game against the arthur agent, with the python2 game.py
command. Followed by selecting arthur
as the agent. I typed 0
all the way through. Always selecting the first move. And I won !!
I'm under the opinion that the arthur agent hasn't been learning much... it is supposed to be on par or defeat average checkers players. And, here, 0 all the way through, and I win.
I also do not see many things in the code that could be construed as implementing the kind of prototype reinforcement learning that Arthur Samuel pioneered. Nor in the documentation.
So. Question: is learning implemented ?
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.