Code viewer for Mind: Draughts Mind (User Control)
/*
=============================== Draughts Mind (User Control) ===============================

Written by Graham Edmond Bartley for CA318: Advanced Algorithms and AI Search

Always returns 4 corresponding to ACTION_STAYSTILL. This allows for user input to take control in the World.

*/

function Mind() {

    //--- public functions / interface / API ----------------------------------------------------------
    
    this.newRun = function() {};

    this.endRun = function() {};

    this.getAction = function(x) // x is an array of [ ai, aj, ei, ej ]
        {
            //allow for keyboard input
            return (4);
        };
}