I am making checkers. I encountered quite a big problem. The code below describes cells king can move on. 1 cell is 100×100. He starts from (550, 50). This picture describes current_battlefield: And this dict describes what moves AI will take The king is a purple checker and he has to eat right now. So, about the actual problem. If
Tag: depth
How can I count the depth in a list of lists?
I want to count the depth in a list of lists, so not the amount of elements but the maximum depth one list can have. This is my function: should return 4 Answer You can try: Output: Explanation: First check if object passed into the recursive function is of type list: If so, proceed to add up the Trues in