Code Monkey home page Code Monkey logo

textual_draw's Introduction

Textual_Draw

Semester Project CSN 252

Problem Statement

Draw on textual screen by reading the commands fromstandard input. Type a command (ormore commands) to standard input and press enter toexecute them. Implement the followingcommands.

  • h : displays help on stdout
  • w, a, s, d : up, left, down, right
  • f : changes drawing symbol to next typed character
  • c : clears the screen and returns to center
  • p : fills the screen with drawing symbol
  • q : halt

Install SicTools to run and simulate the assembly code. Clone source code from the linked git and make the jar using.

git clone https://github.com/jurem/SicTools.git
cd SicTools
make jar

Usage

To run simulator

java -jar out/make/sictools.jar

Then import the assembly code in the simulator and Start. Follow the help commands to draw which can be seen on the textual screen.


Examples

  • 'aaaa wwww dddd ssss' -> draws a 4x4 square
  • 'f.' -> changes drawing symbol to '.'
  • 'f-dddf df-dddf df-ddd' -> draws a dashed line '--- --- ---'

Automating

To input long texts like this, which can be made using ASCII ART Generator

  _______        _              _   _____                     
 |__   __|      | |            | | |  __ \                    
    | | _____  _| |_ __ _ _   _| | | |  | |_ __ __ ___      __
    | |/ _ \ \/ / __/ _` | | | | | | |  | | '__/ _` \ \ /\ / /
    | |  __/>  <| || (_| | |_| | | | |__| | | | (_| |\ V  V / 
    |_|\___/_/\_\\__\__,_|\__,_|_| |_____/|_|  \__,_| \_/\_/  
    

Use Script and input the text using an input file and get the corresponding output in form of the commands. Which can be directly pasted on the command line to be run.


Other Group Members

textual_draw's People

Contributors

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