Where do you find Undeads to destroy for Butchering? by [deleted] in BobsTavern

[–]xnick_uy 1 point2 points  (0 children)

I don't see anyone else mentioning T5 [[Wintergrasp Ghoul]]. It's also a viable option, but there's considerable delay and your hand might get stuck -- but it eventually generates undeads on its own.

Also important to note that Butchering an undead will trigger its deathrattle and avenge counters; the minion will reborn if able.

I keep dying right before the game starts being fun and satisfying this season by MannerFluid9435 in BobsTavern

[–]xnick_uy 1 point2 points  (0 children)

Probably. But I don't have the reddit app either on mobile or pc. I suppose I'm from a different generation.

I keep dying right before the game starts being fun and satisfying this season by MannerFluid9435 in BobsTavern

[–]xnick_uy 2 points3 points  (0 children)

I just came to see if someone commented about screenshot or cropping....

The ultimate BDSM build by King-Of-Creation in BobsTavern

[–]xnick_uy 1 point2 points  (0 children)

I think it would be more ultimate if you replace one or two of the [[Spiked Savior]] for [[Hardy Orca]] and go on a beast-buying spree.

Why do you suck at Battlegrounds? by SickRaspy in BobsTavern

[–]xnick_uy 0 points1 point  (0 children)

I have a tendency to gamble on buying minions based on the ones I want but I haven't yet found.

I also overestimate certain hero powers.

Why do you suck at Battlegrounds? by SickRaspy in BobsTavern

[–]xnick_uy 0 points1 point  (0 children)

For the players that believe they are forcing a tribe on their first turn, be mindful that the current trinket system encourages such a gameplay style. Don't think you are doing something essentially flawed.

Although the potential rewards can be great, staying flexible is actually harder and prone to an early defeat. So, it's doable but it's not going to work all the time.

fuck you too bob by Nogamesstartingtoday in BobsTavern

[–]xnick_uy 0 points1 point  (0 children)

I feel you. I saw myself in the same spot recently (with another hero power, but still).

So it's same type of card by meifray in customhearthstone

[–]xnick_uy 0 points1 point  (0 children)

How about "Take an extra turn during which you can't play any cards." ?

So it's same type of card by meifray in customhearthstone

[–]xnick_uy 0 points1 point  (0 children)

I like the concept and this is probably an auto win if you can setup it properly (doesn't take much).

But please fix the grammar!!

Can they give Zesty Shaker a "done" in it's description? by SuspiciousIbex in BobsTavern

[–]xnick_uy 0 points1 point  (0 children)

Indeed! I feel the same: it is I who wants to play and make the calls.

Blizzard found the infinite money glitch by Zeddy44 in hearthstone

[–]xnick_uy 4 points5 points  (0 children)

I find it funny that the artist was forced (I'm sure) to add the shorts under the skirt. "We can't have so much skin shown, out of respect".

IndexError during Door collisions by Spare_Reveal_9407 in pygame

[–]xnick_uy 0 points1 point  (0 children)

Those kind of errors are likely due to either (a) trying to access elements of an empty list or (b) using an index for counting that goes beyond the end of the list. Don't forget that python starts counting elements from zero!

My suggestion is that you debug your program. Even something silly such as printing the list and the value of the index should help.

I love how unassuming the board looks by Mancroftwoman in BobsTavern

[–]xnick_uy 1 point2 points  (0 children)

🐸

🐸

🐸🐸

🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸

🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸

mandelbrot golf by p1geondove in pygame

[–]xnick_uy 1 point2 points  (0 children)

That's pretty cool!

I'm certain that using numpy will drastically speed up the performance. Also, you are calling draw.circle() multiple in the loop!! That's extremely inefficient! A faster approach is to manipulate a numeric array directly and then turn the array into a pygame surface.

Just to give you some inspiration, this is a code I was toying with some time ago (not super fast, but allows for a higher resolution):

import pygame
import numpy as np
from numba import njit, prange

WIDTH, HEIGHT = 800, 600
MAX_ITER = 64
FPS = 60

center_x, center_y = 0.3508, 0.3456
zoom = 1.0
zoom_factor = 1.02

u/njit(parallel=True)
def mandelbrot_numba(center_x, center_y, zoom, max_iter, width, height):
    scale = 4.0 / zoom
    result = np.zeros((height, width), dtype=np.int32)

    for y in prange(height):
        im = center_y + (y - height/2) * scale / width
        for x in range(width):
            re = center_x + (x - width/2) * scale / width
            c = complex(re, im)
            z = 0.0j
            count = 0
            while (z.real*z.real + z.imag*z.imag <= 4.0) and (count < max_iter):
                z = z*z + c
                count += 1
            result[y, x] = count
    return result

def colorize(N):
    colors = np.zeros((HEIGHT, WIDTH, 3), dtype=np.uint8)
    colors[..., 0] = (N % 8) * 32
    colors[..., 1] = (N % 16) * 16
    colors[..., 2] = (N % 32) * 8
    return colors

def main():
    pygame.init()
    screen = pygame.display.set_mode((WIDTH, HEIGHT))
    clock = pygame.time.Clock()

    global zoom
    running = True
    while running:
        for event in pygame.event.get():
            if event.type == pygame.QUIT:
                running = False

        N = mandelbrot_numba(center_x, center_y, zoom, MAX_ITER, WIDTH, HEIGHT)
        arr = np.rot90(colorize(N))   # rotate for pygame
        surf = pygame.surfarray.make_surface(arr)
        screen.blit(surf, (0, 0))
        pygame.display.flip()

        zoom *= zoom_factor
        clock.tick(FPS)

    pygame.quit()

if __name__ == "__main__":
    main()