17
Vitalii
Last seen 1 year ago
Member for 9 years, 6 months, 25 days
Difficulty Normal
My [approach](http://www.checkio.org/mission/three-words/publications/Pumba_UA/python-3/replace-pattern-search/) is almost the same, but i use symbol replacement. Then we can just search for PATTERN without Window Sliding
More
Something similar I used in my code too [while...loop](http://www.checkio.org/mission/bird-language/publications/Pumba_UA/python-3/clear-solution-playing-with-indexes/). I don`t like use WHILE...LOOPS, but that the case where it is useful.
More
Thanks for your short solution, but it`s too hard to read it for dummies :-). [I try to make it cleaner](http://www.checkio.org/mission/find-sequence/publications/Pumba_UA/python-3/universal-solution-to-find-any-sequence-in-matrix/)
More
I guess you're right about something. Some comments must be added in this code. The main idea is:
1. Create a matrix of chars from input data (game_grid)
["X.O", [['X', '.', 'O'],
"XX.", ----> ['X', 'X', '.'],
"XOO"] ['X', 'O', 'O']]
More