Commits

Shlomi Fish  committed c77b8ed

Add the MicrosoftRand class.

It doesn't do anything right now.

  • Participants
  • Parent commits c845053

Comments (0)

Files changed (3)

File abc-path/js/Makefile

 all:
 
 edit:
-	gvim -o abc-path.js abc-path-test.js ../Games-ABC_Path-Solver/lib/Games/ABC_Path/Solver/Board.pm
+	gvim -o abc-path.js abc-path-test.js ../Games-ABC_Path-Generator/t/ms-rand.t ../Games-ABC_Path-Generator/lib/Games/ABC_Path/MicrosoftRand.pm
 
 test:
 	firefox abc-path-test.html

File abc-path/js/abc-path-test.js

  "")
                 ], 'solves Brain-Bashers-2010-12-22');
     });
+
+    module("MicrosofRand");
+
+    test("MicrosoftRand Seed 1", function() {
+        expect(1);
+
+        var r = new ABC_Path.MicrosoftRand({seed : 1 });
+
+        // TEST
+        ok (r, 'r was initialized.');
+    });
 }

File abc-path/js/abc-path.js

         },
     },
 });
+Class('ABC_Path.MicrosoftRand', {
+    isa: ABC_Path.Solver.Base,
+    has: {
+        seed: { is: rw, },
+    },
+});