Skip to content

Instantly share code, notes, and snippets.

@citrus610
citrus610 / vxbox.cpp
Created November 2, 2025 10:09
SCP driver interface c++
#include "vxbox.h"
namespace Vxbox
{
Bus::Bus()
{
this->handle = this->get_handle();
};
@citrus610
citrus610 / nnue_visualizer.py
Created July 21, 2025 19:50
visualize nnue input weights
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])
@citrus610
citrus610 / puyo_queue_generator.cpp
Last active July 21, 2025 19:50
Modern puyo games' queue generator (Confirmed on Puyo Puyo Champions and Puyo Puyo Tetris 2)
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