<commit_before>""" This module contains rules to the game."""

# -*- coding: utf-8 -*-
class Rules(object):
    """Rules class"""
    def __init__(self, debug=False):
        self.debug = debug

    def convertCharToInt(self, value):<commit_msg>Update makeCapture() from C# to Python<commit_after>""" This module contains rules to the game."""

# -*- coding: utf-8 -*-
class Rules(object):
    """Rules class"""
    def __init__(self, debug=False):
        self.debug = debug

    def makeCapture(self, theGame, startX, startY, endX, endY):
        theGame.setState(startX-1, startY-1, 0)
        theGame.setState((startX-1)+((endX-1)-(startX-1))/2,
                         (startY-1)+((endY-1)-(startY-1))/2,
                         0)
        theGame.setState(endX-1, endY-1, 2)

    def convertCharToInt(self, value):
{'fraction_non_alphanumeric': 0.1654501216545012, 'fraction_numerical': 0.02068126520681265, 'mean_word_length': 2.6415929203539825, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2584820', 'n_tokens_mistral': 271, 'n_tokens_neox': 262, 'n_words': 64}