@@ -0,0 +1,1454 @@
+import pygame%0Aimport sys%0Afrom pygame.locals import *%0A%0Afrom variables import *%0Afrom Player import *%0Afrom Card import *%0Afrom create_board import *%0Afrom create_game_options import *%0Afrom create_player_info import *%0Afrom handle_mouse_event import *%0Afrom update_game_dice import *%0Afrom update_game_build import *%0A%0A%0A%0A# allow user to build house and update Player and Card objects%0A%0Adef handle_build(screen,Players,Cards,cur_player,Cards_Rects,Option_Rects,Info_Cards_Rects):%0A%0A    # adding static part%0A    %0A    screen.fill(BACKGROUND_COLOR)%0A%0A    create_board(screen)%0A%0A    create_game_options(screen)%0A%0A    create_player_info(screen,Players,Cards,cur_player)%0A%0A    for player in Players:%0A        player.move_player(screen,player.cur_position)%0A%0A%0A    # check if property is available for building house/hotel%0A%0A    Mark = %5B%5D%0A%0A    player = Players%5Bcur_player%5D%0A%0A    for color_list in player.color_cards_owned:%0A        Mark.extend(color_list)%0A    %0A    # display build window%0A%0A    if Mark != %5B%5D:%0A        update_game_build(screen,Players,Cards,cur_player,Cards_Rects,Option_Rects,Info_Cards_Rects,Mark)%0A%0A    # show the state after update%0A%0A%0A    screen.fill(BACKGROUND_COLOR)%0A%0A    create_board(screen)%0A%0A    create_game_options(screen)%0A%0A    roll_dice(screen,4,2)%0A    %0A    for player in Players:%0A        player.move_player(screen,player.cur_position)%0A%0A    create_player_info(screen,Players,Cards,cur_player)%0A%0A    return cur_player%0A%0A    %0A%0A%0A%0A    %0A%0A    %0A%0A    %0A%0A    %0A%0A    %0A%0A%0A    %0A%0A

Build house/hotel handler