Skip to content

Instantly share code, notes, and snippets.

View jmccardle's full-sized avatar

John McCardle Solders & Hacks jmccardle

View GitHub Profile
"""Civilization 1 Clone - Cylindrical World Map with Procedural Generation
Phase 1: World generation, terrain coloring, minimap, camera controls.
"""
import mcrfpy
import sys
import random
# === World Constants ===
WORLD_W = 80
WORLD_H = 50
# integration_demo.py - Milestone 8 Integration Demo
# Showcases most 3D features: terrain, entities, pathfinding, FOV, billboards, UI, input
import mcrfpy
import math
import random
DEMO_NAME = "3D Integration Demo"
DEMO_DESCRIPTION = """Complete 3D demo with terrain, player, NPC, FOV, and UI overlay.
import mcrfpy
# the default "playground" scene
scene = mcrfpy.current_scene
# Frame:
frame = mcrfpy.Frame((10, 10), (50, 50), fill_color=(30,30,80))
scene.children.append(frame)
# Caption:
frame = mcrfpy.Frame(
(20, 20),
(140, 60),
fill_color = (64, 64, 196)
)
cap = mcrfpy.Caption(
(10,10),
text="Hello\nMcRogueFace\n\nWASD to move!",
outline=2,

Convert Discussion To Video Content - Full Script

You are a video scriptwriter specializing in educational YouTube content. Your task is to expand a finalized video outline into a complete, ready-to-record script that maintains the strategic timing and rhetorical approach specified in the outline.

Input Requirements

You need:

  • A finalized video outline (from /video-outline or user-created)
  • The original conversation history (for context, examples, and specific details)
  • Any additional notes or revisions discussed after the outline was created

Convert Discussion To Video Content - Outline

You are a video content strategist specializing in educational YouTube content about technical topics. Your task is to convert a conversation into a structured video outline with precise timing and rhetorical strategy.

Input Context

You have access to:

  • The full conversation history leading up to this command
  • Any web research, articles, or passages discussed
  • Examples, data points, and theories developed during the discussion
0eNrtXVuP27gV/isLAX0p7F3xTg6CAnt7bR/StyIYaGzOjBBbMmQ5TRrMfy9lz0S0RIo8dDyopnnZ7PjykTznfOfCQ9Ffs7vNQe+asmqzm69ZuaqrfXbzr6/Zvnyoik33Wvtlp7ObrGz1NltkVbHt/tq3utgu20NzV1Y6e1pkZbXWn7Mb9LSI+G7dFA962RbVR+ur+OnDItNVW7alPs3h+MeX2+qwvdONwXYjLLJdvTdfqqtuRAO0xAr/zBbZF/O/nLKfmRljXTZ6dfoM7qY4gMbfoHelmbELEvWQwkA6QEgYJA+C0OhFSgVcJAvOz4b0zI+HQWQQRIRBRBBEhkF4EETFi5sBxY3y8ARZcIIIhVFoGCVs4JKEUcIWLnEYBWDiUB6jCBsPExlFGHmYyShs5SLMNxQ2cxEmHIq3cxstzneG7VyE2YzDdi7CdMY4fp1QPuOw9YswnzENo4T5jMN2LsJ8xmE7F2E+YxEvcwSVeYT1h/mMVRglzGeSR6+TQzlEwtbPw76ChL08D/sKErZzHuYzoUnZGvagsaS0yIfGk6K+D00kxTMfmkzy1D40leQPPWg0T2K6Dw0l8Qkf+WTqlOpEqH33KdT9p9Fru2wozV/cFBVPzsGxp5SZTv2J9KyFxMNZ+bEXjgLgaBiOAeAiFsvj4azI74UTALiIxUoAXB6GU/FwPLxY1lNoq9flYbvUG2PHTbla7uqN2/z6QE5OwaTS5cPjXX1oujKZkQ+ucVCafRPPtHGaffvgCFgKVi3nlEK+YMIpiEQq+WaeSCUfXCKVfHACLFerBHFb14Ipp1xlGmt9M1fwmePpmYsFx66Z8zzNQXhmzlGag/DBYbAgOBsKIjI6UmRN4BguRRcuh4JUC+6kFu9Z/KiLdqk/rx6L6sG8FXAyuXPhFIBm+xg3GoOg0RAah6AFVyouUnEOTIDOVYwwd+jYWJ15w6lkeb5079Zmz0bsiX1cRUKhIJTII6HyMBSKg7LqCi8UjoSSYSgC2d3EyoNCIyckwhNikVA
class BinaryNode:
__slots__ = ("value", "left", "right")
def __init__(self, value=None, left=None, right=None):
self.value = value
self.left = left
self.right = right
def __repr__(self):
return f"<BinaryNode value={self.value}; {1 if self.left else 0 + 1 if self.right else 0} children>"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# See this diagram: https://i.redd.it/41iyyfdaliab1.png
from itertools import permutations
for i, perm in enumerate(permutations([1,2,3,4,6,8,9])):
a, b, c, d, e, f, g = perm
if (a + d + g + f) +1 == (b + d + e + g) -1 == (c * e * f * g +1)**0.5:
print(f"\n{i}. Solution: a = {a}, b = {b}, c = {c}, d = {d}, e = {e}, f = {f}, g = {g}, x = {(a+d+g+f)+1}")
elif i % 10 == 0:
print(f".", end='')