Opponents
function(seed, rounds) { this.name = "Random"; this.A = 48271; this.M = 2147483647; this.Q = Math.floor(this.M / this.A); this.R = this.M % this.A; this.rand = 0; for (var j = 0; j < seed.length; ++j) { this.rand += seed.charCodeAt(j) << (j % 23); } this.play = function play() { var hi = Math.floor(this.rand / this.Q); var lo = this.rand % this.Q; var test = this.A * lo - this.R * hi; if (test > 0) this.rand = test; else this.rand = test + this.M; return this.rand % 3; }; this.see = function see(p) { }; }
OK