From 28692f8619e349890e63149f20d23ca7fc8eef8c Mon Sep 17 00:00:00 2001 From: maxblan Date: Mon, 15 Apr 2024 17:01:31 +0200 Subject: [PATCH] Add pretty_print method to Board class --- python/socha/_socha.pyi | 2 ++ src/plugin/game_state.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/python/socha/_socha.pyi b/python/socha/_socha.pyi index 2585264..2991c3d 100644 --- a/python/socha/_socha.pyi +++ b/python/socha/_socha.pyi @@ -314,6 +314,8 @@ class Board: board.find_nearest_field_types(CubeCoordinates(0, 0), FieldType.Water) ``` """ + + def pretty_print(self) -> None: ... class TeamPoints: diff --git a/src/plugin/game_state.rs b/src/plugin/game_state.rs index 37dedcf..2f172ec 100644 --- a/src/plugin/game_state.rs +++ b/src/plugin/game_state.rs @@ -1,7 +1,7 @@ use std::cmp::Ordering; use std::mem::swap; -use log::{ debug, info }; +use log::debug; use pyo3::exceptions::PyBaseException; use pyo3::prelude::*;