Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var contender_f_and_b = (function () {
- var my = {};
- my.sName="FelixAndBertrand";
- my.sColor = "";
- my.sColorTest = "";
- my.iPoints = 0;
- var iGridWidth;
- my.init = function(sColorIn,iGridWidthIn){
- my.sColor = sColorIn;
- iGridWidth = iGridWidthIn;
- }
- my.runTurn = function(fCallback,iMaxMSEC){
- var row = Math.round(Math.random() * 100);
- for (var col=0; col<100; col++){
- $('#t' + col + 'x' + row).css("background",my.sColor);
- }
- fCallback();
- };
- return my;
- }());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement