Решение на Морски шах от Десислава Добрева
Обратно към всички решения
Към профила на Десислава Добрева
Резултати
- 0 точки от тестове
- 0 бонус точки
- 0 точки общо
- 0 успешни тест(а)
- 8 неуспешни тест(а)
Код
Лог от изпълнението
FEEEEEEE
======================================================================
ERROR: test_game_in_progress (test.TicTacHomeworkTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "lib/language/python/runner.py", line 60, in thread
raise it.exc_info[1]
File "lib/language/python/runner.py", line 48, in run
self.result = func(*args, **kwargs)
File "/tmp/d20130415-29081-c7hh7k/test.py", line 147, in test_game_in_progress
p = solution.TicTacToeBoard()
File "/tmp/d20130415-29081-c7hh7k/solution.py", line 6, in __init__
self['A1'] = " "
File "/tmp/d20130415-29081-c7hh7k/solution.py", line 38, in __setitem__
raise InvalidMove
solution.InvalidMove
======================================================================
ERROR: test_input_format (test.TicTacHomeworkTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "lib/language/python/runner.py", line 60, in thread
raise it.exc_info[1]
File "lib/language/python/runner.py", line 48, in run
self.result = func(*args, **kwargs)
File "/tmp/d20130415-29081-c7hh7k/test.py", line 43, in test_input_format
o = solution.TicTacToeBoard()
File "/tmp/d20130415-29081-c7hh7k/solution.py", line 6, in __init__
self['A1'] = " "
File "/tmp/d20130415-29081-c7hh7k/solution.py", line 38, in __setitem__
raise InvalidMove
solution.InvalidMove
======================================================================
ERROR: test_o_wins (test.TicTacHomeworkTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "lib/language/python/runner.py", line 60, in thread
raise it.exc_info[1]
File "lib/language/python/runner.py", line 48, in run
self.result = func(*args, **kwargs)
File "/tmp/d20130415-29081-c7hh7k/test.py", line 102, in test_o_wins
h = solution.TicTacToeBoard()
File "/tmp/d20130415-29081-c7hh7k/solution.py", line 6, in __init__
self['A1'] = " "
File "/tmp/d20130415-29081-c7hh7k/solution.py", line 38, in __setitem__
raise InvalidMove
solution.InvalidMove
======================================================================
ERROR: test_overwrite_move (test.TicTacHomeworkTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "lib/language/python/runner.py", line 60, in thread
raise it.exc_info[1]
File "lib/language/python/runner.py", line 48, in run
self.result = func(*args, **kwargs)
File "/tmp/d20130415-29081-c7hh7k/test.py", line 63, in test_overwrite_move
o = solution.TicTacToeBoard()
File "/tmp/d20130415-29081-c7hh7k/solution.py", line 6, in __init__
self['A1'] = " "
File "/tmp/d20130415-29081-c7hh7k/solution.py", line 38, in __setitem__
raise InvalidMove
solution.InvalidMove
======================================================================
ERROR: test_tostring_empty (test.TicTacHomeworkTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "lib/language/python/runner.py", line 60, in thread
raise it.exc_info[1]
File "lib/language/python/runner.py", line 48, in run
self.result = func(*args, **kwargs)
File "/tmp/d20130415-29081-c7hh7k/test.py", line 8, in test_tostring_empty
b = solution.TicTacToeBoard()
File "/tmp/d20130415-29081-c7hh7k/solution.py", line 6, in __init__
self['A1'] = " "
File "/tmp/d20130415-29081-c7hh7k/solution.py", line 38, in __setitem__
raise InvalidMove
solution.InvalidMove
======================================================================
ERROR: test_tostring_full (test.TicTacHomeworkTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "lib/language/python/runner.py", line 60, in thread
raise it.exc_info[1]
File "lib/language/python/runner.py", line 48, in run
self.result = func(*args, **kwargs)
File "/tmp/d20130415-29081-c7hh7k/test.py", line 20, in test_tostring_full
d = solution.TicTacToeBoard()
File "/tmp/d20130415-29081-c7hh7k/solution.py", line 6, in __init__
self['A1'] = " "
File "/tmp/d20130415-29081-c7hh7k/solution.py", line 38, in __setitem__
raise InvalidMove
solution.InvalidMove
======================================================================
ERROR: test_x_wins (test.TicTacHomeworkTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "lib/language/python/runner.py", line 60, in thread
raise it.exc_info[1]
File "lib/language/python/runner.py", line 48, in run
self.result = func(*args, **kwargs)
File "/tmp/d20130415-29081-c7hh7k/test.py", line 71, in test_x_wins
h = solution.TicTacToeBoard()
File "/tmp/d20130415-29081-c7hh7k/solution.py", line 6, in __init__
self['A1'] = " "
File "/tmp/d20130415-29081-c7hh7k/solution.py", line 38, in __setitem__
raise InvalidMove
solution.InvalidMove
======================================================================
FAIL: test_draw (test.TicTacHomeworkTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "lib/language/python/runner.py", line 60, in thread
raise it.exc_info[1]
File "lib/language/python/runner.py", line 48, in run
self.result = func(*args, **kwargs)
File "/tmp/d20130415-29081-c7hh7k/test.py", line 144, in test_draw
self.assertEqual('Draw!', d.game_status())
AssertionError: 'Draw!' != 'Draw'
- Draw!
? -
+ Draw
----------------------------------------------------------------------
Ran 8 tests in 0.010s
FAILED (failures=1, errors=7)
История (1 версия и 2 коментара)
Десислава обнови решението на 15.04.2013 00:59 (преди над 11 години)