See rendered version at https://message-from-space.readthedocs.io
zaitsev85 / message-from-space Goto Github PK
View Code? Open in Web Editor NEWHome Page: https://message-from-space.readthedocs.io
License: MIT License
Home Page: https://message-from-space.readthedocs.io
License: MIT License
See rendered version at https://message-from-space.readthedocs.io
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.
#44 is working on organizing the naming conventions and related context.
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) |
17 apply func
Operator :10 (neg) converts from negative to positive, and vice versa.
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.
Parser incorrectly parses and annotates filled blocks as x0
. For example, in messages 24 and 29 these blocks are decoded as x0
:
##
##
###
###
###
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.
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 |
snd a b = b
fst a b = a
id
Returns the variable stream as is
Line 1 - Operator :7 (dis) distributes a variable across its children.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.