3 ms·
What scenarios have you used it for?
by dorian-graph 4y ago
What scenarios have you used it for?
- quadcore 4y agoAfter some time using it you understand it works for everything. Essentially, it features simpler and powerful loops and recursions. So you wrote those differently and end up writing many things differently. That said, I used it for a simple game AI at university. My AI was the best of the class and it was something like 30 LOC. I remember thinking I would have spend 5x more time writing the same thing in C instead of 1 hour (plus some tests and play session)
- bmitc 4y agoI have not used it for anything outside of learning, yet. I highly recommend the book Thinking as Computation. It's a really excellent introduction to both Prolog and the subject of the title. It presents Prolog solutions to many topics. For example, there's some game solvers, and the Prolog programs basically consist of writing down the rules of the game. I do have some ideas for some apps I'd like to tackle at some point. Those primarily consist of interacting with system constraints.