Skip to content

Commit be5b7f2

Browse files
committed
update memory
1 parent 7e3d086 commit be5b7f2

File tree

4 files changed

+38
-65
lines changed

4 files changed

+38
-65
lines changed

memory/src/__javascript__/memory.js

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"use strict";
2-
// Transcrypt'ed from Python, 2016-07-03 16:02:02
2+
// Transcrypt'ed from Python, 2016-07-03 16:28:35
33
function memory () {
44
var __all__ = {};
55
var __world__ = __all__;
@@ -1657,13 +1657,6 @@ function memory () {
16571657
}
16581658
return true;
16591659
};
1660-
var counter = function* () {
1661-
var i = 0;
1662-
while (true) {
1663-
i++;
1664-
yield i;
1665-
}
1666-
};
16671660
var Grid = __class__ ('Grid', [object], {
16681661
get __init__ () {return __get__ (this, function (self, game, rows, cols) {
16691662
if (typeof rows == 'undefined' || (rows != null && rows .__class__ == __kwargdict__)) {;
@@ -1743,7 +1736,6 @@ function memory () {
17431736
};
17441737
self.game = hexi (width, height, self.setup);
17451738
self.game.backgroundColor = '#a4a4a4';
1746-
self.game.border = '24px red solid';
17471739
self.mouse = self.game.pointer;
17481740
self.mouse.tap = self.tap;
17491741
self.grid = Grid (self.game);
@@ -1851,7 +1843,6 @@ function memory () {
18511843
self.check_endgame ();
18521844
self.get_curcell ();
18531845
if (self.mouse.tapped) {
1854-
var lc = len (self.clickedcells);
18551846
self.clickedcells.append (self.curcell);
18561847
self.mouse.tapped = false;
18571848
self.compare_cells ();
@@ -1875,7 +1866,6 @@ function memory () {
18751866
__all__.all = all;
18761867
__all__.allcolors = allcolors;
18771868
__all__.colors = colors;
1878-
__all__.counter = counter;
18791869
__all__.memory = memory;
18801870
__pragma__ ('</all>')
18811871
}) ();

0 commit comments

Comments
 (0)