<commit_before>class Player:

    
    #   add new player
    def __init__(self,name,color,cur_balance):     
        self.name = name
        self.color = color.upper()
        self.cur_balance = cur_balance
        if self.color == "BLUE":
            cur_position = (1020,720)
        elif self.color == "RED":
            cur_position = (1060,720)
        elif self.color == "GREEN":
            cur_position = (1020,750)
        elif self.color == "YELLOW":
            cur_position = (1060,750)
        else:
            cur_position = ()

        self.cur_position = cur_position
        self.next_position = self.cur_position
        self.property_owned = []
        self.property_mortgaged = []
        total_rails_owned = 0
        total_utilities_owned = 0,
        self.jail_card = False



    #   move player
    #   update balance
    #   add property
    #   remove property
    #   mortgage property
    #   unmortgage property
    #   set jail card
    #   update position
    #   remove player<commit_msg>Implemented move player function<commit_after>import pygame
from pygame.locals import *

from variables import *


class Player:

    
    #   add new player
    def __init__(self,name,color,cur_balance):     
        self.name = name
        self.color = color.upper()
        self.cur_balance = cur_balance
        self.cur_position = ()
        self.property_owned = []
        self.property_mortgaged = []
        total_rails_owned = 0
        total_utilities_owned = 0,
        self.jail_card = False



    #   move player

    
    #adding dice and pieces(blue,red,green,yellow
    # x = x coordinate of the card
    # y = y coordinate of the card
    # blue position   = x + 20, y + 20
    # red position    = x + 60, y + 20
    # green position  = x + 20, y + 50
    # yellow position = x + 60, y + 50



    def move_player(self,screen,next_position):
        if self.color == "BLUE":
            pygame.draw.circle(screen,
                               BLUE,
                               next_position,
                               PIECE_RADIUS)
        elif self.color == "RED":
            pygame.draw.circle(screen,
                               RED,
                               next_position,
                               PIECE_RADIUS)
        elif self.color == "GREEN":
            pygame.draw.circle(screen,
                               GREEN,
                               next_position,
                               PIECE_RADIUS)
        elif self.color == "YELLOW":
            pygame.draw.circle(screen,
                               YELLOW,
                               next_position,
                               PIECE_RADIUS)


            
    
    #   update balance
    #   add property
    #   remove property
    #   mortgage property
    #   unmortgage property
    #   set jail card
    #   remove player
{'fraction_non_alphanumeric': 0.07809788267962513, 'fraction_numerical': 0.016660881638320028, 'mean_word_length': 1.3545751633986929, 'pattern_counts': {'":': 8, '<': 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': '430794', 'n_tokens_mistral': 856, 'n_tokens_neox': 792, 'n_words': 185}