notshridhar / chain-reaction-ai Goto Github PK
View Code? Open in Web Editor NEWai opponent for the game chain reaction
License: MIT License
ai opponent for the game chain reaction
License: MIT License
Can you add a menu in the start of the pygame window which allows to select the agents and start the game? And also a pause button and timer while the game is on?
For a future use, it would be better if you could automate builds using a setup.py (PEP8)
It would make running the game easier on the consumer end.
I would like to suggest the option for the player to start second. Currently the game only supports the player to start first.
Hi
I saw your reddit post with I Made This
flair. Great work!!
I was planning to implement this for an educational programme. However I could not start the code
I am already having all the python dependencies
All I did was
git clone https://github.com/shridharrhegde/chain-reaction-ai
cd chain-reaction-ai
./play.py enemy
./play.py
Neither works; It does not show any error message, but however shows a drag cursor
When I drag on any random part of the screen; it crashes with the following error
import: unable to grab mouse '': No such file or directory @ error/xwindow.c/XSelectWindow/9301.
import: unable to read X window image '': Success @ error/xwindow.c/XImportImage/4933.
import: unable to read X window image '': Success @ error/xwindow.c/XImportImage/5040.
import: `random' @ error/import.c/ImportImageCommand/1273.
import: unable to grab mouse '': No such file or directory @ error/xwindow.c/XSelectWindow/9301.
import: unable to read X window image '': Success @ error/xwindow.c/XImportImage/4933.
import: unable to read X window image '': Success @ error/xwindow.c/XImportImage/5040.
import: `time' @ error/import.c/ImportImageCommand/1273.
import: unable to grab mouse '': No such file or directory @ error/xwindow.c/XSelectWindow/9301.
import: unable to read X window image '': Success @ error/xwindow.c/XImportImage/4933.
import: unable to read X window image '': Success @ error/xwindow.c/XImportImage/5040.
import: `os' @ error/import.c/ImportImageCommand/1273.
import: unable to grab mouse '': No such file or directory @ error/xwindow.c/XSelectWindow/9301.
import: unable to read X window image '': Success @ error/xwindow.c/XImportImage/4933.
import: unable to read X window image '': Success @ error/xwindow.c/XImportImage/5040.
import: unable to grab mouse '': No such file or directory @ error/xwindow.c/XSelectWindow/9301.
import: unable to read X window image '': Success @ error/xwindow.c/XImportImage/4933.
import: unable to read X window image '': Success @ error/xwindow.c/XImportImage/5040.
import: unable to grab mouse '': No such file or directory @ error/xwindow.c/XSelectWindow/9301.
import: unable to read X window image '': Success @ error/xwindow.c/XImportImage/4933.
import: unable to read X window image '': Success @ error/xwindow.c/XImportImage/5040.
import: `mmconfig' @ error/import.c/ImportImageCommand/1273.
import: unable to grab mouse '': No such file or directory @ error/xwindow.c/XSelectWindow/9301.
import: unable to read X window image '': Success @ error/xwindow.c/XImportImage/4933.
import: unable to read X window image '': Success @ error/xwindow.c/XImportImage/5040.
import: unable to grab mouse '': No such file or directory @ error/xwindow.c/XSelectWindow/9301.
import: unable to read X window image '': Success @ error/xwindow.c/XImportImage/4933.
import: unable to read X window image '': Success @ error/xwindow.c/XImportImage/5040.
import: unable to grab mouse '': No such file or directory @ error/xwindow.c/XSelectWindow/9301.
import: unable to read X window image '': Success @ error/xwindow.c/XImportImage/4933.
import: unable to read X window image '': Success @ error/xwindow.c/XImportImage/5040.
import: unable to grab mouse '': No such file or directory @ error/xwindow.c/XSelectWindow/9301.
import: unable to read X window image '': Success @ error/xwindow.c/XImportImage/4933.
import: unable to read X window image '': Success @ error/xwindow.c/XImportImage/5040.
import: `game' @ error/import.c/ImportImageCommand/1273.
import: unable to grab mouse '': No such file or directory @ error/xwindow.c/XSelectWindow/9301.
import: unable to read X window image '': Success @ error/xwindow.c/XImportImage/4933.
import: unable to read X window image '': Success @ error/xwindow.c/XImportImage/5040.
import: unable to grab mouse '': No such file or directory @ error/xwindow.c/XSelectWindow/9301.
import: unable to read X window image '': Success @ error/xwindow.c/XImportImage/4933.
import: unable to read X window image '': Success @ error/xwindow.c/XImportImage/5040.
import: unable to grab mouse '': No such file or directory @ error/xwindow.c/XSelectWindow/9301.
import: unable to read X window image '': Success @ error/xwindow.c/XImportImage/4933.
import: unable to read X window image '': Success @ error/xwindow.c/XImportImage/5040.
import: `minimax' @ error/import.c/ImportImageCommand/1273.
import: unable to grab mouse '': No such file or directory @ error/xwindow.c/XSelectWindow/9301.
import: unable to read X window image '': Success @ error/xwindow.c/XImportImage/4933.
import: unable to read X window image '': Success @ error/xwindow.c/XImportImage/5040.
import: unable to grab mouse '': No such file or directory @ error/xwindow.c/XSelectWindow/9301.
import: unable to read X window image '': Success @ error/xwindow.c/XImportImage/4933.
import: unable to read X window image '': Success @ error/xwindow.c/XImportImage/5040.
import: unable to grab mouse '': No such file or directory @ error/xwindow.c/XSelectWindow/9301.
import: unable to read X window image '': Success @ error/xwindow.c/XImportImage/4933.
import: unable to read X window image '': Success @ error/xwindow.c/XImportImage/5040.
import: `mcts' @ error/import.c/ImportImageCommand/1273.
./play.py: line 18: syntax error near unexpected token `('
./play.py: line 18: `with open(os.devnull, "w") as f, contextlib.redirect_stdout(f):'
Give players the option to play against each other over the internet.
The server would assign who goes to play first by whomever joins first. After a round is finished it should run again but switch roles.
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.