conradludgate / ai-arcade Goto Github PK
View Code? Open in Web Editor NEWA game where the AI uses machine learning in an attempt to beat you
License: GNU General Public License v3.0
A game where the AI uses machine learning in an attempt to beat you
License: GNU General Public License v3.0
I every libsfml* library , but I get this errors when trying to make it
g++ -c -std=c++1z -I include -L include/engine -O3 -DNDEBUG -lengine -lsfml-graphics -lsfml-window -lsfml-system -lsfml-network -o release/main.o src/main.cpp
In file included from include/engine/entity.hpp:5,
from include/engine/game.hpp:4,
from include/engine/loop.hpp:4,
from src/main.cpp:1:
include/engine/event.hpp: In function ‘sf::Packet& engine::operator>>(sf::Packet&, const engine::Event&)’:
include/engine/event.hpp:57:32: error: no match for ‘operator<<’ (operand types are ‘const engine::Event::EventType’ and ‘sf::Packet’)
57 | e.type << p;
| ~~~~~~ ^~ ~
| | |
| | sf::Packet
| const engine::Event::EventType
In file included from /usr/include/SFML/Network/Http.hpp:32,
from /usr/include/SFML/Network.hpp:34,
from include/engine/entity.hpp:4,
from include/engine/game.hpp:4,
from include/engine/loop.hpp:4,
from src/main.cpp:1:
/usr/include/SFML/Network/IpAddress.hpp:294:32: note: candidate: ‘std::ostream& sf::operator<<(std::ostream&, const sf::IpAddress&)’
294 | SFML_NETWORK_API std::ostream& operator <<(std::ostream& stream, const IpAddress& address);
| ^~~~~~~~
/usr/include/SFML/Network/IpAddress.hpp:294:58: note: no known conversion for argument 1 from ‘const engine::Event::EventType’ to ‘std::ostream&’ {aka ‘std::basic_ostream<char>&’}
294 | SFML_NETWORK_API std::ostream& operator <<(std::ostream& stream, const IpAddress& address);
| ~~~~~~~~~~~~~~^~~~~~
In file included from include/engine/entity.hpp:5,
from include/engine/game.hpp:4,
from include/engine/loop.hpp:4,
from src/main.cpp:1:
include/engine/event.hpp:60:45: error: expected ‘:’ before ‘,’ token
60 | case KeyDown, KeyUp:
| ^
include/engine/event.hpp:60:45: error: expected primary-expression before ‘,’ token
include/engine/event.hpp:60:52: error: found ‘:’ in nested-name-specifier, expected ‘::’
60 | case KeyDown, KeyUp:
| ^
| ::
include/engine/event.hpp:60:47: error: ‘KeyUp’ is not a class, namespace, or enumeration
60 | case KeyDown, KeyUp:
| ^~~~~
include/engine/event.hpp:62:46: error: ‘keycode’ was not declared in this scope
62 | p >> keycode;
| ^~~~~~~
include/engine/event.hpp:65:48: error: ‘const class engine::Event’ has no member named ‘alt’
65 | p >> e.alt;
| ^~~
include/engine/event.hpp:66:48: error: ‘const class engine::Event’ has no member named ‘control’
66 | p >> e.control;
| ^~~~~~~
include/engine/event.hpp:67:48: error: ‘const class engine::Event’ has no member named ‘shift’
67 | p >> e.shift;
| ^~~~~
include/engine/event.hpp:68:48: error: ‘const class engine::Event’ has no member named ‘system’
68 | p >> e.system;
| ^~~~~~
include/engine/event.hpp:71:47: error: expected ‘:’ before ‘,’ token
71 | case MouseDown, MouseUp:
| ^
include/engine/event.hpp:71:47: error: expected primary-expression before ‘,’ token
include/engine/event.hpp:71:56: error: found ‘:’ in nested-name-specifier, expected ‘::’
71 | case MouseDown, MouseUp:
| ^
| ::
include/engine/event.hpp:71:49: error: ‘MouseUp’ is not a class, namespace, or enumeration
71 | case MouseDown, MouseUp:
| ^~~~~~~
include/engine/event.hpp:73:46: error: ‘button’ was not declared in this scope
73 | p >> button;
| ^~~~~~
include/engine/event.hpp:80:57: error: assignment of member ‘sf::Event::MouseButtonEvent::x’ in read-only object
80 | e.mouseButton.x = x;
| ~~~~~~~~~~~~~~~~^~~
include/engine/event.hpp:81:57: error: assignment of member ‘sf::Event::MouseButtonEvent::y’ in read-only object
81 | e.mouseButton.y = y;
| ~~~~~~~~~~~~~~~~^~~
include/engine/event.hpp:85:51: error: redeclaration of ‘sf::Int32 x’
85 | sf::Int32 x, y;
| ^
include/engine/event.hpp:77:51: note: ‘sf::Int32 x’ previously declared here
77 | sf::Int32 x, y;
| ^
include/engine/event.hpp:85:54: error: redeclaration of ‘sf::Int32 y’
85 | sf::Int32 x, y;
| ^
include/engine/event.hpp:77:54: note: ‘sf::Int32 y’ previously declared here
77 | sf::Int32 x, y;
| ^
include/engine/event.hpp:88:55: error: assignment of member ‘sf::Event::MouseMoveEvent::x’ in read-only object
88 | e.mouseMove.x = x;
| ~~~~~~~~~~~~~~^~~
include/engine/event.hpp:89:55: error: assignment of member ‘sf::Event::MouseMoveEvent::y’ in read-only object
89 | e.mouseMove.y = y;
| ~~~~~~~~~~~~~~^~~
include/engine/event.hpp:96:61: error: assignment of member ‘sf::Event::MouseWheelScrollEvent::wheel’ in read-only object
96 | e.mouseScroll.wheel = wheel;
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~
include/engine/event.hpp:98:60: error: binding reference of type ‘float&’ to ‘const float’ discards qualifiers
98 | p >> e.mouseScroll.delta;
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.