Giter Club home page Giter Club logo

jarena's Introduction

Jarena

A game approach to teaching OPP and Java. It is a battle arena where student-developed agents fight each other in order to survive. The last team to be eliminated from the arena wins the challenge.

jarena

Motivation

Jarena was created as a helping tool to bring a game related environment to my OOP classes. Students receive a task that consists of programming a software agent (described as a Java class) and testing it in a battle environment represented by an arena.

For more information regarding this project, check the paper Jarena: experimenting a tool for teaching object-oriented programming concepts using Java, games and software agents (BEVILACQUA, F. ; SEBBEN, A. ; TORCHELSEN, R. P; 2011).

Installation

Download the lastest version of Jarena.

Unzip the downloaded file and create a java class within the package br.uffs.cc.jarena. This class represents your agent in the battle field. Name it the way you want, e.g. MyAgent.java. This java class must be placed in the same directory of the remaining classes of Jarena (src/br/uffs/cc/jarena).

Make your agent be added to the area. For that change the file /src/br/uffs/cc/jarena/Arena.java, line 61, replacing the class AgenteDummy with your own agent. E.g.:

adicionaEntidade(new MyAgent(0, 0, Constants.ENTIDADE_ENERGIA_INICIAL));

Compile everything:

cd path/to/unzipped/jarena/folder
javac ./src/br/uffs/cc/jarena/*.java ./src/br/uffs/cc/jarena/renders/simple2d/*.java -d bin/

If you see no compiling errors, you are good to go to run the application:

cd bin
java br.uffs.cc.jarena.Main

When the application is running, you can terminate it by pressing Q. Use the left/right keys to adjust the speed of the simulation, if needed.

Contributors

If you liked the project and want to help, you are welcome! Submit pull requests or open a new issue describing your idea.

License

Jarena is licensed under the MIT license.

jarena's People

Contributors

dovyski avatar paintxd avatar

Watchers

James Cloos 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.