Skip to content

Instantly share code, notes, and snippets.

@hidde-vb
hidde-vb / cube_generator.py
Last active September 30, 2024 17:32
Python | Random Cube generator
# Simple random cube building scripts
# You have to download the Oracle card from https://scryfall.com/docs/api/bulk-data
# The land / spell ratio can be tuned below
#
# Requirements
# python 3.x
# ijson
import ijson
import random
package com.magma.game.noise;
import java.util.Random;
public class NoiseGenerator {
private Random rdm;
public NoiseGenerator(){
this(0);
}
--[[
testing out the joystick API
]]--
--initialize the joysticks
local joysticks = love.joystick.getJoysticks()
function love.load()
for i, joystick in ipairs(joysticks) do