<jupyter_start><jupyter_text>Game Set-up:<jupyter_code># Need to include codes from previous 2 notebook.
# But haven't done as want to understand the logics separately.
player_one = Player("One")
player_two = Player("Two")

new_deck = Deck()
new_deck.shuffle()

for x in range(26):
    player_one.add_cards(new_deck.deal_one())
    player_two.add_cards(new_deck.deal_one())
# len(player_one.all_cards) will be => 26
# print (player_one.all_cards[0]) => King of Hearts<jupyter_output><empty_output><jupyter_text>Game on case:<jupyter_code>game_on = True
# while game_on

round_num = 0

while game_on:
    round_num += 1
    print (f"Round {round_num}")
    
    if len(player_one.all_cards) == 0:
        print ("Player One, out of cards! Player Two Wins! ")
        game_on = False
        break
        
    if len(player_two.all_cards) == 0:
        print ("Player Two, out of cards! Player One Wins! ")
        game_on = False
        break
    
    #Start a new round
    player_one_cards = []
    player_one_cards.append(player_one.remove_one)
    
    player_two_cards = []
    player_two_cards.append(player_two.remove_one)
    
    
    # while at_war (comparison) -> In next notebook<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1072013093289689, 'fraction_numerical': 0.008183306055646482, 'mean_word_length': 3.4472727272727273, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 12, '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}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '651272', 'license': 'MIT', 'n_tokens_mistral': 441, 'n_tokens_neox': 427, 'n_words': 100, 'path': 'Section 11 - Milestone Project 2/Lec 91 - Game Logic ~ Part Two.ipynb', 'repo_name': 'sansjha4900/Udemy-Python-Notes', 'size': '1222'}