Coder Social home page Coder Social logo

code-golf's Introduction

Alternesting

Given an input, wrap in parens then go in one character on each side and repeat for brackets. Repeat until you reach the string's core (len <= 2). Hello World! becomes `(H[e(l[l(o[ W]o)r]l)d]!)


Print Own Size

Prints a script's file's byte count.


RandInt Until Zero

Print random integers between 0 and 99 (inclusive). Stop after printing any 0.


Switch Case Tuple

Given a switch case in a nested tuple format ((condition_code_as_str, result), (condition_code_as_str_two, result_two), ...), return the result for the first true condition.


Dial-Up

Phone number pads associate certain letters with certain numbers. Either encode (e.g. "Hi!" > "44!") or decode (e.g. "44!" > "Hi!"|"IG!") along these lines. This is accomplished in a dumb way for brevity. See tetraketra/dial-up for a slightly less dumb version.


N-Body

Perform massive n-body position updating.


2048

Recreate the game 2048.


Reverse Polish Notation

Treat a single line of user input as simply reverse polish ntoation and print the resultant calculated value.


Smallest Ascii Total

Define a function which accepts a list of strings and returns with the highest "ascii total". "ascii total" is calculated by converting each character in a string to its ascii integer value, then summing the resultant numbers.


First Condition

Evaluate an arbitrary list of tuples of boolean conditions (as code strings) and values (as any), returning the associated value for the first true condition.

code-golf's People

Contributors

tetraketra avatar

Stargazers

Luna Harrison 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.