Ejemplo n.º 1
0
                        view_file.write_game_log('Restored_card')

                        # Выдать карты игроку
                        if croupier.issue_cards_gamer(1) == 1:
                            continue

                        _flag = ['', '', '', {}]

                    else:

                        # log начала партии
                        view_file.write_game_log('Start_part ')

                        # Спросить размер и поставить ставку
                        try:
                            ante = int(view.get_ante(gamer))
                            if gamer.balance - ante < 0:
                                view.show_not_enough_money()

                                # log окончания партии
                                view_file.write_game_log('End_part ')

                                continue

                        except ValueError:
                            # log конца партии
                            view_file.write_game_log('End_part ')

                            continue

                        if 0 < ante: