Skip to content

Commands for Metronome written in every programming language!

License

Notifications You must be signed in to change notification settings

TM35-Metronome/examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Metronome Examples

A repository that shows the extendability of the Metronome project by writing commands for it in any programming language.

Example

The examples implement a super a simple command that randomizes starter Pokémons. These examples are written to be simple first a formost, so some of them might assume certain things about the data they get passes in:

  • That there are at most 3 starters.
  • That you can simply look at the biggest pokemons index to figure out the range of 0..N to pick from.
  • That all pokemons are valid options to pick. In some games, you are only allow to have pokemons that the pokedex contains.

In a real command, one should not assume these to be true:

  • A game can have any number of starters
  • Entries does not actually need to be continues. This is valid and should be handled:
.pokemons[1].hp=3
.pokemons[4].hp=1
.pokemons[7].hp=11

See tm35-rand-starters for how this command would actually be written to handle everything correctly.

Languages:

About

Commands for Metronome written in every programming language!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published