| 
									
										
										
										
											2022-10-13 07:55:00 +02:00
										 |  |  | from BaseClasses import Tutorial | 
					
						
							|  |  |  | from ..AutoWorld import World, WebWorld | 
					
						
							|  |  |  | from typing import Dict | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class Bk_SudokuWebWorld(WebWorld): | 
					
						
							|  |  |  |     settings_page = "games/Sudoku/info/en" | 
					
						
							|  |  |  |     theme = 'partyTime' | 
					
						
							|  |  |  |     tutorials = [ | 
					
						
							|  |  |  |         Tutorial( | 
					
						
							|  |  |  |             tutorial_name='Setup Guide', | 
					
						
							|  |  |  |             description='A guide to playing BK Sudoku', | 
					
						
							|  |  |  |             language='English', | 
					
						
							|  |  |  |             file_name='setup_en.md', | 
					
						
							| 
									
										
										
										
											2022-11-04 20:03:39 +01:00
										 |  |  |             link='setup/en', | 
					
						
							| 
									
										
										
										
											2022-10-13 07:55:00 +02:00
										 |  |  |             authors=['Jarno'] | 
					
						
							|  |  |  |         ) | 
					
						
							|  |  |  |     ] | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class Bk_SudokuWorld(World): | 
					
						
							|  |  |  |     """
 | 
					
						
							|  |  |  |     Play a little Sudoku while you're in BK mode to maybe get some useful hints | 
					
						
							|  |  |  |     """
 | 
					
						
							|  |  |  |     game = "Sudoku" | 
					
						
							|  |  |  |     web = Bk_SudokuWebWorld() | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     item_name_to_id: Dict[str, int] = {} | 
					
						
							|  |  |  |     location_name_to_id: Dict[str, int] = {} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     @classmethod | 
					
						
							|  |  |  |     def stage_assert_generate(cls, world): | 
					
						
							|  |  |  |         raise Exception("BK Sudoku cannot be used for generating worlds, the client can instead connect to any other world") |