1.0.1 • Published 8 months ago

pokemon-gym v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
8 months ago

Pokemon Gym

Welcome to the Pokemon Gym project! This project simulates a simple Pokemon battle system where trainers can interact with various Pokemon, battle them, and perform various actions like Pokemon attacks, trainer actions, etc. It is built using TypeScript and Jest for unit testing.

Prerequisites

Before you start, make sure you have the following installed on your machine:

  • Node.js (version >=14.x)
  • npm or yarn (for package management)

Installation

Follow these steps to get the project running locally on your machine: 1. Clone this repository to your local machine: git clone https://github.com/your-username/pokemon-gym.git

  1. Navigate to the project directory: cd pokemon-gym

  2. Install the required dependencies: npm install

  3. (Optional) If you want to run TypeScript code directly, install ts-node globally: npm install -g ts-node

Running the Project

To run the application, you can execute the following command: ts-node src/index.ts Replace index.ts with your main entry file if it differs.

Running Tests

The project uses Jest for unit testing. To run the tests, simply use the following command: npx jest This will run all the tests in the project, and the results will be displayed in your terminal. If everything is set up correctly, you should see test results indicating whether all tests passed.

Test Files

The following files contain the tests for different parts of the system:

  • Trainer.test.ts: Contains tests for the trainer-related functionality.
  • Pokemon.test.ts: Contains tests for the Pokemon-related functionality.

Contributing

If you'd like to contribute to this project, follow these steps: 1. Fork this repository. 2. Create a new branch for your feature: git checkout -b feature-name 3. Make your changes and commit them: git commit -am 'Add new feature' 4. Push to your branch: git push origin feature-name 5. Create a Pull Request to the main repository.

ansi-escapesansi-regexansi-stylesanymatchargparseasyncbabel-plugin-istanbulbabel-plugin-jest-hoistbabel-plugin-polyfill-corejs2babel-plugin-polyfill-corejs3babel-plugin-polyfill-regeneratorbabel-preset-current-node-syntaxbabel-preset-jestbalanced-matchbrace-expansionbracesbrowserslistbs-loggerbserbuffer-fromcallsitescamelcasecaniuse-litechalkchar-regexci-infocjs-module-lexercliuicocollect-v8-coveragecolor-convertcolor-nameconcat-mapconvert-source-mapcore-js-compatcreate-jestcross-spawndebugdedentdeepmergedetect-newlinediff-sequencesejselectron-to-chromiumemitteryemoji-regexerror-exescaladeescape-string-regexpesprimaesutilsexecaexitexpectfast-json-stable-stringifyfb-watchmanfilelistfill-rangefind-upfs.realpathfunction-bindgensyncget-caller-fileget-package-typeget-streamglobglobalsgraceful-fshas-flaghasownhtml-escaperhuman-signalsimport-localimurmurhashinflightinheritsis-arrayishis-core-moduleis-fullwidth-code-pointis-generator-fnis-numberis-streamisexeistanbul-lib-coverageistanbul-lib-instrumentistanbul-lib-reportistanbul-lib-source-mapsistanbul-reportsjakejest-changed-filesjest-circusjest-clijest-configjest-diffjest-docblockjest-eachjest-environment-nodejest-get-typejest-haste-mapjest-leak-detectorjest-matcher-utilsjest-message-utiljest-mockjest-pnp-resolverjest-regex-utiljest-resolvejest-resolve-dependenciesjest-runnerjest-runtimejest-snapshotjest-utiljest-validatejest-watcherjest-workerjs-tokensjs-yamljsescjson-parse-even-better-errorsjson5kleurlevenlines-and-columnslocate-pathlodash.debouncelodash.memoizelru-cachemake-dirmake-errormakeerrormerge-streammicromatchmimic-fnminimatchmsnatural-comparenode-int64node-releasesnormalize-pathnpm-run-pathonceonetimep-limitp-locatep-tryparse-jsonpath-existspath-is-absolutepath-keypath-parsepicocolorspicomatchpiratespkg-dirpretty-formatpromptspure-randreact-isregenerateregenerate-unicode-propertiesregenerator-runtimeregenerator-transformregexpu-coreregjsgenregjsparserrequire-directoryresolveresolve-cwdresolve-fromresolve.exportssemvershebang-commandshebang-regexsignal-exitsisteransislashsource-mapsource-map-supportsprintf-jsstack-utilsstring-lengthstring-widthstrip-ansistrip-bomstrip-final-newlinestrip-json-commentssupports-colorsupports-preserve-symlinks-flagtest-excludetmplto-regex-rangetype-detecttype-festundici-typesunicode-canonical-property-names-ecmascriptunicode-match-property-ecmascriptunicode-match-property-value-ecmascriptunicode-property-aliases-ecmascriptupdate-browserslist-dbv8-to-istanbulwalkerwhichwrap-ansiwrappywrite-file-atomicy18nyallistyargsyargs-parseryocto-queue
1.0.1

8 months ago

1.0.0

8 months ago