Giter VIP home page Giter VIP logo

mazerunner's Introduction

Mazerunner

The purpose of this project is to have n different clients traversing through a unique maze, solving it in the end. When it is solved the client moves to starting possition and restarts the maze. The clients always know each others position, and updates an applet continuously. This is done having clients connecting to a server and passing data. The server then collects all this data and periodically sends the data back to each registered client. Project is done using java-rmi technology.

Project is part of a university course in distributed systems, fall 2017. Methods for creating, rendering and solving the maze was provided at start. Methods for dealing with communication to and from server were the purpose of this project, and was written by author

Installation

  1. Run /src/mazeoblig/RMIServer class in your IDE (Project was made using Intellij). This initializes the server and listens for connections on port 9000
  2. Run /src/mazeoblig/Maze. This will create 50 clients, assign them a random position, and start traversing through the maze
  3. To add more clients, simply launch another Maze. Alternatively, modfiy the CLIENTS_TO_CREATE property (50 at default)

Ways to improve the system

  • Implement server multicast

Known problems

  • To reduce workload, only one (randomly assigned) client draws the maze. If this client for some reason disconnects, maze rendering will stop

mazerunner's People

Contributors

ovsundal avatar

Stargazers

 avatar

Watchers

 avatar  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.