Subversion Repositories programming

Rev

Rev 383 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 383 Rev 384
Line 9... Line 9...
9
 
9
 
10
class PuzzleGenerator (Generator):
10
class PuzzleGenerator (Generator):
11
 
11
 
12
	EMPTY = 'E'
12
	EMPTY = 'E'
13
 
13
 
-
 
14
	def __init__ (self, value):
-
 
15
		self.value = value
-
 
16
 
14
	def get_children (self):
17
	def get_children (self):
15
		children = []
18
		children = []
16
		empty_pos = self.find_empty_pos ()
19
		empty_pos = self.find_empty_pos ()
17
 
20
 
18
		# Get the correct moves for this position
21
		# Get the correct moves for this position