Skip to content

Instantly share code, notes, and snippets.

View adegbengaagoro's full-sized avatar

Agoro, Adegbenga. B adegbengaagoro

View GitHub Profile
@adegbengaagoro
adegbengaagoro / CARD_EFFECT_SYSTEM.md
Created June 10, 2025 06:17 — forked from esco/CARD_EFFECT_SYSTEM.md
Guidance provided to Claude Code CLI for building yugioh game engine with prompts

Card Effect System Documentation

1. Introduction

This document describes the architecture and workflow of the card effect system within the Yu-Gi-Oh! Web Duel Interface. The system is responsible for handling the activation, chaining, and resolution of card effects according to Yu-Gi-Oh! rules. It integrates declarative effect definitions (partially implemented via YAML/JSON) with the core game engine logic.

The system aims to manage:

  • Activation: Determining when and if a card effect can be activated.
  • Chaining: Building a sequence of effects when multiple effects are activated in response to each other.
  • Resolution: Executing the effects in the correct (Last-In, First-Out) order.
@adegbengaagoro
adegbengaagoro / ARCHITECTURAL_PRINCIPLES.md
Created June 10, 2025 06:16 — forked from esco/ARCHITECTURAL_PRINCIPLES.md
Architectural guidance provided to Claude Code CLI for building yugioh game engine with prompts

System Prompt: Architectural Principles to Code By

Use rg tool to search for files efficiently

Core Principles

  1. Clean, Simple, Maintainable Code
    • Favor readability over cleverness
    • Prioritize simplicity in design
  • Write code that future developers can easily understand
@adegbengaagoro
adegbengaagoro / LoginController.js
Created January 7, 2022 11:49 — forked from rogerforner/LoginController.js
AdonisJS Login (JWT): Autenticar usuario/ria por nombre de usuario, email, etc.
'use strict'
const User = use('App/Models/User')
class LoginController {
/**
* INICIAR SESIÓN
* -> formData: Obtener datos introducidos por el usuario (request).
* -> regexEmail: Regex que nos permite validar un email.
* -> user: Obtener el objeto user asociado al uid (email, nombre de usuario, etc.).
@adegbengaagoro
adegbengaagoro / .dockerignore
Created May 12, 2021 22:48 — forked from ksmithut/.dockerignore
Node Docker Compose nodemon
node_modules
@adegbengaagoro
adegbengaagoro / emulator-install-using-avdmanager.md
Created October 23, 2019 02:15 — forked from mrk-han/emulator-install-using-avdmanager.md
Installing and creating Emulators with AVDMANAGER (For Continuous Integration Server or Local Use)

Install and Create Emulators using AVDMANAGER and SDKMANAGER

About

  • The goal of this gist is to quickly pre-install a range of system images to provide our project teams the ability to run emulators on a range of API levels, from API 19 to API 28.
    • These can be run locally or on the base build agent.
  • Note: X86 is the fastest architecture for emulators, though x86_64 would probably be better to test against because most phones are 64 bit now.
  • We create two sets of emulators here, one set with pixel hardware emulation and one set with default oem emulation.

See: Google Documentation on Start the emulator from the command line for more info

@adegbengaagoro
adegbengaagoro / v1-ubuntu-docker-node-apt-get.sh
Created June 14, 2018 23:26 — forked from garystafford/v1-ubuntu-docker-node-apt-get.sh
Install the latest versions of Node.js and npm into a Docker Ubuntu container, with or without need for root access. Easily update both applications to the latest versions. Creates a new user account ('testuser') and installs common npm packages.
###############################################################################
# Version 1: using ‘apt-get install’
# Installs using apt-get
# Requires update to npm afterwards
# Harder to get latest copy of node
# Requires sudo to use npm
###############################################################################
# create new docker ubuntu container
sudo docker run -i -t ubuntu /bin/bash # drops you into container as root