samcorcoran / murdershegenerated Goto Github PK
View Code? Open in Web Editor NEWProcedural mystery game story
Procedural mystery game story
Function makes sure that if a character has a relationship of a given type (e.g. professional) then they must belong to a suitable entity (e.g. a company). However, it should iterate over all of characters relationships of given type to ensure an entity is created for each (where applicable ).
Characters can already belong to multiple entities of the same type (e.g. Two companies) providing the numAllowed permits it.
Consider characters A, B, C, D each of whom has a professional relationship with the next. Assume companies must only have two members. If A is processed first then the BFS will create a company with characters A & B. If D is then processed then BFS will create a company with characters D & C. Processing B or C should create a third company, but at present the code will see they each have a professional entity they are associated with and so will move on.
A fix might iterate over rels of type and check if other chars in those relationships are already jointly members of an appropriate entity. This would have to occur AFTER an entity has completed its BFS to avoid bad interactions.
Raises questions as to whether entities behind relationships should be explicit (perhaps with relationships as their own class).
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.