GithubHelp home page GithubHelp logo

macbim / labyrinthgame-java-design-pattern-creational Goto Github PK

View Code? Open in Web Editor NEW

This project forked from medy-khebibeche/labyrinthgame-java-design-pattern-creational

0.0 2.0 0.0 8 KB

Creational Design Pattern training exercice

Java 100.00%

labyrinthgame-java-design-pattern-creational's Introduction

LabyrinthGame-Java-Design-Pattern-Creational

Creational Design Pattern training exercice

The given source code consists in a game, in which robots (whose behaviour are defined in dedicated classes) try to escape from a labyrinth

Task 1: Application's main should no longer contain the exact class name of robot AI to be used. Instead, the choice should be delegated to a more flexible mechanism able to instantiate the robot AI associated to a symbolic name. Find and use the adequate pattern to do so.

Task 2: Once task 1 done, use the builder pattern to implement incremental labyrinth creation (by defining what kind of information is useful). Then, implement a "labyrinth file parser", relying on the previous labyrinth builder, allowing to instantiate a labyrinth by reading an ASCII-art description from a given file. Think about applying the Builder pattern elsewhere.

labyrinthgame-java-design-pattern-creational's People

Contributors

sebastienjean avatar

Watchers

James Cloos avatar Jean-Baptiste MERCIER 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.