Giter Site home page Giter Site logo

chain-reaction-ai's People

Contributors

davidkowalk avatar notshridhar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

chain-reaction-ai's Issues

Game menu and in-game feature

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?

Add a setup.py

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.

Option to start second

I would like to suggest the option for the player to start second. Currently the game only supports the player to start first.

Error on launch

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):'

Add Online Support

Give players the option to play against each other over the internet.

  • Create server
  • Add "online" option for enemies
  • Create server interface to allow client to talk to server

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.