siggame / joueur.py Goto Github PK
View Code? Open in Web Editor NEWPython client for the Cerveau game server.
License: MIT License
Python client for the Cerveau game server.
License: MIT License
So I installed the newest python version for the arena
wget https://www.python.org/ftp/python/3.7.3/Python-3.7.3.tgz
tar -xzvf Python-3.7.3.tgz
cd Python-3.7.3
mkdir build
cd build
../configure --enable-optimizations --with-ensurepip=install
make -j8
make altinstall
update-alternatives --install /usr/bin/python python /usr/local/bin/python3.7 50
alias pip=pip3.7
alias pip3=pip3.7
alias python3=python
but makefiles do not see the symbolic links that update-alternatives and alias provides -- therefore "make" will fail with
pip3: unknown command
What does work is if you replace pip3 in the makefile with
pip3.7
and python3 in the makefile with
python3.7
?? Is there a better way to get around this? I think for the competition I will tell people to change their make file.
Currently there is no 80 width limiter for the creer templates. Use TextWrapper to wrap long lines. Then it should be full compliant.
If there are other PEP8 errors fix them too; though I think I already did that a while back.
https://github.com/siggame/Joueur.py/blob/master/joueur/game_manager.py#L73
self._DELTA_LIST_LENGTH
is a string, while d
is a dictionary, but d
is checked if it is within self._DELTA_LIST_LENGTH
Users of the client have tried to import their own files locally, but imported files have to be pre-pended with games.GAME_NAME
because it is relative to main.py's location. Adding clarification about this in the README or elsewhere would help to reduce the chance of this occurring.
Currently make is intended to "compile" the clients.
Python does not need this, but it could do basic syntax checking, as if the code is invalid it will not run when the time comes.
passing the long version of -i
does not get parsed correctly
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.