Giter VIP home page Giter VIP logo

kwg's Introduction

KWG - KAREL WORLD GENERATOR

I created this program as coding "exercise". Program generates Karel world from text structure inside of input file.

badge badge badge


badge GitHub All Releases


TUTORIAL:

- Running:

On UNIX run with:

./kwg path_to_map_text_file beepers_amount_at_start

On Windows run THROUGH COMMAND LINE with:

KWG path_to_map_text_file beepers_amount_at_start

- Preparing map for generator:

  • To get valid result from generator you have to prepare VALID input file. But don't worry it is actually very easy process.

  • You just have to copy the map from Karel output to your favourite editor (Notepad, Vim) and ignore first two lines with coordinates etc.

Example with Vim:copy

Tip for Vim: When pasting to Vim you should toggle :set paste! first. Otherwise Vim will do indentation to the pasted text.

  • Make sure you remove all empty lines (your input file ends with "...AVE.")

  • Type of file (.txt, ...) is not important. The file is passed to program as parameter.

  • After sucessfull execution program will prints out "Done." and generate <input_file>.kw in directory.

  • Note: If there is map with amount of placed beepers over 99, generator won't work! Yet...

Flags:

   -D      Show debug info

By Daniel Kolibár | [email protected]

Karel the Robot: GIT | Created by [email protected] (c)2010, 2016

kwg's People

Contributors

dkolibar avatar

Stargazers

 avatar

Watchers

 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.