Code Monkey home page Code Monkey logo

message-from-space's Introduction

message-from-space's People

Contributors

divanorama avatar elventian avatar glitchcore avatar gltronred avatar green-coder avatar gringer avatar jandreske avatar meguu avatar mx00s avatar nya3jp avatar pankdm avatar pink-snow avatar spaceorc avatar xoposhiy avatar yosupo06 avatar zaitsev85 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

message-from-space's Issues

Message #32 - Plotting

The application of the square symbol to an arrow-enclosed sequence of plot commands results in an image being displayed.

Line 1: do nothing (plot command list is empty)
Line 2: the plot command takes two arguments. When these arguments are both 1, display a single dot one pixel in (in both directions) from the top left of the screen.
Line 3: the last argument describes vertical displacement. When the first argument is 1, and the second argument is 2, display a single dot two pixels down and one across from the top left of the screen.
Line 4: demonstrates a pixel at (2 across, 5 down)
Line 5: multiple plotting commands are separated by a bar. This puts one pixel at (1, 2) and one at (3, 1)
Line 6: this is a plotting command sequence that displays five pixels in a shape representing the grid number 2.

The scoring formula

Hi,

I've got a question about the scoring equation given here:
https://message-from-space.readthedocs.io/en/latest/game.html#scoring
https://github.com/zaitsev85/message-from-space/blob/master/source/game.rst#scoring

score = \lfloor 50^{(50-rank)/50} \rfloor

Why do you use 50 in the exponent part of the formula? Shouldn't it be 49 (inclusive upper bound)?

score = \lfloor 50^{(49-rank)/49} \rfloor

It gives more natural “stretch” of the range:

value range
count = 50
inclusiveBound = count − 1.0
rank ∈ [0, count) [0 ↗ inclusiveBound]
power = (inclusiveBound − rank) / inclusiveBound  [1.0 ↘ 0.0]
rawScore = count ^ power  [count ↘ 1.0]
score = floor(rawScore)  [count ↘ 1]
rank score (rawScore)
0 50 (50.00)
1 46 (46.16)
2 42 (42.62)
3 39 (39.35)
... ...
48 1 (1.08)
49 1 (1.00)
50 0 (0.92)

Message #37 - Index selector

This seems to describe a function that returns the nth index from a series of arguments, similar to [] notation in most programming languages.

Line 1: when applied to the argument combination 0 . x0 . x1, return x0 (i.e. the first argument)
Line 2: when applied to the argument combination 1 . x0 . x1, return x1 (i.e. the second argument)

It is not specified what happens when an out-of-range number is used.

Incorrect decoding filled blocks

Parser incorrectly parses and annotates filled blocks as x0. For example, in messages 24 and 29 these blocks are decoded as x0:

##
##
###
###
###

Message #25 - Rotate right

From trilader on Discord

#25 rotates the argument list to the right

:64170 (rtr)

The last item in a variable stream is removed and placed in front of the first item in the variable stream.

Naming conventions

We need to maintain a table of the decided names for each generic symbol.

Name Generic Symbol Messages annotate.hs updated?
t :2 11, 21 yes
f :8 11, 22 yes
ap :0 5, 17 yes
send :174 15 #43
neg :10 16 #43
s :7 18 #43
c :6 19 #43
b :5 20 #43
pwr2 :68191693600 23 #43
i new glyph 24 no
cons :64170 25 #43
car :64174 26 #43
cdr :64171 27 #43
nil :14 28 #43
isnil new glyph 29 no
( _ , _ ) pictoral glyphs for (, ,, and ) 30 no
vec :17043521 31 no
chkb :11184810 33 no
if0 :58336 37 #43

Message #33 - Hatched fill

This operator takes two arguments and describes a hatched square fill operation.

Line 1: Arguments (7, 0). This is a square fill with a checkerboard pattern of side length 7.
Line 1: Arguments (13, 0). This is a square fill with a checkerboard pattern of side length 13.

My guess: the second argument describes the style of fill

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.