VirtualGameCard

From Esolang
Jump to navigation Jump to search

VirtualGameCard (also known as VGC) is an esoteric programming language based on the Nintendo Switch's Virtual Game Cards.

Overview

In VGC, each cell takes the form of a game card, and each array is a Nintendo Switch. The commands are:

Caption text
Command Description
mkcard A Creates a card with character A. Only one copy exists until it is inserted.
register acc1 Creates a Nintendo Account with ID acc1.
buysw ns1 Creates a Nintendo Switch with ID ns1 (empty slots).
insert A ns1 Inserts card A into the first available slot in Switch ns1.
eject A ns1 Ejects card A from Switch ns1, returning it to inventory.
transfer A ns1 ns2 Temporarily moves card A from ns1 to ns2. It will automatically return to ns1 after 14 executed commands.
link ns1 acc1 Links Switch ns1 to Account acc1. Order matters.
playsw acc1 Prints characters of all cards in all linked Switches (in linking order).

Example programs

Hello World

mkcard H
mkcard e
mkcard l
mkcard o
mkcard ,
mkcard  
mkcard W
mkcard r
mkcard d
mkcard !
buysw ns1
buysw ns2
buysw ns3
insert H ns1
insert e ns1
insert l ns1
mkcard l
insert l ns1
insert o ns1
insert , ns2
insert   ns2
insert W ns2
mkcard o
insert o ns2
insert r ns2
mkcard l
insert l ns3
insert d ns3
insert ! ns3
register acc1
link ns1 acc1
link ns2 acc1
link ns3 acc
playsw acc1

Interpreters

Python

https://gist.github.com/PurpleIsSus1985/5c42e679094e829dad0db5aab309914b