Code Monkey home page Code Monkey logo

pokemonbattleengine's Introduction

PokemonBattleEngine

Join on Discord

Pokémon Battle Engine is a C# library that can emulate Pokémon battles. This repository includes the engine library, a Windows/Linux/MacOS/Android/iOS client, a server, a Discord bot, and some extra code to rip data from the official games. The engine only emulates Pokémon B2W2 versions, so nothing introduced after generation 5 is included and neither are generation 1/2 exclusive items, event Pokémon, and move compatibility.

ClientPreview

The engine does not send information a player should not know; information only gets sent to each player/spectator when it is revealed. For example, a client has no way of knowing if the opponent has sent out a Pokémon with Illusion, the opponent's nature, stats, Hidden Power damage/type, unused item/moves, etc. Therefore, a custom/modified client cannot do anything more than an ordinary player unless it is hosting the battle. A lot of work has been done to prevent any cheating.

Join our Discord server to talk or try out the battle bot!

DiscordPreview

Important Note for Discord:

If you are going to self-host the bot after downloading the code, you will need to have your bot join these two servers for the emotes:

Other Features:

  • There are settings that you can change, such as having more moves, a higher maximum level, or weaker poison.
  • There are helper classes to build legal Pokémon, as well as require legality for a battle.
  • Alternatively, you can represent the Pokémon in any way you wish, as long as you have the basic info to start the battle. This works well with custom games like PokemonGameEngine.
  • You can save battle replays to watch them back in the client or to train a neural network.
  • There is a work-in-progress random team generator inspired by Pokémon Showdown's which aims to work well with custom settings and moves.
  • The library has classes which automatically use the correct language from the games, meaning you can see the Pokémon's names, items, etc in your language, as long as your language was one supported by Pokémon B2W2.
  • Multi-Battles exist, and they can be customized to work in 2v1, 2v2, 3v1, or 3v3 battles.
  • Wild-Battles exist, and a wild Pokémon can appear disguised from the start, and have statuses etc.
  • EXP & Level up work, but not currently with remote battles. It can be added though.

To Do:

  • Triple-battle shifting, Rotation-battles
  • Add the remaining vanilla abilities, items, and moves
  • Finish adding all event Pokémon
  • Add previews of the Android/iOS apps

PokemonBattleEngine Is Used By:


PokemonBattleEngine Uses:

PokemonBattleEngineClient Uses:

PokemonBattleEngineDiscord Uses:

PokemonBattleEngineExtras Uses:

PokemonBattleEngineTests Uses:

pokemonbattleengine's People

Contributors

kermalis avatar tulu473 avatar mixone-finallyhere avatar radioactiveben avatar dependabot[bot] 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.