[m-users.] Mercury for Game AI

David Epstein davideps at umich.edu
Mon Jan 24 04:43:21 AEDT 2022


Hi everyone,

This is the kind of functionality I'm trying to develop:

There are three types (person, door, room). Each person has three Boolean
properties (*is_alive, is_awake, is_free*). Each door has two Boolean
properties (*is_open, is_destroyed*). Rooms do not have properties. The
properties are used to determine the value of two more predicates through
rules (*is_mobile, can_pass*). A person can move via the *try_move*
predicate, which moves the person if the move is permitted. I still don't
know how to program this app in Mercury and C#, but I'm attaching a Mercury
file that shows what I *think *I need to do. I'd appreciate any pointers
people have to offer. There is likely an entirely better way to approach
this--one that also permits non-Boolean properties.

-david
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurylang.org/archives/users/attachments/20220123/f5ce494f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mystery.m
Type: application/octet-stream
Size: 6446 bytes
Desc: not available
URL: <http://lists.mercurylang.org/archives/users/attachments/20220123/f5ce494f/attachment.obj>


More information about the users mailing list