![]() This part is built for actually playing the game. Original_expected, location = expected_value(ogpossible_values) Press question mark to learn the rest of the keyboard shortcuts. def expected_value(possible):Įxpected_value = np.sum(, axis = (0,1))/len(possible)Įxpected_value = np.where(expected_value = 1, 0, expected_value)Īrgmax = np.unravel_index(np.argmax(expected_value), (dim,dim)) In the next step I calculate the expected value of each of the 25 grid squares in order to determine the optimal first move. Ogpossible_values.append(combined_values) Maxls.append(len(max(combined, key=len))) Disco Zoo makes you try to find a certain pattern of animal squares in order to rescue each animal in the game. In the second part of this chunk, I filter out options that are not feasible (ie two animals cannot occupy the same square of the grid) combined = Ĭombined.append(np.(allpat,allpat))Ĭombined_values.append(np.core.add(allpat,allpat)) In this step, I combine the lists of independent possible animal locations to find all combinations of the animals provided. allpat = Īllpat.append((k, Animals(k).findall(), Animals(k).findall())) Here’s the sample I’m going to run with for this example: AnimalList = įirst I’m going to make a list that takes in the animals given and determines all possible locations for each animal independently. Print("there are", len(test), "possible locations for a", animal1.name) # there are 12 possible locations for a unicorn print(test) # Įverything is looking good. Print(animal1.name, animal1.value, animal1.pattern, animal1.location) # unicorn 3 ![]() Grid = np.concatenate((precol, col, postcol), axis=1)įor a sanity check: animal1 = Animals('unicorn') Like Sin City before it, 300 brings Frank Miller and Lynn Varleys graphic novel vividly to life. Patterns = Ĭol = np.concatenate((prerow, a, postrow), axis=0) THIS IS A UMD for the PSP It is not a DVD. Somewhere down the line I will make a point to test these values. ![]() I’m also defining a function called findall which finds all of the possible positions the animal’s pattern can take in a grid of the specified dimension.įor now I am sticking with values of 1 for common, 2 for uncommon, and 3 for rare. Subreddit for NimbleBits game Disco Zoo Press J to jump to the feed. Next I’m going to set a class for the animals including a pattern dictionary containing the value, pattern, and rescue location of the animals. Disco Zoo makes you try to find a certain pattern of animal squares in order to rescue each animal in the game. All six outback patterns : discozoo 1.1k members in the discozoo community. There’s a lot of other functionality that I could build into this as well, but for now I’m going to stay simple. I want to build a tool that can guide move making based on all possible sets of arrangements. The grid for a rescue mission at the farm ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |