Default argument for Board initializer
This commit is contained in:
		
							parent
							
								
									fc7e4ec602
								
							
						
					
					
						commit
						4a95079c5c
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -9,7 +9,7 @@ class Board: | |||
|     X = 'x' | ||||
|     O = 'o' | ||||
| 
 | ||||
|     def __init__(self, string): | ||||
|     def __init__(self, string='         '): | ||||
|         if string is None or not isinstance(string, str): | ||||
|             raise ValueError('invalid board spec') | ||||
|         if len(string) != BOARD_SIZE: | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue