Giter Site home page Giter Site logo

golf's Introduction

Clearcode Golf

tree

Description

The purpose of this challenge is to write a shortest code to render ASCII christmas trees (forest?). You may find examples in the tree.png and in check directory

Technicals

Chars: *#$H^ and space

Colors: (http://misc.flogisoft.com/bash/tip_colors_and_formatting)

GREEN = '\033[32m'
RED = '\033[91m'
WHITE = '\033[97m'
YELLOW = '\033[93m'

Rules

  1. Every line ends with \n
  2. The solution should consist of only 1 file
  3. Other scripts (online/from disk) and libs are not allowed (except stdlib)
  4. Every char (except space) starts with the color code (see technicals above)
  5. Arguments are always positive integers

Test

cd check/
./check.sh interpreter patch_to_file_with_code

Example

./check.sh python ~/tree/xxx_tree.py
MERRY CHRISTMAS size: 233 /home/xxx/tree/xxx_tree.py \r count: 0

HIGHSCORE

PYTHON

  1. 220b Daniel O.
  2. 233b Pyszo
  3. 251b Michał M.
  4. 264b Marcin M.
  5. 291b Patryk P.

PHP

  1. 305b Krzysiu M.
  2. 334b Zeulus
  3. 345b Marcin Wi.

JS

  1. 255b Pyszo
  2. 285b Krzysiu M.
  3. 339b Witek G.

BASH

  1. 594b Urug

golf's People

Contributors

firemark avatar perduta avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

perduta

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.