twanvl / snake Goto Github PK
View Code? Open in Web Editor NEWSnake playing agents
License: MIT License
Snake playing agents
License: MIT License
Assertions seem to be broken right now, when enabled the build fails with a number of errors like these:
snake/src/snake.cpp: In member function ‘virtual std::unique_ptr<Agent> ParameterizedCellTreeAgent::make(std::vector<int>, Config&) const’:
snake/src/snake.cpp:524:18: error: no match for ‘operator==’ (operand types are ‘__gnu_cxx::__normal_iterator<int*, std::vector<int> >’ and ‘__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type’ {aka ‘int’})
524 | assert(param == params.back());
| ~~~~~ ^~ ~~~~~~~~~~~~~
| | |
| | __gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}
| __gnu_cxx::__normal_iterator<int*, std::vector<int> >
There is an assertion that breaks when running some cell
algorithms:
snake: /home/svalorzen/Projects/snake/src/game_util.hpp:20: GameBase after_moves(const GameBase&, const std::vector<Coord>&, Lookahead): Assertion `is_neighbor(path.back(), game.snake_pos())' failed.
I can look into the seed if you need, but it was happening fairly consistently.
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.