<commit_before>/// Dummy vision system that sees a square around the eye

use math::Coord;
use game::{SpatialHashTable, LevelKnowledge, Turn};

pub fn square_observe<K: LevelKnowledge>(eye: Coord,
                                         distance: usize,
                                         world: &SpatialHashTable,
                                         knowledge: &mut K,
                                         turn: Turn) {
    let distance = distance as isize;
    for i in -distance..distance + 1 {
        for j in -distance..distance + 1 {
            let coord = eye + Coord::new(j, i);
            println!("updating {:?}", coord);
            knowledge.update_cell(coord, world.get(coord), 1.0, turn);
        }
    }
}
<commit_msg>Removed debug printout<commit_after>/// Dummy vision system that sees a square around the eye

use math::Coord;
use game::{SpatialHashTable, LevelKnowledge, Turn};

pub fn square_observe<K: LevelKnowledge>(eye: Coord,
                                         distance: usize,
                                         world: &SpatialHashTable,
                                         knowledge: &mut K,
                                         turn: Turn) {
    let distance = distance as isize;
    for i in -distance..distance + 1 {
        for j in -distance..distance + 1 {
            let coord = eye + Coord::new(j, i);
            knowledge.update_cell(coord, world.get(coord), 1.0, turn);
        }
    }
}

{'fraction_non_alphanumeric': 0.09884117246080436, 'fraction_numerical': 0.0054533060668029995, 'mean_word_length': 1.4065573770491804, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 16, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5974849', 'n_tokens_mistral': 370, 'n_tokens_neox': 360, 'n_words': 114}