Home

Awesome

skipper

Gokemon Reborn on Swift Playground for WWDC 2021

Swift Student Challenge

How the Applications Work

The application is a simple "Pokemon" look-alike scenario application. The assumptions that has been made are as follows:

  1. The application is initially a console-based application which can only be executed from the terminal. 2. It was created almost five years ago in Java programming language for one of the final project in Data Structure & Algorithm course.
  2. I really like to see my old program or source code and try to modify it in order to give some improvements or at least giving it some sort of user interface (UI) in Swift programming language.
  3. Without any parameters means the application will run with default value.
  4. The parameter is inserted through many kinds of simple user's input.
  5. Choice of action will be calculated based on those parameters.
  6. The monster's name will be inserted by the user through program using FCFS (First-Come-First-Serve).
  7. The coordinates is zero indexed because of an array.
  8. Stamina can be modified only by changing the parameter called from main method (hard coded).
  9. Go to east means move 1 level below and go to west means move 1 level above (x / rows / axis).
  10. Nearest trainer means have smallest unit of distance (straight line algorithm).
  11. Gokemon's coordinates must be entered correctly in form of integer.
  12. There're at least 1 player for allowed to make the program running.
  13. Route from player's position to enemy's position is not included.
  14. Collumns (ordinate) will have more priority routes than rows (axis).
  15. Only Gokemon that have a name.
  16. Every new run of application will remove the history (no state of the game is saved).

More detailed information can be found on the program source code.

Design Decision:

Getting Started (How to Run the Program)

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites (How the program was set up)

  1. Navigate to the directory where is the root of this project folder (.playground files).

  2. Still in the directory where is the root of this project, run the app by click the play button in the files.

    Most of the source code are stored in Sources/ as well as MyPlayground.playground and resources (if any) are stored in Resources/.

  3. The app is now running! To check that the app is actually running, try to send an action like setting up the size, coordinates, etc.

Installing (How the program was run)

  1. Make sure you already installed the latest Xcode.
  2. You can also run through Swift Playground.
  3. For more information you can contact me through e-mail on indonesianproduction@gmail.com.

Built With

Authors

Important links