albertz / planet_wars-cpp Goto Github PK
View Code? Open in Web Editor NEWGoogle AI challenge: Planet Wars game engine and co, C++ implementation
Home Page: http://ai-contest.com
Google AI challenge: Planet Wars game engine and co, C++ implementation
Home Page: http://ai-contest.com
Google AI Challenge http://ai-contest.com/ This is the C++ implementation of the game engine, the game viewer and some other stuff. Java/Python code can be found here: http://code.google.com/p/ai-contest/source/browse/trunk/planet_wars/ - Albert Zeyer, www.az2000.de
Maybe you are already aware of these, but just in case (I don't know how relevant they are):
$ make
g++ -g -O2 -Wall process.cpp -c -o process.o
process.cpp: In member function ‘void Process::flush()’:
process.cpp:123: warning: ignoring return value of ‘ssize_t write(int, const void_, size_t)’, declared with attribute warn_unused_result
g++ -g -O2 -Wall engine.o game.o utils.o process.o -o playgame
g++ -g -O2 -Wall -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT showgame.cpp -c -o showgame.o
g++ -g -O2 -Wall -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT viewer.cpp -c -o viewer.o
gcc -g -O2 -Wall -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT font.c -c -o font.o
g++ -g -O2 -Wall -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT SDL_picofont.cpp -c -o SDL_picofont.o
g++ -g -O2 -Wall -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT gfx.cpp -c -o gfx.o
gfx.cpp: In function ‘void DrawRectFill(SDL_Surface_, int, int, int, int, Color)’:
gfx.cpp:150: warning: dereferencing pointer ‘r.273’ does break strict-aliasing rules
gfx.cpp:150: warning: dereferencing pointer ‘r.273’ does break strict-aliasing rules
gfx.cpp:168: warning: dereferencing pointer ‘r.273’ does break strict-aliasing rules
gfx.cpp:130: warning: dereferencing pointer ‘r.273’ does break strict-aliasing rules
gfx.cpp:130: warning: dereferencing pointer ‘r.273’ does break strict-aliasing rules
gfx.cpp:160: warning: dereferencing pointer ‘r.273’ does break strict-aliasing rules
gfx.cpp:319: note: initialized from here
g++ -g -O2 -Wall -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -L/usr/lib -lSDL utils.o game.o showgame.o viewer.o font.o SDL_picofont.o gfx.o -o showgame
g++ -g -O2 -Wall BotCppStarterpack.cpp game.o utils.o -o BotCppStarterpack
g++ -g -O2 -Wall BotExampleDual.cpp game.o utils.o -o BotExampleDual
g++ -g -O2 -Wall BotExampleRage.cpp game.o utils.o -o BotExampleRage
g++ -g -O2 -Wall BotExampleBully.cpp game.o utils.o -o BotExampleBully
g++ -g -O2 -Wall BotExampleProspector.cpp game.o utils.o -o BotExampleProspector
g++ -g -O2 -Wall BotExampleRandom.cpp game.o utils.o -o BotExampleRandom
You need an #include <string.h> on process.cpp to get strerror in ubuntu
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.