Coder Social home page Coder Social logo

emacsmirror / ydk-mode Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jacksonrayhamilton/ydk-mode

0.0 3.0 0.0 43 KB

Language support for Yu-Gi-Oh! deck files

Home Page: https://github.com/jacksonrayhamilton/ydk-mode

License: GNU General Public License v3.0

Emacs Lisp 100.00%

ydk-mode's Introduction

ydk-mode

Screenshot of a YDK file with syntax highlighting.

Provides language support for Yu-Gi-Oh! deck files. These typically have a ".ydk" extension. They are used in YGOPro and other dueling simulators.

Installation

To install, configure Melpa, then run the command M-x package-install RET ydk-mode RET. After that, ".ydk" files should open in YDK mode.

YDK Files

YDK files consist of lists of newline-delimited integers. These integers correspond to the 8-digit "passcodes" unique to each card. (See http://yugioh.wikia.com/wiki/Passcode for details.) Each newline-delimited integer represents one copy of a corresponding card in a deck.

Comments may appear anywhere in a file, starting with "#" or "!", followed by (usually) arbitrary characters, ending with a newline.

There are three "magic" comments which typically denote the beginning of a new deck (that is, the Main Deck, Extra Deck or Side Deck). Conventionally, these magic comments are of the forms:

#main
#extra
!side

The magic comments are highlighted specially in this mode to make them more distinguishable.

Putting it all together, a YDK file specifying a deck,

  • created by someone named Jackson
  • with the following cards in his Main Deck:
    • 3x Blue-Eyes White Dragon
    • 1x Lord of D.
    • 1x The Flute of Summoning Dragon
  • and this card in his Extra Deck:
    • 1x Blue-Eyes Ultimate Dragon
  • and this card in his Side Deck:
    • 1x Cipher Soldier

would look something like this:

#created by Jackson
#main
89631139
89631139
89631139
17985575
43973174
#extra
23995346
!side
79853073

Also, YDK mode will calculate the total number of cards in the Main, Extra and Side Decks (in that order), and display those totals in the modeline. The above deck would have a modeline display of:

(YDK[5/1/1])

ydk-mode's People

Contributors

jacksonrayhamilton avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.