Skip to content

Wishlist: Pluggable logic #3

@aravindet

Description

@aravindet

Allow multiple AIs for the prisoner and the jailer, so that third party developers can submit competing algorithms. Maybe somewhere in the settings would be an option to choose the AI.

This would give rise to perhaps an interesting inter-AI tournament where the best prisoner AIs face off against the best jailer AIs.

The API can be really simple. Each plugin could just be:

ai.prisoner.push(function(state) {
  // insert logic here
  return nextMove;
});

where state would be a 2D array of values and nextMove would be the coordinates of the dot to move to (prisoner) or wall off (jailor).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions