GithubHelp home page GithubHelp logo

kennypanjaitan / entelect-2021-galaxio-bot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from iceteaxxd/tubes1_beweganteng

0.0 0.0 0.0 25.33 MB

A bot for Entelect 2021 Challenge (Galaxio) which applies Greedy Algorithm

Java 99.07% Dockerfile 0.93%

entelect-2021-galaxio-bot's Introduction

Entelect 2021 Challenge - Galaxio

Tugas Besar IF2211 Strategi Algortima

General Information

This repository contains the implementation of Entelect 2021 Challenge - Galaxio Bot using Greedy Algorithm.

Technology Used

  • Java Version 11
  • Apache Maven (Compiler)
  • .dotnet version 3.1

Contributors (beweGanteng)

NIM Nama
13521005 Kelvin Rayhan Alkarim
13521023 Kenny Benaya Nathan
13521024 Ahmad Nadil

Strategy

The bot will use Greedy Algorithm to determine the best strategy

  1. Create a list of objects in game, which are foods, players, torpedoes, obstacles, supernova
  2. Then, we determine the best move
  3. Action that will be determined using a set of unique priorities
  4. Priorities:
  • Food
    Determining the closest food and moving to it
  • Attack
    Chasing smaller player, firing torpedoes, teleporting, firing supernova bomb
  • Defense
    Run away from bigger player, use shield
  • Movement
    Avoiding edge of map by moving towards the center

Project Structure

.
│   README.md
│   Dockerfile
│   pom.xml
│
├───src                    # Source code
│    └──main
│       └──java
│            ├─ Enums
│            │    ├── ObjectTypes.java
│            │    └── PlayerActions.java
│            ├─ Models
│            │    ├── GameObject.java
│            │    ├── GameState.java
│            │    ├── GameStateDto.java
│            │    ├── PlayerAction.java
│            │    ├── Position.java
│            │    └── World.java
│            │    
│            ├─ Services
│            │     └──BotService.java
│            └──Main.java
│            
│            
├───target                # bytecode         
│    ├─ classes
│    │   ├─ Enums
│    │   │    ├── ObjectTypes.class
│    │   │    └── PlayerActions.class
│    │   ├─ Models
│    │   │    ├── GameObject.class
│    │   │    ├── GameState.class
│    │   │    ├── GameStateDto.class
│    │   │    ├── PlayerAction.class
│    │   │    ├── Position.class
│    │   │    └── World.class
│    │   │    
│    │   ├─ Services
│    │   │     └──BotService.class
│    │   └──Main.class                          
│    │ 
│    ├─ generated-sources
│    ├─ libs
│    ├─ maven-archiver
│    ├─ maven-status
│    └──JavaBot.jar 
│    
│    
└───doc                    # Documentation

Local Setup

  1. Click here to Download Galaxio Starter Pack

  2. Clone this repo to the starter-bots folder in the starter pack by using this link below

git clone https://github.com/IceTeaXXD/Tubes1_beweGanteng.git

  1. Compile the program using maven in this bot directory

mvn clean package

  1. Edit the run.bat file to run the bot, for example, you can use this command:

java -jar ../starter-bots/Tubes1_beweGanteng/target/JavaBot.jar

  1. Execute the run.bat '

  2. Run the visualizer to see watch the match

  3. More instructions please head to Galaxio-2021 GitHub Repository

Documentation

This is us!

entelect-2021-galaxio-bot's People

Contributors

iceteaxxd avatar kennypanjaitan avatar kelvinra 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.