From 4a95079c5c40cc6ad933ddbc9f65a74621a61f28 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Sat, 30 Sep 2017 13:31:03 -0700 Subject: [PATCH] Default argument for Board initializer --- tictactoe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tictactoe.py b/tictactoe.py index 03cb0e1..38a2e09 100644 --- a/tictactoe.py +++ b/tictactoe.py @@ -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: