benjaminaaron / BattleshipAI

AI Project in the AI course of Franz Kurfess in summer term 2015 at hm.edu
http://benjaminaaron.github.io/BattleshipAI/
1 stars 0 forks source link

minor to medium TODOs #4

Closed benjaminaaron closed 9 years ago

benjaminaaron commented 9 years ago

Collecting some minor ToDo's that aren't worth opening an issue for by themselves.

benjaminaaron commented 9 years ago
benjaminaaron commented 9 years ago
benjaminaaron commented 9 years ago

Tip by @bbuecherl: to avoid the constant use of this.var in prototype-functions of an object, use this method:

var Obj = function() {
    var x = 1;
    return {
        y: 2,
        func: function() {
            console.log('x is ' + x); //can use x instead of this.x
        },
    }
};
var test = new Obj();
console.log(test);
test.func();
console.log('y is ' + test.y);
benjaminaaron commented 9 years ago
benjaminaaron commented 9 years ago
benjaminaaron commented 9 years ago
benjaminaaron commented 9 years ago
benjaminaaron commented 9 years ago
benjaminaaron commented 9 years ago
benjaminaaron commented 9 years ago
benjaminaaron commented 9 years ago
benjaminaaron commented 9 years ago
benjaminaaron commented 9 years ago

moving project and task management to external tool