• 0 Posts
  • 24 Comments
Joined 1 year ago
cake
Cake day: June 30th, 2023

help-circle


  • For anyone not into PokemonTCG, this looks like PokemonTCG but will play with different cards and different rules. Energy is different (it looks like you have energy in an Energy Zone instead of attaching to individual mons), the battlefield is different (3 bench spots instead of 5), and so far the cards look to be simplified from actual existing cards.

    I believe last time they showed it off it was something like 2 free packs a day, and trading is included (unlike the current digital platform, Pokemon TCG Live).

    So overall, it’s probably a fairly different game that’s looking to simplify the gameplay and introduce the entire “collect and play” thing to people for free. Hook them in with this, and maybe get some people invested in playing “real” PTCG.


  • Honestly, Pokemon is one of the games with fewer money issues than other TCGs. A tier 1 deck in Pokemon costs $30-$120 for Standard format, which is what most people play, apparently. JustinBasil has good posts detailing the decks and key cards, as well as strategies and example gameplay videos.

    I say this coming from MtG, where that price point is only really something you can do in Pauper (commons only format), and a Standard deck will cost $50-230, a Pioneer deck will cost $120-380, and a Modern deck will cost $270-700. In Magic, the most powerful cards (for competitive 60 card play) is the credit card.

    Pretty sure YuGiOh and One Piece and Lorcana and Flesh&Blood and Digimon also have more expensive decks than Pokemon. Obviously, Pokemon can get expensive once you try to bring out your deck with special art and special foil versions, but for just obtaining usable competitive game pieces, it’s basically the cheapest thing around.







  • My (awful) Python solves. Much easier than day 1’s, although I did run into an issue with trimming whitespace characters with my approach (Game 96 wouldn’t flag properly).

    Part 1
    with open('02A_input.txt', 'r') as file:
        data = file.readlines()
        
    possibleGames=[]
    
    for game in data:
        # Find Game number
        game = game.removeprefix("Game ")
        gameNumber = int(game[0:game.find(":")])
        # Break Game into rounds (split using semicolons)
        game=game[game.find(":")+1:]
        rounds=game.split(";")
        # For each round, determine the maximum number of Red, Blue, Green items shown at a time
        rgb=[0,0,0]
        for round in rounds:
            combos=round.split(",")
            for combo in combos:
                combo=combo.strip()
                number=int(combo[0:combo.find(" ")])
                if combo.endswith("red"):
                    if number>rgb[0]:
                        rgb[0]=number
                elif combo.endswith("green"):
                    if number>rgb[1]:
                        rgb[1]=number
                elif combo.endswith("blue"):
                    if number>rgb[2]:
                        rgb[2]=number
        # If Red>12, Green>13, Blue>14, append Game number to possibleGames
        if not (rgb[0]>12 or rgb[1]>13 or rgb[2]>14):
            possibleGames.append(gameNumber)
    
    print(sum(possibleGames))
    
    Part 2
    with open('02A_input.txt', 'r') as file:
        data = file.readlines()
        
    powers=[]
    
    for game in data:
        # Find Game number
        game = game.removeprefix("Game ")
        # Break Game into rounds (split using semicolons)
        game=game[game.find(":")+1:]
        rounds=game.split(";")
        # For each round, determine the maximum number of Red, Blue, Green items shown at a time
        # Note: This could be faster, since we don't need to worry about actual rounds
        rgb=[0,0,0]
        for round in rounds:
            combos=round.split(",")
            for combo in combos:
                combo=combo.strip()
                number=int(combo[0:combo.find(" ")])
                if combo.endswith("red"):
                    if number>rgb[0]:
                        rgb[0]=number
                elif combo.endswith("green"):
                    if number>rgb[1]:
                        rgb[1]=number
                elif combo.endswith("blue"):
                    if number>rgb[2]:
                        rgb[2]=number
        # Multiple R, G, B to find the "power" of the game
        # Append Power to the list
        powers.append(rgb[0]*rgb[1]*rgb[2])
        
    print(sum(powers))
    


  • Just getting my feet wet with coding after a decade of 0 programming. CS just didn’t work out for me in school, so I swapped over to math. Trying to use Python on my desktop, with Notepad++ and Windows Shell.

    Part 1
    with open('01A_input.txt', 'r') as file:
        data = file.readlines()
        
    print(data)
    NumericList=[]
    
    for row in data:
        word=row
        while not(word[0].isnumeric()):
            word=word[1:]
        while not(word[-1].isnumeric()):
            word=word[:-1]
        #print(word)
        tempWord=word[0]+word[-1]
        NumericList.append(int(tempWord))
        #print(NumericList)
    Total=sum(NumericList)
    print(Total)
    
    Part 2
    with open('01A_input.txt', 'r') as file:
        data = file.readlines()
        
    #print(data)
    NumericList=[]
    NumberWords=("one", "two", "three", "four", "five", "six", "seven", "eight", "nine")
    
    def wordreplaceleft(wrd):
        if wrd.startswith("one"):
            return "1" + wrd[3:]
        elif wrd.startswith("two"):
            return "2" + wrd[3:]
        elif wrd.startswith("three"):
            return "3" + wrd[5:]
        elif wrd.startswith("four"):
            return "4" + wrd[4:]
        elif wrd.startswith("five"):
            return "5" + wrd[4:]
        elif wrd.startswith("six"):
            return "6" + wrd[3:]
        elif wrd.startswith("seven"):
            return "7" + wrd[5:]
        elif wrd.startswith("eight"):
            return "8" + wrd[5:]
        elif wrd.startswith("nine"):
            return "9" + wrd[4:]
    
    def wordreplaceright(wrd):
        if wrd.endswith("one"):
            return wrd[:-3]+"1"
        elif wrd.endswith("two"):
            return wrd[:-3]+"2"
        elif wrd.endswith("three"):
            return wrd[:-5]+"3"
        elif wrd.endswith("four"):
            return wrd[:-4]+"4"
        elif wrd.endswith("five"):
            return wrd[:-4]+"5"
        elif wrd.endswith("six"):
            return wrd[:-3]+"6"
        elif wrd.endswith("seven"):
            return wrd[:-5]+"7"
        elif wrd.endswith("eight"):
            return wrd[:-5]+"8"
        elif wrd.endswith("nine"):
            return wrd[:-4]+"9"
    
    for row in data:
        wordleft=row
        wordright=row
        
        if wordleft.startswith(NumberWords):
            wordleft=wordreplaceleft(wordleft)
        while not(wordleft[0].isnumeric()):
            if wordleft.startswith(NumberWords):
                wordleft=wordreplaceleft(wordleft)
            else:
                wordleft=wordleft[1:]
                
        if wordright.endswith(NumberWords):
            wordright=wordreplaceright(wordright)
        while not(wordright[-1].isnumeric()):
            if wordright.endswith(NumberWords):
                wordright=wordreplaceright(wordright)
            else:
                wordright=wordright[:-1]
        
        # while not(word[-1].isnumeric()):
            # word=word[:-1]
        # print(word)
        tempWord=wordleft[0]+wordright[-1]
        NumericList.append(int(tempWord))
        #print(NumericList)
    Total=sum(NumericList)
    print(Total)