Giter Club home page Giter Club logo

pypokelib's Introduction

This project adheres to Semantic Versioning.

General Notes - pypokelib:

  • Pokemon library that allows users to create “fully fleshed out” Pokemon instances with a simple call.
    • Pokemon(“charmander”) creates a charmander instance with all corresponding attributes (hp, atk, nature, dex#, etc.)
    • Pokemon(4) also does the same as above
    • Wanted to have flexibility between creating instance by name vs by dex#, without having to say something like Pokemon(species=“Charmander”) or Pokemon(dex_num=4), bc that’s annoying and kinda ugly
  • Library split by generation, as different generations have different stats, functionality, inherent compatibility issues, etc.
    • Individual Pokemon information hard-coded in lookup tables, for fast access time, and not having to rely on external API such as PokeAPI
    • Fast lookup times and simple, intuitive calling conventions make this a great library to use with pygame, to build custom Pokemon clone, e.g.
    • Easy to alter instance variables as necessary, either with built-in functions or directly
    • Technically, since there are no enforced private variables in Python, someone could potentially mess up the _base_stats, data member, _types, _tmhm_learnset, etc., but because they are prefixed by underscore, it is implied by convention that one should not attempt to access these outside of class definition. Preferred this over name mangling (dunder variable) bc even that isn’t truly private. Just be responsible
    • Future update: include sprites (and shiny)!

pypokelib's People

Contributors

julius-alexander avatar

Stargazers

 avatar

Watchers

 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.