simpsus / pygemtd Goto Github PK
View Code? Open in Web Editor NEWpython Gem Tower Defense
License: GNU General Public License v3.0
python Gem Tower Defense
License: GNU General Public License v3.0
Design question: at the moment, a creep notices it is breached and sets a flag. The game needs to process a breach (deduct live, etc), but the game does not know the creeps. The wave knows the creeps and can detect a (newly) breached creep.
Option one: flag in the wave. negative: double flagging and twice detection (wave and game)
Option two: register a callback (in the game) with the creep. pro: would be an active call. negative: currently the creep generator is a lambda, so is another thing to do after creation, and the wave does not know the game, so the game would have to register the callback at the wave as well. again, double passing.
Option three: ??
Let's just share ideas about longest path strategies that may inspire algorithms, as the gradient-free methods (e.g. genetic algorithm) doesn't seem promising for this type of problem.
to enable a first naive approach to the maze of optimal length, we need a function that returns the fitness (i.e. the length of the path) for a grid. In pseudocode:
fitness(grid):
result = 0
for pair of waypoints:
result += A_star(pair)
return result
from here
https://github.com/hjweide/a-star
to make the evaluation/fitness function ready for large scale comptuation
100x100 is way too big for anything ... especially for any algorithm trying to process it
maybe 40x40?
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.