This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "vxbox.h" | |
| namespace Vxbox | |
| { | |
| Bus::Bus() | |
| { | |
| this->handle = this->get_handle(); | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from typing import Dict | |
| import json, sys | |
| from PIL import Image | |
| def load_state(path) -> Dict[str, list]: | |
| with open(path) as f: | |
| return json.load(f) | |
| state = load_state(sys.argv[1]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| std::vector<Cell::Type> get_queue(u32 seed) | |
| { | |
| // Modern puyo games' internal random number generator | |
| auto rng = [&] () -> u32 { | |
| seed = (seed * u32(0x5D588B65) + u32(0x269EC3)) & u32(0xFFFFFFFF); | |
| return seed; | |
| }; | |
| // Choose which colors to use | |
| // We only care about the number of time that the rng() function is called, since the color orientation isn't important |